Skip to contentSkip to conversation

Samsung SP0822N does not go over UDMA 33 (2.6.11)

DISCUSSION Balazs Ree 2 participants 4 messages Jun 3, 2005 – Jun 7, 2005 libata

lore
Share & tools
lore

Balazs Ree

author
#0 lore raw

I have a new Samsung SP0822N. This is a 80G (P)ATA disk that is supposed to support ATA133. It is connected to a SiI680 PCI controller. I am using kernel 2.6.11.

But at bootup, the disk is identified as ATA33:

Jun  3 12:49:08 brumi kernel: SiI680: chipset revision 2
Jun  3 12:49:08 brumi kernel: SiI680: BASE CLOCK == 133
Jun  3 12:49:08 brumi kernel: SiI680: 100% native mode on irq 10
Jun  3 12:49:08 brumi kernel: ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
Jun  3 12:49:08 brumi kernel: ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio
Jun  3 12:49:08 brumi kernel: Probing IDE interface ide2...
Jun  3 12:49:08 brumi kernel: hde: SAMSUNG SP0822N, ATA DISK drive
Jun  3 12:49:08 brumi kernel: ide2 at 0xf8802080-0xf8802087,0xf880208a on irq 10
Jun  3 12:49:08 brumi kernel: hde: max request size: 64KiB
Jun  3 12:49:08 brumi kernel: hde: 156368016 sectors (80060 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(33)
Jun  3 12:49:08 brumi kernel: hde: cache flushes supported

Later, if I try to go beyond udma2 with hdparm, it pretends as if it changed the setting, but the setting actually stays on udma2. With hdparm -i I get the following output:

Model=SAMSUNG SP0822N, FwRev=WA100-10, SerialNo=S06QJ10Y458485 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=31374, SectSize=498, ECCbytes=4 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16 CurCHS=65535/1/63, CurSects=4128705, LBA=yes, LBAsects=156368016 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5 udma6 AdvancedPM=no WriteCache=enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 1:

It seems as if the cable would be wrong. This can be, however, excluded: I am using 80 pin cables and changed the cable as well, with no success. I also tried to boot with ide2=ata66: this did not help either.

There is an older SAMSUMG (0802N) sitting on the other channel of the same interface (same type of cable) and it goes fine with udma5. I got this new disk as a replacement for a similar unit that fried itself. Now I am a bit worried. I tried to look at the ide sources but I am lost about why it figures out this timing restriction. Any clue would be appreciated!

Thanks a lot,

Signature · 1 line
Balazs REE
author
#1 lore raw

I posted this earlier:

Quoted 9 lines

I have a new Samsung SP0822N. This is a 80G (P)ATA disk that is supposed to support ATA133. It is connected to a SiI680 PCI controller. I am using kernel 2.6.11.

But at bootup, the disk is identified as ATA33:

Jun  3 12:49:08 brumi kernel: hde: 156368016 sectors (80060 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(33)

Model=SAMSUNG SP0822N, FwRev=WA100-10, SerialNo=S06QJ10Y458485

As I've received no reply for this help request, I can assume that no one uses this particular model of Samsung. Perhaps it is a new model...? This means I am on my own.

I would be willing to find out why this happens, but someone could please give me a helping hand? It would be great if you could point me to the exact location of the ide code where the limitation to udma2 is made, this would save me an enormous amount of time. Then I guess I would make the code a bit more verbose and figure out something. You can also contact me directly about this.

Thank you very much in advance, any help is highly appreciated.

Signature · 2 lines
Bala'zs REE' jabber + email: [email protected]
             ICQ: 75955071   AIM: reebalazs
#2 lore raw

Le Mon, 06 Jun 2005 10:12:18 +0200, Balazs Ree a écrit :

Sorry i am the most newby of kernel hackers , though i hope the pointers to documentation can help you (well and that you can go further than i did with those)

Quoted 3 lines

As I've received no reply for this help request, I can assume that no one uses this particular model of Samsung. Perhaps it is a new model...? This means I am on my own.

Well i am also having issues with atapi and such a card though it looks like "my" problem comes from drive. I am also waiting to see the end of the ide/scsi transport layer redesign (though following it and learning from the changesets).

Quoted 1 line

I would be willing to find out why this happens, but someone

could

Quoted 5 lines

please give me a helping hand? It would be great if you could point me to the exact location of the ide code where the limitation to udma2 is made, this would save me an enormous amount of time. Then I guess I would make the code a bit more verbose and figure out something. You can also contact me directly about this.

I would suggest reading about the 2.6 driver model at linux weekly news kernel section : http://lwn.net/Kernel/Index/ (for example Driver porting:
the gendisk interface http://lwn.net/Articles/25711/ )

and the "linux device drivers, third edition" http://lwn.net/Kernel/LDD3/
(though the book is worth to buy :) , sadly i only have the second edition

Cheers
Alban

author
#3 lore raw
In reply to Balazs Ree

I wrote earlier:

Quoted 9 lines
Quoted 9 lines

I have a new Samsung SP0822N. This is a 80G (P)ATA disk that is supposed to support ATA133. It is connected to a SiI680 PCI controller. I am using kernel 2.6.11.

But at bootup, the disk is identified as ATA33:

Jun  3 12:49:08 brumi kernel: hde: 156368016 sectors (80060 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(33)

Model=SAMSUNG SP0822N, FwRev=WA100-10, SerialNo=S06QJ10Y458485

I've found the solution! With CONFIG_IDEDMA_IVB set (IGNORE word93 Validation BITS) it gets the full ATA133 speed.

So the problem was yet the 80c ribbon detection. I was a bit confused about this because previously I had thought from the documentations that the boot option idex=ata66 would override this problem (but it did not do so, and I wrongly supposed it must be something else than cable detection then).

Signature · 2 lines
Bala'zs REE' jabber + email: [email protected]
             ICQ: 75955071   AIM: reebalazs