Welcome, Guest. Please login or register.

Author Topic: A2091 and Zorro-II DMA memory  (Read 2873 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline IggyTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2009
  • Posts: 5348
    • Show only replies by Iggy
A2091 and Zorro-II DMA memory
« on: February 17, 2013, 03:56:01 PM »
Why does the A2091 require memory on the Zorro buss to enable DMA?
And what's the easiest way to assure its presence.
"Not making any hard and fast rules means that the moderators can use their good judgment in moderation, and we think the results speak for themselves." - Amiga.org, terms of service

"You, got to stem the evil tide, and keep it on the the inside" - Rogers Waters

"God was never on your side" - Lemmy

Amiga! "Our appeal has become more selective"
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: A2091 and Zorro-II DMA memory
« Reply #1 on: February 17, 2013, 04:20:01 PM »
Memory is required for DMA to work (=Direct Memory Access) - the A2091 works with chip RAM as well. Extended RAM (beyond 16 MB/24 bit address space) can't be addressed so it's useless.
 

Offline SpeedGeek

Re: A2091 and Zorro-II DMA memory
« Reply #2 on: February 17, 2013, 04:27:20 PM »
This has been a well known design limitation of the A2091 for a long time now. It's also been a topic for discussion on many Amiga forums (including Amiga.org).

The A2091s DMAC was designed to support the 68000 bus architecture and likewise is limited to transfers within the 24 bit (16MB) address space. The C= driver (scsi.device) defaults to PIO mode if it can not perform DMA transfers. This results in much slower transfer rates.

Performance is significantly improved by using a software patch (i.e. vbak2091) or a Guru ROM to perform buffered DMA transfers above 24 bit address space.
 

Offline Heiroglyph

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 1100
    • Show only replies by Heiroglyph
Re: A2091 and Zorro-II DMA memory
« Reply #3 on: February 17, 2013, 05:28:59 PM »
Wow, that's an eye opener to me.  I thought you couldn't do DMA with ZorroII cards to high memory.

I knew the lines were there, but assumed the cards weren't made to support it.
 

Offline SpeedGeek

Re: A2091 and Zorro-II DMA memory
« Reply #4 on: February 17, 2013, 06:11:13 PM »
Zorro2 cards can't do DMA above 24 bit address space. But they can do DMA to a buffer in memory below 24 bit address space. Then a 32 bit CPU can copy this buffer to memory above 24 bit address space. That's why it's called buffered DMA.
 

Offline Heiroglyph

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 1100
    • Show only replies by Heiroglyph
Re: A2091 and Zorro-II DMA memory
« Reply #5 on: February 17, 2013, 06:19:32 PM »
Ah, ok, that's what I thought.  Thanks for clearing that up.
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: A2091 and Zorro-II DMA memory
« Reply #6 on: February 18, 2013, 01:35:57 AM »
It's called "Bounce buffer" in Linux / FreeBSD. Used to deal with the 16 MB limit of Intel 8237,  and the 4 GB limit of PCI etc. I guess 64-bit systems have a bit left before they need this technique ;)
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: A2091 and Zorro-II DMA memory
« Reply #7 on: February 18, 2013, 07:31:24 AM »
Quote
...,  and the 4 GB limit of PCI etc. I guess 64-bit systems have a bit left before they need this technique ;)


That's what we once thought of 32 bit, too... ;)
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: A2091 and Zorro-II DMA memory
« Reply #8 on: February 18, 2013, 07:36:35 AM »
"4G should be enough for anybody" ? :P

16 777 216 TByte enough? ;)
 

Offline psxphill

Re: A2091 and Zorro-II DMA memory
« Reply #9 on: February 18, 2013, 01:28:30 PM »
Quote from: Heiroglyph;726697
Wow, that's an eye opener to me. I thought you couldn't do DMA with ZorroII cards to high memory.
 
I knew the lines were there, but assumed the cards weren't made to support it.

The lines aren't there, it's impossible for a zorro 2 card to use more than 24 bits of address. While zorro 3 cards use the same connector, the extra address and data bits are multiplexed.
 
The easiest way of making sure there is memory available for the card to DMA is to populate the A2091 with ram.
 

Offline Heiroglyph

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 1100
    • Show only replies by Heiroglyph
Re: A2091 and Zorro-II DMA memory
« Reply #10 on: February 18, 2013, 02:56:20 PM »
Quote from: psxphill;726783
The lines aren't there, it's impossible for a zorro 2 card to use more than 24 bits of address. While zorro 3 cards use the same connector, the extra address and data bits are multiplexed.
 
The easiest way of making sure there is memory available for the card to DMA is to populate the A2091 with ram.


Dang, I hoped nobody would call me on that one :roflmao:

I have no idea what I was thinking.  I've been looking at bus specs so much the last few days my brain must have just scrambled the two.