Skip to contentSkip to conversation

Assorted bugs in the PIIX drivers

DISCUSSION Alan Cox 3 participants 7 messages Nov 25, 2005 – May 15, 2006 libata

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

I finally got all the documents rounded up to try and redo Jgarzik's PIIX driver a bit more completely (I'm short MPIIX if anyone has it ?)

I then started reading the docs and the code and noticing a couple of problems

1. We set IE1 on PIO0-2 which the docs say is for PIO3+

2. The ata_piix one (but not the ide/pci one) have shifts wrong so that
the secondary slave timings are half loaded into the primary slave

I'm also not clear if the "no MWDMA0" list has been updated correctly for the newer chipsets.

I've yet to review the DMA programming, just the PIO so far.

author
#1 lore raw
Quoted 2 lines · Alan Cox

I finally got all the documents rounded up to try and redo Jgarzik's PIIX driver a bit more completely (I'm short MPIIX if anyone has it ?)

Add another one - PPE is set unconditionally while the documentation says it should be set for fixed disk only.

#2 lore raw
In reply to Alan Cox
Quoted 8 lines · Alan Cox

I finally got all the documents rounded up to try and redo Jgarzik's PIIX driver a bit more completely (I'm short MPIIX if anyone has it ?)

I then started reading the docs and the code and noticing a couple of problems

1. We set IE1 on PIO0-2 which the docs say is for PIO3+

Quoted 8 lines

2. The ata_piix one (but not the ide/pci one) have shifts wrong so that
the secondary slave timings are half loaded into the primary slave

I'm also not clear if the "no MWDMA0" list has been updated correctly for the newer chipsets.

I've yet to review the DMA programming, just the PIO so far.

Alan,

could it be possible to again drop the ide=nodma kernel parameter in my
configs that use reiserfs? reiserfs just bails out when I mount devices on ide busses that miss that parameter. I somtimes had to --rebuild-tree after a boot with DMA enabled.

Regards,
Marc

author
#3 lore raw
Quoted 4 lines · Marc Koschewski

could it be possible to again drop the ide=nodma kernel parameter in my
configs that use reiserfs? reiserfs just bails out when I mount devices on ide busses that miss that parameter. I somtimes had to --rebuild-tree after a boot with DMA enabled.

One to ask the IDE maintainer about for the drivers/ide/pci code. However the bugs and questions from my check only affect non hardisk devices and very early slow PIO devices so wouldn't explain problems seen with modern drive configurations.

The setup for modern (UDMA) while horribly convoluted appears to be totally correct.

Alan

#4 lore raw
In reply to Alan Cox

Hello.

Quoted 7 lines · Alan Cox

I finally got all the documents rounded up to try and redo Jgarzik's PIIX driver a bit more completely (I'm short MPIIX if anyone has it ?)

I then started reading the docs and the code and noticing a couple of problems

1. We set IE1 on PIO0-2 which the docs say is for PIO3+

For PIO2+ actually, according to Intel's PRM (29860004.pdf), and it's said
to have no effect in the lower modes. This is actually not very correct since when one issues Set Transfer Mode ATA command with the value (8 + PIOn), this means select PIO _flow control_ mode n, so -IORDY is assumed to be in use.

Quoted 2 lines

I'm also not clear if the "no MWDMA0" list has been updated correctly for the newer chipsets.

What is/was the point for keeping MW DMA 0 support anyway? On PIIX, it's
greatly slowed down (600 vs 480 ns cycle) and was never "offically" supported by Intel.

MBR, Sergei

author
#5 lore raw
Quoted 4 lines · Sergei Shtylyov

For PIO2+ actually, according to Intel's PRM (29860004.pdf), and it's said
to have no effect in the lower modes. This is actually not very correct since when one issues Set Transfer Mode ATA command with the value (8 + PIOn), this means select PIO _flow control_ mode n, so -IORDY is assumed to be in use.

PIO2 depends on the drive (there is a drive parameter telling you the highest timing clock you can do with/without IORDY

Quoted 6 lines
Quoted 2 lines

I'm also not clear if the "no MWDMA0" list has been updated correctly for the newer chipsets.

What is/was the point for keeping MW DMA 0 support anyway? On PIIX, it's
greatly slowed down (600 vs 480 ns cycle) and was never "offically" supported by Intel.

Some old old drives only do MWDMA0. The Intel docs I have here don't describe it in any way as "unsupported", merely broken on some ICH variants.

Alan

#6 lore raw

Hello.

Quoted 9 lines · Alan Cox
Quoted 4 lines · Sergei Shtylyov

For PIO2+ actually, according to Intel's PRM (29860004.pdf), and it's said
to have no effect in the lower modes. This is actually not very correct since when one issues Set Transfer Mode ATA command with the value (8 + PIOn), this means select PIO _flow control_ mode n, so -IORDY is assumed to be in use.

PIO2 depends on the drive (there is a drive parameter telling you the highest timing clock you can do with/without IORDY

Yes. But when you're setting any _explicit_ PIO mode with Set Features
command, you're tell the drive to use -IORDY at the same time.

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

I'm also not clear if the "no MWDMA0" list has been updated correctly for the newer chipsets.

What is/was the point for keeping MW DMA 0 support anyway? On PIIX, it's
greatly slowed down (600 vs 480 ns cycle) and was never "offically" supported by Intel.

Some old old drives only do MWDMA0. The Intel docs I have here don't describe it in any way as "unsupported",

They just don't describe it, period. :-)

Quoted 1 line

merely broken on some ICH variants.

ICH errata #55: "Note that DMA Mode-0 is an unsupported mode of the ICH."

Quoted 1 line

Alan

MBR, Sergei