2007/6/7, Tejun Heo <htejun@xxxxxxxxx>:
Ah.. okay. Now I see what's going on. Jeff, this is another device which doesn't set nsect and lbal to 1 after reset. Gregor, please try the attached patch.
It works like a charm. Thanks for debugging. Gregor [ 307.605884] ata_piix 0000:00:07.1: version 2.11 [ 307.606268] scsi0 : ata_piix [ 307.606728] scsi1 : ata_piix [ 307.607080] ata1: PATA max UDMA/33 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x00010860 irq 14 [ 307.607790] ata2: PATA max UDMA/33 cmd 0x00010170 ctl 0x00010376 bmdma 0x00010868 irq 15 [ 0.656666] Marking TSC unstable due to: possible TSC halt in C2. [ 0.659999] Time: acpi_pm clocksource has been installed. [ 0.659999] Switched to NOHz mode on CPU #0 [ 0.703333] ata1: ata_bus_post_reset: EXIT3 [ 0.709999] ata1.00: ata_hpa_resize 1: sectors = 78242976, hpa_sectors = 78242976 [ 0.723333] ata1.00: ATA-7: SAMSUNG MP0402H, UC100-14, max UDMA/100 [ 0.739999] ata1.00: 78242976 sectors, multi 8: LBA48 [ 0.763333] ata1.00: ata_hpa_resize 1: sectors = 78242976, hpa_sectors = 78242976 [ 0.776666] ata1.00: configured for UDMA/33 [ 0.799999] ata2: ata_bus_post_reset: EXIT3 [ 0.973333] ata2.00: ATAPI, max UDMA/33 [ 1.146666] ata2.00: configured for UDMA/33 [ 1.159999] scsi 0:0:0:0: Direct-Access ATA SAMSUNG MP0402H UC10 PQ: 0 ANSI: 5 [...] [ 1.326666] scsi 1:0:0:0: CD-ROM SAMSUNG CD-ROM SN-124 N102 PQ: 0 - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html