All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Kernel 2.6.18 and above
       [not found]       ` <46286D36.5090609@users.sourceforge.net>
@ 2007-04-20  8:30         ` Benjamin Herrenschmidt
  2007-04-20  9:55           ` Mike
  2007-04-20 20:41           ` Bartlomiej Zolnierkiewicz
  0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2007-04-20  8:30 UTC (permalink / raw)
  To: Mike; +Cc: B.Zolnierkiewicz, list linux-ide

I'm CC'ing linux-ide... looks like the disk which you say is 20GB is
misdetected by the IDE layer as being 2GB.

Ok, so we have:

> >> Probing IDE interface ide0...
> >> hda: WDC WD800JB-00FMA0, ATA DISK drive
> >> hdb: IC35L020AVVN07-0, ATA DISK drive
> >> hda: Enabling Ultra DMA 4
> >> hdb: Enabling Ultra DMA 4
> >> ide0 at 0xf139c000-0xf139c007,0xf139c160 on irq 19
> >> ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 20
> >> Probing IDE interface ide1...
> >> hdc: PIONEER DVD-RW DVR-111D, ATAPI CD/DVD-ROM drive
> >> hdd: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive
> >> hdc: Enabling MultiWord DMA 2
> >> ide1 at 0xf139e000-0xf139e007,0xf139e160 on irq 20
> >> ide2: Found Apple KeyLargo ATA-3 controller, bus ID 1, irq 21
> >> Probing IDE interface ide2...
> >> Probing IDE interface ide2...
> >> hda: max request size: 128KiB
> >> hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(66)
> >> hda: cache flushes supported
> >>  hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13
> >> hdb: max request size: 128KiB
> >> hdb: 4128768 sectors (2113 MB) w/1863KiB Cache, CHS=4096/16/63, UDMA(66)

Here the drive claims to be 2GB, not 20GB (or is detected as such).

> /dev/hdb
>         #                    type name                length   base    ( 
> size )  system
> /dev/hdb1     Apple_partition_map Apple                   63 @ 1       ( 
> 31.5k)  Partition map
> /dev/hdb2          Apple_Driver43 Macintosh               56 @ 64      ( 
> 28.0k)  Driver 4.3
> /dev/hdb3          Apple_Driver43 Macintosh               56 @ 120     ( 
> 28.0k)  Driver 4.3
> /dev/hdb4        Apple_Driver_ATA Macintosh               56 @ 176     ( 
> 28.0k)  Unknown
> /dev/hdb5        Apple_Driver_ATA Macintosh               56 @ 232     ( 
> 28.0k)  Unknown
> /dev/hdb6          Apple_FWDriver Macintosh              512 @ 288     
> (256.0k)  Unknown
> /dev/hdb7      Apple_Driver_IOKit Macintosh              512 @ 800     
> (256.0k)  Unknown
> /dev/hdb8           Apple_Patches Patch Partition        512 @ 1312    
> (256.0k)  Unknown
> /dev/hdb9              Apple_Free                     262144 @ 1824    
> (128.0M)  Free space
> /dev/hdb10              Apple_HFS Apple_HFS_Untitled_2 39924976 @ 
> 263968  ( 19.0G)  HFS
> /dev/hdb11             Apple_Free                         16 @ 40188944 
> (  8.0k)  Free space
> 
> Block size=512, Number of Blocks=40188960
> DeviceType=0x0, DeviceId=0x0
> Drivers-
> 1: @ 64 for 23, type=0x1
> 2: @ 120 for 36, type=0xffff
> 3: @ 176 for 21, type=0x701
> 4: @ 232 for 34, type=0xf8ff

And here you can see that the partition map tries to use about 20GB...
so there is a discrepancy between what the partition map says and what
the IDE driver says. I suspect old kernel just ignores the later, while
newer kernels enforce the limit which causes your problem.

Bart, I'm a bit at lost as to why the device size would be misdetected,
do you have an idea ? Might be worth getting a dump of the ID block...
Mike, can you send us a dump of the binary file /proc/ide/hdb/identify ?

Ben.



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

* Re: Kernel 2.6.18 and above
  2007-04-20  8:30         ` Kernel 2.6.18 and above Benjamin Herrenschmidt
@ 2007-04-20  9:55           ` Mike
  2007-04-20 20:41           ` Bartlomiej Zolnierkiewicz
  1 sibling, 0 replies; 5+ messages in thread
From: Mike @ 2007-04-20  9:55 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: B.Zolnierkiewicz, linux-ide

Benjamin Herrenschmidt wrote:
> I'm CC'ing linux-ide... looks like the disk which you say is 20GB is
> misdetected by the IDE layer as being 2GB.
>
> Ok, so we have:
>
>   
>>>> Probing IDE interface ide0...
>>>> hda: WDC WD800JB-00FMA0, ATA DISK drive
>>>> hdb: IC35L020AVVN07-0, ATA DISK drive
>>>> hda: Enabling Ultra DMA 4
>>>> hdb: Enabling Ultra DMA 4
>>>> ide0 at 0xf139c000-0xf139c007,0xf139c160 on irq 19
>>>> ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 20
>>>> Probing IDE interface ide1...
>>>> hdc: PIONEER DVD-RW DVR-111D, ATAPI CD/DVD-ROM drive
>>>> hdd: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive
>>>> hdc: Enabling MultiWord DMA 2
>>>> ide1 at 0xf139e000-0xf139e007,0xf139e160 on irq 20
>>>> ide2: Found Apple KeyLargo ATA-3 controller, bus ID 1, irq 21
>>>> Probing IDE interface ide2...
>>>> Probing IDE interface ide2...
>>>> hda: max request size: 128KiB
>>>> hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(66)
>>>> hda: cache flushes supported
>>>>  hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13
>>>> hdb: max request size: 128KiB
>>>> hdb: 4128768 sectors (2113 MB) w/1863KiB Cache, CHS=4096/16/63, UDMA(66)
>>>>         
>
> Here the drive claims to be 2GB, not 20GB (or is detected as such).
>
>   
>> /dev/hdb
>>         #                    type name                length   base    ( 
>> size )  system
>> /dev/hdb1     Apple_partition_map Apple                   63 @ 1       ( 
>> 31.5k)  Partition map
>> /dev/hdb2          Apple_Driver43 Macintosh               56 @ 64      ( 
>> 28.0k)  Driver 4.3
>> /dev/hdb3          Apple_Driver43 Macintosh               56 @ 120     ( 
>> 28.0k)  Driver 4.3
>> /dev/hdb4        Apple_Driver_ATA Macintosh               56 @ 176     ( 
>> 28.0k)  Unknown
>> /dev/hdb5        Apple_Driver_ATA Macintosh               56 @ 232     ( 
>> 28.0k)  Unknown
>> /dev/hdb6          Apple_FWDriver Macintosh              512 @ 288     
>> (256.0k)  Unknown
>> /dev/hdb7      Apple_Driver_IOKit Macintosh              512 @ 800     
>> (256.0k)  Unknown
>> /dev/hdb8           Apple_Patches Patch Partition        512 @ 1312    
>> (256.0k)  Unknown
>> /dev/hdb9              Apple_Free                     262144 @ 1824    
>> (128.0M)  Free space
>> /dev/hdb10              Apple_HFS Apple_HFS_Untitled_2 39924976 @ 
>> 263968  ( 19.0G)  HFS
>> /dev/hdb11             Apple_Free                         16 @ 40188944 
>> (  8.0k)  Free space
>>
>> Block size=512, Number of Blocks=40188960
>> DeviceType=0x0, DeviceId=0x0
>> Drivers-
>> 1: @ 64 for 23, type=0x1
>> 2: @ 120 for 36, type=0xffff
>> 3: @ 176 for 21, type=0x701
>> 4: @ 232 for 34, type=0xf8ff
>>     
>
> And here you can see that the partition map tries to use about 20GB...
> so there is a discrepancy between what the partition map says and what
> the IDE driver says. I suspect old kernel just ignores the later, while
> newer kernels enforce the limit which causes your problem.
>
> Bart, I'm a bit at lost as to why the device size would be misdetected,
> do you have an idea ? Might be worth getting a dump of the ID block...
> Mike, can you send us a dump of the binary file /proc/ide/hdb/identify ?
>
> Ben.
>
>
>
>   

045a 1000 37c8 0010 0000 0000 003f 0000
0000 0000 2020 2020 2020 564e 5031 3130
4231 4732 5853 5941 0003 0e8f 0034 5641
314f 4147 3041 4943 3335 4c30 3230 4156
564e 3037 2d30 2020 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 8010
0000 2f00 4000 0200 0200 0007 1000 0010
003f 0000 003f 0100 3c20 0265 0000 0007
0003 0078 0078 00f0 0078 0000 0000 0000
0000 0000 0000 001f 0000 0000 0000 0000
003c 0015 74eb 5bea 4000 7469 1802 4003
103f 0006 0000 0000 fffe 6d00 80fe 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0001 000b 0000 0000 0000 001b 0000 0000
4000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 8000 0000
534f 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 51a5

is this what you wanted?  I ran cat /prob/ide/hdb/identify while booted 
in the 2.6.17.14 kernel.  I hope it's ok I anticipated that Ben would 
want me to keep linux-ide in the loop, if I am wrong tell me and I will 
no longer keep them in the CC

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

* Re: Kernel 2.6.18 and above
  2007-04-20  8:30         ` Kernel 2.6.18 and above Benjamin Herrenschmidt
  2007-04-20  9:55           ` Mike
@ 2007-04-20 20:41           ` Bartlomiej Zolnierkiewicz
  2007-04-21  0:15             ` Benjamin Herrenschmidt
  2007-04-21 15:28             ` Mark Lord
  1 sibling, 2 replies; 5+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-04-20 20:41 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: Mike, B.Zolnierkiewicz, list linux-ide

On Friday 20 April 2007, Benjamin Herrenschmidt wrote:
> I'm CC'ing linux-ide... looks like the disk which you say is 20GB is
> misdetected by the IDE layer as being 2GB.
> 
> Ok, so we have:
> 
> > >> Probing IDE interface ide0...
> > >> hda: WDC WD800JB-00FMA0, ATA DISK drive
> > >> hdb: IC35L020AVVN07-0, ATA DISK drive
> > >> hda: Enabling Ultra DMA 4
> > >> hdb: Enabling Ultra DMA 4
> > >> ide0 at 0xf139c000-0xf139c007,0xf139c160 on irq 19
> > >> ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 20
> > >> Probing IDE interface ide1...
> > >> hdc: PIONEER DVD-RW DVR-111D, ATAPI CD/DVD-ROM drive
> > >> hdd: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive
> > >> hdc: Enabling MultiWord DMA 2
> > >> ide1 at 0xf139e000-0xf139e007,0xf139e160 on irq 20
> > >> ide2: Found Apple KeyLargo ATA-3 controller, bus ID 1, irq 21
> > >> Probing IDE interface ide2...
> > >> Probing IDE interface ide2...
> > >> hda: max request size: 128KiB
> > >> hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(66)
> > >> hda: cache flushes supported
> > >>  hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13
> > >> hdb: max request size: 128KiB
> > >> hdb: 4128768 sectors (2113 MB) w/1863KiB Cache, CHS=4096/16/63, UDMA(66)
> 
> Here the drive claims to be 2GB, not 20GB (or is detected as such).
> 
> > /dev/hdb
> >         #                    type name                length   base    ( 
> > size )  system
> > /dev/hdb1     Apple_partition_map Apple                   63 @ 1       ( 
> > 31.5k)  Partition map
> > /dev/hdb2          Apple_Driver43 Macintosh               56 @ 64      ( 
> > 28.0k)  Driver 4.3
> > /dev/hdb3          Apple_Driver43 Macintosh               56 @ 120     ( 
> > 28.0k)  Driver 4.3
> > /dev/hdb4        Apple_Driver_ATA Macintosh               56 @ 176     ( 
> > 28.0k)  Unknown
> > /dev/hdb5        Apple_Driver_ATA Macintosh               56 @ 232     ( 
> > 28.0k)  Unknown
> > /dev/hdb6          Apple_FWDriver Macintosh              512 @ 288     
> > (256.0k)  Unknown
> > /dev/hdb7      Apple_Driver_IOKit Macintosh              512 @ 800     
> > (256.0k)  Unknown
> > /dev/hdb8           Apple_Patches Patch Partition        512 @ 1312    
> > (256.0k)  Unknown
> > /dev/hdb9              Apple_Free                     262144 @ 1824    
> > (128.0M)  Free space
> > /dev/hdb10              Apple_HFS Apple_HFS_Untitled_2 39924976 @ 
> > 263968  ( 19.0G)  HFS
> > /dev/hdb11             Apple_Free                         16 @ 40188944 
> > (  8.0k)  Free space
> > 
> > Block size=512, Number of Blocks=40188960
> > DeviceType=0x0, DeviceId=0x0
> > Drivers-
> > 1: @ 64 for 23, type=0x1
> > 2: @ 120 for 36, type=0xffff
> > 3: @ 176 for 21, type=0x701
> > 4: @ 232 for 34, type=0xf8ff
> 
> And here you can see that the partition map tries to use about 20GB...
> so there is a discrepancy between what the partition map says and what
> the IDE driver says. I suspect old kernel just ignores the later, while
> newer kernels enforce the limit which causes your problem.
> 
> Bart, I'm a bit at lost as to why the device size would be misdetected,
> do you have an idea ? Might be worth getting a dump of the ID block...
> Mike, can you send us a dump of the binary file /proc/ide/hdb/identify ?

Since this is a 2.6.17->2.6.18 regression narrowing the problem down to
the specific changeset (or at least -git or even -rc) seems like a most
promising way in discovering the source of the issue.

Bart

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

* Re: Kernel 2.6.18 and above
  2007-04-20 20:41           ` Bartlomiej Zolnierkiewicz
@ 2007-04-21  0:15             ` Benjamin Herrenschmidt
  2007-04-21 15:28             ` Mark Lord
  1 sibling, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2007-04-21  0:15 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: Mike, B.Zolnierkiewicz, list linux-ide


> Since this is a 2.6.17->2.6.18 regression narrowing the problem down to
> the specific changeset (or at least -git or even -rc) seems like a most
> promising way in discovering the source of the issue.

Dunno... unless I missed something in the logs, both 2.6.17 and .18 seem
to report initially the wrong size (2GB), but the kernel seems to ignore
the size from the IDE layer and use the one in the partition map in .17
and not in .18 ...

To me at least, it looks like it's not a regression per-se but a latent
bug made visible.

Cheers,
Ben.



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

* Re: Kernel 2.6.18 and above
  2007-04-20 20:41           ` Bartlomiej Zolnierkiewicz
  2007-04-21  0:15             ` Benjamin Herrenschmidt
@ 2007-04-21 15:28             ` Mark Lord
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Lord @ 2007-04-21 15:28 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz
  Cc: Benjamin Herrenschmidt, Mike, B.Zolnierkiewicz, list linux-ide

Bartlomiej Zolnierkiewicz wrote:
> On Friday 20 April 2007, Benjamin Herrenschmidt wrote:
>> I'm CC'ing linux-ide... looks like the disk which you say is 20GB is
>> misdetected by the IDE layer as being 2GB.
..
>> And here you can see that the partition map tries to use about 20GB...
>> so there is a discrepancy between what the partition map says and what
>> the IDE driver says. I suspect old kernel just ignores the later, while
>> newer kernels enforce the limit which causes your problem.
>>
>> Bart, I'm a bit at lost as to why the device size would be misdetected,
>> do you have an idea ? Might be worth getting a dump of the ID block...
>> Mike, can you send us a dump of the binary file /proc/ide/hdb/identify ?
> 
> Since this is a 2.6.17->2.6.18 regression narrowing the problem down to
> the specific changeset (or at least -git or even -rc) seems like a most
> promising way in discovering the source of the issue.

Oddly enough, the IDENTIFY data that was posted shows this:

        CHS current addressable sectors:    4128768
        LBA    user addressable sectors:   40188960

So, using CHS it appears as a 2GB drive, but using LBA we get a 20GB drive.
Is something mistakenly using CHS instead of LBA ??

-ml

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

end of thread, other threads:[~2007-04-21 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4626AEF7.9010804@users.sourceforge.net>
     [not found] ` <1177022657.7286.3.camel@localhost.localdomain>
     [not found]   ` <462811D6.9000304@users.sourceforge.net>
     [not found]     ` <1177051098.17978.4.camel@localhost.localdomain>
     [not found]       ` <46286D36.5090609@users.sourceforge.net>
2007-04-20  8:30         ` Kernel 2.6.18 and above Benjamin Herrenschmidt
2007-04-20  9:55           ` Mike
2007-04-20 20:41           ` Bartlomiej Zolnierkiewicz
2007-04-21  0:15             ` Benjamin Herrenschmidt
2007-04-21 15:28             ` Mark Lord

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.