Skip to contentSkip to conversation

LibPATA code issues / 2.6.15.4

DISCUSSION [email protected] 7 participants 10 messages Mar 14, 2006 – Mar 17, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

short:
system with 2.6.15.4 with Mark Lord's opcode info patches
sata_mv (Adaptec 1420SA Marvell 88SX6541)
e.g. postgres:insert&delete gives: ata3: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00 or sometimes (unknown cause):
ata4: translated op=0x28 cmd=0x25 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata4: status=0xd0 { Busy }
Assertion failed! ((readl(port_mmio + EDMA_RSP_Q_IN_PTR_OFS) >> EDMA_RSP_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == pp->rsp_c onsumer,drivers/scsi/sata_mv.c,mv_get_crpb_status,line=1112

long:
I wanted to post this to the the thread "LibPATA code issues / 2.6.15.4". But right now my system is a bit down and so I sent this via webmail.

If I understand correctly:
The messages originally mentioned by Justin and David in the mentioned thread have no relation to FUA, as FUA was not enabled in 2.6.15.4? They just got worse when FUA got introduced in 2.6.16 (I tried 2.6.16-rc5 with similar effects as David Greaves had.)? So moving to 2.6.16-rc6 has not effect on these particular problems, except FUA is turned off again?
(I also tried 2.6.16-rc5-git2-2 (comes with openSuSE 10.1Beta6), which also showed these messages.)

I am using 2.6.15.4 with 2 opcode info patches from Mark Lord posted in the thread (the 2nd adapted to 2.6.15.4). I have 3 ide disks connected to the Asus Abit KV8 Pro onboard IDE controller (using VIA82CXXX) , 2 SATA disks connected to the onboard board (a using sata_via) and 3 SATA disks connected to a Adaptec 1420SA (with a 88SX6541-BCZ Marvell chip) (ata3-ata5) all drivers are compiled into the kernel.

I know sata_mv is highly experimental.

The system is a bit akward. It was installed with SuSE 9.3 and moved on with the kernel.

(the config has PCI_MSI = 0)

There are basically three types of log messages.

The following logs are easily reproduced by either simple insert/delete into a postgres or checking (receiving) e-mail with kmail (via cygwin xwin):
(both postgres and home dir are on the raid6 with 3 disks on the Adaptec 1420SA)

   Mar 14 08:56:50 meserv kernel: [ 1612.616632] ata3: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar 14 08:56:50 meserv kernel: [ 1612.616637] ata3: status=0xd0 { Busy }
   Mar 14 08:56:50 meserv kernel: [ 1612.708175] ata4: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar 14 08:56:50 meserv kernel: [ 1612.708180] ata4: status=0xd0 { Busy }

The next "Assertion failed!" messages come by the hundred and I only had these 2 times and have not found out when it happens, yet. I make them go away by shuting down the system.

   Mar 11 17:47:32 meserv kernel: [ 1364.826147] ata3: translated op=0x28 cmd=0x25 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar 11 17:47:32 meserv kernel: [ 1364.826151] ata3: status=0xd0 { Busy }
   Mar 11 17:47:32 meserv kernel: [ 1364.840187] ata4: translated op=0x28 cmd=0x25 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar 11 17:47:32 meserv kernel: [ 1364.840190] ata4: status=0xd0 { Busy }
   Mar 11 17:47:32 meserv kernel: [ 1364.840211] Assertion failed! ((readl(port_mmio + EDMA_RSP_Q_IN_PTR_OFS) >> EDMA_RSP_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == pp->rsp_c

onsumer,drivers/scsi/sata_mv.c,mv_get_crpb_status,line=1112

every now and then there was no error for a couple of seconds and then again a break of a minute and then again every second

   Mar 11 17:47:57 meserv kernel: [ 1389.785556] Assertion failed! ((readl(port_mmio + EDMA_RSP_Q_IN_PTR_OFS) >> EDMA_RSP_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == pp->rsp_consumer,drivers/scsi/sata_mv.c,mv_get_crpb_status,line=1112
   Mar 11 17:48:50 meserv kernel: [ 1442.756405] Assertion failed! ((readl(port_mmio + EDMA_RSP_Q_IN_PTR_OFS) >> EDMA_RSP_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == pp->rsp_consumer,drivers/scsi/sata_mv.c,mv_get_crpb_status,line=1112

That code is in static u8 mv_get_crpb_status(struct ata_port *ap) as probably obvious.

Lastly I had these messages only twice ( I also do not know the source, but I have the odd feeling that my wife's PC accessing a lot of data over smb has something to do with it):
The difference are e.g
.) a different op code
.) assertion failure is at line=1067 in sata_mv.c
.) assertion failure in libata-core.c line=3517

   Mar  9 13:28:02 meserv kernel: [  650.731142] ata3: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar  9 13:28:02 meserv kernel: [  650.731147] ata3: status=0xd0 { Busy }
   Mar  9 13:28:02 meserv kernel: [  650.736058] ata4: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar  9 13:28:02 meserv kernel: [  650.736063] ata4: status=0xd0 { Busy }
   Mar  9 13:28:02 meserv kernel: [  650.774947] ata5: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
   Mar  9 13:28:02 meserv kernel: [  650.774950] ata5: status=0xd0 { Busy }
   Mar  9 13:28:33 meserv kernel: [  680.683623] ata4: Entering mv_eng_timeout
   Mar  9 13:28:33 meserv kernel: [  680.683630] mmio_base ffffc20000900000 ap ffff81007f679440 qc ffff81007f679980 scsi_cmnd ffff81006bd2e2c0 &cmnd ffff81006bd2e330
   Mar  9 13:28:33 meserv kernel: [  681.816087] Assertion failed! qc->flags & ATA_QCFLAG_ACTIVE,drivers/scsi/libata-core.c,ata_qc_complete,line=3517
   Mar  9 13:28:33 meserv kernel: [  681.816102] ata4: status=0x50 { DriveReady SeekComplete }
   Mar  9 13:28:33 meserv kernel: [  681.816105] ata4: error=0x01 { AddrMarkNotFound }
   Mar  9 13:28:33 meserv kernel: [  681.816109] sdd: Current: sense key: No Sense
   Mar  9 13:28:33 meserv kernel: [  681.816111]     Additional sense: No additional sense information
   Mar  9 13:28:33 meserv kernel: [  681.816203] Assertion failed! ((in_ptr >> EDMA_REQ_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == ((readl(port_mmio + EDMA_REQ_Q_OUT_PTR_OFS)
    >> EDMA_REQ_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK),drivers/scsi/sata_mv.c,mv_qc_issue,line=1067
   Mar  9 13:29:04 meserv kernel: [  711.763158] ata4: Entering mv_eng_timeout
   Mar  9 13:29:04 meserv kernel: [  711.763165] mmio_base ffffc20000900000 ap ffff81007f679440 qc ffff81007f679980 scsi_cmnd ffff81006bd2e480 &cmnd ffff81006bd2e4f0
   Mar  9 13:29:04 meserv kernel: [  711.889637] ata4: status=0x50 { DriveReady SeekComplete }
   Mar  9 13:29:04 meserv kernel: [  711.889640] ata4: error=0x01 { AddrMarkNotFound }
   Mar  9 13:29:04 meserv kernel: [  712.769267] Assertion failed! qc->flags & ATA_QCFLAG_ACTIVE,drivers/scsi/libata-core.c,ata_qc_complete,line=3517
   Mar  9 13:29:04 meserv kernel: [  712.769281] ata4: status=0x50 { DriveReady SeekComplete }
   Mar  9 13:29:04 meserv kernel: [  712.769284] ata4: error=0x01 { AddrMarkNotFound }
   Mar  9 13:29:04 meserv kernel: [  712.769288] sdd: Current: sense key: No Sense
   Mar  9 13:29:04 meserv kernel: [  712.769290]     Additional sense: No additional sense information
   Mar  9 13:29:04 meserv kernel: [  712.769380] Assertion failed! ((in_ptr >> EDMA_REQ_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == ((readl(port_mmio + EDMA_REQ_Q_OUT_PTR_OFS)
    >> EDMA_REQ_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK),drivers/scsi/sata_mv.c,mv_qc_issue,line=1067

And finally I had all types of the above messages happend at once when my wife copied 700MB to the raid via smb and I searched a ide disk and used kmail via Cygwin/Xwin and accessed the raid via smb.
At first no new ssh connection could be created, after successful login it just hanged.
Then all my ssh connections to the machine were closed, the network activity blinked wildly, no ping, blank screen, no keyboard numlock and I after a while I just turned of the power.

A picture of the card Adaptec_Serial_ATA_II_RAID_1420SA_front_nosticker.JPG (for chip identification?), dmesg,
some system infos (lspci, some /proc's),
current config
and the last error log
can be found on
http://members.aon.at/~mebenhoc/sata_logs/

Bye,
Markus

-------------------------------------------
Versendet durch aonWebmail (webmail.aon.at)

#1 lore raw
Quoted 13 lines · [email protected] wrote:

Hi!

short:
system with 2.6.15.4 with Mark Lord's opcode info patches
sata_mv (Adaptec 1420SA Marvell 88SX6541)
e.g. postgres:insert&delete gives: ata3: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00 or sometimes (unknown cause):
ata4: translated op=0x28 cmd=0x25 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata4: status=0xd0 { Busy }
Assertion failed! ((readl(port_mmio + EDMA_RSP_Q_IN_PTR_OFS) >> EDMA_RSP_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == pp->rsp_c onsumer,drivers/scsi/sata_mv.c,mv_get_crpb_status,line=1112

Quoted 3 lines

long:
I wanted to post this to the the thread "LibPATA code issues / 2.6.15.4". But right now my system is a bit down and so I sent this via webmail.

...

fyi:

ATA cmd=0x35 is ATA_CMD_WRITE_EXT, and 0x25 (lower down in the logs) is ATA_CMD_READ_EXT.

Those are the bog-standard (and slow!) PIO R/W commands, which generate one interrupt per 512-bytes transferred.

Cheers

#9 lore raw
In reply to [email protected]

Yesterday, I also started with a 2.6.16-rc6 kernel (with the 2 op-code info patches).

The first two busy messages already are logged at boot up:
kernel: [ 74.254530] ata5: status=0xd0 { Busy }
that happens right after the raids have been set up.
With 2.6.15.4 there never are any messages of the mentioned kind during boot-up, but only e.g. with kmail retrieval or postgres insert&delete writing to the volume group the raid6 with the 3 ot of 7 disks on Adaptec 1420SA.

Then, when the reiser filesystem on the vg made up of the raid6 is mounted, a couple of busy messages and these three abnormal status messages are logged:
kernel: [152.627933] ata4: status=0xd0 { Busy }
kernel: [152.740934] ata3: status=0xd0 { Busy }
kernel: [152.750990] ATA: abnormal status 0xD0 on port 0xFFFFC2000092211C
kernel: [152.761021] ATA: abnormal status 0xD0 on port 0xFFFFC2000092211C
kernel: [152.771052] ATA: abnormal status 0xD0 on port 0xFFFFC2000092211C

This is followed later (caused by nothing known to me, but maybe still the mounting? or smb starting?):
kernel: [182.687864] ata3: Entering mv_eng_timeout
kernel: [182.687871] mmio_base ffffc20000900000 ap ffff81007f4fc470 qc ffff81007f4fc9a8 scsi_cmnd ffff81007a0bcd40 &cmnd ffff81007a0bcdb0
kernel: [182.814361] ata3: status=0x50 { DriveReady SeekComplete }
kernel: [182.814364] ata3: error=0x01 { AddrMarkNotFound }
kernel: [183.694148] Assertion failed! qc->flags & ATA_QCFLAG_ACTIVE,drivers/scsi/libata-core.c,ata_qc_complete,line=3635
kernel: [183.694157] ata3: status=0x50 { DriveReady SeekComplete }
kernel: [183.694159] ata3: error=0x01 { AddrMarkNotFound }

Then at the prompt after login, I typed find /nobak/ > somefile (/nobak is as softlink to a directory on the raid6 with 184000 entries returned by find ) which takes a moment (7sec?) on 2.6.15.4 and does not trigger any log messages.
With 2.6.16-rc6 it takes about 7 minutes (from 16:42:29 to 16:49:41) and about 14 of the following log messages blocks being logged every ~30 seconds:
kernel: [245.189337] ata3: Entering mv_eng_timeout
kernel: [245.189344] mmio_base ffffc20000900000 ap ffff81007f4fc470 qc
ffff81007f4fc9a8 scsi_cmnd ffff81007a420d80 &cmnd ffff81007a420df0
kernel: [245.315833] ata3: status=0x50 { DriveReady SeekComplete }
kernel: [245.315835] ata3: error=0x01 { AddrMarkNotFound }
kernel: [246.195640] Assertion failed! qc->flags &
ATA_QCFLAG_ACTIVE,drivers/scsi/libata-core.c,ata_qc_complete,line=3635
kernel: [246.195650] ata3: status=0x50 { DriveReady SeekComplete }
kernel: [246.195652] ata3: error=0x01 { AddrMarkNotFound }
kernel: [246.308724] ata5: status=0xd0 { Busy }
kernel: [246.308970] ata4: status=0xd0 { Busy }
kernel: [246.309446] ata3: status=0xd0 { Busy }
kernel: [266.244826] ata5: status=0xd0 { Busy }
kernel: [266.254877] ATA: abnormal status 0xD0 on port 0xFFFFC2000092611C
kernel: [266.264907] ATA: abnormal status 0xD0 on port 0xFFFFC2000092611C
kernel: [266.274937] ATA: abnormal status 0xD0 on port 0xFFFFC2000092611C

The whole messages log for this can be found as:
http://members.aon.at/~mebenhoc/sata_logs/messages_2.6.16-rc6_20060315_1640-1652.gz

Bye,
Markus

#2 lore raw
In reply to Mark Lord
Quoted 22 lines · Mark Lord
Quoted 19 lines · [email protected] wrote:

Hi!

short:
system with 2.6.15.4 with Mark Lord's opcode info patches sata_mv (Adaptec 1420SA Marvell 88SX6541)
e.g. postgres:insert&delete gives: ata3: translated op=0x2a cmd=0x35 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
or sometimes (unknown cause):
ata4: translated op=0x28 cmd=0x25 ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata4: status=0xd0 { Busy }
Assertion failed! ((readl(port_mmio + EDMA_RSP_Q_IN_PTR_OFS) >> EDMA_RSP_Q_PTR_SHIFT) & MV_MAX_Q_DEPTH_MASK) == pp->rsp_c onsumer,drivers/scsi/sata_mv.c,mv_get_crpb_status,line=1112

long:
I wanted to post this to the the thread "LibPATA code issues / 2.6.15.4". But right now my system is a bit down and so I sent this via webmail.

...

Quoted 7 lines

fyi:

ATA cmd=0x35 is ATA_CMD_WRITE_EXT, and 0x25 (lower down in the logs) is ATA_CMD_READ_EXT.

Those are the bog-standard (and slow!) PIO R/W commands, which generate one interrupt per 512-bytes transferred.

Eh no they are not, 0x35 is WRITEDMA_EXT and 0x25 is READMA_EXT.

Signature · 1 line
Jens Axboe
#3 lore raw
Quoted 1 line · Jens Axboe

On Wed, Mar 15 2006, Mark Lord wrote:

..

Quoted 7 lines
Quoted 5 lines

ATA cmd=0x35 is ATA_CMD_WRITE_EXT, and 0x25 (lower down in the logs) is ATA_CMD_READ_EXT.

Those are the bog-standard (and slow!) PIO R/W commands, which generate one interrupt per 512-bytes transferred.

Eh no they are not, 0x35 is WRITEDMA_EXT and 0x25 is READMA_EXT.

We're both correct, in that 0x35 is ATA_CMD_WRITE_EXT as I said. But the naming had me fooled -- they really are DMA commands, even if the linux/ata.h names are incomplete.

Cheers

#4 lore raw
Quoted 13 lines · Mark Lord
Quoted 1 line · Jens Axboe

On Wed, Mar 15 2006, Mark Lord wrote:

..

Quoted 7 lines
Quoted 5 lines

ATA cmd=0x35 is ATA_CMD_WRITE_EXT, and 0x25 (lower down in the logs) is ATA_CMD_READ_EXT.

Those are the bog-standard (and slow!) PIO R/W commands, which generate one interrupt per 512-bytes transferred.

Quoted 7 lines
Quoted 1 line

Eh no they are not, 0x35 is WRITEDMA_EXT and 0x25 is READMA_EXT.

We're both correct, in that 0x35 is ATA_CMD_WRITE_EXT as I said. But the naming had me fooled -- they really are DMA commands, even if the linux/ata.h names are incomplete.

How about the attached renaming patch?
It could make the command names more consistent to what's in the ATA/ATAPI spec.

---
Albert

Changes:

ATA_CMD_READ => ATA_CMD_READ_DMA
ATA_CMD_WRITE => ATA_CMD_WRITE_DMA
...
ATA_CMD_PIO_READ => ATA_CMD_READ_PIO
ATA_CMD_PIO_WRITE => ATA_CMD_WRITE_PIO
...
ATA_CMD_FPDMA_READ => ATA_CMD_READ_FPDMA_QUEUED
ATA_CMD_FPDMA_WRITE => ATA_CMD_WRITE_FPDMA_QUEUED

include/linux/ata.h +11 -9
@@ -125,15 +125,17 @@ enum {
 	ATA_CMD_FLUSH_EXT	= 0xEA,
 	ATA_CMD_ID_ATA		= 0xEC,
 	ATA_CMD_ID_ATAPI	= 0xA1,
-	ATA_CMD_READ		= 0xC8,
-	ATA_CMD_READ_EXT	= 0x25,
-	ATA_CMD_WRITE		= 0xCA,
-	ATA_CMD_WRITE_EXT	= 0x35,
-	ATA_CMD_WRITE_FUA_EXT	= 0x3D,
-	ATA_CMD_PIO_READ	= 0x20,
-	ATA_CMD_PIO_READ_EXT	= 0x24,
-	ATA_CMD_PIO_WRITE	= 0x30,
-	ATA_CMD_PIO_WRITE_EXT	= 0x34,
+	ATA_CMD_READ_DMA	= 0xC8,
+	ATA_CMD_READ_DMA_EXT	= 0x25,
+	ATA_CMD_WRITE_DMA	= 0xCA,
+	ATA_CMD_WRITE_DMA_EXT	= 0x35,
+	ATA_CMD_WRITE_DMA_FUA_EXT   = 0x3D,
+	ATA_CMD_READ_FPDMA_QUEUED   = 0x60,
+	ATA_CMD_WRITE_FPDMA_QUEUED  = 0x61,
+	ATA_CMD_READ_PIO	= 0x20,
+	ATA_CMD_READ_PIO_EXT	= 0x24,
+	ATA_CMD_WRITE_PIO	= 0x30,
+	ATA_CMD_WRITE_PIO_EXT	= 0x34,
 	ATA_CMD_READ_MULTI	= 0xC4,
 	ATA_CMD_READ_MULTI_EXT	= 0x29,
 	ATA_CMD_WRITE_MULTI	= 0xC5,
drivers/scsi/libata-core.c +9 -9
@@ -167,23 +167,23 @@ static const u8 ata_rw_cmds[] = {
 	0,
 	ATA_CMD_WRITE_MULTI_FUA_EXT,
 	/* pio */
-	ATA_CMD_PIO_READ,
-	ATA_CMD_PIO_WRITE,
-	ATA_CMD_PIO_READ_EXT,
-	ATA_CMD_PIO_WRITE_EXT,
+	ATA_CMD_READ_PIO,
+	ATA_CMD_WRITE_PIO,
+	ATA_CMD_READ_PIO_EXT,
+	ATA_CMD_WRITE_PIO_EXT,
 	0,
 	0,
 	0,
 	0,
 	/* dma */
-	ATA_CMD_READ,
-	ATA_CMD_WRITE,
-	ATA_CMD_READ_EXT,
-	ATA_CMD_WRITE_EXT,
+	ATA_CMD_READ_DMA,
+	ATA_CMD_WRITE_DMA,
+	ATA_CMD_READ_DMA_EXT,
+	ATA_CMD_WRITE_DMA_EXT,
 	0,
 	0,
 	0,
-	ATA_CMD_WRITE_FUA_EXT
+	ATA_CMD_WRITE_DMA_FUA_EXT
 };
 
 /**
drivers/scsi/sata_mv.c +7 -7
@@ -1087,16 +1087,16 @@ static void mv_qc_prep(struct ata_queued
 	 * NCQ.  NCQ will drop hob_nsect.
 	 */
 	switch (tf->command) {
-	case ATA_CMD_READ:
-	case ATA_CMD_READ_EXT:
-	case ATA_CMD_WRITE:
-	case ATA_CMD_WRITE_EXT:
-	case ATA_CMD_WRITE_FUA_EXT:
+	case ATA_CMD_READ_DMA:
+	case ATA_CMD_READ_DMA_EXT:
+	case ATA_CMD_WRITE_DMA:
+	case ATA_CMD_WRITE_DMA_EXT:
+	case ATA_CMD_WRITE_DMA_FUA_EXT:
 		mv_crqb_pack_cmd(cw++, tf->hob_nsect, ATA_REG_NSECT, 0);
 		break;
 #ifdef LIBATA_NCQ		/* FIXME: remove this line when NCQ added */
-	case ATA_CMD_FPDMA_READ:
-	case ATA_CMD_FPDMA_WRITE:
+	case ATA_CMD_READ_FPDMA_QUEUED:
+	case ATA_CMD_WRITE_FPDMA_QUEUED:
 		mv_crqb_pack_cmd(cw++, tf->hob_feature, ATA_REG_FEATURE, 0);
 		mv_crqb_pack_cmd(cw++, tf->feature, ATA_REG_FEATURE, 0);
 		break;
#5 lore raw
Quoted 9 lines · Albert Lee

How about the attached renaming patch?
It could make the command names more consistent to what's in the ATA/ATAPI spec.

---
Albert

Changes:

Quoted 8 lines

ATA_CMD_READ => ATA_CMD_READ_DMA
ATA_CMD_WRITE => ATA_CMD_WRITE_DMA
...
ATA_CMD_PIO_READ => ATA_CMD_READ_PIO
ATA_CMD_PIO_WRITE => ATA_CMD_WRITE_PIO
...
ATA_CMD_FPDMA_READ => ATA_CMD_READ_FPDMA_QUEUED
ATA_CMD_FPDMA_WRITE => ATA_CMD_WRITE_FPDMA_QUEUED

Even given the current thread's confusion, I rather like the existing names. Everybody does DMA these days, so ATA_CMD_WRITE being of DMA protocol seems the most natural to me.

Jeff

#7 lore raw
In reply to Albert Lee
Quoted 1 line · Albert Lee

Mark Lord wrote:

..

Quoted 7 lines
Quoted 4 lines

We're both correct, in that 0x35 is ATA_CMD_WRITE_EXT as I said. But the naming had me fooled -- they really are DMA commands, even if the linux/ata.h names are incomplete.

How about the attached renaming patch?
It could make the command names more consistent to what's in the ATA/ATAPI spec.

..

Hey, that's a great idea. And the patch is quite small, too.

Stick a Signed-Off-By line on it, and we'll see what our benevolent overJeff says for it. ;)

Cheers

#6 lore raw
In reply to Jeff Garzik
Quoted 3 lines · Jeff Garzik

Even given the current thread's confusion, I rather like the existing names. Everybody does DMA these days, so ATA_CMD_WRITE being of DMA protocol seems the most natural to me.

You'd be amazed how many drives ship into new hardware designs that use PIO. We've even been asked for non-spec-compliant PIO changes to improve performance.

Personally I like Albert's renaming patch.

#8 lore raw
In reply to Mark Lord
Quoted 14 lines · Mark Lord
Quoted 1 line · Albert Lee

Mark Lord wrote:

..

Quoted 7 lines
Quoted 4 lines

We're both correct, in that 0x35 is ATA_CMD_WRITE_EXT as I said. But the naming had me fooled -- they really are DMA commands, even if the linux/ata.h names are incomplete.

How about the attached renaming patch?
It could make the command names more consistent to what's in the ATA/ATAPI spec.

Quoted 7 lines

..

Hey, that's a great idea. And the patch is quite small, too.

Stick a Signed-Off-By line on it, and we'll see what our benevolent overJeff says for it. ;)

One more Signed-off-by here. :-)

Signature · 1 line
tejun