Click Here
home features news forums classifieds faqs links search
6126 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 1 member(s) on-line.


 OneTimer1

You are an anonymous user.
Register Now!
 OneTimer1:  48 secs ago
 AmigaBlitter:  55 mins ago
 Kamlop:  56 mins ago
 IntuitionAmiga:  1 hr 15 mins ago
 BigD:  1 hr 17 mins ago
 nytwordlehints:  1 hr 25 mins ago
 Rob:  1 hr 43 mins ago
 Mobileconnect:  1 hr 46 mins ago
 kolla:  1 hr 56 mins ago
 Hammer:  2 hrs 17 mins ago

/  Forum Index
   /  Amiga General Chat
      /  DMA not accepted for CD-RW under AOS4
Register To Post

PosterThread
saimo 
DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 14:53:36
#1 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

OK, now that the flood of desperate requests due to the update #3 is gone, I can post this little help request of mine


The problem is that I can't activate DMA for my CD-RW drive.


My system is an unfixed A1-XE (MPC7550 @ 800 MHz) with a Silicon 0680 card.
The drives are set up this way:

- primary master: DVD drive
- primary slave: CD-RW
- secondary master: HD
- secondary slave: nothing

this is the only configuration possible because of cabling limitations (absurd, but that's the way it goes with my otherwise wonderful case).


My U-Boot variables are:

- sil0680ide_conf: 2210
- sil0680ide_xfer: FFG0

U-Boot immediately recognizes the CD-RW, whereas the DVD takes some 5 seconds.


This is what idetool says about the drives:

###

-------------------Unit 0 information------------------------
Flags : $0000011D - present, supports DMA, removable media, ATAPI, interrupts used,
Xfer mode : best pio / best dma / current : 12 / -1 / 12
Total blocks : 0
Blocksize : 0
Packet spec : 5
Packet size : 12
Current medium read speed : x 65535 ('65535' stands for max.)
Current medium write speed : x 65535 (idem)
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $802400 / $80240A / $802420
-------------------Unit 1 information------------------------
Flags : $0000011D - present, supports DMA, removable media, ATAPI, interrupts used,
Xfer mode : best pio / best dma / current : 12 / 66 / 66
Total blocks : 0
Blocksize : 2048
Packet spec : 5
Packet size : 12
Current medium read speed : x 65535 ('65535' stands for max.)
Current medium write speed : x 65535 (idem)
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $802400 / $80240A / $802420
-------------------Unit 2 information------------------------
Flags : $000001A5 - present, supports DMA, ATA, supports acoustic mgmt, supports cache flush, interrupts used,
Xfer mode : best pio / best dma / current : 12 / 70 / 70
Total blocks : 120103200
Blocksize : 512
Power mode : 2 / idle (ready for operation)
IO1 / IO2 / BMCR @ : $802410 / $80241A / $802428
*** Error opening device sii0680ide.device / unit 3

###

which, AFAICS, is completely correct except for the line

Xfer mode : best pio / best dma / current : 12 / -1 / 12

regarding the unit 0: for some reasons, the system does not recognize the CD-RW as a DMA-capable drive.

These are the detailed information given by idetool regarding the CD-RW:

###

------------------ATAPI device information------------------
Dev type : SAMSUNG CD-R/RW SW-240B
Remov Med : yes (probably CD/DVD reader/writer)
Revision : R403
Serial # :
Main features :
Command packet size : 12 bytes
Interleaved DMA : no
Command queueing : no
Overlap operation : no
IORDY : yes
SMART : not enabled
Security mode : not enabled
Power mgmt : supported
Packet cmds : supported
Write cache : not enabled
Look ahead : not enabled
Device reset : supported
Write buffer cmd : not supported
Read buffer cmd : not supported
Nop cmd : supported
Download microcode : not supported
Read/write DMA queued cmd : not supported
CompactFlash cmd set : not supported
Advance power mgmt : not enabled
Acoustic mgmt : not supported
LBA 48 : not supported
Minimum PIO cycle time : 120 ns
Minimum PIO c.t. (IORDY) : 120 ns
DMA : yes
Minimum reg. cycle time : 120 ns
mode 64 ( 16 MB/s) : no
mode 65 ( 25 MB/s) : no
mode 66 ( 33 MB/s) : no
mode 67 ( 44 MB/s) : no
mode 68 ( 66 MB/s) : no
mode 69 (100 MB/s) : no
mode 70 (133 MB/s) : no
PIO :
mode 8 ( 3 MB/s) : yes (always)
mode 9 ( 5 MB/s) : yes (always)
mode 10 ( 8 MB/s) : yes (always)

###

A couple of general notes:
- except for this DMA issue, the drives work perfectly both under AOS and Linux
- the installation of update #3 was totally painless for me
- I have tried to let U-Boot do self-detection of the drive type and capabilities, but the results were identical


Anybody got any idea? Stephane, can you give a look at this, please?


Thank you!

saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
Anonymous 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 15:01:59
# ]

0
0

@saimo

Quote:
The problem is that I can't activate DMA for my CD-RW drive.

My system is an unfixed A1-XE (MPC7550 @ 800 MHz) with a Silicon 0680 card.
The drives are set up this way:

- primary master: DVD drive
- primary slave: CD-RW
- secondary master: HD
- secondary slave: nothing
...

-------------------Unit 0 information------------------------
Flags : $0000011D - present, supports DMA, removable media, ATAPI, interrupts used,
Xfer mode : best pio / best dma / current : 12 / -1 / 12
...

This drive only supports SDMA and/or MDMA (and PIO), but not UDMA. The AmigaOne IDE
drivers support UDMA (and PIO), but not SDMA and MDMA.

 
     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 15:09:28
#3 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@joerg

Quote:

This drive only supports SDMA and/or MDMA (and PIO), but not UDMA.


Are you saying this from what you read in the logs or you know the drive specification (just curious)?


Quote:

The AmigaOne IDE drivers support UDMA (and PIO), but not SDMA and MDMA.


Will drivers ever support the other DMA modes, then?


saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
Anonymous 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 15:19:58
# ]

0
0

@saimo

Quote:
saimo wrote:
@joerg

Quote:
This drive only supports SDMA and/or MDMA (and PIO), but not UDMA.

Are you saying this from what you read in the logs or you know the drive specification (just curious)?
From the logs.

Quote:
Quote:
The AmigaOne IDE drivers support UDMA (and PIO), but not SDMA and MDMA.

Will drivers ever support the other DMA modes, then?
Probably not as it would be a lot of work to add support for the old, slow DMA modes
(SDMA is 2.1-8.3 MB/s, MDMA 4.2-16.6 MB/s) and it's only a problem for old drives
which didn't support UDMA yet.

 
     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 15:27:46
#5 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@joerg

Quote:

Probably not as it would be a lot of work to add support for the old, slow DMA modes (SDMA is 2.1-8.3 MB/s, MDMA 4.2-16.6 MB/s) and it's only a problem for old drives which didn't support UDMA yet.


I understand.
Thanks for the replies!

saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
Amigaguy 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 15:45:58
#6 ]
Member
Joined: 8-Mar-2004
Posts: 31
From: Unknown

@saimo

Try this setting with C for your CD-RW and e for your DVD drive.

sil0680ide_xfer: eCG0

Your CD-RW seems to do DMA up to 33 MB/s and your DVD seems to only do PIO modes.

Quoted from docs at
http://s.guillard.free.fr/OS4/si680ide_dev_relnotes.txt


- sil_xfer

Allows to define the xfer mode which will be used for each drive. Compose
4 chars (prim master, prim slave, sec master, sec slave) using :

0 - Automatic (si680ide will use the best mode
that the drive claims to support)
a - PIO 0 ( 3 MB/s, modeid 8)
b - PIO 1 ( 5 MB/s, modeid 9)
c - PIO 2 ( 8 MB/s, modeid 10)
d - PIO 3 ( 11 MB/s, modeid 11)
e - PIO 4 ( 16 MB/s, modeid 12)
A - UDMA 0 ( 16 MB/s, modeid 64)
B - UDMA 1 ( 25 MB/s, modeid 65)
C - UDMA 2 ( 33 MB/s, modeid 66)
D - UDMA 3 ( 44 MB/s, modeid 67)
E - UDMA 4 ( 66 MB/s, modeid 68)
F - UDMA 5 (100 MB/s, modeid 69)
G - UDMA 6 (133 MB/s, modeid 70)


Or you can try the 0 options for the CD-RW and DVD drives and let it set the best automatically.

 Status: Offline
Profile     Report this post  
clooned 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 15:55:19
#7 ]
Regular Member
Joined: 26-Jul-2003
Posts: 270
From: Palma de Mallorca, Spain

@joerg

Quote:
Probably not as it would be a lot of work to add support for the old, slow DMA modes (SDMA is 2.1-8.3 MB/s, MDMA 4.2-16.6 MB/s) and it's only a problem for old drives which didn't support UDMA yet.


I have an old HP 8x CDRW drive in my A1 that do the same.

Thank you for your info!

 Status: Offline
Profile     Report this post  
elwood 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 16:22:43
#8 ]
Elite Member
Joined: 17-Sep-2003
Posts: 3428
From: Lyon, France

Hey guys,
it's time to upgrade. You have an A1 now, it deserves better than your old Classic hardware

_________________
Philippe 'Elwood' Ferrucci
Sam460 1.10 Ghz
AmigaOS 4 betatester
Amiga Translator Organisation

 Status: Offline
Profile     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 16:29:33
#9 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@Amigaguy

Quote:

Your CD-RW seems to do DMA up to 33 MB/s and your DVD seems to only do PIO modes.


Nope, DVD's DMA is fully working (mode 69), it's the CD-RW that works only in PIO mode - and the reason is, as joerg explained, that this drive is not capable of UDMA (I have now downloaded the manual from the Samsung site and it confirms that the drive can only do MDMA).
In other words, there is no SW setting that can help (but thanks for suggesting the correct settings... I wonder why I had FFG0 in first place...).

saimo

Last edited by saimo on 17-Jun-2005 at 04:45 PM.
Last edited by saimo on 17-Jun-2005 at 04:30 PM.

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
ikir 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 16:34:41
#10 ]
Elite Member
Joined: 18-Dec-2002
Posts: 5647
From: Italy

@saimo

My CDRW too doesn't support DMA All my other devices support it

_________________
ikir

 Status: Offline
Profile     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 16:35:49
#11 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@elwood

Quote:

Hey guys,
it's time to upgrade. You have an A1 now, it deserves better than your old Classic hardware


Make me feel a bit sad...
I bought this CD-RW when I bought the A1 and it was almost the best you could buy back then (more than 2 years ago)

Anyway, it's not a big issue... I burn very little... the only thing that ticks me is that my DVD drive is not able to go beyond the first session, so sometimes I have to use the CD-RW also as a reader, and DMA would help...

saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 16:36:51
#12 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@ikir

I hope it's not a big issue for you, too

saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
sg2 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 17:19:06
#13 ]
Regular Member
Joined: 16-Jun-2004
Posts: 223
From: Lyon, France

@saimo

Hi,

Jörg is absolutely right (was he ever wrong anyway), your drive supports DMA, but not the Ultra DMA variant of it, only older S/M DMA which my drivers dont (and wont) support.

But this said, I'm VERY surprised that you were sold such a drive 2 years ago, it looks impossible, only drives like 10 years ago would not support UDMA...

So it might also well be that your drive's firmware is broken and does not report UDMA capabilities, which would still work if tried, maybe...

Regards,
--
Stéphane

 Status: Offline
Profile     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 19:45:45
#14 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@sg2

Quote:

Jörg is absolutely right (was he ever wrong anyway),


Yes, I had no doubt he was right.


Quote:

your drive supports DMA, but not the Ultra DMA variant of it, only older S/M DMA which my drivers dont (and wont) support.


Namely, MDMA (I found this out by downloading the manual from Samsung).


Quote:

But this said, I'm VERY surprised that you were sold such a drive 2 years ago, it looks impossible, only drives like 10 years ago would not support UDMA...


Really?!? What can I say... it's a 40x12x40, and I bought it in December 2002.
Until today, I did not even know about this different kinds of DMAs, otherwise I (probably) would not have bought it.
You can have a look at it in this page from the Samsung website.


Quote:

So it might also well be that your drive's firmware is broken and does not report UDMA capabilities, which would still work if tried, maybe...


Nope it's just that the HW does not support UDMA
BTW: the firmware was already the latest revision; anyway, apart from the missing DMA, the drive works just fine.


***


Now, here's another question for you (it's a thing I have already mentioned in the first post): at boot, the CD-RW is immediately recognized, whereas my DVD drive (which works perfectly and has DMA enabled) needs more or less 5 seconds. This is just annoying as it slows down the boot process (which otherwise would stay under 20 seconds).
I have tried to both leave U-Boot guess the right parameters and feed it with the right values, but nothing changes. Do I have to give up?

BTW: given that I can't use the DMA for the CD-RW, I have now re-organized the configuration a bit: the CD-RW is attached to the onboard primary, the DVD is on the sii0680 primary and the HD is on the sii0680 secondary (and all of them are masters, of course).
So, the U-Boot variables look like this now:

- a1ide_conf = 2000
- a1ide_xfer = e000
- sii0680ide_conf = 2010
- sii0680ide_xfer = C0G0


saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  
sg2 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 20:39:37
#15 ]
Regular Member
Joined: 16-Jun-2004
Posts: 223
From: Lyon, France

@saimo

Yes, give up.

I'm amazed to see that indeed, this more or less recent thing does not do UDMA...

Regards,
--
Stéphane

 Status: Offline
Profile     Report this post  
saimo 
Re: DMA not accepted for CD-RW under AOS4
Posted on 17-Jun-2005 20:48:42
#16 ]
Elite Member
Joined: 11-Mar-2003
Posts: 2489
From: Unknown

@sg2

Quote:

Yes, give up.


So, I have to keep the problem of the DVD too... well, it looks like I'm out of luck with my drives


Quote:

I'm amazed to see that indeed, this more or less recent thing does not do UDMA...


Same for me. The specs looked very good back then and even if I did not know about the different kinds of DMA, I assumed it would do the best possible...


OK, thanks for the support!

saimo

_________________
RETREAM - retro dreams for Amiga, Commodore 64 and PC

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle