linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Boot fails on Intel SATA controller
@ 2007-07-31 14:00 Luiz Fernando N. Capitulino
  2007-08-01  6:06 ` Tejun Heo
  0 siblings, 1 reply; 10+ messages in thread
From: Luiz Fernando N. Capitulino @ 2007-07-31 14:00 UTC (permalink / raw)
  To: linux-ide; +Cc: kelk1


 Hi there,

 A Mandriva user is reporting that his machine hangs while booting
kernels 2.6.22.1 and 2.6.23-rc1.

 But boots fine with 2.6.21.

Here is the 2.6.22 boot log:

"""
SCSI subsystem initialized
Loading scsi_mod.ko module
Loading libata.ko module
ACPI: PCI Interrupt 0000:00:1f.2[C] -> Loading ahci.ko GSI 20 (level, low) ->
IRQ 18
module
input: ImPS/2 Logitech Wheel Mouse as /class/input/input1
ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 4 ports 1.5 Gbps 0xf impl IDE mode
ahci 0000:00:1f.2: flags: 64bit ncq pm led slum part
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
ata1: SATA max UDMA/133 cmd 0xf881ad00 ctl 0x00000000 bmdma 0x00000000 irq 18
ata2: SATA max UDMA/133 cmd 0xf881ad80 ctl 0x00000000 bmdma 0x00000000 irq 18
ata3: SATA max UDMA/133 cmd 0xf881ae00 ctl 0x00000000 bmdma 0x00000000 irq 18
ata4: SATA max UDMA/133 cmd 0xf881ae80 ctl 0x00000000 bmdma 0x00000000 irq 18
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: qc timeout (cmd 0x27)
ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)
ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133
ata1.00: 781422768 sectors, multi 8: LBA48
ata1.00: failed to set xfermode (err_mask=0x40)
ata1: failed to recover some devices, retrying in 5 secs
"""

 System is a Dell Dimension 8400 with SATA controller

"""
$ lspcidrake | grep IDE
piix            : Intel Corporation|82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE
Controller [STORAGE_IDE]
ahci            : Intel Corporation|82801FR/FRW (ICH6R/ICH6RW) SATA Controller
[STORAGE_IDE]
"""

 There's more info in the ticket:

http://qa.mandriva.com/show_bug.cgi?id=32076

-- 
Luiz Fernando N. Capitulino

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
  2007-07-31 14:00 Luiz Fernando N. Capitulino
@ 2007-08-01  6:06 ` Tejun Heo
  0 siblings, 0 replies; 10+ messages in thread
From: Tejun Heo @ 2007-08-01  6:06 UTC (permalink / raw)
  To: Luiz Fernando N. Capitulino; +Cc: linux-ide, kelk1

Hello,

Luiz Fernando N. Capitulino wrote:
>  Hi there,
> 
>  A Mandriva user is reporting that his machine hangs while booting
> kernels 2.6.22.1 and 2.6.23-rc1.
> 
>  But boots fine with 2.6.21.
> 
> Here is the 2.6.22 boot log:
> 
> """
> SCSI subsystem initialized
> Loading scsi_mod.ko module
> Loading libata.ko module
> ACPI: PCI Interrupt 0000:00:1f.2[C] -> Loading ahci.ko GSI 20 (level, low) ->
> IRQ 18
> module
> input: ImPS/2 Logitech Wheel Mouse as /class/input/input1
> ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 4 ports 1.5 Gbps 0xf impl IDE mode
> ahci 0000:00:1f.2: flags: 64bit ncq pm led slum part
> scsi0 : ahci
> scsi1 : ahci
> scsi2 : ahci
> scsi3 : ahci
> ata1: SATA max UDMA/133 cmd 0xf881ad00 ctl 0x00000000 bmdma 0x00000000 irq 18
> ata2: SATA max UDMA/133 cmd 0xf881ad80 ctl 0x00000000 bmdma 0x00000000 irq 18
> ata3: SATA max UDMA/133 cmd 0xf881ae00 ctl 0x00000000 bmdma 0x00000000 irq 18
> ata4: SATA max UDMA/133 cmd 0xf881ae80 ctl 0x00000000 bmdma 0x00000000 irq 18
> ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> ata1.00: qc timeout (cmd 0x27)
> ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)
> ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133
> ata1.00: 781422768 sectors, multi 8: LBA48
> ata1.00: failed to set xfermode (err_mask=0x40)
> ata1: failed to recover some devices, retrying in 5 secs

What happens after this?

-- 
tejun

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
@ 2007-08-01 14:18 Quel Qun
  2007-08-01 14:36 ` Tejun Heo
  0 siblings, 1 reply; 10+ messages in thread
From: Quel Qun @ 2007-08-01 14:18 UTC (permalink / raw)
  To: Tejun Heo, Luiz Fernando N. Capitulino; +Cc: linux-ide


 -------------- Original message ----------------------
From: Tejun Heo <htejun@gmail.com>
> Hello,
> 
> Luiz Fernando N. Capitulino wrote:
> >  Hi there,
> > 
> >  A Mandriva user is reporting that his machine hangs while booting
> > kernels 2.6.22.1 and 2.6.23-rc1.
> > 
> >  But boots fine with 2.6.21.
> > 
> > ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> > ata1.00: qc timeout (cmd 0x27)
> > ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)
> > ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133
> > ata1.00: 781422768 sectors, multi 8: LBA48
> > ata1.00: failed to set xfermode (err_mask=0x40)
> > ata1: failed to recover some devices, retrying in 5 secs
> 
> What happens after this?
> 
It basically retries a few times, then fails to boot. Here is a more complete log with 2.6.23-rc1:

ata1: SATA max UDMA/133 cmd 0xf881ad00 ctl 0x00000000 bmdma 0x00000000 irq 18^M
ata2: SATA max UDMA/133 cmd 0xf881ad80 ctl 0x00000000 bmdma 0x00000000 irq 18^M
ata3: SATA max UDMA/133 cmd 0xf881ae00 ctl 0x00000000 bmdma 0x00000000 irq 18^M
ata4: SATA max UDMA/133 cmd 0xf881ae80 ctl 0x00000000 bmdma 0x00000000 irq 18^M
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)^M
ata1.00: qc timeout (cmd 0x27)^M
ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)^M
ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133^M
ata1.00: 781422768 sectors, multi 8: LBA48 ^M
ata1.00: failed to set xfermode (err_mask=0x40)^M
ata1: failed to recover some devices, retrying in 5 secs^M
ata1: port is slow to respond, please be patient (Status 0x80)^M
ata1: COMRESET failed (errno=-16)^M
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)^M
ata1.00: qc timeout (cmd 0x27)^M
ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)^M
ata1.00: configured for UDMA/133^M
ata1: EH pending after completion, repeating EH (cnt=4)^M
ata1: soft resetting port^M
ata1: failed to reset engine (errno=-95)<6>ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)^M
ata1.00: qc timeout (cmd 0xec)^M
ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)^M
ata1.00: revalidation failed (errno=-5)^M
ata1: failed to recover some devices, retrying in 5 secs^M
ata1: hard resetting port^M
ata1: port is slow to respond, please be patient (Status 0x80)^M
ata1: COMRESET failed (errno=-16)^M
ata1: hard resetting port^M
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)^M
ata1.00: qc timeout (cmd 0x27)^M
ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)^M
ata1.00: failed to set xfermode (err_mask=0x40)^M
ata1: limiting SATA link speed to 1.5 Gbps^M
ata1.00: limiting speed to UDMA/133:PIO3^M
ata1: failed to recover some devices, retrying in 5 secs^M
ata1: hard resetting port^M
ata1: port is slow to respond, please be patient (Status 0x80)^M
ata1: COMRESET failed (errno=-16)^M
ata1: hard resetting port^M
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)^M
ata1.00: qc timeout (cmd 0x27)^M
ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)^M
ata1.00: failed to set xfermode (err_mask=0x40)^M
ata1.00: disabled^M
ata1: EH pending after completion, repeating EH (cnt=3)^M
ata1: soft resetting port^M
ata1: failed to reset engine (errno=-95)<6>ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)^M
ata1: EH complete^M
ata2: SATA link down (SStatus 0 SControl 300)^M
ata3: SATA link down (SStatus 0 SControl 300)^M
ata4: SATA link down (SStatus 0 SControl 300)^M
Loading ata_piixACPI: PCI Interrupt 0000:00:1f.1[A] -> .ko module^M
GSI 16 (level, low) -> IRQ 16^M
scsi4 : ata_piix^M
scsi5 : ata_piix^M
ata5: PATA max UDMA/100 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001ffa0 irq 14^M
ata6: PATA max UDMA/100 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001ffa8 irq 15^M
ata5.00: ATAPI: GCR-8483B, 1.09, max UDMA/33^M
ata5.01: ATAPI: PHILIPS DVD+/-RW DVD8631, GD30, max UDMA/33^M
ata5.00: configured for UDMA/33^M
ata5.01: configured for UDMA/33^M
scsi 4:0:0:0: CD-ROM            HL-DT-ST CD-ROM GCR-8483B 1.09 PQ: 0 ANSI: 5^M
scsi 4:0:1:0: CD-ROM            PHILIPS  DVD+-RW DVD8631  GD30 PQ: 0 ANSI: 5^M
Loading sd_mod.ko module^M
Loading jbd.ko module^MKernel panic - not syncing: Attempted to kill init!^M

Loading ext3.ko module^M
Mounting /proc filesystem^M
Mounting sys


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
  2007-08-01 14:18 Quel Qun
@ 2007-08-01 14:36 ` Tejun Heo
  2007-08-01 14:39   ` Luiz Fernando N. Capitulino
  0 siblings, 1 reply; 10+ messages in thread
From: Tejun Heo @ 2007-08-01 14:36 UTC (permalink / raw)
  To: Quel Qun; +Cc: Luiz Fernando N. Capitulino, linux-ide

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

Quel Qun wrote:
>  -------------- Original message ----------------------
> From: Tejun Heo <htejun@gmail.com>
>> Hello,
>>
>> Luiz Fernando N. Capitulino wrote:
>>>  Hi there,
>>>
>>>  A Mandriva user is reporting that his machine hangs while booting
>>> kernels 2.6.22.1 and 2.6.23-rc1.
>>>
>>>  But boots fine with 2.6.21.
>>>
>>> ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
>>> ata1.00: qc timeout (cmd 0x27)
>>> ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)
>>> ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133
>>> ata1.00: 781422768 sectors, multi 8: LBA48
>>> ata1.00: failed to set xfermode (err_mask=0x40)
>>> ata1: failed to recover some devices, retrying in 5 secs
>> What happens after this?
>>
> It basically retries a few times, then fails to boot. Here is a more complete log with 2.6.23-rc1:

Does the attached patch change anything?

-- 
tejun

[-- Attachment #2: debug.patch --]
[-- Type: text/x-patch, Size: 522 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d8c6789..af5db69 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1915,8 +1915,8 @@ int ata_dev_configure(struct ata_device *dev)
 					dev->flags |= ATA_DFLAG_FLUSH_EXT;
 			}
 
-			if (ata_id_hpa_enabled(dev->id))
-				dev->n_sectors = ata_hpa_resize(dev);
+			//if (ata_id_hpa_enabled(dev->id))
+			//	dev->n_sectors = ata_hpa_resize(dev);
 
 			/* config NCQ */
 			ata_dev_config_ncq(dev, ncq_desc, sizeof(ncq_desc));

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
  2007-08-01 14:36 ` Tejun Heo
@ 2007-08-01 14:39   ` Luiz Fernando N. Capitulino
  0 siblings, 0 replies; 10+ messages in thread
From: Luiz Fernando N. Capitulino @ 2007-08-01 14:39 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Quel Qun, linux-ide

Em Wed, 01 Aug 2007 23:36:07 +0900
Tejun Heo <htejun@gmail.com> escreveu:

| Quel Qun wrote:
| >  -------------- Original message ----------------------
| > From: Tejun Heo <htejun@gmail.com>
| >> Hello,
| >>
| >> Luiz Fernando N. Capitulino wrote:
| >>>  Hi there,
| >>>
| >>>  A Mandriva user is reporting that his machine hangs while booting
| >>> kernels 2.6.22.1 and 2.6.23-rc1.
| >>>
| >>>  But boots fine with 2.6.21.
| >>>
| >>> ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
| >>> ata1.00: qc timeout (cmd 0x27)
| >>> ata1.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (781422768)
| >>> ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133
| >>> ata1.00: 781422768 sectors, multi 8: LBA48
| >>> ata1.00: failed to set xfermode (err_mask=0x40)
| >>> ata1: failed to recover some devices, retrying in 5 secs
| >> What happens after this?
| >>
| > It basically retries a few times, then fails to boot. Here is a more complete log with 2.6.23-rc1:
| 
| Does the attached patch change anything?

 Quel Qun, if you can't patch the kernel for some reason I can
generate a Mandriva kernel package with the patch for you.

 Just ask.

-- 
Luiz Fernando N. Capitulino

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
@ 2007-08-02 16:49 Quel Qun
  2007-08-03 11:00 ` Tejun Heo
  0 siblings, 1 reply; 10+ messages in thread
From: Quel Qun @ 2007-08-02 16:49 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Luiz Fernando N. Capitulino, linux-ide

[-- Attachment #1: Type: text/plain, Size: 4923 bytes --]


 -------------- Original message ----------------------
From: Tejun Heo <htejun@gmail.com>
> Quel Qun wrote:
> >  -------------- Original message ----------------------
> > From: Tejun Heo <htejun@gmail.com>
> >> Hello,
> >>
> >> Luiz Fernando N. Capitulino wrote:
> >>>  Hi there,
> >>>
> >>>  A Mandriva user is reporting that his machine hangs while booting
> >>> kernels 2.6.22.1 and 2.6.23-rc1.
> >>>
> >>>  But boots fine with 2.6.21.
> >>>
>
> Does the attached patch change anything?
> 

Hi and thanks for answering.

2.6.23-rc1 boots if I comment out these two lines. The drive does have the two original dell special partitions that were on it when I received the computer (sda1 and sda3).

Here is some info I could gather about the disk. Let me know if you need anything else.

Boot log:

ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)^M
ata1.00: ATA-7: HDS724040KLSA80, KFAOA20N, max UDMA/133^M
ata1.00: 781422768 sectors, multi 8: LBA48 ^M
ata1.00: configured for UDMA/133^M
scsi 0:0:0:0: Direct-Access     ATA      HDS724040KLSA80  KFAO PQ: 0 ANSI: 5^M
Loading ata_piixACPI: PCI Interrupt 0000:00:1f.1[A] -> .ko module^M

The disk partitions:

# fdisk -l /dev/sda

Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           6       48163+  de  Dell Utility
/dev/sda2   *           7        9440    75778605    7  HPFS/NTFS
/dev/sda3           48283       48641     2883667+  db  CP/M / CTOS / ...
/dev/sda4            9441       48282   311998365    5  Extended
/dev/sda5            9441       10068     5044378+   b  W95 FAT32
/dev/sda6           10069       10322     2040223+  83  Linux
/dev/sda7           10323       10462     1124518+  82  Linux swap / Solaris
/dev/sda8           10463       11736    10233373+  83  Linux
/dev/sda9           11737       29948   146287858+  83  Linux
/dev/sda10          29949       48282   147267823+  83  Linux

Partition table entries are not in disk order

And the hdparm output:

# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
powers-up in standby; SET FEATURES subcmd spins-up.
        Model Number:       HDS724040KLSA80                         
        Serial Number:      KRFS11RAGT2EZC
        Firmware Revision:  KFAOA20N
Standards:
        Used: ATA/ATAPI-7 T13 1532D revision 1 
        Supported: 7 6 5 4 
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors:  781422768
        device size with M = 1024*1024:      381554 MBytes
        device size with M = 1000*1000:      400088 MBytes (400 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 8
        Advanced power management level: unknown setting (0x0000)
        Recommended acoustic management value: 128, current value: 128
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=240ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                Advanced Power Management feature set
                Power-Up In Standby feature set
                SET_FEATURES required to spinup after power up
                Address Offset Reserved Area Boot
                SET_MAX security extension
           *    Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    64-bit World wide name
           *    SATA-I signaling speed (1.5Gb/s)
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
        220min for SECURITY ERASE UNIT. 
Checksum: correct

Hope that helps,
--
kk1


[-- Attachment #2: Type: message/rfc822, Size: 1091 bytes --]

[-- Attachment #2.1.1: debug.patch --]
[-- Type: text/x-patch, Size: 522 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d8c6789..af5db69 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1915,8 +1915,8 @@ int ata_dev_configure(struct ata_device *dev)
 					dev->flags |= ATA_DFLAG_FLUSH_EXT;
 			}
 
-			if (ata_id_hpa_enabled(dev->id))
-				dev->n_sectors = ata_hpa_resize(dev);
+			//if (ata_id_hpa_enabled(dev->id))
+			//	dev->n_sectors = ata_hpa_resize(dev);
 
 			/* config NCQ */
 			ata_dev_config_ncq(dev, ncq_desc, sizeof(ncq_desc));

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
  2007-08-02 16:49 Quel Qun
@ 2007-08-03 11:00 ` Tejun Heo
  0 siblings, 0 replies; 10+ messages in thread
From: Tejun Heo @ 2007-08-03 11:00 UTC (permalink / raw)
  To: Quel Qun; +Cc: Luiz Fernando N. Capitulino, linux-ide

Quel Qun wrote:
> ATA device, with non-removable media
> powers-up in standby; SET FEATURES subcmd spins-up.
>         Model Number:       HDS724040KLSA80                         
>         Serial Number:      KRFS11RAGT2EZC
>         Firmware Revision:  KFAOA20N
> Standards:
>         Used: ATA/ATAPI-7 T13 1532D revision 1 
>         Supported: 7 6 5 4 
> Configuration:
>         Logical         max     current
>         cylinders       16383   16383
>         heads           16      16
>         sectors/track   63      63
>         --
>         CHS current addressable sectors:   16514064
>         LBA    user addressable sectors:  268435455
>         LBA48  user addressable sectors:  781422768
>         device size with M = 1024*1024:      381554 MBytes
>         device size with M = 1000*1000:      400088 MBytes (400 GB)
> Capabilities:
>         LBA, IORDY(can be disabled)
>         Standby timer values: spec'd by Standard, no device specific minimum
>         R/W multiple sector transfer: Max = 16  Current = 8
>         Advanced power management level: unknown setting (0x0000)
>         Recommended acoustic management value: 128, current value: 128
>         DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
>              Cycle time: min=120ns recommended=120ns
>         PIO: pio0 pio1 pio2 pio3 pio4 
>              Cycle time: no flow control=240ns  IORDY flow control=120ns
> Commands/features:
>         Enabled Supported:
>            *    SMART feature set
>                 Security Mode feature set
>            *    Power Management feature set
>            *    Write cache
>            *    Look-ahead
>            *    Host Protected Area feature set

This is weird.  HPA is supported && enabled but
read_native_max_address_ext times out.  Can you post the result of
'hdparm --Istdout /dev/sda'?

-- 
tejun

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
       [not found] <080320071730.15251.46B3662E0002B87600003B932207020853CE05040A05@comcast.net>
@ 2007-08-04  7:40 ` Tejun Heo
  0 siblings, 0 replies; 10+ messages in thread
From: Tejun Heo @ 2007-08-04  7:40 UTC (permalink / raw)
  To: Quel Qun; +Cc: Luiz Luiz Fernando N. Capitulino

[-- Attachment #1: Type: text/plain, Size: 43 bytes --]

Please test the attached patch.

-- 
tejun

[-- Attachment #2: horkage-hpa.patch --]
[-- Type: text/x-patch, Size: 1333 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 60e78be..7158a06 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1911,7 +1911,8 @@ int ata_dev_configure(struct ata_device *dev)
 					dev->flags |= ATA_DFLAG_FLUSH_EXT;
 			}
 
-			if (ata_id_hpa_enabled(dev->id))
+			if (!(dev->horkage & ATA_HORKAGE_BROKEN_HPA) &&
+			    ata_id_has_hpa(id) && ata_id_hpa_enabled(dev->id))
 				dev->n_sectors = ata_hpa_resize(dev);
 
 			/* config NCQ */
@@ -3789,6 +3790,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	{ "FUJITSU MHV2080BH",	"00840028",	ATA_HORKAGE_NONCQ, },
 	{ "ST9160821AS",	"3.CLF",	ATA_HORKAGE_NONCQ, },
 	{ "SAMSUNG HD401LJ",	"ZZ100-15",	ATA_HORKAGE_NONCQ, },
+	{ "HDS724040KLSA80",	"KFAOA20N",	ATA_HORKAGE_BROKEN_HPA, },
 
 	/* Devices with NCQ limits */
 
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 41978a5..a67bb90 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -303,6 +303,7 @@ enum {
 	ATA_HORKAGE_NODMA	= (1 << 1),	/* DMA problems */
 	ATA_HORKAGE_NONCQ	= (1 << 2),	/* Don't use NCQ */
 	ATA_HORKAGE_MAX_SEC_128	= (1 << 3),	/* Limit max sects to 128 */
+	ATA_HORKAGE_BROKEN_HPA	= (1 << 4),	/* Broken HPA */
 };
 
 enum hsm_task_states {

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
@ 2007-08-06 19:17 Quel Qun
  2007-08-06 20:03 ` Luiz Fernando N. Capitulino
  0 siblings, 1 reply; 10+ messages in thread
From: Quel Qun @ 2007-08-06 19:17 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Luiz Luiz Fernando N. Capitulino

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

The kernel compiles and boots after applying this patch to 2.6.23-rc1.
--
Eric

 -------------- Original message ----------------------
From: Tejun Heo <htejun@gmail.com>
> Please test the attached patch.
> 
> -- 
> tejun



[-- Attachment #2: Type: message/rfc822, Size: 1997 bytes --]

[-- Attachment #2.1.1: horkage-hpa.patch --]
[-- Type: text/x-patch, Size: 1333 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 60e78be..7158a06 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1911,7 +1911,8 @@ int ata_dev_configure(struct ata_device *dev)
 					dev->flags |= ATA_DFLAG_FLUSH_EXT;
 			}
 
-			if (ata_id_hpa_enabled(dev->id))
+			if (!(dev->horkage & ATA_HORKAGE_BROKEN_HPA) &&
+			    ata_id_has_hpa(id) && ata_id_hpa_enabled(dev->id))
 				dev->n_sectors = ata_hpa_resize(dev);
 
 			/* config NCQ */
@@ -3789,6 +3790,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	{ "FUJITSU MHV2080BH",	"00840028",	ATA_HORKAGE_NONCQ, },
 	{ "ST9160821AS",	"3.CLF",	ATA_HORKAGE_NONCQ, },
 	{ "SAMSUNG HD401LJ",	"ZZ100-15",	ATA_HORKAGE_NONCQ, },
+	{ "HDS724040KLSA80",	"KFAOA20N",	ATA_HORKAGE_BROKEN_HPA, },
 
 	/* Devices with NCQ limits */
 
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 41978a5..a67bb90 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -303,6 +303,7 @@ enum {
 	ATA_HORKAGE_NODMA	= (1 << 1),	/* DMA problems */
 	ATA_HORKAGE_NONCQ	= (1 << 2),	/* Don't use NCQ */
 	ATA_HORKAGE_MAX_SEC_128	= (1 << 3),	/* Limit max sects to 128 */
+	ATA_HORKAGE_BROKEN_HPA	= (1 << 4),	/* Broken HPA */
 };
 
 enum hsm_task_states {

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: Boot fails on Intel SATA controller
  2007-08-06 19:17 Boot fails on Intel SATA controller Quel Qun
@ 2007-08-06 20:03 ` Luiz Fernando N. Capitulino
  0 siblings, 0 replies; 10+ messages in thread
From: Luiz Fernando N. Capitulino @ 2007-08-06 20:03 UTC (permalink / raw)
  To: Quel Qun; +Cc: Tejun Heo, linux-ide

Em Mon, 06 Aug 2007 19:17:32 +0000
kelk1@comcast.net (Quel Qun) escreveu:

| The kernel compiles and boots after applying this patch to 2.6.23-rc1.

 Cool!

 Tejun, can you CC me when you submit this patch mainline so that
I can track its inclusion?

 Thanks a lot.

-- 
Luiz Fernando N. Capitulino

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-06 20:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 19:17 Boot fails on Intel SATA controller Quel Qun
2007-08-06 20:03 ` Luiz Fernando N. Capitulino
     [not found] <080320071730.15251.46B3662E0002B87600003B932207020853CE05040A05@comcast.net>
2007-08-04  7:40 ` Tejun Heo
  -- strict thread matches above, loose matches on Subject: below --
2007-08-02 16:49 Quel Qun
2007-08-03 11:00 ` Tejun Heo
2007-08-01 14:18 Quel Qun
2007-08-01 14:36 ` Tejun Heo
2007-08-01 14:39   ` Luiz Fernando N. Capitulino
2007-07-31 14:00 Luiz Fernando N. Capitulino
2007-08-01  6:06 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).