Skip to contentSkip to conversation

libata fixes

PATCH NAK Jeff Garzik 5 participants 42 messages Mar 2, 2007 – Mar 19, 2007

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

PATCH 1/1 libata fixes

Does not include Alan's stuff, per recent email thread.

Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus

to receive the following updates:

 drivers/ata/ahci.c          |   55 ++++++++++++++--------------
 drivers/ata/libata-core.c   |    5 ++-
 drivers/ata/pata_cs5520.c   |    1 -
 drivers/ata/pata_isapnp.c   |    1 -
 drivers/ata/pata_jmicron.c  |   51 ++++++--------------------
 drivers/ata/pata_platform.c |    1 -
 drivers/ata/sata_sil24.c    |    3 --
 drivers/pci/quirks.c        |   83 +++++++++++++++++++++++++++---------------
 8 files changed, 95 insertions(+), 105 deletions(-)

Tejun Heo (7):
libata: clear drvdata in ata_host_release(), take#2
sata_sil24: kill unused local variable idx in sil24_fill_sg()
libata: blacklist FUJITSU MHT2060BH for NCQ
pata_jmicron: drop unnecessary device programming in [re]init jmicron ATA: reimplement jmicron ATA quirk ahci/pata_jmicron: match class not function number
ahci: improve spurious SDB FIS handling

drivers/ata/ahci.c +27 -28
index 6d93240..1539734 100644
@@ -200,6 +200,7 @@ struct ahci_port_priv {
 	/* for NCQ spurious interrupt analysis */
 	unsigned int		ncq_saw_d2h:1;
 	unsigned int		ncq_saw_dmas:1;
+	unsigned int		ncq_saw_sdb:1;
 };
 
 static u32 ahci_scr_read (struct ata_port *ap, unsigned int sc_reg);
@@ -384,12 +385,9 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0x294d), board_ahci_pi }, /* ICH9 */
 	{ PCI_VDEVICE(INTEL, 0x294e), board_ahci_pi }, /* ICH9M */
 
-	/* JMicron */
-	{ PCI_VDEVICE(JMICRON, 0x2360), board_ahci_ign_iferr }, /* JMB360 */
-	{ PCI_VDEVICE(JMICRON, 0x2361), board_ahci_ign_iferr }, /* JMB361 */
-	{ PCI_VDEVICE(JMICRON, 0x2363), board_ahci_ign_iferr }, /* JMB363 */
-	{ PCI_VDEVICE(JMICRON, 0x2365), board_ahci_ign_iferr }, /* JMB365 */
-	{ PCI_VDEVICE(JMICRON, 0x2366), board_ahci_ign_iferr }, /* JMB366 */
+	/* JMicron 360/1/3/5/6, match class to avoid IDE function */
+	{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
+	  PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff, board_ahci_ign_iferr },
 
 	/* ATI */
 	{ PCI_VDEVICE(ATI, 0x4380), board_ahci }, /* ATI SB600 non-raid */
@@ -1160,23 +1158,31 @@ static void ahci_host_intr(struct ata_port *ap)
 	}
 
 	if (status & PORT_IRQ_SDB_FIS) {
-		/* SDB FIS containing spurious completions might be
-		 * dangerous, whine and fail commands with HSM
-		 * violation.  EH will turn off NCQ after several such
-		 * failures.
-  		 */
 		const __le32 *f = pp->rx_fis + RX_FIS_SDB;
 
-		ata_ehi_push_desc(ehi, "spurious completion during NCQ "
-				  "issue=0x%x SAct=0x%x FIS=%08x:%08x",
-				  readl(port_mmio + PORT_CMD_ISSUE),
-				  readl(port_mmio + PORT_SCR_ACT),
-				  le32_to_cpu(f[0]), le32_to_cpu(f[1]));
-
-		ehi->err_mask |= AC_ERR_HSM;
-		ehi->action |= ATA_EH_SOFTRESET;
-		ata_port_freeze(ap);
-
+		if (le32_to_cpu(f[1])) {
+			/* SDB FIS containing spurious completions
+			 * might be dangerous, whine and fail commands
+			 * with HSM violation.  EH will turn off NCQ
+			 * after several such failures.
+			 */
+			ata_ehi_push_desc(ehi,
+				"spurious completions during NCQ "
+				"issue=0x%x SAct=0x%x FIS=%08x:%08x",
+				readl(port_mmio + PORT_CMD_ISSUE),
+				readl(port_mmio + PORT_SCR_ACT),
+				le32_to_cpu(f[0]), le32_to_cpu(f[1]));
+			ehi->err_mask |= AC_ERR_HSM;
+			ehi->action |= ATA_EH_SOFTRESET;
+			ata_port_freeze(ap);
+		} else {
+			if (!pp->ncq_saw_sdb)
+				ata_port_printk(ap, KERN_INFO,
+					"spurious SDB FIS %08x:%08x during NCQ, "
+					"this message won't be printed again\n",
+					le32_to_cpu(f[0]), le32_to_cpu(f[1]));
+			pp->ncq_saw_sdb = 1;
+		}
 		known_irq = 1;
 	}
 
@@ -1665,13 +1671,6 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (!printed_version++)
 		dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
 
-	if (pdev->vendor == PCI_VENDOR_ID_JMICRON) {
-		/* Function 1 is the PATA controller except on the 368, where
-		   we are not AHCI anyway */
-		if (PCI_FUNC(pdev->devfn))
-			return -ENODEV;
-	}
-
 	rc = pcim_enable_device(pdev);
 	if (rc)
 		return rc;
drivers/ata/libata-core.c +4 -1
index c8d44a7..ac3d120 100644
@@ -3346,6 +3346,8 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	/* Devices where NCQ should be avoided */
 	/* NCQ is slow */
         { "WDC WD740ADFD-00",   NULL,		ATA_HORKAGE_NONCQ },
+	/* http://thread.gmane.org/gmane.linux.ide/14907 */
+	{ "FUJITSU MHT2060BH",	NULL,		ATA_HORKAGE_NONCQ },
 
 	/* Devices with NCQ limits */
 
@@ -5680,6 +5682,8 @@ static void ata_host_release(struct device *gendev, void *res)
 
 	if (host->ops->host_stop)
 		host->ops->host_stop(host);
+
+	dev_set_drvdata(gendev, NULL);
 }
 
 /**
@@ -5902,7 +5906,6 @@ int ata_device_add(const struct ata_probe_ent *ent)
 
  err_out:
 	devres_release_group(dev, ata_device_add);
-	dev_set_drvdata(dev, NULL);
 	VPRINTK("EXIT, returning %d\n", rc);
 	return 0;
 }
drivers/ata/pata_cs5520.c +0 -1
index c1334c6..8ff2d58 100644
@@ -306,7 +306,6 @@ static void __devexit cs5520_remove_one(struct pci_dev *pdev)
 	struct ata_host *host = dev_get_drvdata(dev);
 
 	ata_host_detach(host);
-	dev_set_drvdata(dev, NULL);
 }
 
 /**
drivers/ata/pata_isapnp.c +0 -1
index d5f2e85..1a61cc8 100644
@@ -128,7 +128,6 @@ static void isapnp_remove_one(struct pnp_dev *idev)
 	struct ata_host *host = dev_get_drvdata(dev);
 
 	ata_host_detach(host);
-	dev_set_drvdata(dev, NULL);
 }
 
 static struct pnp_device_id isapnp_devices[] = {
drivers/ata/pata_jmicron.c +11 -40

67 lines not on this page · raw message

drivers/ata/pata_platform.c +0 -1
index 02ea95f..4b82a54 100644
@@ -228,7 +228,6 @@ static int __devexit pata_platform_remove(struct platform_device *pdev)
 	struct ata_host *host = dev_get_drvdata(dev);
 
 	ata_host_detach(host);
-	dev_set_drvdata(dev, NULL);
 
 	return 0;
 }
drivers/ata/sata_sil24.c +0 -3
index 5d083f4..b1bab82 100644
@@ -647,7 +647,6 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
 				 struct sil24_sge *sge)
 {
 	struct scatterlist *sg;
-	unsigned int idx = 0;
 
 	ata_for_each_sg(sg, qc) {
 		sge->addr = cpu_to_le64(sg_dma_address(sg));
@@ -656,9 +655,7 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
 			sge->flags = cpu_to_le32(SGE_TRM);
 		else
 			sge->flags = 0;
-
 		sge++;
-		idx++;
 	}
 }
 
drivers/pci/quirks.c +53 -30

98 lines not on this page · raw message

#1 lore raw

Hello,

Applied this on top of 2.6.21-rc1, and I now have the following in my logs :

ahci 0000:00:1f.2: version 2.0
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 23 (level, low) -> IRQ 23
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xffffc200000b2900 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata2: SATA max UDMA/133 cmd 0xffffc200000b2980 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata3: SATA max UDMA/133 cmd 0xffffc200000b2a00 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata4: SATA max UDMA/133 cmd 0xffffc200000b2a80 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
scsi0 : ahci
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133
ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133
scsi1 : ahci
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: qc timeout (cmd 0xec)
ata2.00: failed to IDENTIFY (I/O error, err_mask=0x104)
ata2: port is slow to respond, please be patient (Status 0x80)
ata2: port failed to respond (30 secs, Status 0x80)
ata2: COMRESET failed (device not ready)
ata2: hardreset failed, retrying in 5 secs
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-6: Config Disk, RGL10364, max UDMA/133
ata2.00: 640 sectors, multi 1: LBA
ata2.00: configured for UDMA/133
scsi2 : ahci
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133
ata3.00: 490234752 sectors, multi 0: LBA48 NCQ (depth 31/32) ata3.00: configured for UDMA/133
scsi3 : ahci
ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata4.00: ATA-7: ST3500641AS, 3.AAB, max UDMA/133
ata4.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) ata4.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: Direct-Access ATA Config Disk RGL1 PQ: 0 ANSI: 5
SCSI device sdb: 640 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdb: 640 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sdb: unknown partition table
sd 1:0:0:0: Attached scsi disk sdb
sd 1:0:0:0: Attached scsi generic sg1 type 0
scsi 2:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sdc: 490234752 512-byte hdwr sectors (251000 MB)
sdc: Write Protect is off
sdc: Mode Sense: 00 3a 00 00
SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdc: 490234752 512-byte hdwr sectors (251000 MB)
sdc: Write Protect is off
sdc: Mode Sense: 00 3a 00 00
SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc: sdc1 sdc2
sd 2:0:0:0: Attached scsi disk sdc
sd 2:0:0:0: Attached scsi generic sg2 type 0
scsi 3:0:0:0: Direct-Access ATA ST3500641AS 3.AA PQ: 0 ANSI: 5
SCSI device sdd: 976773168 512-byte hdwr sectors (500108 MB)
sdd: Write Protect is off
sdd: Mode Sense: 00 3a 00 00
SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdd: 976773168 512-byte hdwr sectors (500108 MB)
sdd: Write Protect is off
sdd: Mode Sense: 00 3a 00 00
SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdd: sdd1 sdd2 sdd3
sd 3:0:0:0: Attached scsi disk sdd
sd 3:0:0:0: Attached scsi generic sg3 type 0
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:02:00.0 to 64
ahci 0000:02:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode ahci 0000:02:00.0: flags: 64bit ncq pm led clo pmp pio slum part
ata5: SATA max UDMA/133 cmd 0xffffc200000bc100 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 17
ata6: SATA max UDMA/133 cmd 0xffffc200000bc180 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 17
scsi4 : ahci
ata5: SATA link down (SStatus 0 SControl 300)
scsi5 : ahci
ata6: SATA link down (SStatus 0 SControl 300)
ata_piix 0000:00:1f.1: version 2.00ac7
ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:1f.1 to 64
ata7: PATA max UDMA/133 cmd 0x00000000000101f0 ctl 0x00000000000103f6 bmdma 0x000000000001ffa0 irq 14
ata8: PATA max UDMA/133 cmd 0x0000000000010170 ctl 0x0000000000010376 bmdma 0x000000000001ffa8 irq 15
scsi6 : ata_piix
ACPI Error (dsopcode-0481): Attempt to CreateField of length zero [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.RATA] (Node ffff8100c7f4b490), AE_AML_OPERAND_VALUE ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.CHN0.DRV0._GTF] (Node ffff8100c7f4b7f0), AE_AML_OPERAND_VALUE ata7.00: ATA-7: Maxtor 6L200P0, BAH41E00, max UDMA/133
ata7.00: 398297088 sectors, multi 16: LBA48
ACPI Error (dsopcode-0481): Attempt to CreateField of length zero [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.RATA] (Node ffff8100c7f4b490), AE_AML_OPERAND_VALUE ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.CHN0.DRV0._GTF] (Node ffff8100c7f4b7f0), AE_AML_OPERAND_VALUE ata7.01: ATAPI, max UDMA/33
ACPI Error (dsopcode-0481): Attempt to CreateField of length zero [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.RATA] (Node ffff8100c7f4b490), AE_AML_OPERAND_VALUE ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.CHN0.DRV0._GTF] (Node ffff8100c7f4b7f0), AE_AML_OPERAND_VALUE ata7.00: configured for UDMA/33
ACPI Error (dsopcode-0481): Attempt to CreateField of length zero [20070126] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.RATA] (Node ffff8100c7f4b490), AE_AML_OPERAND_VALUE ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.CHN0.DRV0._GTF] (Node ffff8100c7f4b7f0), AE_AML_OPERAND_VALUE ata7.01: configured for UDMA/33
scsi7 : ata_piix
ATA: abnormal status 0x7F on port 0x0000000000010177
scsi 6:0:0:0: Direct-Access ATA Maxtor 6L200P0 BAH4 PQ: 0 ANSI: 5
SCSI device sde: 398297088 512-byte hdwr sectors (203928 MB)
sde: Write Protect is off
sde: Mode Sense: 00 3a 00 00
SCSI device sde: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sde: 398297088 512-byte hdwr sectors (203928 MB)
sde: Write Protect is off
sde: Mode Sense: 00 3a 00 00
SCSI device sde: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sde: sde1 sde2 sde3 sde4 < sde5 sde6 >
sd 6:0:0:0: Attached scsi disk sde
sd 6:0:0:0: Attached scsi generic sg4 type 0
scsi 6:0:1:0: CD-ROM ASUS CRW-5232A3 1.00 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 52x/52x writer cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.20
sr 6:0:1:0: Attached scsi CD-ROM sr0
sr 6:0:1:0: Attached scsi generic sg5 type 5
PCI: Enabling device 0000:02:00.1 (0000 -> 0001)
ACPI: PCI Interrupt 0000:02:00.1[B] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:02:00.1 to 64
ata9: PATA max UDMA/100 cmd 0x0000000000019c00 ctl 0x0000000000019882 bmdma 0x0000000000019400 irq 16
ata10: PATA max UDMA/100 cmd 0x0000000000019800 ctl 0x0000000000019482 bmdma 0x0000000000019408 irq 16
scsi8 : pata_jmicron
ata9.00: ATAPI, max UDMA/66
ata9.00: qc timeout (cmd 0xef)
ata9.00: failed to set xfermode (err_mask=0x4)
ata9.00: limiting speed to UDMA/44
ata9: failed to recover some devices, retrying in 5 secs
ata9.00: qc timeout (cmd 0xef)
ata9.00: failed to set xfermode (err_mask=0x4)
ata9.00: limiting speed to PIO0
ata9: failed to recover some devices, retrying in 5 secs
ata9.00: qc timeout (cmd 0xef)
ata9.00: failed to set xfermode (err_mask=0x4)
ata9.00: disabled
scsi9 : pata_jmicron
ATA: abnormal status 0x7F on port 0x0000000000019807
....
ata1.00: exception Emask 0x2 SAct 0xffe0 SErr 0x0 action 0x2 frozen ata1.00: (spurious completions during NCQ issue=0x0 SAct=0xffe0 FIS=004040a1:00000010)
ata1.00: cmd 60/02:28:52:ec:c4/00:00:0e:00:00/40 tag 5 cdb 0x0 data 1024 in

         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:30:54:ec:c4/00:00:0e:00:00/40 tag 6 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:38:56:ec:c4/00:00:0e:00:00/40 tag 7 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:40:58:ec:c4/00:00:0e:00:00/40 tag 8 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:48:5a:ec:c4/00:00:0e:00:00/40 tag 9 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:50:5c:ec:c4/00:00:0e:00:00/40 tag 10 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:58:5e:ec:c4/00:00:0e:00:00/40 tag 11 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:60:60:ec:c4/00:00:0e:00:00/40 tag 12 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:68:62:ec:c4/00:00:0e:00:00/40 tag 13 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:70:64:ec:c4/00:00:0e:00:00/40 tag 14 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:78:66:ec:c4/00:00:0e:00:00/40 tag 15 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)

ata1: soft resetting port
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA

This last part was not present when booting stock 2.6.21-rc1

Any other info you may need, please ask.

Regards,
Paul

Paul Rolland, rol(at)as2917.net
ex-AS2917 Network administrator and Peering Coordinator

--

Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur "Some people dream of success... while others wake up and work hard at it"

"I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation

Quoted 452 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jeff Garzik
Sent: Friday, March 02, 2007 3:09 AM
To: Andrew Morton; Linus Torvalds
Cc: [email protected]; LKML
Subject: [git patches] libata fixes

Does not include Alan's stuff, per recent email thread.

Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev .git upstream-linus

to receive the following updates:

 drivers/ata/ahci.c          |   55 ++++++++++++++--------------
 drivers/ata/libata-core.c   |    5 ++-
 drivers/ata/pata_cs5520.c   |    1 -
 drivers/ata/pata_isapnp.c   |    1 -
 drivers/ata/pata_jmicron.c  |   51 ++++++--------------------
 drivers/ata/pata_platform.c |    1 -
 drivers/ata/sata_sil24.c    |    3 --
 drivers/pci/quirks.c        |   83 
+++++++++++++++++++++++++++---------------
 8 files changed, 95 insertions(+), 105 deletions(-)

Tejun Heo (7):
libata: clear drvdata in ata_host_release(), take#2
sata_sil24: kill unused local variable idx in sil24_fill_sg()
libata: blacklist FUJITSU MHT2060BH for NCQ
pata_jmicron: drop unnecessary device programming in [re]init jmicron ATA: reimplement jmicron ATA quirk ahci/pata_jmicron: match class not function number
ahci: improve spurious SDB FIS handling

drivers/ata/ahci.c +1 -5
index 6d93240..1539734 100644
@@ -200,6 +200,7 @@ struct ahci_port_priv {
 	/* for NCQ spurious interrupt analysis */
 	unsigned int		ncq_saw_d2h:1;
 	unsigned int		ncq_saw_dmas:1;
+	unsigned int		ncq_saw_sdb:1;
 };
 
 static u32 ahci_scr_read (struct ata_port *ap, unsigned int sc_reg);
@@ -384,12 +385,9 @@ static const struct pci_device_id 
 ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0x294d), board_ahci_pi }, /* ICH9 */
 	{ PCI_VDEVICE(INTEL, 0x294e), board_ahci_pi }, /* ICH9M */
 
-	/* JMicron */
-	{ PCI_VDEVICE(JMICRON, 0x2360), board_ahci_ign_iferr }, 
 /* JMB360 */
-	{ PCI_VDEVICE(JMICRON, 0x2361), board_ahci_ign_iferr }, 
 /* JMB361 */
-	{ PCI_VDEVICE(JMICRON, 0x2363), board_ahci_ign_iferr }, 
 /* JMB363 */
-	{ PCI_VDEVICE(JMICRON, 0x2365), board_ahci_ign_iferr }, 

/* JMB365 */

drivers/ata/ahci.c +0 -1
-	{ PCI_VDEVICE(JMICRON, 0x2366), board_ahci_ign_iferr }, 

/* JMB366 */

drivers/ata/ahci.c +3 -0
+	/* JMicron 360/1/3/5/6, match class to avoid IDE function */
+	{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
+	  PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff, board_ahci_ign_iferr },
 
 	/* ATI */
 	{ PCI_VDEVICE(ATI, 0x4380), board_ahci }, /* ATI SB600 

non-raid */

drivers/ata/ahci.c +19 -15
@@ -1160,23 +1158,31 @@ static void ahci_host_intr(struct 
 ata_port *ap)
 	}
 
 	if (status & PORT_IRQ_SDB_FIS) {
-		/* SDB FIS containing spurious completions might be
-		 * dangerous, whine and fail commands with HSM
-		 * violation.  EH will turn off NCQ after several such
-		 * failures.
-  		 */
 		const __le32 *f = pp->rx_fis + RX_FIS_SDB;
 
-		ata_ehi_push_desc(ehi, "spurious completion during NCQ "
-				  "issue=0x%x SAct=0x%x FIS=%08x:%08x",
-				  readl(port_mmio + PORT_CMD_ISSUE),
-				  readl(port_mmio + PORT_SCR_ACT),
-				  le32_to_cpu(f[0]), le32_to_cpu(f[1]));
-
-		ehi->err_mask |= AC_ERR_HSM;
-		ehi->action |= ATA_EH_SOFTRESET;
-		ata_port_freeze(ap);
-
+		if (le32_to_cpu(f[1])) {
+			/* SDB FIS containing spurious completions
+			 * might be dangerous, whine and fail commands
+			 * with HSM violation.  EH will turn off NCQ
+			 * after several such failures.
+			 */
+			ata_ehi_push_desc(ehi,
+				"spurious completions during NCQ "
+				"issue=0x%x SAct=0x%x FIS=%08x:%08x",
+				readl(port_mmio + PORT_CMD_ISSUE),
+				readl(port_mmio + PORT_SCR_ACT),
+				le32_to_cpu(f[0]), le32_to_cpu(f[1]));
+			ehi->err_mask |= AC_ERR_HSM;
+			ehi->action |= ATA_EH_SOFTRESET;
+			ata_port_freeze(ap);
+		} else {
+			if (!pp->ncq_saw_sdb)
+				ata_port_printk(ap, KERN_INFO,
+					"spurious SDB FIS 

%08x:%08x during NCQ, "

drivers/ata/ahci.c +1 -0
+					"this message won't be 

printed again\n",

drivers/ata/ahci.c +1 -0
+					le32_to_cpu(f[0]), 

le32_to_cpu(f[1]));

drivers/ata/ahci.c +2 -2
+			pp->ncq_saw_sdb = 1;
+		}
 		known_irq = 1;
 	}
@@ -1665,13 +1671,6 @@ static int ahci_init_one(struct 
 pci_dev *pdev, const struct pci_device_id *ent)
 	if (!printed_version++)
 		dev_printk(KERN_DEBUG, &pdev->dev, "version " 
 DRV_VERSION "\n");
 
-	if (pdev->vendor == PCI_VENDOR_ID_JMICRON) {
-		/* Function 1 is the PATA controller except on 

the 368, where

drivers/ata/ahci.c +0 -5
-		   we are not AHCI anyway */
-		if (PCI_FUNC(pdev->devfn))
-			return -ENODEV;
-	}
-
 	rc = pcim_enable_device(pdev);
 	if (rc)
 		return rc;
drivers/ata/libata-core.c +2 -0
index c8d44a7..ac3d120 100644
@@ -3346,6 +3346,8 @@ static const struct ata_blacklist_entry 
 ata_device_blacklist [] = {
 	/* Devices where NCQ should be avoided */
 	/* NCQ is slow */
         { "WDC WD740ADFD-00",   NULL,		
 ATA_HORKAGE_NONCQ },
+	/* http://thread.gmane.org/gmane.linux.ide/14907 */
+	{ "FUJITSU MHT2060BH",	NULL,		ATA_HORKAGE_NONCQ },
 
drivers/ata/libata-core.c +2 -0
 	/* Devices with NCQ limits */
@@ -5680,6 +5682,8 @@ static void ata_host_release(struct 
 device *gendev, void *res)
 
 	if (host->ops->host_stop)
 		host->ops->host_stop(host);
+
+	dev_set_drvdata(gendev, NULL);
 }
 

/**

drivers/ata/libata-core.c +0 -1
@@ -5902,7 +5906,6 @@ int ata_device_add(const struct 
 ata_probe_ent *ent)
 
  err_out:
 	devres_release_group(dev, ata_device_add);
-	dev_set_drvdata(dev, NULL);
 	VPRINTK("EXIT, returning %d\n", rc);
 	return 0;

}

drivers/ata/pata_cs5520.c +0 -1
index c1334c6..8ff2d58 100644
@@ -306,7 +306,6 @@ static void __devexit 
 cs5520_remove_one(struct pci_dev *pdev)
 	struct ata_host *host = dev_get_drvdata(dev);
 
 	ata_host_detach(host);
-	dev_set_drvdata(dev, NULL);
 }
 

/**

drivers/ata/pata_isapnp.c +0 -1
index d5f2e85..1a61cc8 100644
@@ -128,7 +128,6 @@ static void isapnp_remove_one(struct 
 pnp_dev *idev)
 	struct ata_host *host = dev_get_drvdata(dev);
 
 	ata_host_detach(host);
-	dev_set_drvdata(dev, NULL);
 }
 

static struct pnp_device_id isapnp_devices[] = {

drivers/ata/pata_jmicron.c +0 -0
index 7a635dd..47d0f94 100644
@@ -202,49 +202,20 @@ static int jmicron_init_one (struct 

pci_dev *pdev, const struct pci_device_id *i

drivers/ata/pata_jmicron.c +0 -23
 	};
 	struct ata_port_info *port_info[2] = { &info, &info };
 
-	u32 reg;
-
-	/* PATA controller is fn 1, AHCI is fn 0 */
-	if (id->driver_data != 368 && PCI_FUNC(pdev->devfn) != 1)
-		return -ENODEV;
-
-	/* The 365/66 have two PATA channels, redirect the second */
-	if (id->driver_data == 365 || id->driver_data == 366) {
-		pci_read_config_dword(pdev, 0x80, &reg);
-		reg |= (1 << 24);	/* IDE1 to PATA IDE secondary */
-		pci_write_config_dword(pdev, 0x80, reg);
-	}
-
 	return ata_pci_init_one(pdev, port_info, 2);
 }
 
-static int jmicron_reinit_one(struct pci_dev *pdev)
-{
-	u32 reg;
-
-	switch(pdev->device) {
-		case PCI_DEVICE_ID_JMICRON_JMB368:
-			break;
-		case PCI_DEVICE_ID_JMICRON_JMB365:
-		case PCI_DEVICE_ID_JMICRON_JMB366:
-			/* Restore mapping or disks swap and 

boy does it get ugly */

drivers/ata/pata_jmicron.c +0 -2
-			pci_read_config_dword(pdev, 0x80, &reg);
-			reg |= (1 << 24);	/* IDE1 to PATA 

IDE secondary */

drivers/ata/pata_jmicron.c +2 -14
-			pci_write_config_dword(pdev, 0x80, reg);
-			/* Fall through */
-		default:
-			/* Make sure AHCI is turned back on */
-			pci_write_config_byte(pdev, 0x41, 0xa1);
-	}
-	return ata_pci_device_resume(pdev);
-}
-
 static const struct pci_device_id jmicron_pci_tbl[] = {
-	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMB361), 361},
-	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMB363), 363},
-	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMB365), 365},
-	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMB366), 366},
-	{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMB368), 368},
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 

0xffff00, 361 },

drivers/ata/pata_jmicron.c +2 -0
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 

0xffff00, 363 },

drivers/ata/pata_jmicron.c +2 -0
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 

0xffff00, 365 },

drivers/ata/pata_jmicron.c +2 -0
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 

0xffff00, 366 },

drivers/ata/pata_jmicron.c +2 -0
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 

0xffff00, 368 },

drivers/ata/pata_jmicron.c +1 -1
 	{ }	/* terminate list */
 };
@@ -255,7 +226,7 @@ static struct pci_driver jmicron_pci_driver = {
 	.probe			= jmicron_init_one,
 	.remove			= ata_pci_remove_one,
 	.suspend		= ata_pci_device_suspend,
-	.resume			= jmicron_reinit_one,
+	.resume			= ata_pci_device_resume,
 };
 
 static int __init jmicron_init(void)
drivers/ata/pata_platform.c +0 -1
index 02ea95f..4b82a54 100644
@@ -228,7 +228,6 @@ static int __devexit 
 pata_platform_remove(struct platform_device *pdev)
 	struct ata_host *host = dev_get_drvdata(dev);
 
 	ata_host_detach(host);
-	dev_set_drvdata(dev, NULL);
 
 	return 0;

}

drivers/ata/sata_sil24.c +0 -1
index 5d083f4..b1bab82 100644
@@ -647,7 +647,6 @@ static inline void sil24_fill_sg(struct 
 ata_queued_cmd *qc,
 				 struct sil24_sge *sge)
 {
 	struct scatterlist *sg;
-	unsigned int idx = 0;
 
 	ata_for_each_sg(sg, qc) {
drivers/ata/sata_sil24.c +0 -2
 		sge->addr = cpu_to_le64(sg_dma_address(sg));
@@ -656,9 +655,7 @@ static inline void sil24_fill_sg(struct 
 ata_queued_cmd *qc,
 			sge->flags = cpu_to_le32(SGE_TRM);
 		else
 			sge->flags = 0;
-
 		sge++;
-		idx++;
 	}
 }
drivers/pci/quirks.c +0 -0
index 1e6eda2..1bf5482 100644
@@ -1218,45 +1218,68 @@ 
 DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA,	

PCI_DEVICE_ID_VIA_8237, asus_hides_a
* do this early on to make the additional device appear during
* the PCI scanning.
*/

drivers/pci/quirks.c +2 -7
-
-static void quirk_jmicron_dualfn(struct pci_dev *pdev)
+static void quirk_jmicron_ata(struct pci_dev *pdev)
 {
-	u32 conf;
+	u32 conf1, conf5, class;
 	u8 hdr;
 
 	/* Only poke fn 0 */
 	if (PCI_FUNC(pdev->devfn))
 		return;
 
-	switch(pdev->device) {
-		case PCI_DEVICE_ID_JMICRON_JMB365:
-		case PCI_DEVICE_ID_JMICRON_JMB366:
-			/* Redirect IDE second PATA port to the 

right spot */

drivers/pci/quirks.c +0 -8
-			pci_read_config_dword(pdev, 0x80, &conf);
-			conf |= (1 << 24);
-			/* Fall through */
-			pci_write_config_dword(pdev, 0x80, conf);
-		case PCI_DEVICE_ID_JMICRON_JMB361:
-		case PCI_DEVICE_ID_JMICRON_JMB363:
-			pci_read_config_dword(pdev, 0x40, &conf);
-			/* Enable dual function mode, AHCI on 

fn 0, IDE fn1 */

drivers/pci/quirks.c +0 -1
-			/* Set the class codes correctly and 

then direct IDE 0 */

drivers/pci/quirks.c +0 -2
-			conf &= ~0x000FF200; /* Clear bit 9 and 12-19 */
-			conf |=  0x00C2A102; /* Set 1, 8, 13, 

15, 17, 22, 23 */

drivers/pci/quirks.c +0 -3
-			pci_write_config_dword(pdev, 0x40, conf);
-
-			/* Reconfigure so that the PCI scanner 

discovers the

drivers/pci/quirks.c +0 -3
-			   device is now multifunction */
-
-			pci_read_config_byte(pdev, 

PCI_HEADER_TYPE, &hdr);

drivers/pci/quirks.c +8 -3
-			pdev->hdr_type = hdr & 0x7f;
-			pdev->multifunction = !!(hdr & 0x80);
+	pci_read_config_dword(pdev, 0x40, &conf1);
+	pci_read_config_dword(pdev, 0x80, &conf5);
 
-			break;
+	conf1 &= ~0x00CFF302; /* Clear bit 1, 8, 9, 12-19, 22, 23 */
+	conf5 &= ~(1 << 24);  /* Clear bit 24 */
+
+	switch (pdev->device) {
+	case PCI_DEVICE_ID_JMICRON_JMB360:
+		/* The controller should be in single function 

ahci mode */

drivers/pci/quirks.c +12 -0
+		conf1 |= 0x0002A100; /* Set 8, 13, 15, 17 */
+		break;
+
+	case PCI_DEVICE_ID_JMICRON_JMB365:
+	case PCI_DEVICE_ID_JMICRON_JMB366:
+		/* Redirect IDE second PATA port to the right spot */
+		conf5 |= (1 << 24);
+		/* Fall through */
+	case PCI_DEVICE_ID_JMICRON_JMB361:
+	case PCI_DEVICE_ID_JMICRON_JMB363:
+		/* Enable dual function mode, AHCI on fn 0, IDE fn1 */
+		/* Set the class codes correctly and then 

direct IDE 0 */

drivers/pci/quirks.c +5 -0
+		conf1 |= 0x00C2A102; /* Set 1, 8, 13, 15, 17, 22, 23 */
+		break;
+
+	case PCI_DEVICE_ID_JMICRON_JMB368:
+		/* The controller should be in single function 

IDE mode */

drivers/pci/quirks.c +2 -2
+		conf1 |= 0x00C00000; /* Set 22, 23 */
+		break;
 	}
-}
-DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, 

quirk_jmicron_dualfn); -DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, quirk_jmicron_dualfn);

drivers/pci/quirks.c +13 -0
+
+	pci_write_config_dword(pdev, 0x40, conf1);
+	pci_write_config_dword(pdev, 0x80, conf5);
+
+	/* Update pdev accordingly */
+	pci_read_config_byte(pdev, PCI_HEADER_TYPE, &hdr);
+	pdev->hdr_type = hdr & 0x7f;
+	pdev->multifunction = !!(hdr & 0x80);
+
+	pci_read_config_dword(pdev, PCI_CLASS_REVISION, &class);
+	pdev->class = class >> 8;
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, 

PCI_DEVICE_ID_JMICRON_JMB360, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB360, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata);
+DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_JMICRON,
PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata);

#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

[cc'ing Eric D. Mudama. Hi!]

Quoted 35 lines · Paul Rolland

ata1.00: exception Emask 0x2 SAct 0xffe0 SErr 0x0 action 0x2 frozen ata1.00: (spurious completions during NCQ issue=0x0 SAct=0xffe0 FIS=004040a1:00000010)
ata1.00: cmd 60/02:28:52:ec:c4/00:00:0e:00:00/40 tag 5 cdb 0x0 data 1024 in

         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:30:54:ec:c4/00:00:0e:00:00/40 tag 6 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:38:56:ec:c4/00:00:0e:00:00/40 tag 7 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:40:58:ec:c4/00:00:0e:00:00/40 tag 8 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:48:5a:ec:c4/00:00:0e:00:00/40 tag 9 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:50:5c:ec:c4/00:00:0e:00:00/40 tag 10 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:58:5e:ec:c4/00:00:0e:00:00/40 tag 11 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:60:60:ec:c4/00:00:0e:00:00/40 tag 12 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:68:62:ec:c4/00:00:0e:00:00/40 tag 13 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:70:64:ec:c4/00:00:0e:00:00/40 tag 14 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/02:78:66:ec:c4/00:00:0e:00:00/40 tag 15 cdb 0x0 data 1024 in
         res 40/00:78:66:ec:c4/00:00:0e:00:00/40 Emask 0x2 (HSM violation)

ata1: soft resetting port
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA

Quoted 1 line

This last part was not present when booting stock 2.6.21-rc1

Your drive has some issues with NCQ and is scheduled to be blacklisted such that it isn't enabled. libata used to ignore the condition but now considers it NCQ protocol violation and fails all pending commands.

libata EH should turn NCQ off automatically after a few of the above errors. I'd love to see how that actually works in the field (full dmesg please). If it doesn't, it needs fixing.

Thanks.

Signature · 1 line
tejun
#3 lore raw

Hello,

Quoted 4 lines

Your drive has some issues with NCQ and is scheduled to be blacklisted such that it isn't enabled. libata used to ignore the condition but now
considers it NCQ protocol violation and fails all pending commands.

OK, do you need an hdparm report to fully identify the disk ?

Quoted 3 lines

libata EH should turn NCQ off automatically after a few of the above errors. I'd love to see how that actually works in the field (full dmesg please). If it doesn't, it needs fixing.

I'll get you one tonite, I don't have access to the machine right now.

Regards,
Paul

#4 lore raw
Quoted 8 lines · Paul Rolland

Hello,

Quoted 4 lines

Your drive has some issues with NCQ and is scheduled to be blacklisted such that it isn't enabled. libata used to ignore the condition but now
considers it NCQ protocol violation and fails all pending commands.

OK, do you need an hdparm report to fully identify the disk ?

Nope, we already know.

Quoted 5 lines
Quoted 3 lines

libata EH should turn NCQ off automatically after a few of the above errors. I'd love to see how that actually works in the field (full dmesg please). If it doesn't, it needs fixing.

I'll get you one tonite, I don't have access to the machine right now.

Great. Thanks.

Signature · 1 line
tejun
#5 lore raw

Hell Tejun,

I've boot-tested this yesterday, with no real luck...

1 - Tested on top of 2.6.21-rc2 (hope it's fine for you), 2 - Collected a full dmesg before and after

Extract is :
ata7: PATA max UDMA/100 cmd 0x0000000000019c00 ctl 0x0000000000019882 bmdma 0x00
00000000019400 irq 16
ata8: PATA max UDMA/100 cmd 0x0000000000019800 ctl 0x0000000000019482 bmdma 0x00
00000000019408 irq 16
scsi6 : pata_jmicron
ata7.00: ATAPI, max UDMA/66
ata7.00: configured for UDMA/66
scsi7 : pata_jmicron
ATA: abnormal status 0x7F on port 0x0000000000019807
ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata7.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x12 data 36 in

         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)

ata7: soft resetting port
ata7.00: configured for UDMA/66
ata7: EH complete
ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata7.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x12 data 36 in

         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)

ata7: soft resetting port
ata7.00: configured for UDMA/66
ata7: EH complete
ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata7.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x12 data 36 in

         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)

ata7: soft resetting port
ata7.00: configured for UDMA/66
ata7: EH complete
ata7.00: limiting speed to UDMA/44:PIO4
ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata7.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x12 data 36 in

         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)

ata7: soft resetting port
ata7.00: configured for UDMA/44
ata7: EH complete

Hope this helps...

Regards,
Paul

Paul Rolland, rol(at)as2917.net
ex-AS2917 Network administrator and Peering Coordinator

--

Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur "Some people dream of success... while others wake up and work hard at it"

"I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation

Quoted 40 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tejun Heo
Sent: Monday, March 05, 2007 4:45 PM
To: [email protected]
Cc: 'Jeff Garzik'; 'Andrew Morton'; 'Linus Torvalds'; [email protected]; 'LKML'; 'Eric D. Mudama'
Subject: Re: [git patches] libata fixes

Quoted 3 lines · Paul Rolland

Hello,

Quoted 1 line

Your drive has some issues with NCQ and is scheduled to be

blacklisted

Quoted 5 lines
Quoted 3 lines

such that it isn't enabled. libata used to ignore the condition but now
considers it NCQ protocol violation and fails all pending commands.

OK, do you need an hdparm report to fully identify the disk ?

Nope, we already know.

Quoted 1 line
Quoted 1 line

libata EH should turn NCQ off automatically after a few of

the above

Quoted 4 lines
Quoted 2 lines

errors. I'd love to see how that actually works in the field (full dmesg please). If it doesn't, it needs fixing.

I'll get you one tonite, I don't have access to the machine

right now.

Great. Thanks.

Signature · 6 lines
tejun
-
To unsubscribe from this list: send the line "unsubscribe 
linux-ide" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw
Quoted 21 lines · Paul Rolland

Hell Tejun,

I've boot-tested this yesterday, with no real luck...

1 - Tested on top of 2.6.21-rc2 (hope it's fine for you), 2 - Collected a full dmesg before and after

Extract is :
ata7: PATA max UDMA/100 cmd 0x0000000000019c00 ctl 0x0000000000019882 bmdma 0x00
00000000019400 irq 16
ata8: PATA max UDMA/100 cmd 0x0000000000019800 ctl 0x0000000000019482 bmdma 0x00
00000000019408 irq 16
scsi6 : pata_jmicron
ata7.00: ATAPI, max UDMA/66
ata7.00: configured for UDMA/66
scsi7 : pata_jmicron
ATA: abnormal status 0x7F on port 0x0000000000019807
ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen ata7.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x12 data 36 in

Quoted 1 line
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)

It seems like IRQ is not getting through. The first IRQ driven command is failing for you.

* Does giving 'acpi=off' or 'irqpoll' make any difference?

* Can you connect a harddisk to the channel and see whether that works?

Thanks.

Signature · 1 line
tejun
#7 lore raw

Hello,

Quoted 2 lines

It seems like IRQ is not getting through. The first IRQ driven command is failing for you.

Hmmmm....

Quoted 5 lines

Extract is :
ata7: PATA max UDMA/100 cmd 0x0000000000019c00 ctl 0x0000000000019882 bmdma 0x0000000000019400 irq 16
ata8: PATA max UDMA/100 cmd 0x0000000000019800 ctl 0x0000000000019482 bmdma 0x0000000000019408 irq 16

IRQ 16 is IO-APIC-fasteoi for libata, and is not shared... but all the others libata IRQ are IO-APIC-edge.

Quoted 4 lines

* Does giving 'acpi=off' or 'irqpoll' make any difference?

* Can you connect a harddisk to the channel and see whether that works?

Tried that.. Disk is identified as ATA-7: Mastor 6Y080L0, YAR41BW0, max UDMA/13
and then timeout again...

Tried then with acpi=off, same result (identify is OK, but then timeout), and irqpoll and then it was OK !!!!

Let's then go back to my DVD-RW and test irqpoll... and ... Yes.... Got it !
It is identified, it can be mounted, and read as /dev/sr1 !

/proc/interrupts show a count of 0 for IRQ 16, so yes, it goes somewhere else...

Doing some diffs on copy of /proc/interrupts while accessing the DVD gives two possibilities : IRQ14 or IRQ18, but both are also counting when not accessing the DVD...

Question : does running with irqpoll affects performance ?

Paul

#8 lore raw

Paul,
do I understand correctly that the *only* difference between the working
setup is that you applied (by hand) the libata patch that Jeff sent out?

So plain 2.6.21-rc2 works fine, but with the patch applied, you get no interrupts on the DVD drive?

Quoted 11 lines · Paul Rolland
Quoted 3 lines

It seems like IRQ is not getting through. The first IRQ driven command is failing for you.

Hmmmm....

Quoted 3 lines

Extract is :
ata7: PATA max UDMA/100 cmd 0x0000000000019c00 ctl 0x0000000000019882 bmdma 0x0000000000019400 irq 16
ata8: PATA max UDMA/100 cmd 0x0000000000019800 ctl 0x0000000000019482 bmdma 0x0000000000019408 irq 16

IRQ 16 is IO-APIC-fasteoi for libata, and is not shared... but all the others libata IRQ are IO-APIC-edge.

Ok, that's interesting, although IO-APIC-fasteoi certainly works for others (eg me), but it's still useful.

Quoted 10 lines
Quoted 4 lines

* Does giving 'acpi=off' or 'irqpoll' make any difference?

* Can you connect a harddisk to the channel and see whether that works?

Tried that.. Disk is identified as ATA-7: Mastor 6Y080L0, YAR41BW0, max UDMA/13 and then timeout again...

Tried then with acpi=off, same result (identify is OK, but then timeout), and irqpoll and then it was OK !!!!

Whee... There were no changes that looked interrupt-related there..

Linus

#9 lore raw

Hello,

Quoted 8 lines

do I understand correctly that the *only* difference between
the working
setup is that you applied (by hand) the libata patch that Jeff sent out?

So plain 2.6.21-rc2 works fine, but with the patch applied, you get no
interrupts on the DVD drive?

Nope... I tried several patches from Tejun, and also some that Jeff posted to linux-ide, but no luck. The only way to have this DVD-RW working is to use irqpoll on the command line...

Sorry to have been unclear....

To complete, here are some more output from the machine :
- a dmesg without irqpoll,
- a dmesg with irqpoll,
- a copy of /proc/interrupts
6 [19:33] rol@riri:~> cat /proc/interrupts
CPU0 CPU1

  0:     357022          0   IO-APIC-edge      timer
  1:          8          0   IO-APIC-edge      i8042
  4:         14          0   IO-APIC-edge      serial
  6:          5          0   IO-APIC-edge      floppy
  8:          1          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        129          0   IO-APIC-edge      i8042
 14:       7639          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 16:          0          0   IO-APIC-fasteoi   libata
 17:          0          0   IO-APIC-fasteoi   uhci_hcd:usb3
 18:          0          0   IO-APIC-fasteoi   uhci_hcd:usb4
 19:        204          0   IO-APIC-fasteoi   uhci_hcd:usb5, HDA Intel
 20:        107          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
 21:          3          0   IO-APIC-fasteoi   ohci1394
504:       8243          0   PCI-MSI-edge      libata
505:          1          0   PCI-MSI-edge      eth1
506:        386          0   PCI-MSI-edge      eth0
NMI:        771        531 
LOC:     569318     578684 
ERR:          0

Regards,
Paul

#10 lore raw

Just one point that may be interesting, as it seems that this is IRQ related : at the beginning of the dmesg, it seems that IRQ16 is used for sky2/Yukon , but when reading /proc/interrupts, it has been remapped to IRQ 505... Could this also affect libata ?

Regards,
Paul

Paul Rolland, rol(at)as2917.net
ex-AS2917 Network administrator and Peering Coordinator

--

Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur "Some people dream of success... while others wake up and work hard at it"

"I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation

Quoted 61 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Rolland
Sent: Sunday, March 11, 2007 7:35 PM
To: 'Linus Torvalds'
Cc: 'Tejun Heo'; 'Jeff Garzik'; 'Andrew Morton'; [email protected]; 'LKML'; 'Eric D. Mudama'
Subject: RE: [git patches] libata fixes

Hello,

Quoted 8 lines

do I understand correctly that the *only* difference between
the working
setup is that you applied (by hand) the libata patch that Jeff sent out?

So plain 2.6.21-rc2 works fine, but with the patch applied, you get no
interrupts on the DVD drive?

Nope... I tried several patches from Tejun, and also some that Jeff posted
to linux-ide, but no luck. The only way to have this DVD-RW working is to
use irqpoll on the command line...

Sorry to have been unclear....

To complete, here are some more output from the machine :
- a dmesg without irqpoll,
- a dmesg with irqpoll,
- a copy of /proc/interrupts
6 [19:33] rol@riri:~> cat /proc/interrupts
CPU0 CPU1

  0:     357022          0   IO-APIC-edge      timer
  1:          8          0   IO-APIC-edge      i8042
  4:         14          0   IO-APIC-edge      serial
  6:          5          0   IO-APIC-edge      floppy
  8:          1          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        129          0   IO-APIC-edge      i8042
 14:       7639          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 16:          0          0   IO-APIC-fasteoi   libata
 17:          0          0   IO-APIC-fasteoi   uhci_hcd:usb3
 18:          0          0   IO-APIC-fasteoi   uhci_hcd:usb4
 19:        204          0   IO-APIC-fasteoi   uhci_hcd:usb5, 
HDA Intel
 20:        107          0   IO-APIC-fasteoi   ehci_hcd:usb1, 
uhci_hcd:usb2
 21:          3          0   IO-APIC-fasteoi   ohci1394
504:       8243          0   PCI-MSI-edge      libata
505:          1          0   PCI-MSI-edge      eth1
506:        386          0   PCI-MSI-edge      eth0
NMI:        771        531 
LOC:     569318     578684 
ERR:          0

Regards,
Paul

#11 lore raw
In reply to Paul Rolland
Quoted 4 lines · Paul Rolland

Nope... I tried several patches from Tejun, and also some that Jeff posted to linux-ide, but no luck. The only way to have this DVD-RW working is to use irqpoll on the command line...

So it has *never* worked? That's what I'm trying to see - you had a "before" and "after" dmesg in one of your posts, and the "before" one looked fine (as if it was working) because it didn't have the error messages.

So I'm just trying to figure out where the regression started...

Quoted 1 line

To complete, here are some more output from the machine :

What happens if you disable MSI entirely? Use "pci=nomsi" on the command line.

The

	ata2.00: qc timeout (cmd 0xec)
	ata2.00: failed to IDENTIFY (I/O error, err_mask=0x104)

messages happen for you on the controller that claims MSI:

	ata2: SATA max UDMA/133 cmd 0xffffc2000008a980 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504

and quite frankly, we've had lots of bugs with MSI, both in hardware and in software.

Linus

#12 lore raw

Hello,

Quoted 24 lines
Quoted 1 line

Nope... I tried several patches from Tejun, and also some

that Jeff posted

Quoted 1 line

to linux-ide, but no luck. The only way to have this DVD-RW

working is to

Quoted 1 line

use irqpoll on the command line...

So it has *never* worked? That's what I'm trying to see - you had a "before" and "after" dmesg in one of your posts, and the "before" one looked fine (as if it was working) because it didn't have the error messages.

So I'm just trying to figure out where the regression started...

Quoted 1 line

To complete, here are some more output from the machine :

What happens if you disable MSI entirely? Use "pci=nomsi" on the command
line.

The

	ata2.00: qc timeout (cmd 0xec)
	ata2.00: failed to IDENTIFY (I/O error, err_mask=0x104)
Quoted 8 lines

messages happen for you on the controller that claims MSI:

	ata2: SATA max UDMA/133 cmd 0xffffc2000008a980 ctl 

0x0000000000000000 bmdma 0x0000000000000000 irq 504

and quite frankly, we've had lots of bugs with MSI, both in hardware and
in software.

OK, I see, we are talking about two different problems...

My machine is having two problems : the one you are describing above, which is due to a SIL controler being connected to one port of the ICH7 (at least, it seems to), and probing it goes timeout, but nothing is connected on it.

The second problem is a Jmicron363 controler that is failing to detect the DVD-RW that is connected, unless I use the irqpoll option as Tejun has suggested.

Quoted 1 line

From what I remember, except my initial description of the problem,

no attempt has been made yet to workaround/understand the first problem, and all the mails I've exchanged were focused on the second one.

But, as you suggest it, I'm adding pci=nomsi to the command line.... rebooting... no change for this part of the problem.

OK, the /proc/interrupt for this config, and the dmesg attached.

3 [23:22] rol@riri:~> cat /proc/interrupts
CPU0 CPU1

  0:     297549          0   IO-APIC-edge      timer
  1:          7          0   IO-APIC-edge      i8042
  4:         13          0   IO-APIC-edge      serial
  6:          5          0   IO-APIC-edge      floppy
  8:          1          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        126          0   IO-APIC-edge      i8042
 14:       8313          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 16:          0          0   IO-APIC-fasteoi   eth1, libata
 17:          0          0   IO-APIC-fasteoi   uhci_hcd:usb3
 18:       6894          0   IO-APIC-fasteoi   uhci_hcd:usb4
 19:        579          0   IO-APIC-fasteoi   eth0, uhci_hcd:usb5, HDA Intel
 20:        104          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
 21:          3          0   IO-APIC-fasteoi   ohci1394
 23:       7205          0   IO-APIC-fasteoi   libata
NMI:        783        540 
LOC:     291823     290536 

PS : I'd like to try 2.6.21-rc3, but it seems that this is breaking my config : disk naming is no more the same, and I end up with a panic
Warning: unable to open an initial console
though i've been compiling with the same .config I was using for 2.6.21-rc2

Regards,
Paul

#13 lore raw
Quoted 5 lines · Paul Rolland

My machine is having two problems : the one you are describing above, which is due to a SIL controler being connected to one port of the ICH7 (at least, it seems to), and probing it goes timeout, but nothing is connected on it.

Ok, so that's just a message irritation, not actually bothersome otherwise?

Quoted 3 lines

The second problem is a Jmicron363 controler that is failing to detect the DVD-RW that is connected, unless I use the irqpoll option as Tejun has suggested.

.. and this one has never worked without irqpoll?

Quoted 7 lines

But, as you suggest it, I'm adding pci=nomsi to the command line.... rebooting... no change for this part of the problem.

OK, the /proc/interrupt for this config, and the dmesg attached.

3 [23:22] rol@riri:~> cat /proc/interrupts
CPU0 CPU1

Quoted 10 lines
  0:     297549          0   IO-APIC-edge      timer
  1:          7          0   IO-APIC-edge      i8042
  4:         13          0   IO-APIC-edge      serial
  6:          5          0   IO-APIC-edge      floppy
  8:          1          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        126          0   IO-APIC-edge      i8042
 14:       8313          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 16:          0          0   IO-APIC-fasteoi   eth1, libata

So it's the irq16 one that is the Jmicron controller and just isn't getting any interrupts?

Since all the other interrupts work (and MSI worked for other controllers), I don't think it's interrupt-routing related. Especially as MSI shouldn't even care about things like that.

And since it all works when "irqpoll" is used, that implies that the *only* thing that is broken is literally irq delivery.

Is there possibly some jmicron-specific "enable interrupts" bit?

Quoted 4 lines

PS : I'd like to try 2.6.21-rc3, but it seems that this is breaking my config : disk naming is no more the same, and I end up with a panic
Warning: unable to open an initial console
though i've been compiling with the same .config I was using for 2.6.21-rc2

Gaah. Can you get a log through serial console or netconsole to see what changed?

Linus

#14 lore raw

Hello, Linus.

Quoted 8 lines · Linus Torvalds
Quoted 4 lines · Paul Rolland

My machine is having two problems : the one you are describing above, which is due to a SIL controler being connected to one port of the ICH7 (at least, it seems to), and probing it goes timeout, but nothing is connected on it.

Ok, so that's just a message irritation, not actually bothersome otherwise?

It involves a long timeout, so it's bothersome. This is caused by Silicon Image 4726/3726 storage processor (SATA Port Multiplier with extra features) attached to one of the ICH ports.

If the first downstream port in the PMP is empty and it gets reset in non-PMP way, it identifies itself as "Config Disk" of quite small size.
It's probably used to configure the extra features using standard ATA
RW commands. Anyways, this "Config Disk" is a bit peculiar and doesn't work very well with the current ATA reset sequence and gets identified only after a few failures thus causing long timeout.

I keep forgetting about this. I'll ask SIMG how to deal with this. For the time being, connecting a device to the PMP port should remove the timeouts.

Quoted 27 lines
Quoted 3 lines

The second problem is a Jmicron363 controler that is failing to detect the DVD-RW that is connected, unless I use the irqpoll option as Tejun has suggested.

.. and this one has never worked without irqpoll?

Quoted 7 lines

But, as you suggest it, I'm adding pci=nomsi to the command line.... rebooting... no change for this part of the problem.

OK, the /proc/interrupt for this config, and the dmesg attached.

3 [23:22] rol@riri:~> cat /proc/interrupts
CPU0 CPU1

Quoted 10 lines
  0:     297549          0   IO-APIC-edge      timer
  1:          7          0   IO-APIC-edge      i8042
  4:         13          0   IO-APIC-edge      serial
  6:          5          0   IO-APIC-edge      floppy
  8:          1          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        126          0   IO-APIC-edge      i8042
 14:       8313          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 16:          0          0   IO-APIC-fasteoi   eth1, libata

So it's the irq16 one that is the Jmicron controller and just isn't getting any interrupts?

Quoted 8 lines

Since all the other interrupts work (and MSI worked for other controllers), I don't think it's interrupt-routing related. Especially as MSI shouldn't even care about things like that.

And since it all works when "irqpoll" is used, that implies that the *only* thing that is broken is literally irq delivery.

Is there possibly some jmicron-specific "enable interrupts" bit?

(cc'ing Justin of JMicron. Hello, please correct me if I'm wrong.)

Not that I know of. The PATA portion of JMB controllers is bog standard PCI BMDMA ATA device where ATA_NIEN is the way to turn IRQ on and off.

Thanks.

Signature · 1 line
tejun
#15 lore raw

Of course I forgot to CC. :-) Quoting whole message for Justin.

Quoted 67 lines · Tejun Heo

Hello, Linus.

Quoted 7 lines · Linus Torvalds
Quoted 4 lines · Paul Rolland

My machine is having two problems : the one you are describing above, which is due to a SIL controler being connected to one port of the ICH7 (at least, it seems to), and probing it goes timeout, but nothing is connected on it.

Ok, so that's just a message irritation, not actually bothersome otherwise?

It involves a long timeout, so it's bothersome. This is caused by Silicon Image 4726/3726 storage processor (SATA Port Multiplier with extra features) attached to one of the ICH ports.

If the first downstream port in the PMP is empty and it gets reset in non-PMP way, it identifies itself as "Config Disk" of quite small size.
It's probably used to configure the extra features using standard ATA
RW commands. Anyways, this "Config Disk" is a bit peculiar and doesn't work very well with the current ATA reset sequence and gets identified only after a few failures thus causing long timeout.

I keep forgetting about this. I'll ask SIMG how to deal with this. For the time being, connecting a device to the PMP port should remove the timeouts.

Quoted 25 lines
Quoted 3 lines

The second problem is a Jmicron363 controler that is failing to detect the DVD-RW that is connected, unless I use the irqpoll option as Tejun has suggested.

.. and this one has never worked without irqpoll?

Quoted 7 lines

But, as you suggest it, I'm adding pci=nomsi to the command line.... rebooting... no change for this part of the problem.

OK, the /proc/interrupt for this config, and the dmesg attached.

3 [23:22] rol@riri:~> cat /proc/interrupts
CPU0 CPU1

Quoted 10 lines
  0:     297549          0   IO-APIC-edge      timer
  1:          7          0   IO-APIC-edge      i8042
  4:         13          0   IO-APIC-edge      serial
  6:          5          0   IO-APIC-edge      floppy
  8:          1          0   IO-APIC-edge      rtc
  9:          0          0   IO-APIC-fasteoi   acpi
 12:        126          0   IO-APIC-edge      i8042
 14:       8313          0   IO-APIC-edge      libata
 15:          0          0   IO-APIC-edge      libata
 16:          0          0   IO-APIC-fasteoi   eth1, libata

So it's the irq16 one that is the Jmicron controller and just isn't getting any interrupts?

Quoted 8 lines

Since all the other interrupts work (and MSI worked for other controllers), I don't think it's interrupt-routing related. Especially as MSI shouldn't even care about things like that.

And since it all works when "irqpoll" is used, that implies that the *only* thing that is broken is literally irq delivery.

Is there possibly some jmicron-specific "enable interrupts" bit?

(cc'ing Justin of JMicron. Hello, please correct me if I'm wrong.)

Not that I know of. The PATA portion of JMB controllers is bog standard PCI BMDMA ATA device where ATA_NIEN is the way to turn IRQ on and off.

Thanks.

Signature · 1 line
tejun
#16 lore raw
In reply to Tejun Heo

Hello,

Quoted 3 lines

It involves a long timeout, so it's bothersome. This is caused by Silicon Image 4726/3726 storage processor (SATA Port Multiplier with extra features) attached to one of the ICH ports.

Yes, I think this is the part Asus is using for it's EZ-Raid feature on this motherboard, and they seem to like their EZ-Raid, so it's likely to become more and more common.

Quoted 1 line

If the first downstream port in the PMP is empty and it gets reset in

I confirm it is empty in my config.

Quoted 2 lines

work very well with the current ATA reset sequence and gets identified only after a few failures thus causing long timeout.

30s to 1min ;(

Quoted 4 lines

I keep forgetting about this. I'll ask SIMG how to deal with this. For
the time being, connecting a device to the PMP port should remove the timeouts.

That sounds a quite expensive solution ;)

Paul

#17 lore raw
Quoted 6 lines · Paul Rolland
Quoted 4 lines

I keep forgetting about this. I'll ask SIMG how to deal with this. For
the time being, connecting a device to the PMP port should remove the timeouts.

That sounds a quite expensive solution ;)

You should be able to just move the drive attached at ata1 to ata2. Please report whether that works.

Signature · 1 line
tejun
#18 lore raw

Hello,

Quoted 4 lines
Quoted 1 line

That sounds a quite expensive solution ;)

You should be able to just move the drive attached at ata1 to ata2. Please report whether that works.

I'll try to find an unused disk... As I said, these ports are part of Asus EZRaid solution, and i'd prefer this piece of code not to try to write anything on the disk ;)

... but I should find a disk without too much problem.

Paul

#19 lore raw
In reply to Tejun Heo

Hello,

I'm preparing to attach a disk.
In the meantime, I've rebuild a 2.6.21-rc4, and got that while booting :
...
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133 ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133
...
Adding 2096436k swap on /dev/sde5. Priority:-1 extents:1 across:2096436k Adding 4192956k swap on /dev/sda3. Priority:-2 extents:1 across:4192956k ata1.00: exception Emask 0x2 SAct 0x7fffffc3 SErr 0x0 action 0x2 frozen ata1.00: (spurious completions during NCQ issue=0x0 SAct=0x7fffffc3 FIS=004040a1:00000020)
ata1.00: cmd 60/01:00:52:eb:ff/00:00:09:00:00/40 tag 0 cdb 0x0 data 512 in

         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/40:08:53:eb:ff/00:00:09:00:00/40 tag 1 cdb 0x0 data 32768 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:30:39:eb:ff/00:00:09:00:00/40 tag 6 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:38:3a:eb:ff/00:00:09:00:00/40 tag 7 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:40:3b:eb:ff/00:00:09:00:00/40 tag 8 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:48:3c:eb:ff/00:00:09:00:00/40 tag 9 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:50:3d:eb:ff/00:00:09:00:00/40 tag 10 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:58:3e:eb:ff/00:00:09:00:00/40 tag 11 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:60:3f:eb:ff/00:00:09:00:00/40 tag 12 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:68:40:eb:ff/00:00:09:00:00/40 tag 13 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:70:41:eb:ff/00:00:09:00:00/40 tag 14 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:78:42:eb:ff/00:00:09:00:00/40 tag 15 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:80:43:eb:ff/00:00:09:00:00/40 tag 16 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:88:44:eb:ff/00:00:09:00:00/40 tag 17 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:90:45:eb:ff/00:00:09:00:00/40 tag 18 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:98:46:eb:ff/00:00:09:00:00/40 tag 19 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:a0:47:eb:ff/00:00:09:00:00/40 tag 20 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:a8:48:eb:ff/00:00:09:00:00/40 tag 21 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:b0:49:eb:ff/00:00:09:00:00/40 tag 22 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:b8:4a:eb:ff/00:00:09:00:00/40 tag 23 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:c0:4b:eb:ff/00:00:09:00:00/40 tag 24 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:c8:4c:eb:ff/00:00:09:00:00/40 tag 25 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:d0:4d:eb:ff/00:00:09:00:00/40 tag 26 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:d8:4e:eb:ff/00:00:09:00:00/40 tag 27 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:e0:4f:eb:ff/00:00:09:00:00/40 tag 28 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:e8:50:eb:ff/00:00:09:00:00/40 tag 29 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)
ata1.00: cmd 60/01:f0:51:eb:ff/00:00:09:00:00/40 tag 30 cdb 0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)

ata1: soft resetting port

Kernel is a stock 2.6.21-rc4 I've just downloaded... I seem to remember this could be NCQ-related, and my disk should have been blacklisted, but is this already in 2.6.21-rc4 ?

Regards,
Paul

Paul Rolland, rol(at)as2917.net
ex-AS2917 Network administrator and Peering Coordinator

--

Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur "Some people dream of success... while others wake up and work hard at it"

"I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation

Quoted 30 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tejun Heo
Sent: Monday, March 12, 2007 9:05 AM
To: [email protected]
Cc: 'Linus Torvalds'; 'Jeff Garzik'; 'Alan Cox'; 'Andrew Morton'; [email protected]; 'LKML'; 'Eric D. Mudama'
Subject: Re: [git patches] libata fixes

Quoted 3 lines · Paul Rolland
Quoted 3 lines

I keep forgetting about this. I'll ask SIMG how to deal with this. For
the time being, connecting a device to the PMP port should

remove the

Quoted 3 lines
Quoted 1 line

timeouts.

That sounds a quite expensive solution ;)

You should be able to just move the drive attached at ata1 to ata2. Please report whether that works.

Signature · 7 lines
tejun
-
To unsubscribe from this list: send the line "unsubscribe 
linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#20 lore raw
Quoted 2 lines · Paul Rolland

ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133

That drive isn't in our current block list for NCQ but some close relatives are in the one I've compiled so far (7B250S0). If you add it to the blacklist it behave ?

Also what controller ?

#21 lore raw
In reply to Paul Rolland

Hello,

Here is a patch to avoid these pesky messages for the Maxtor disk :

--- linux-2.6.21-rc4/drivers/ata/libata-core.c 2007-03-17 19:29:45.000000000 +0100
+++ linux-2.6.21-rc4-Maxtor/drivers/ata/libata-core.c 2007-03-17
19:37:28.000000000 +0100
@@ -3359,6 +3359,8 @@

         { "WDC WD740ADFD-00",   NULL,          ATA_HORKAGE_NONCQ },
        /* http://thread.gmane.org/gmane.linux.ide/14907 */
        { "FUJITSU MHT2060BH",  NULL,           ATA_HORKAGE_NONCQ },

+ /* NCQ is broken */
+ { "Maxtor 6L250S0", NULL, ATA_HORKAGE_NONCQ },

        /* Devices with NCQ limits */

With this applied, my machine has stopped all those painful messages. dmesg now says :

root@riri:/Kernels# dmesg | grep LBA
ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (not used)
ata2.00: 640 sectors, multi 1: LBA 
ata3.00: 490234752 sectors, multi 0: LBA48 NCQ (not used)

instead of NCQ (depth 31/32), but there doesn't seem to be any adverse effects.

Regards,
Paul

Paul Rolland, rol(at)as2917.net
ex-AS2917 Network administrator and Peering Coordinator

--

Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur "Some people dream of success... while others wake up and work hard at it"

"I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation

Quoted 204 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Rolland
Sent: Saturday, March 17, 2007 6:59 PM
To: 'Tejun Heo'
Cc: 'Linus Torvalds'; 'Jeff Garzik'; 'Alan Cox'; 'Andrew Morton'; [email protected]; 'LKML'; 'Eric D. Mudama'
Subject: RE: [git patches] libata fixes

Hello,

I'm preparing to attach a disk.
In the meantime, I've rebuild a 2.6.21-rc4, and got that while booting :
...
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133 ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133
...
Adding 2096436k swap on /dev/sde5. Priority:-1 extents:1 across:2096436k
Adding 4192956k swap on /dev/sda3. Priority:-2 extents:1 across:4192956k
ata1.00: exception Emask 0x2 SAct 0x7fffffc3 SErr 0x0 action 0x2 frozen
ata1.00: (spurious completions during NCQ issue=0x0 SAct=0x7fffffc3 FIS=004040a1:00000020)
ata1.00: cmd 60/01:00:52:eb:ff/00:00:09:00:00/40 tag 0 cdb 0x0 data 512 in

         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/40:08:53:eb:ff/00:00:09:00:00/40 tag 1 cdb 
0x0 data 32768 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:30:39:eb:ff/00:00:09:00:00/40 tag 6 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:38:3a:eb:ff/00:00:09:00:00/40 tag 7 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:40:3b:eb:ff/00:00:09:00:00/40 tag 8 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:48:3c:eb:ff/00:00:09:00:00/40 tag 9 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:50:3d:eb:ff/00:00:09:00:00/40 tag 10 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:58:3e:eb:ff/00:00:09:00:00/40 tag 11 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:60:3f:eb:ff/00:00:09:00:00/40 tag 12 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:68:40:eb:ff/00:00:09:00:00/40 tag 13 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:70:41:eb:ff/00:00:09:00:00/40 tag 14 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:78:42:eb:ff/00:00:09:00:00/40 tag 15 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:80:43:eb:ff/00:00:09:00:00/40 tag 16 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:88:44:eb:ff/00:00:09:00:00/40 tag 17 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:90:45:eb:ff/00:00:09:00:00/40 tag 18 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:98:46:eb:ff/00:00:09:00:00/40 tag 19 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:a0:47:eb:ff/00:00:09:00:00/40 tag 20 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:a8:48:eb:ff/00:00:09:00:00/40 tag 21 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:b0:49:eb:ff/00:00:09:00:00/40 tag 22 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:b8:4a:eb:ff/00:00:09:00:00/40 tag 23 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:c0:4b:eb:ff/00:00:09:00:00/40 tag 24 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:c8:4c:eb:ff/00:00:09:00:00/40 tag 25 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:d0:4d:eb:ff/00:00:09:00:00/40 tag 26 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:d8:4e:eb:ff/00:00:09:00:00/40 tag 27 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:e0:4f:eb:ff/00:00:09:00:00/40 tag 28 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:e8:50:eb:ff/00:00:09:00:00/40 tag 29 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 
(HSM violation)
ata1.00: cmd 60/01:f0:51:eb:ff/00:00:09:00:00/40 tag 30 cdb 
0x0 data 512 in
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 

(HSM violation)
ata1: soft resetting port

Kernel is a stock 2.6.21-rc4 I've just downloaded... I seem to remember
this could be NCQ-related, and my disk should have been blacklisted, but is this already in 2.6.21-rc4 ?

Regards,
Paul

Paul Rolland, rol(at)as2917.net
ex-AS2917 Network administrator and Peering Coordinator

--

Please no HTML, I'm not a browser - Pas d'HTML, je ne suis pas un navigateur
"Some people dream of success... while others wake up and work hard at it"

"I worry about my child and the Internet all the time, even though she's too
young to have logged on yet. Here's what I worry about. I worry that 10 or 15
years from now, she will come to me and say 'Daddy, where were you when they
took freedom of the press away from the Internet?'" --Mike Godwin, Electronic Frontier Foundation

Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tejun Heo
Sent: Monday, March 12, 2007 9:05 AM
To: [email protected]
Cc: 'Linus Torvalds'; 'Jeff Garzik'; 'Alan Cox'; 'Andrew Morton'; [email protected]; 'LKML'; 'Eric D. Mudama'
Subject: Re: [git patches] libata fixes

Quoted 3 lines · Paul Rolland
Quoted 3 lines

I keep forgetting about this. I'll ask SIMG how to deal with this. For
the time being, connecting a device to the PMP port should

Quoted 17 lines

remove the

Quoted 3 lines
Quoted 1 line

timeouts.

That sounds a quite expensive solution ;)

You should be able to just move the drive attached at ata1 to ata2. Please report whether that works.

Signature · 7 lines
tejun
-
To unsubscribe from this list: send the line "unsubscribe 
linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#22 lore raw
Quoted 4 lines · Paul Rolland

Hello,

Here is a patch to avoid these pesky messages for the Maxtor disk :

Please match the firmware version as well for the Maxtor drives

Quoted 14 lines

--- linux-2.6.21-rc4/drivers/ata/libata-core.c 2007-03-17 19:29:45.000000000 +0100
+++ linux-2.6.21-rc4-Maxtor/drivers/ata/libata-core.c 2007-03-17
19:37:28.000000000 +0100

(quoted diff) +2 -0
@@ -3359,6 +3359,8 @@
         { "WDC WD740ADFD-00",   NULL,          ATA_HORKAGE_NONCQ },
        /* http://thread.gmane.org/gmane.linux.ide/14907 */
        { "FUJITSU MHT2060BH",  NULL,           ATA_HORKAGE_NONCQ },
+       /* NCQ is broken */
+       { "Maxtor 6L250S0",     NULL,           ATA_HORKAGE_NONCQ }, 
 
        /* Devices with NCQ limits */
 
Quoted 1 line

NAK - but add the firmware to the match and you can have an Ack 8)

#23 lore raw

Hello,

Quoted 1 line

Please match the firmware version as well for the Maxtor drives

Ok.

Quoted 13 lines
Quoted 1 line

--- linux-2.6.21-rc4/drivers/ata/libata-core.c 2007-03-17

19:29:45.000000000

Review line 3363

Quoted 9 lines

+0100
+++ linux-2.6.21-rc4-Maxtor/drivers/ata/libata-core.c 2007-03-17
19:37:28.000000000 +0100

(quoted diff) +2 -0
@@ -3359,6 +3359,8 @@
         { "WDC WD740ADFD-00",   NULL,          ATA_HORKAGE_NONCQ },
        /* http://thread.gmane.org/gmane.linux.ide/14907 */
        { "FUJITSU MHT2060BH",  NULL,           ATA_HORKAGE_NONCQ },
+       /* NCQ is broken */
+       { "Maxtor 6L250S0",     NULL,           

ATA_HORKAGE_NONCQ },

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
        /* Devices with NCQ limits */

NAK - but add the firmware to the match and you can have an Ack 8)

Second try, compiled _and_ boot tested, of course.

dmesg says :
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133 ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (not used) ata1.00: configured for UDMA/133

--- linux-2.6.21-rc4/drivers/ata/libata-core.c 2007-03-17 19:47:49.000000000 +0100
+++ linux-2.6.21-rc4-Maxtor/drivers/ata/libata-core.c 2007-03-17
20:24:01.000000000 +0100
@@ -3359,6 +3359,8 @@

         { "WDC WD740ADFD-00",   NULL,          ATA_HORKAGE_NONCQ },
        /* http://thread.gmane.org/gmane.linux.ide/14907 */
        { "FUJITSU MHT2060BH",  NULL,           ATA_HORKAGE_NONCQ },

+ /* NCQ is broken */
+ { "Maxtor 6L250S0", "BANC1G10", ATA_HORKAGE_NONCQ },

        /* Devices with NCQ limits */

Regards,
Paul

Acked-by
#24 lore raw
Quoted 27 lines
Quoted 5 lines
Quoted 3 lines

NAK - but add the firmware to the match and you can have an Ack 8)

Second try, compiled _and_ boot tested, of course.

dmesg says :
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133 ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (not used) ata1.00: configured for UDMA/133

--- linux-2.6.21-rc4/drivers/ata/libata-core.c 2007-03-17 19:47:49.000000000 +0100
+++ linux-2.6.21-rc4-Maxtor/drivers/ata/libata-core.c 2007-03-17
20:24:01.000000000 +0100

(quoted diff) +2 -0
@@ -3359,6 +3359,8 @@
         { "WDC WD740ADFD-00",   NULL,          ATA_HORKAGE_NONCQ },
        /* http://thread.gmane.org/gmane.linux.ide/14907 */
        { "FUJITSU MHT2060BH",  NULL,           ATA_HORKAGE_NONCQ },
+       /* NCQ is broken */
+       { "Maxtor 6L250S0",     "BANC1G10",     ATA_HORKAGE_NONCQ }, 
 
        /* Devices with NCQ limits */
 
Quoted 1 line

--
'YKYHBRTFDriverSTLW: you catch yourself saying "enough horrors for today"
and picking Lovecraft to relax...' -- Al Viro

#25 lore raw
In reply to Paul Rolland
Quoted 16 lines · Paul Rolland

Hello,

I'm preparing to attach a disk.
In the meantime, I've rebuild a 2.6.21-rc4, and got that while booting :
...
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133 ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/133
...
Adding 2096436k swap on /dev/sde5. Priority:-1 extents:1 across:2096436k Adding 4192956k swap on /dev/sda3. Priority:-2 extents:1 across:4192956k ata1.00: exception Emask 0x2 SAct 0x7fffffc3 SErr 0x0 action 0x2 frozen ata1.00: (spurious completions during NCQ issue=0x0 SAct=0x7fffffc3 FIS=004040a1:00000020)
ata1.00: cmd 60/01:00:52:eb:ff/00:00:09:00:00/40 tag 0 cdb 0x0 data 512 in

Quoted 1 line
         res 40/00:08:53:eb:ff/00:00:09:00:00/40 Emask 0x2 (HSM violation)

If you leave it alone, does libata turn off NCQ and boot continues?

Signature · 1 line
tejun
#26 lore raw
Quoted 1 line

If you leave it alone, does libata turn off NCQ and boot continues?

boot continues, but I can't tell anything about libata turning of NCQ... I've had a bunch of them at some while while compiling some kernel, so it was quite some time after booting.

Is there a message I can check for that would indicate NCQ being turned off ?

Regards,
Paul

#27 lore raw
Quoted 8 lines · Paul Rolland
Quoted 1 line

If you leave it alone, does libata turn off NCQ and boot continues?

boot continues, but I can't tell anything about libata turning of NCQ... I've had a bunch of them at some while while compiling some kernel, so it was quite some time after booting.

Is there a message I can check for that would indicate NCQ being turned off ?

The kernel says that NCQ is turned off due to excessive errors. If your HSM violation is intermittent, it might not trigger tho.

Signature · 1 line
tejun
#28 lore raw

Hello,

Quoted 3 lines

The kernel says that NCQ is turned off due to excessive errors. If your
HSM violation is intermittent, it might not trigger tho.

I've just grep'ed thru all my messages, and I can't find anything stating that NCQ is being turned off...

Paul

#29 lore raw
Quoted 8 lines · Paul Rolland

Hello,

Quoted 3 lines

The kernel says that NCQ is turned off due to excessive errors. If your
HSM violation is intermittent, it might not trigger tho.

I've just grep'ed thru all my messages, and I can't find anything stating that NCQ is being turned off...

Can you put the harddisk under high load and see what happens? How often do those errors occur? Care to post full dmesg?

Signature · 1 line
tejun
#30 lore raw

Hello,

Quoted 2 lines

Can you put the harddisk under high load and see what happens? How often do those errors occur? Care to post full dmesg?

I started again a stock 2.6.21-rc4, and ran that :
while (/bin/true); do tar jxf linux-2.6.19.1.tar.bz2; rm -rf linux-2.6.19.1; echo -n "."; done

After several minutes (I waited more than 300 loops to be completed), and a lot of errors, I finally managed to see :

Mar 18 10:32:47 riri kernel: ata1.00: NCQ disabled due to excessive errors

/var/log/messages contains :

Mar 18 10:15:04 riri syslogd 1.4.1#17ubuntu7: restart.
Mar 18 10:15:04 riri kernel: Inspecting /boot/System.map-2.6.21-rc4
Mar 18 10:15:04 riri kernel: Loaded 39327 symbols from
/boot/System.map-2.6.21-rc4.
Mar 18 10:15:04 riri kernel: Symbols match kernel version 2.6.21.
Mar 18 10:15:04 riri kernel: No module symbols loaded - kernel modules not
enabled. 
Mar 18 10:15:04 riri kernel: Linux version 2.6.21-rc4 ([email protected])
(gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 SMP PREEMPT Sat Mar 17 18:50:10
CET 2007
Mar 18 10:15:04 riri kernel: Command line: root=/dev/sde1 ro ata2=noprobe
console=ttyS0,9600 console=tty0 vga=extended irqpoll
Mar 18 10:15:04 riri kernel: BIOS-provided physical RAM map:
Mar 18 10:15:04 riri kernel:  BIOS-e820: 0000000000000000 - 000000000009fc00
(usable)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 000000000009fc00 - 00000000000a0000
(reserved)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 00000000000e4000 - 0000000000100000
(reserved)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 0000000000100000 - 00000000c7f80000
(usable)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 00000000c7f80000 - 00000000c7f8e000
(ACPI data)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 00000000c7f8e000 - 00000000c7fe0000
(ACPI NVS)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 00000000c7fe0000 - 00000000c8000000
(reserved)
Mar 18 10:15:04 riri kernel:  BIOS-e820: 00000000ffb00000 - 0000000100000000
(reserved)
Mar 18 10:15:04 riri kernel: end_pfn_map = 1048576
Mar 18 10:15:04 riri kernel: DMI 2.4 present.
Mar 18 10:15:04 riri kernel: ACPI: RSDP 000FAF20, 0024 (r2 ACPIAM)
Mar 18 10:15:04 riri kernel: ACPI: XSDT C7F80100, 005C (r1 A_M_I_ OEMXSDT
12000608 MSFT       97)
Mar 18 10:15:04 riri kernel: ACPI: FACP C7F80290, 00F4 (r3 A_M_I_ OEMFACP
12000608 MSFT       97)
Mar 18 10:15:04 riri kernel: ACPI: DSDT C7F80410, 8FC4 (r1  A0543 A0543000
0 INTL 20060113)
Mar 18 10:15:04 riri kernel: ACPI: FACS C7F8E000, 0040
Mar 18 10:15:04 riri kernel: ACPI: APIC C7F80390, 0080 (r1 A_M_I_ OEMAPIC
12000608 MSFT       97)
Mar 18 10:15:04 riri kernel: ACPI: OEMB C7F8E040, 0066 (r1 A_M_I_ AMI_OEM
12000608 MSFT       97)
Mar 18 10:15:04 riri kernel: ACPI: HPET C7F893E0, 0038 (r1 A_M_I_ OEMHPET
12000608 MSFT       97)
Mar 18 10:15:04 riri kernel: ACPI: MCFG C7F89420, 003C (r1 A_M_I_ OEMMCFG
12000608 MSFT       97)
Mar 18 10:15:04 riri kernel: ACPI: SSDT C7F8E0B0, 01C6 (r1    AMI   CPU1PM
1 INTL 20060113)
Mar 18 10:15:04 riri kernel: ACPI: SSDT C7F8E280, 013A (r1    AMI   CPU2PM
1 INTL 20060113)
Mar 18 10:15:04 riri kernel: Zone PFN ranges:
Mar 18 10:15:04 riri kernel:   DMA             0 ->     4096
Mar 18 10:15:04 riri kernel:   DMA32        4096 ->  1048576
Mar 18 10:15:04 riri kernel:   Normal    1048576 ->  1048576
Mar 18 10:15:04 riri kernel: early_node_map[2] active PFN ranges
Mar 18 10:15:04 riri kernel:     0:        0 ->      159
Mar 18 10:15:04 riri kernel:     0:      256 ->   819072
Mar 18 10:15:04 riri kernel: ACPI: PM-Timer IO Port: 0x808
Mar 18 10:15:04 riri kernel: ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00]
enabled)
Mar 18 10:15:04 riri kernel: Processor #0 (Bootup-CPU)
Mar 18 10:15:04 riri kernel: ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01]
enabled)
Mar 18 10:15:04 riri kernel: Processor #1
Mar 18 10:15:04 riri kernel: ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82]
disabled)
Mar 18 10:15:04 riri kernel: ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83]
disabled)
Mar 18 10:15:04 riri kernel: ACPI: IOAPIC (id[0x02] address[0xfec00000]
gsi_base[0])
Mar 18 10:15:04 riri kernel: IOAPIC[0]: apic_id 2, address 0xfec00000, GSI
0-23
Mar 18 10:15:04 riri kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2
dfl dfl)
Mar 18 10:15:04 riri kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9
high level)
Mar 18 10:15:04 riri kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2
dfl dfl)
Mar 18 10:15:04 riri kernel: ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9
high level)
Mar 18 10:15:04 riri kernel: Setting APIC routing to flat
Mar 18 10:15:04 riri kernel: ACPI: HPET id: 0x8086a201 base: 0xfed00000
Mar 18 10:15:04 riri kernel: Using ACPI (MADT) for SMP configuration
information
Mar 18 10:15:04 riri kernel: Nosave address range: 000000000009f000 -
00000000000a0000
Mar 18 10:15:04 riri kernel: Nosave address range: 00000000000a0000 -
00000000000e4000
Mar 18 10:15:04 riri kernel: Nosave address range: 00000000000e4000 -
0000000000100000
Mar 18 10:15:04 riri kernel: Allocating PCI resources starting at cc000000
(gap: c8000000:37b00000)
Mar 18 10:15:04 riri kernel: PERCPU: Allocating 34368 bytes of per cpu data
Mar 18 10:15:04 riri kernel: Built 1 zonelists.  Total pages: 805789
Mar 18 10:15:04 riri kernel: Kernel command line: root=/dev/sde1 ro
ata2=noprobe console=ttyS0,9600 console=tty0 vga=extended irqpoll
Mar 18 10:15:04 riri kernel: Misrouted IRQ fixup and polling support enabled
Mar 18 10:15:04 riri kernel: This may significantly impact system performance
Mar 18 10:15:04 riri kernel: Initializing CPU#0
Mar 18 10:15:04 riri kernel: PID hash table entries: 4096 (order: 12, 32768
bytes)
Mar 18 10:15:04 riri kernel: time.c: Detected 2400.081 MHz processor.
Mar 18 10:15:04 riri kernel: Console: colour VGA+ 80x50
Mar 18 10:15:04 riri kernel: Dentry cache hash table entries: 524288 (order:
10, 4194304 bytes)
Mar 18 10:15:04 riri kernel: Inode-cache hash table entries: 262144 (order: 9,
2097152 bytes)
Mar 18 10:15:04 riri kernel: Checking aperture...
Mar 18 10:15:04 riri kernel: Memory: 3216492k/3276288k available (4569k kernel
code, 59180k reserved, 2320k data, 296k init)
Mar 18 10:15:04 riri kernel: Calibrating delay using timer specific routine..
4817.93 BogoMIPS (lpj=2408969)
Mar 18 10:15:04 riri kernel: Security Framework v1.0.0 initialized
Mar 18 10:15:04 riri kernel: Capability LSM initialized
Mar 18 10:15:04 riri kernel: Failure registering Root Plug module with the
kernel
Mar 18 10:15:04 riri kernel: Failure registering Root Plug  module with
primary security module.
Mar 18 10:15:04 riri kernel: Mount-cache hash table entries: 256
Mar 18 10:15:04 riri kernel: CPU: L1 I cache: 32K, L1 D cache: 32K
Mar 18 10:15:04 riri kernel: CPU: L2 cache: 4096K
Mar 18 10:15:04 riri kernel: using mwait in idle threads.
Mar 18 10:15:04 riri kernel: CPU: Physical Processor ID: 0
Mar 18 10:15:04 riri kernel: CPU: Processor Core ID: 0
Mar 18 10:15:04 riri kernel: CPU0: Thermal monitoring enabled (TM2)
Mar 18 10:15:04 riri kernel: Freeing SMP alternatives: 40k freed
Mar 18 10:15:04 riri kernel: ACPI: Core revision 20070126
Mar 18 10:15:04 riri kernel: Using local APIC timer interrupts.
Mar 18 10:15:04 riri kernel: result 16667212
Mar 18 10:15:04 riri kernel: Detected 16.667 MHz APIC timer.
Mar 18 10:15:04 riri kernel: Booting processor 1/2 APIC 0x1
Mar 18 10:15:04 riri kernel: Initializing CPU#1
Mar 18 10:15:04 riri kernel: Calibrating delay using timer specific routine..
4800.10 BogoMIPS (lpj=2400050)
Mar 18 10:15:04 riri kernel: CPU: L1 I cache: 32K, L1 D cache: 32K
Mar 18 10:15:04 riri kernel: CPU: L2 cache: 4096K
Mar 18 10:15:04 riri kernel: CPU: Physical Processor ID: 0
Mar 18 10:15:04 riri kernel: CPU: Processor Core ID: 1
Mar 18 10:15:04 riri kernel: CPU1: Thermal monitoring enabled (TM2)
Mar 18 10:15:04 riri kernel: Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
stepping 06
Mar 18 10:15:04 riri kernel: checking TSC synchronization [CPU#0 -> CPU#1]:
passed.
Mar 18 10:15:04 riri kernel: Brought up 2 CPUs
Mar 18 10:15:04 riri kernel: migration_cost=26
Mar 18 10:15:04 riri kernel: NET: Registered protocol family 16
Mar 18 10:15:04 riri kernel: ACPI: bus type pci registered
Mar 18 10:15:04 riri kernel: PCI: Using configuration type 1
Mar 18 10:15:04 riri kernel: ACPI: Interpreter enabled
Mar 18 10:15:04 riri kernel: ACPI: Using IOAPIC for interrupt routing
Mar 18 10:15:04 riri kernel: ACPI: PCI Root Bridge [PCI0] (0000:00)
Mar 18 10:15:04 riri kernel: PCI quirk: region 0800-087f claimed by ICH6
ACPI/GPIO/TCO
Mar 18 10:15:04 riri kernel: PCI quirk: region 0480-04bf claimed by ICH6 GPIO
Mar 18 10:15:04 riri kernel: 0000:00:1f.1: trying to change BAR0 from 0000 to
01F0
Mar 18 10:15:04 riri kernel: 0000:00:1f.1: trying to change BAR1 from 0000 to
03F4
Mar 18 10:15:04 riri kernel: 0000:00:1f.1: trying to change BAR2 from 0000 to
0170
Mar 18 10:15:04 riri kernel: 0000:00:1f.1: trying to change BAR3 from 0000 to
0374
Mar 18 10:15:04 riri kernel: PCI: Transparent bridge - 0000:00:1e.0
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7
10 *11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7
*10 11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 *7
10 11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7
10 11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKE] (IRQs *3 4 5 6 7
10 11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 *5 6 7
10 11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7
10 *11 12 14 15)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7
*10 11 12 14 15)
Mar 18 10:15:04 riri kernel: Linux Plug and Play Support v0.97 (c) Adam Belay
Mar 18 10:15:04 riri kernel: pnp: PnP ACPI init
Mar 18 10:15:04 riri kernel: pnp: PnP ACPI: found 16 devices
Mar 18 10:15:04 riri kernel: SCSI subsystem initialized
Mar 18 10:15:04 riri kernel: usbcore: registered new interface driver usbfs
Mar 18 10:15:04 riri kernel: usbcore: registered new interface driver hub
Mar 18 10:15:04 riri kernel: usbcore: registered new device driver usb
Mar 18 10:15:04 riri kernel: PCI: Using ACPI for IRQ routing
Mar 18 10:15:04 riri kernel: PCI: If a device doesn't work, try
"pci=routeirq".  If it helps, post a report
Mar 18 10:15:04 riri kernel: PCI-GART: No AMD northbridge found.
Mar 18 10:15:04 riri kernel: hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
Mar 18 10:15:04 riri kernel: hpet0: 3 64-bit timers, 14318180 Hz
Mar 18 10:15:04 riri kernel: pnp: 00:01: iomem range 0xfed13000-0xfed19fff has
been reserved
Mar 18 10:15:04 riri kernel: Time: tsc clocksource has been installed.
Mar 18 10:15:04 riri kernel: pnp: 00:07: ioport range 0x290-0x297 has been
reserved
Mar 18 10:15:04 riri kernel: pnp: 00:08: iomem range 0xfed1c000-0xfed1ffff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:08: iomem range 0xfed20000-0xfed3ffff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:08: iomem range 0xfed50000-0xfed8ffff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:08: iomem range 0xffb00000-0xffbfffff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0c: iomem range 0xfec00000-0xfec00fff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0c: iomem range 0xfee00000-0xfee00fff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0e: iomem range 0xf0000000-0xf3ffffff has
been reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0f: iomem range 0x0-0x9ffff could not be
reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0f: iomem range 0xc0000-0xdffff has been
reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0f: iomem range 0xe0000-0xfffff could not
be reserved
Mar 18 10:15:04 riri kernel: pnp: 00:0f: iomem range 0x100000-0xc7ffffff could
not be reserved
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:01:03.0[A] -> GSI 21
(level, low) -> IRQ 21
Mar 18 10:15:04 riri kernel: ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[21]
MMIO=[ff5ef800-ff5effff]  Max Packet=[2048]  IR/IT contexts=[4/8]
Mar 18 10:15:04 riri kernel: PCI: Bridge: 0000:00:01.0
Mar 18 10:15:04 riri kernel:   IO window: c000-cfff
Mar 18 10:15:04 riri kernel:   MEM window: ff900000-ff9fffff
Mar 18 10:15:04 riri kernel:   PREFETCH window: cff00000-efefffff
Mar 18 10:15:04 riri kernel: PCI: Bridge: 0000:00:1c.0
Mar 18 10:15:04 riri kernel:   IO window: disabled.
Mar 18 10:15:04 riri kernel:   MEM window: disabled.
Mar 18 10:15:04 riri kernel:   PREFETCH window: cfe00000-cfefffff
Mar 18 10:15:04 riri kernel: PCI: Bridge: 0000:00:1c.3
Mar 18 10:15:04 riri kernel:   IO window: b000-bfff
Mar 18 10:15:04 riri kernel:   MEM window: ff800000-ff8fffff
Mar 18 10:15:04 riri kernel:   PREFETCH window: disabled.
Mar 18 10:15:04 riri kernel: PCI: Bridge: 0000:00:1c.4
Mar 18 10:15:04 riri kernel:   IO window: a000-afff
Mar 18 10:15:04 riri kernel:   MEM window: ff700000-ff7fffff
Mar 18 10:15:04 riri kernel:   PREFETCH window: disabled.
Mar 18 10:15:04 riri kernel: PCI: Bridge: 0000:00:1c.5
Mar 18 10:15:04 riri kernel:   IO window: 9000-9fff
Mar 18 10:15:04 riri kernel:   MEM window: ff600000-ff6fffff
Mar 18 10:15:04 riri kernel:   PREFETCH window: disabled.
Mar 18 10:15:04 riri kernel: PCI: Bridge: 0000:00:1e.0
Mar 18 10:15:04 riri kernel:   IO window: 8000-8fff
Mar 18 10:15:04 riri kernel:   MEM window: ff500000-ff5fffff
Mar 18 10:15:04 riri kernel:   PREFETCH window: disabled.
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16
(level, low) -> IRQ 16
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16
(level, low) -> IRQ 16
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19
(level, low) -> IRQ 19
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16
(level, low) -> IRQ 16
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 17
(level, low) -> IRQ 17
Mar 18 10:15:04 riri kernel: NET: Registered protocol family 2
Mar 18 10:15:04 riri kernel: IP route cache hash table entries: 131072 (order:
8, 1048576 bytes)
Mar 18 10:15:04 riri kernel: TCP established hash table entries: 131072
(order: 9, 3145728 bytes)
Mar 18 10:15:04 riri kernel: TCP bind hash table entries: 65536 (order: 8,
1048576 bytes)
Mar 18 10:15:04 riri kernel: TCP: Hash tables configured (established 131072
bind 65536)
Mar 18 10:15:04 riri kernel: TCP reno registered
Mar 18 10:15:04 riri kernel: IA-32 Microcode Update Driver: v1.14a
<[email protected]>
Mar 18 10:15:04 riri kernel: VFS: Disk quotas dquot_6.5.1
Mar 18 10:15:04 riri kernel: Dquot-cache hash table entries: 512 (order 0,
4096 bytes)
Mar 18 10:15:04 riri kernel: NTFS driver 2.1.28 [Flags: R/W].
Mar 18 10:15:04 riri kernel: fuse init (API version 7.8)
Mar 18 10:15:04 riri kernel: io scheduler noop registered
Mar 18 10:15:04 riri kernel: io scheduler anticipatory registered (default)
Mar 18 10:15:04 riri kernel: io scheduler deadline registered
Mar 18 10:15:04 riri kernel: io scheduler cfq registered
Mar 18 10:15:04 riri kernel: assign_interrupt_mode Found MSI capability
Mar 18 10:15:04 riri last message repeated 4 times
Mar 18 10:15:04 riri kernel: input: Power Button (FF) as /class/input/input0
Mar 18 10:15:04 riri kernel: ACPI: Power Button (FF) [PWRF]
Mar 18 10:15:04 riri kernel: input: Power Button (CM) as /class/input/input1
Mar 18 10:15:04 riri kernel: ACPI: Power Button (CM) [PWRB]
Mar 18 10:15:04 riri kernel: ACPI Warning (tbutils-0158): Incorrect checksum
in table [OEMB] -  78, should be 6F [20070126]
Mar 18 10:15:04 riri kernel: ACPI Error (psparse-0537): Method parse/execution
failed [\_PR_.CPU1._OSC] (Node ffff81000424cb30), AE_ALREADY_EXISTS
Mar 18 10:15:04 riri kernel: ACPI: Marking method _OSC as Serialized
Mar 18 10:15:04 riri kernel: ACPI Error (psparse-0537): Method parse/execution
failed [\_PR_.CPU1._PDC] (Node ffff81000424cb50), AE_ALREADY_EXISTS
Mar 18 10:15:04 riri kernel: ACPI: Marking method _PDC as Serialized
Mar 18 10:15:04 riri kernel: ACPI: Processor [CPU1] (supports 8 throttling
states)
Mar 18 10:15:04 riri kernel: ACPI Error (psparse-0537): Method parse/execution
failed [\_PR_.CPU2._OSC] (Node ffff81000424ca10), AE_ALREADY_EXISTS
Mar 18 10:15:04 riri kernel: ACPI: Marking method _OSC as Serialized
Mar 18 10:15:04 riri kernel: ACPI Error (psparse-0537): Method parse/execution
failed [\_PR_.CPU2._PDC] (Node ffff81000424ca30), AE_ALREADY_EXISTS
Mar 18 10:15:04 riri kernel: ACPI: Marking method _PDC as Serialized
Mar 18 10:15:04 riri kernel: ACPI: Processor [CPU2] (supports 8 throttling
states)
Mar 18 10:15:04 riri kernel: Real Time Clock Driver v1.12ac
Mar 18 10:15:04 riri kernel: Non-volatile memory driver v1.2
Mar 18 10:15:04 riri kernel: iTCO_wdt: Intel TCO WatchDog Timer Driver v1.01
(21-Jan-2007)
Mar 18 10:15:04 riri kernel: iTCO_wdt: Found a ICH7 or ICH7R TCO device
(Version=2, TCOBASE=0x0860)
Mar 18 10:15:04 riri kernel: iTCO_wdt: initialized. heartbeat=30 sec
(nowayout=0)
Mar 18 10:15:04 riri kernel: iTCO_vendor_support: vendor-support=0
Mar 18 10:15:04 riri kernel: Linux agpgart interface v0.102 (c) Dave Jones
Mar 18 10:15:04 riri kernel: [drm] Initialized drm 1.1.0 20060810
Mar 18 10:15:04 riri kernel: Hangcheck: starting hangcheck timer 0.9.0 (tick
is 180 seconds, margin is 60 seconds).
Mar 18 10:15:04 riri kernel: Hangcheck: Using get_cycles().
Mar 18 10:15:04 riri kernel: Serial: 8250/16550 driver $Revision: 1.90 $ 4
ports, IRQ sharing disabled
Mar 18 10:15:04 riri kernel: serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a
16550A
Mar 18 10:15:04 riri kernel: 00:0d: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Mar 18 10:15:04 riri kernel: Floppy drive(s): fd0 is 1.44M
Mar 18 10:15:04 riri kernel: FDC 0 is a post-1991 82077
Mar 18 10:15:04 riri kernel: RAMDISK driver initialized: 16 RAM disks of
65536K size 1024 blocksize
Mar 18 10:15:04 riri kernel: loop: loaded (max 8 devices)
Mar 18 10:15:04 riri kernel: nbd: registered device at major 43
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 19
(level, low) -> IRQ 19
Mar 18 10:15:04 riri kernel: sky2 0000:04:00.0: v1.13 addr 0xff8fc000 irq 19
Yukon-EC (0xb6) rev 2
Mar 18 10:15:04 riri kernel: sky2 eth0: addr 00:18:f3:e0:5d:d4
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16
(level, low) -> IRQ 16
Mar 18 10:15:04 riri kernel: sky2 0000:03:00.0: v1.13 addr 0xff7fc000 irq 16
Yukon-EC (0xb6) rev 2
Mar 18 10:15:04 riri kernel: sky2 eth1: addr 00:18:f3:e0:36:fd
Mar 18 10:15:04 riri kernel: PPP generic driver version 2.4.2
Mar 18 10:15:04 riri kernel: PPP Deflate Compression module registered
Mar 18 10:15:04 riri kernel: PPP BSD Compression module registered
Mar 18 10:15:04 riri kernel: PPP MPPE Compression module registered
Mar 18 10:15:04 riri kernel: Equalizer2002: Simon Janes ([email protected]) and
David S. Miller ([email protected])
Mar 18 10:15:04 riri kernel: tun: Universal TUN/TAP device driver, 1.6
Mar 18 10:15:04 riri kernel: tun: (C) 1999-2004 Max Krasnyansky
<[email protected]>
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 23
(level, low) -> IRQ 23
Mar 18 10:15:04 riri kernel: ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4
ports 3 Gbps 0xf impl SATA mode
Mar 18 10:15:04 riri kernel: ahci 0000:00:1f.2: flags: 64bit ncq led clo pio
slum part 
Mar 18 10:15:04 riri kernel: ata1: SATA max UDMA/133 cmd 0xffffc2000008e900
ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
Mar 18 10:15:04 riri kernel: ata2: SATA max UDMA/133 cmd 0xffffc2000008e980
ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
Mar 18 10:15:04 riri kernel: ata3: SATA max UDMA/133 cmd 0xffffc2000008ea00
ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
Mar 18 10:15:04 riri kernel: ata4: SATA max UDMA/133 cmd 0xffffc2000008ea80
ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
Mar 18 10:15:04 riri kernel: scsi0 : ahci
Mar 18 10:15:04 riri kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl
300)
Mar 18 10:15:04 riri kernel: ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max
UDMA/133
Mar 18 10:15:04 riri kernel: ata1.00: 490234752 sectors, multi 0: LBA48 NCQ
(depth 31/32)
Mar 18 10:15:04 riri kernel: ata1.00: configured for UDMA/133
Mar 18 10:15:04 riri kernel: scsi1 : ahci
Mar 18 10:15:04 riri kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl
300)
Mar 18 10:15:04 riri kernel: ata2.00: qc timeout (cmd 0xec)
Mar 18 10:15:04 riri kernel: ata2.00: failed to IDENTIFY (I/O error,
err_mask=0x104)
Mar 18 10:15:04 riri kernel: ata2: port is slow to respond, please be patient
(Status 0x80)
Mar 18 10:15:04 riri kernel: ata2: hardreset failed, retrying in 5 secs
Mar 18 10:15:04 riri kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl
300)
Mar 18 10:15:04 riri kernel: ata2.00: ATA-6: Config  Disk, RGL10364, max
UDMA/133
Mar 18 10:15:04 riri kernel: ata2.00: 640 sectors, multi 1: LBA 
Mar 18 10:15:04 riri kernel: ata2.00: configured for UDMA/133
Mar 18 10:15:04 riri kernel: scsi2 : ahci
Mar 18 10:15:04 riri kernel: ata3: SATA link up 1.5 Gbps (SStatus 113 SControl
300)
Mar 18 10:15:04 riri kernel: ata3.00: ATA-7: Maxtor 6L250S0, BANC1G10, max
UDMA/133
Mar 18 10:15:04 riri kernel: ata3.00: 490234752 sectors, multi 0: LBA48 NCQ
(depth 31/32)
Mar 18 10:15:04 riri kernel: ata3.00: configured for UDMA/133
Mar 18 10:15:04 riri kernel: scsi3 : ahci
Mar 18 10:15:04 riri kernel: ata4: SATA link up 3.0 Gbps (SStatus 123 SControl
300)
Mar 18 10:15:04 riri kernel: ata4.00: ATA-7: ST3500641AS, 3.AAB, max UDMA/133
Mar 18 10:15:04 riri kernel: ata4.00: 976773168 sectors, multi 16: LBA48 NCQ
(depth 31/32)
Mar 18 10:15:04 riri kernel: ata4.00: configured for UDMA/133
Mar 18 10:15:04 riri kernel: scsi 0:0:0:0: Direct-Access     ATA      Maxtor
6L250S0   BANC PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: SCSI device sda: 490234752 512-byte hdwr sectors
(251000 MB)
Mar 18 10:15:04 riri kernel: sda: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sda: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel: SCSI device sda: 490234752 512-byte hdwr sectors
(251000 MB)
Mar 18 10:15:04 riri kernel: sda: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sda: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel:  sda: sda1 sda2 sda3
Mar 18 10:15:04 riri kernel: sd 0:0:0:0: Attached scsi disk sda
Mar 18 10:15:04 riri kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Mar 18 10:15:04 riri kernel: scsi 1:0:0:0: Direct-Access     ATA      Config
Disk     RGL1 PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: SCSI device sdb: 640 512-byte hdwr sectors (0 MB)
Mar 18 10:15:04 riri kernel: sdb: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sdb: write cache: disabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel: SCSI device sdb: 640 512-byte hdwr sectors (0 MB)
Mar 18 10:15:04 riri kernel: sdb: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sdb: write cache: disabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel:  sdb: unknown partition table
Mar 18 10:15:04 riri kernel: sd 1:0:0:0: Attached scsi disk sdb
Mar 18 10:15:04 riri kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Mar 18 10:15:04 riri kernel: scsi 2:0:0:0: Direct-Access     ATA      Maxtor
6L250S0   BANC PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: SCSI device sdc: 490234752 512-byte hdwr sectors
(251000 MB)
Mar 18 10:15:04 riri kernel: sdc: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sdc: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel: SCSI device sdc: 490234752 512-byte hdwr sectors
(251000 MB)
Mar 18 10:15:04 riri kernel: sdc: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sdc: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel:  sdc: sdc1 sdc2
Mar 18 10:15:04 riri kernel: sd 2:0:0:0: Attached scsi disk sdc
Mar 18 10:15:04 riri kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0
Mar 18 10:15:04 riri kernel: scsi 3:0:0:0: Direct-Access     ATA
ST3500641AS      3.AA PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: SCSI device sdd: 976773168 512-byte hdwr sectors
(500108 MB)
Mar 18 10:15:04 riri kernel: sdd: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sdd: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel: SCSI device sdd: 976773168 512-byte hdwr sectors
(500108 MB)
Mar 18 10:15:04 riri kernel: sdd: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sdd: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel:  sdd: sdd1 sdd2 sdd3
Mar 18 10:15:04 riri kernel: sd 3:0:0:0: Attached scsi disk sdd
Mar 18 10:15:04 riri kernel: sd 3:0:0:0: Attached scsi generic sg3 type 0
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17
(level, low) -> IRQ 17
Mar 18 10:15:04 riri kernel: ahci 0000:02:00.0: AHCI 0001.0000 32 slots 2
ports 3 Gbps 0x3 impl SATA mode
Mar 18 10:15:04 riri kernel: ahci 0000:02:00.0: flags: 64bit ncq pm led clo
pmp pio slum part 
Mar 18 10:15:04 riri kernel: ata5: SATA max UDMA/133 cmd 0xffffc20000098100
ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 17
Mar 18 10:15:04 riri kernel: ata6: SATA max UDMA/133 cmd 0xffffc20000098180
ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 17
Mar 18 10:15:04 riri kernel: scsi4 : ahci
Mar 18 10:15:04 riri kernel: ata5: SATA link down (SStatus 0 SControl 300)
Mar 18 10:15:04 riri kernel: scsi5 : ahci
Mar 18 10:15:04 riri kernel: ata6: SATA link down (SStatus 0 SControl 300)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 22
(level, low) -> IRQ 22
Mar 18 10:15:04 riri kernel: ata7: PATA max UDMA/133 cmd 0x00000000000101f0
ctl 0x00000000000103f6 bmdma 0x000000000001ffa0 irq 14
Mar 18 10:15:04 riri kernel: ata8: PATA max UDMA/133 cmd 0x0000000000010170
ctl 0x0000000000010376 bmdma 0x000000000001ffa8 irq 15
Mar 18 10:15:04 riri kernel: scsi6 : ata_piix
Mar 18 10:15:04 riri kernel: ata7.00: ATA-7: Maxtor 6L200P0, BAH41E00, max
UDMA/133
Mar 18 10:15:04 riri kernel: ata7.00: 398297088 sectors, multi 16: LBA48 
Mar 18 10:15:04 riri kernel: ata7.01: ATAPI, max UDMA/33
Mar 18 10:15:04 riri kernel: ata7.00: configured for UDMA/33
Mar 18 10:15:04 riri kernel: ata7.01: configured for UDMA/33
Mar 18 10:15:04 riri kernel: scsi7 : ata_piix
Mar 18 10:15:04 riri kernel: ATA: abnormal status 0x7F on port
0x0000000000010177
Mar 18 10:15:04 riri kernel: scsi 6:0:0:0: Direct-Access     ATA      Maxtor
6L200P0   BAH4 PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: SCSI device sde: 398297088 512-byte hdwr sectors
(203928 MB)
Mar 18 10:15:04 riri kernel: sde: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sde: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel: SCSI device sde: 398297088 512-byte hdwr sectors
(203928 MB)
Mar 18 10:15:04 riri kernel: sde: Write Protect is off
Mar 18 10:15:04 riri kernel: SCSI device sde: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:15:04 riri kernel:  sde: sde1 sde2 sde3 sde4 < sde5 sde6 >
Mar 18 10:15:04 riri kernel: sd 6:0:0:0: Attached scsi disk sde
Mar 18 10:15:04 riri kernel: sd 6:0:0:0: Attached scsi generic sg4 type 0
Mar 18 10:15:04 riri kernel: scsi 6:0:1:0: CD-ROM            ASUS
CRW-5232A3       1.00 PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: sr0: scsi3-mmc drive: 52x/52x writer cd/rw
xa/form2 cdda tray
Mar 18 10:15:04 riri kernel: Uniform CD-ROM driver Revision: 3.20
Mar 18 10:15:04 riri kernel: sr 6:0:1:0: Attached scsi generic sg5 type 5
Mar 18 10:15:04 riri kernel: PCI: Enabling device 0000:02:00.1 (0000 -> 0001)
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:02:00.1[B] -> GSI 16
(level, low) -> IRQ 16
Mar 18 10:15:04 riri kernel: ata9: PATA max UDMA/100 cmd 0x0000000000019c00
ctl 0x0000000000019882 bmdma 0x0000000000019400 irq 16
Mar 18 10:15:04 riri kernel: ata10: PATA max UDMA/100 cmd 0x0000000000019800
ctl 0x0000000000019482 bmdma 0x0000000000019408 irq 16
Mar 18 10:15:04 riri kernel: scsi8 : pata_jmicron
Mar 18 10:15:04 riri kernel: ata9.00: ATAPI, max UDMA/66
Mar 18 10:15:04 riri kernel: ata9.00: configured for UDMA/66
Mar 18 10:15:04 riri kernel: scsi9 : pata_jmicron
Mar 18 10:15:04 riri kernel: ATA: abnormal status 0x7F on port
0x0000000000019807
Mar 18 10:15:04 riri kernel: scsi 8:0:0:0: CD-ROM            ASUS
DRW-1608P        1.40 PQ: 0 ANSI: 5
Mar 18 10:15:04 riri kernel: sr1: scsi3-mmc drive: 40x/40x writer cd/rw
xa/form2 cdda tray
Mar 18 10:15:04 riri kernel: sr 8:0:0:0: Attached scsi generic sg6 type 5
Mar 18 10:15:04 riri kernel: video1394: Installed video1394 module
Mar 18 10:15:04 riri kernel: ieee1394: raw1394: /dev/raw1394 device
initialized
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 20
(level, low) -> IRQ 20
Mar 18 10:15:04 riri kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller
Mar 18 10:15:04 riri kernel: ehci_hcd 0000:00:1d.7: new USB bus registered,
assigned bus number 1
Mar 18 10:15:04 riri kernel: ehci_hcd 0000:00:1d.7: debug port 1
Mar 18 10:15:04 riri kernel: ehci_hcd 0000:00:1d.7: irq 20, io mem 0xffafbc00
Mar 18 10:15:04 riri kernel: ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI
1.00, driver 10 Dec 2004
Mar 18 10:15:04 riri kernel: usb usb1: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: hub 1-0:1.0: USB hub found
Mar 18 10:15:04 riri kernel: hub 1-0:1.0: 8 ports detected
Mar 18 10:15:04 riri kernel: USB Universal Host Controller Interface driver
v3.0
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 20
(level, low) -> IRQ 20
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.0: new USB bus registered,
assigned bus number 2
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.0: irq 20, io base 0x0000e480
Mar 18 10:15:04 riri kernel: usb usb2: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: hub 2-0:1.0: USB hub found
Mar 18 10:15:04 riri kernel: hub 2-0:1.0: 2 ports detected
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 17
(level, low) -> IRQ 17
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.1: new USB bus registered,
assigned bus number 3
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.1: irq 17, io base 0x0000e800
Mar 18 10:15:04 riri kernel: usb usb3: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: hub 3-0:1.0: USB hub found
Mar 18 10:15:04 riri kernel: hub 3-0:1.0: 2 ports detected
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18
(level, low) -> IRQ 18
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.2: new USB bus registered,
assigned bus number 4
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000e880
Mar 18 10:15:04 riri kernel: usb usb4: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: hub 4-0:1.0: USB hub found
Mar 18 10:15:04 riri kernel: hub 4-0:1.0: 2 ports detected
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 19
(level, low) -> IRQ 19
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.3: new USB bus registered,
assigned bus number 5
Mar 18 10:15:04 riri kernel: uhci_hcd 0000:00:1d.3: irq 19, io base 0x0000ec00
Mar 18 10:15:04 riri kernel: usb usb5: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: hub 5-0:1.0: USB hub found
Mar 18 10:15:04 riri kernel: hub 5-0:1.0: 2 ports detected
Mar 18 10:15:04 riri kernel: usb 1-7: new high speed USB device using ehci_hcd
and address 3
Mar 18 10:15:04 riri kernel: usb 1-7: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: hub 1-7:1.0: USB hub found
Mar 18 10:15:04 riri kernel: hub 1-7:1.0: 4 ports detected
Mar 18 10:15:04 riri kernel: usb 2-2: new full speed USB device using uhci_hcd
and address 2
Mar 18 10:15:04 riri kernel: usb 2-2: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: usb 1-7.3: new high speed USB device using
ehci_hcd and address 4
Mar 18 10:15:04 riri kernel: usb 1-7.3: configuration #1 chosen from 1 choice
Mar 18 10:15:04 riri kernel: usbcore: registered new interface driver usblp
Mar 18 10:15:04 riri kernel: drivers/usb/class/usblp.c: v0.13: USB Printer
Device Class driver
Mar 18 10:15:04 riri kernel: Initializing USB Mass Storage driver...
Mar 18 10:15:04 riri kernel: usbcore: registered new interface driver
usb-storage
Mar 18 10:15:04 riri kernel: USB Mass Storage support registered.
Mar 18 10:15:04 riri kernel: usbcore: registered new interface driver hiddev
Mar 18 10:15:04 riri kernel: usbcore: registered new interface driver usbhid
Mar 18 10:15:04 riri kernel: drivers/usb/input/hid-core.c: v2.6:USB HID core
driver
Mar 18 10:15:04 riri kernel: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M]
at 0x60,0x64 irq 1,12
Mar 18 10:15:04 riri kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Mar 18 10:15:04 riri kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
Mar 18 10:15:04 riri kernel: mice: PS/2 mouse device common for all mice
Mar 18 10:15:04 riri kernel: input: AT Translated Set 2 keyboard as
/class/input/input2
Mar 18 10:15:04 riri kernel: input: PC Speaker as /class/input/input3
Mar 18 10:15:04 riri kernel: input: ImExPS/2 Logitech MX Mouse as
/class/input/input4
Mar 18 10:15:04 riri kernel: I2O subsystem v1.325
Mar 18 10:15:04 riri kernel: i2o: max drivers = 8
Mar 18 10:15:04 riri kernel: I2O Configuration OSM v1.323
Mar 18 10:15:04 riri kernel: I2O Bus Adapter OSM v1.317
Mar 18 10:15:04 riri kernel: I2O Block Device OSM v1.325
Mar 18 10:15:04 riri kernel: I2O ProcFS OSM v1.316
Mar 18 10:15:04 riri kernel: i2c /dev entries driver
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 23
(level, low) -> IRQ 23
Mar 18 10:15:04 riri kernel: md: linear personality registered for level -1
Mar 18 10:15:04 riri kernel: md: raid0 personality registered for level 0
Mar 18 10:15:04 riri kernel: md: raid1 personality registered for level 1
Mar 18 10:15:04 riri kernel: Advanced Linux Sound Architecture Driver Version
1.0.14rc3 (Tue Mar 06 13:10:00 2007 UTC).
Mar 18 10:15:04 riri kernel: ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 19
(level, low) -> IRQ 19
Mar 18 10:15:04 riri kernel: ALSA device list:
Mar 18 10:15:04 riri kernel:   #0: HDA Intel at 0xffafc000 irq 19
Mar 18 10:15:04 riri kernel: netem: version 1.2
Mar 18 10:15:04 riri kernel: u32 classifier
Mar 18 10:15:04 riri kernel:     Performance counters on
Mar 18 10:15:04 riri kernel:     OLD policer on 
Mar 18 10:15:04 riri kernel: Netfilter messages via NETLINK v0.30.
Mar 18 10:15:04 riri kernel: IPv4 over IPv4 tunneling driver
Mar 18 10:15:04 riri kernel: GRE over IPv4 tunneling driver
Mar 18 10:15:04 riri kernel: TCP cubic registered
Mar 18 10:15:04 riri kernel: Initializing XFRM netlink socket
Mar 18 10:15:04 riri kernel: NET: Registered protocol family 1
Mar 18 10:15:04 riri kernel: NET: Registered protocol family 10
Mar 18 10:15:04 riri kernel: lo: Disabled Privacy Extensions
Mar 18 10:15:04 riri kernel: IPv6: add_dev failed for eql
Mar 18 10:15:04 riri kernel: tunl0: Disabled Privacy Extensions
Mar 18 10:15:04 riri kernel: IPv6 over IPv4 tunneling driver
Mar 18 10:15:04 riri kernel: sit0: Disabled Privacy Extensions
Mar 18 10:15:04 riri kernel: NET: Registered protocol family 17
Mar 18 10:15:04 riri kernel: NET: Registered protocol family 15
Mar 18 10:15:04 riri kernel: 802.1Q VLAN Support v1.8 Ben Greear
<[email protected]>
Mar 18 10:15:04 riri kernel: All bugs added by David S. Miller
<[email protected]>
Mar 18 10:15:04 riri kernel: ieee80211: 802.11 data/management/control stack,
git-1.1.13
Mar 18 10:15:04 riri kernel: ieee80211: Copyright (C) 2004-2005 Intel
Corporation <[email protected]>
Mar 18 10:15:04 riri kernel: drivers/rtc/hctosys.c: unable to open rtc device
(rtc0)
Mar 18 10:15:04 riri kernel: md: Autodetecting RAID arrays.
Mar 18 10:15:04 riri kernel: md: autorun ...
Mar 18 10:15:04 riri kernel: md: ... autorun DONE.
Mar 18 10:15:04 riri kernel: kjournald starting.  Commit interval 5 seconds
Mar 18 10:15:04 riri kernel: EXT3-fs: mounted filesystem with ordered data
mode.
Mar 18 10:15:04 riri kernel: VFS: Mounted root (ext3 filesystem) readonly.
Mar 18 10:15:04 riri kernel: Freeing unused kernel memory: 296k freed
Mar 18 10:15:04 riri kernel: EXT3 FS on sde1, internal journal
Mar 18 10:15:04 riri kernel: sky2 eth0: enabling interface
Mar 18 10:15:04 riri kernel: sky2 eth0: ram buffer 48K
Mar 18 10:15:04 riri kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Mar 18 10:15:04 riri kernel: sky2 eth0: Link is up at 100 Mbps, full duplex,
flow control both
Mar 18 10:15:04 riri kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Mar 18 10:15:04 riri kernel: kjournald starting.  Commit interval 5 seconds
Mar 18 10:15:04 riri kernel: EXT3 FS on sde6, internal journal
Mar 18 10:15:04 riri kernel: EXT3-fs: mounted filesystem with ordered data
mode.
Mar 18 10:15:04 riri kernel: kjournald starting.  Commit interval 5 seconds
Mar 18 10:15:04 riri kernel: EXT3 FS on sde3, internal journal
Mar 18 10:15:04 riri kernel: EXT3-fs: mounted filesystem with ordered data
mode.
Mar 18 10:15:04 riri kernel: Adding 2096436k swap on /dev/sde5.  Priority:-1
extents:1 across:2096436k
Mar 18 10:15:04 riri kernel: Adding 4192956k swap on /dev/sda3.  Priority:-2
extents:1 across:4192956k
Mar 18 10:15:04 riri kernel: ttyS1: LSR safety check engaged!
Mar 18 10:15:04 riri kernel: ttyS1: LSR safety check engaged!
Mar 18 10:15:04 riri hpiod: 0.9.7 accepting connections at 39909... 
Mar 18 10:15:06 riri kernel: ttyS1: LSR safety check engaged!
Mar 18 10:15:37 riri kernel: kjournald starting.  Commit interval 5 seconds
Mar 18 10:15:37 riri kernel: EXT3 FS on sda2, internal journal
Mar 18 10:15:37 riri kernel: EXT3-fs: mounted filesystem with ordered data
mode.
Mar 18 10:23:10 riri exiting on signal 15
Mar 18 10:23:11 riri syslogd 1.4.1#17ubuntu7: restart.
Mar 18 10:23:26 riri kernel:          res 40/00:58:53:6e:31/00:00:0d:00:00/40
Emask 0x2 (HSM violation)
Mar 18 10:23:31 riri last message repeated 28 times
Mar 18 10:23:31 riri kernel: ata1: soft resetting port
Mar 18 10:23:32 riri kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl
300)
Mar 18 10:23:32 riri kernel: ata1.00: configured for UDMA/133
Mar 18 10:23:32 riri kernel: ata1: EH complete
Mar 18 10:23:32 riri kernel: SCSI device sda: 490234752 512-byte hdwr sectors
(251000 MB)
Mar 18 10:23:32 riri kernel: sda: Write Protect is off
Mar 18 10:23:32 riri kernel: SCSI device sda: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:25:07 riri kernel:          res 40/00:d8:db:b0:2e/00:00:0d:00:00/40
Emask 0x2 (HSM violation)
Mar 18 10:25:11 riri last message repeated 26 times
Mar 18 10:25:12 riri kernel: ata1: soft resetting port
Mar 18 10:25:12 riri kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl
300)
Mar 18 10:25:12 riri kernel: ata1.00: configured for UDMA/133
Mar 18 10:25:12 riri kernel: ata1: EH complete
Mar 18 10:25:12 riri kernel: SCSI device sda: 490234752 512-byte hdwr sectors
(251000 MB)
Mar 18 10:25:12 riri kernel: sda: Write Protect is off
Mar 18 10:25:12 riri kernel: SCSI device sda: write cache: enabled, read
cache: enabled, doesn't support DPO or FUA
Mar 18 10:25:13 riri exiting on signal 15
Mar 18 10:25:14 riri syslogd 1.4.1#17ubuntu7: restart.
Mar 18 10:32:42 riri kernel:          res 40/00:c0:7b:6a:2a/00:00:0d:00:00/40
Em
ask 0x2 (HSM violation)
Mar 18 10:32:46 riri last message repeated 26 times
Mar 18 10:32:46 riri kernel: ata1: soft resetting port
Mar 18 10:32:47 riri kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl
3
00)
Mar 18 10:32:47 riri kernel: ata1.00: configured for UDMA/133
Mar 18 10:32:47 riri kernel: ata1: EH complete
Mar 18 10:32:47 riri kernel: SCSI device sda: 490234752 512-byte hdwr sectors
(2
51000 MB)
Mar 18 10:32:47 riri kernel: sda: Write Protect is off
Mar 18 10:32:47 riri kernel: SCSI device sda: write cache: enabled, read
cache:
enabled, doesn't support DPO or FUA
Mar 18 10:32:47 riri kernel: ata1.00: NCQ disabled due to excessive errors
Mar 18 10:32:47 riri kernel:          res 40/00:b8:63:0d:2d/00:00:0d:00:00/40
Em
ask 0x2 (HSM violation)
Mar 18 10:32:52 riri last message repeated 26 times
Mar 18 10:32:52 riri kernel: ata1: soft resetting port
Mar 18 10:32:52 riri kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl
3
00)
Mar 18 10:32:52 riri kernel: ata1.00: configured for UDMA/133
Mar 18 10:32:52 riri kernel: ata1: EH complete
Mar 18 10:32:52 riri kernel: SCSI device sda: 490234752 512-byte hdwr sectors
(2
51000 MB)
Mar 18 10:32:52 riri kernel: sda: Write Protect is off
Mar 18 10:32:53 riri kernel: SCSI device sda: write cache: enabled, read
cache:
enabled, doesn't support DPO or FUA
Mar 18 10:45:14 riri -- MARK --

Is this what you were expecting ?
Regards,
Paul

#31 lore raw
Quoted 22 lines · Paul Rolland

Hello,

Quoted 2 lines

Can you put the harddisk under high load and see what happens? How often do those errors occur? Care to post full dmesg?

I started again a stock 2.6.21-rc4, and ran that :
while (/bin/true); do tar jxf linux-2.6.19.1.tar.bz2; rm -rf linux-2.6.19.1; echo -n "."; done

After several minutes (I waited more than 300 loops to be completed), and a lot of errors, I finally managed to see :

Mar 18 10:32:47 riri kernel: ata1.00: NCQ disabled due to excessive errors
Mar 18 10:23:26 riri kernel:          res 40/00:58:53:6e:31/00:00:0d:00:00/40
Emask 0x2 (HSM violation)
Mar 18 10:25:07 riri kernel:          res 40/00:d8:db:b0:2e/00:00:0d:00:00/40
Emask 0x2 (HSM violation)
Mar 18 10:32:42 riri kernel:          res 40/00:c0:7b:6a:2a/00:00:0d:00:00/40
Em
ask 0x2 (HSM violation)
Mar 18 10:32:47 riri kernel: ata1.00: NCQ disabled due to excessive errors
Mar 18 10:32:47 riri kernel:          res 40/00:b8:63:0d:2d/00:00:0d:00:00/40
Quoted 4 lines

Em
ask 0x2 (HSM violation)

Is this what you were expecting ?

Yeap, more than three HSM violations in ten minutes. That's the criteria for turning off NCQ. Good to see it working. It look like a lot because libata reports all active commands (can't help as on HSM failure, there's no way to determine which caused it) and the SCSI prints revalidation messages, but it's still only three errors.

Thanks for verifying that. I wanted to verify it works in the field as expected.

Signature · 1 line
tejun
#32 lore raw

Hello,

Quoted 8 lines

Yeap, more than three HSM violations in ten minutes. That's the criteria for turning off NCQ. Good to see it working. It look like a lot because libata reports all active commands (can't help as on HSM failure, there's no way to determine which caused it) and the SCSI prints revalidation messages, but it's still only three errors.

Thanks for verifying that. I wanted to verify it works in the field as expected.

Glad to help !

Anyhow, how should I consider these "errors" ? Are they real failure that can affect data integrity on the disk, or some kind of "protocol" errors with the disk, that are covered by soft (retry or so), and don't affect data ?

Regards,
Paul

#33 lore raw
Quoted 11 lines · Paul Rolland

Hello,

Quoted 8 lines

Yeap, more than three HSM violations in ten minutes. That's the criteria for turning off NCQ. Good to see it working. It look like a lot because libata reports all active commands (can't help as on HSM failure, there's no way to determine which caused it) and the SCSI prints revalidation messages, but it's still only three errors.

Thanks for verifying that. I wanted to verify it works in the field as expected.

Quoted 6 lines

Glad to help !

Anyhow, how should I consider these "errors" ? Are they real failure that can affect data integrity on the disk, or some kind of "protocol" errors with the disk, that are covered by soft (retry or so), and don't affect data ?

This is NCQ protocol violation on the drive's side shown on some early drives. No need to worry too much about it. The drive will just get blacklisted for NCQ and should work fine.

Signature · 1 line
tejun
#34 lore raw

Hi,

Quoted 4 lines

This is NCQ protocol violation on the drive's side shown on some early drives. No need to worry too much about it. The drive will just get blacklisted for NCQ and should work fine.

Thx.

Also, remember one of the problem I have, with ata2 going to timeout because this port of the ICH7 is connected to a PMT ?
You suggested me to connect a disk to one of the SATA port of the PMT, and reboot the machine to see if the timeout would vanish... I've just done it, and here is the relevant part of the boot log :

....
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 23 (level, low) -> IRQ 23 ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xffffc2000008e900 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata2: SATA max UDMA/133 cmd 0xffffc2000008e980 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata3: SATA max UDMA/133 cmd 0xffffc2000008ea00 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata4: SATA max UDMA/133 cmd 0xffffc2000008ea80 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
scsi0 : ahci
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133
ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (not used) ata1.00: configured for UDMA/133
scsi1 : ahci
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-6: External Disk 0, RGL10364, max UDMA/133
ata2.00: 1 sectors, multi 1: LBA48
ata2.00: configured for UDMA/133
scsi2 : ahci
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133
ata3.00: 490234752 sectors, multi 0: LBA48 NCQ (not used) ata3.00: configured for UDMA/133
scsi3 : ahci
ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata4.00: ATA-7: ST3500641AS, 3.AAB, max UDMA/133
ata4.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) ata4.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: Direct-Access ATA External Disk 0 RGL1 PQ: 0 ANSI: 5
SCSI device sdb: 1 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdb: 1 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: unknown partition table
sd 1:0:0:0: Attached scsi disk sdb
sd 1:0:0:0: Attached scsi generic sg1 type 0
scsi 2:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sdc: 490234752 512-byte hdwr sectors (251000 MB)
sdc: Write Protect is off
SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdc: 490234752 512-byte hdwr sectors (251000 MB)
sdc: Write Protect is off
SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc: sdc1 sdc2
sd 2:0:0:0: Attached scsi disk sdc
sd 2:0:0:0: Attached scsi generic sg2 type 0
scsi 3:0:0:0: Direct-Access ATA ST3500641AS 3.AA PQ: 0 ANSI: 5
SCSI device sdd: 976773168 512-byte hdwr sectors (500108 MB)
sdd: Write Protect is off
SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdd: 976773168 512-byte hdwr sectors (500108 MB)
sdd: Write Protect is off
SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdd: sdd1 sdd2 sdd3
sd 3:0:0:0: Attached scsi disk sdd
sd 3:0:0:0: Attached scsi generic sg3 type 0
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17 (level, low) -> IRQ 17 ahci 0000:02:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode ahci 0000:02:00.0: flags: 64bit ncq pm led clo pmp pio slum part
...

The good news is that there is no more timeout, which is excellent ! The bad news is that the disk is not detected... but maybe I should do something in the BIOS configuration. I'll try to have a look at this, because connecting a disk to avoid TO without being able to use it is not that good ;)

Regards,
Paul

#35 lore raw

Doh ! Got that :

....
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 23 (level, low) -> IRQ 23 ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xffffc2000008e900 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata2: SATA max UDMA/133 cmd 0xffffc2000008e980 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata3: SATA max UDMA/133 cmd 0xffffc2000008ea00 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata4: SATA max UDMA/133 cmd 0xffffc2000008ea80 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
scsi0 : ahci
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133
ata1.00: 490234752 sectors, multi 0: LBA48 NCQ (not used) ata1.00: configured for UDMA/133
scsi1 : ahci
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-6: External Disk 0, RGL10364, max UDMA/133
ata2.00: 1 sectors, multi 1: LBA48
ata2.00: configured for UDMA/133
scsi2 : ahci
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3.00: ATA-7: Maxtor 6L250S0, BANC1G10, max UDMA/133
ata3.00: 490234752 sectors, multi 0: LBA48 NCQ (not used) ata3.00: configured for UDMA/133
scsi3 : ahci
ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata4.00: ATA-7: ST3500641AS, 3.AAB, max UDMA/133
ata4.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) ata4.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: Write Protect is off
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: Direct-Access ATA External Disk 0 RGL1 PQ: 0 ANSI: 5
SCSI device sdb: 1 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdb: 1 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb:<3>irq 504: nobody cared (try booting with the "irqpoll" option)

Call Trace:
 <IRQ>  [<ffffffff802b0245>] __report_bad_irq+0x35/0x90
 [<ffffffff802b04ba>] note_interrupt+0x21a/0x270
 [<ffffffff802b128f>] handle_edge_irq+0x10f/0x150
 [<ffffffff8026f3eb>] do_IRQ+0x7b/0xf0
 [<ffffffff80259e70>] mwait_idle+0x0/0x50
 [<ffffffff802612d1>] ret_from_intr+0x0/0xa
 <EOI>  [<ffffffff8042bff0>] vgacon_cursor+0x0/0x1d0
 [<ffffffff80259eb6>] mwait_idle+0x46/0x50
 [<ffffffff8024aebc>] cpu_idle+0x5c/0xa0
 [<ffffffff808b984a>] start_kernel+0x2aa/0x2c0
 [<ffffffff808b9176>] _sinittext+0x176/0x180

handlers:
[<ffffffff804e1c90>] (ahci_interrupt+0x0/0x590) Disabling IRQ #504
unknown partition table
sd 1:0:0:0: Attached scsi disk sdb
sd 1:0:0:0: Attached scsi generic sg1 type 0
scsi 2:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sdc: 490234752 512-byte hdwr sectors (251000 MB)
sdc: Write Protect is off

and though it said :
sdb:<3>irq 504: nobody cared (try booting with the "irqpoll" option)
I _am_ booting with the irqpoll option !

Paul

#36 lore raw
Quoted 18 lines · Paul Rolland

Doh ! Got that :

....
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 23 (level, low) -> IRQ 23 ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xffffc2000008e900 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata2: SATA max UDMA/133 cmd 0xffffc2000008e980 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata3: SATA max UDMA/133 cmd 0xffffc2000008ea00 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata4: SATA max UDMA/133 cmd 0xffffc2000008ea80 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 504
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-6: External Disk 0, RGL10364, max UDMA/133
ata2.00: 1 sectors, multi 1: LBA48
ata2.00: configured for UDMA/133

[--snip--]

Quoted 35 lines

scsi 1:0:0:0: Direct-Access ATA External Disk 0 RGL1 PQ: 0 ANSI: 5
SCSI device sdb: 1 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdb: 1 512-byte hdwr sectors (0 MB)
sdb: Write Protect is off
SCSI device sdb: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb:<3>irq 504: nobody cared (try booting with the "irqpoll" option)

Call Trace:
 <IRQ>  [<ffffffff802b0245>] __report_bad_irq+0x35/0x90
 [<ffffffff802b04ba>] note_interrupt+0x21a/0x270
 [<ffffffff802b128f>] handle_edge_irq+0x10f/0x150
 [<ffffffff8026f3eb>] do_IRQ+0x7b/0xf0
 [<ffffffff80259e70>] mwait_idle+0x0/0x50
 [<ffffffff802612d1>] ret_from_intr+0x0/0xa
 <EOI>  [<ffffffff8042bff0>] vgacon_cursor+0x0/0x1d0
 [<ffffffff80259eb6>] mwait_idle+0x46/0x50
 [<ffffffff8024aebc>] cpu_idle+0x5c/0xa0
 [<ffffffff808b984a>] start_kernel+0x2aa/0x2c0
 [<ffffffff808b9176>] _sinittext+0x176/0x180

handlers:
[<ffffffff804e1c90>] (ahci_interrupt+0x0/0x590) Disabling IRQ #504
unknown partition table
sd 1:0:0:0: Attached scsi disk sdb
sd 1:0:0:0: Attached scsi generic sg1 type 0
scsi 2:0:0:0: Direct-Access ATA Maxtor 6L250S0 BANC PQ: 0 ANSI: 5
SCSI device sdc: 490234752 512-byte hdwr sectors (251000 MB)
sdc: Write Protect is off

Quoted 3 lines

and though it said :
sdb:<3>irq 504: nobody cared (try booting with the "irqpoll" option)
I _am_ booting with the irqpoll option !

Oh... that's just weird. It seems you'll have to continue boot with the timeouts for the time being. Sorry about that.

Signature · 1 line
tejun
#37 lore raw
Quoted 3 lines

Oh... that's just weird. It seems you'll have to continue boot with the
timeouts for the time being. Sorry about that.

Would you agree to a patch to add a kernel boot parameter to skip some ata ports ?
I found some archives refering to some "ataX=noprobe", but it seems to have no effect, and I'd like to resurrect it for libata, at least to help me support my configuration ?
If no, I'll just cook it for me, without posting it...

Regards,
Paul

#38 lore raw
Quoted 9 lines · Paul Rolland
Quoted 2 lines

Oh... that's just weird. It seems you'll have to continue boot with the timeouts for the time being. Sorry about that.

Would you agree to a patch to add a kernel boot parameter to skip some ata ports ?
I found some archives refering to some "ataX=noprobe", but it seems to have no effect, and I'd like to resurrect it for libata, at least to help me support my configuration ?
If no, I'll just cook it for me, without posting it...

Why not cook it and share it? :-)

Signature · 1 line
tejun
#39 lore raw
In reply to Paul Rolland
Quoted 2 lines · Paul Rolland

Would you agree to a patch to add a kernel boot parameter to skip some ata ports ?

It should in theory not be neccessary

Quoted 4 lines

I found some archives refering to some "ataX=noprobe", but it seems to have no effect, and I'd like to resurrect it for libata, at least to help me support my configuration ?
If no, I'll just cook it for me, without posting it...

If you get it working please post patches - theory and practice rarely agree 8)

#40 lore raw
In reply to Linus Torvalds

Hello,

Quoted 2 lines

Ok, so that's just a message irritation, not actually bothersome otherwise?

It is somewhat painful, because delays involved are quite long, and it is not possible to explain the machine to "ignore" the port, and skip to the next one...

Quoted 7 lines
Quoted 1 line

The second problem is a Jmicron363 controler that is

failing to detect

Quoted 1 line

the DVD-RW that is connected, unless I use the irqpoll

option as Tejun has

Quoted 1 line

suggested.

.. and this one has never worked without irqpoll?

Exactly.

Quoted 2 lines

So it's the irq16 one that is the Jmicron controller and just isn't getting any interrupts?

It's IRQ 16 that is reported as affected to the Jmicron from the dmesg output, yes.

Quoted 6 lines

Since all the other interrupts work (and MSI worked for other controllers), I don't think it's interrupt-routing related. Especially as MSI shouldn't even care about things like that.

And since it all works when "irqpoll" is used, that implies that the *only* thing that is broken is literally irq delivery.

Surely, also if you add the using pci=nomsi doesn't change anything.

Quoted 2 lines

Gaah. Can you get a log through serial console or netconsole to see what changed?

I'll try to do that....

Regards,
Paul

#41 lore raw
In reply to Linus Torvalds
Quoted 11 lines
Quoted 2 lines

PS : I'd like to try 2.6.21-rc3, but it seems that this is

breaking my

Quoted 3 lines

config : disk naming is no more the same, and I end up with a panic
Warning: unable to open an initial console
though i've been compiling with the same .config I was

using for 2.6.21-rc2

Gaah. Can you get a log through serial console or netconsole to see what changed?

Sorry, I've had no time this week for that.
I've just switch to 2.6.21-rc4, and carefully restored config from 2.6.21-rc2, and boot is Ok...

So, I must have done something bad when building 2.6.21-rc3, sorry for the noise.

Regards,
Paul