linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Possible regression of LBA48 support for piix
       [not found] ` <19241.63911.160765.909812@pilspetsen.it.uu.se>
@ 2009-12-17 10:04   ` Romain Kubany
  2009-12-17 11:03     ` Jeff Garzik
  0 siblings, 1 reply; 9+ messages in thread
From: Romain Kubany @ 2009-12-17 10:04 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org

Ok, thanks for the prompt reply and the notice for the cc: :)
I'm using libata and ata_piix now.
My disk is seen as "sda" and a lshw is reporting the controler as using "ata_piix" : 

# lshw -c STORAGE
  *-ide
       description: IDE interface
       product: 82371AB/EB/MB PIIX4 IDE
       vendor: Intel Corporation
       physical id: 7.1
       bus info: pci@0000:00:07.1
       logical name: scsi0
       logical name: scsi1
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: ide bus_master emulated
       configuration: driver=ata_piix latency=0

But fdisk always recognize the disk as 136.8Gb :

# fdisk -l

Disk /dev/sda: 136.8 GB, 136899993600 bytes
16 heads, 63 sectors/track, 265260 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xd7267427

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         204      102815+  83  Linux
/dev/sda2             205        2236     1024128   82  Linux swap / Solaris
/dev/sda3            2237       20805     9358776   83  Linux

Here is the new kernel config file : http://pastebin.com/f65fd472b

-----Message d'origine-----
De : linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] De la part de Mikael Pettersson
Envoyé : jeudi 17 décembre 2009 10:28
À : Romain Kubany
Cc : linux-kernel@vger.kernel.org
Objet : Re: Possible regression of LBA48 support for piix

Romain Kubany writes:
 > Hello,
 > 
 > We are using Microsoft Hyper-V Virtualization technology for some of our GNU/Linux guests and we recently discovered 
 > that the emulated hardware does not seem to support LBA48 adressing on IDE controller.
 > 
 > After some tests, here are the results on a VM with a 200GB virtual disk : disk is detected as 214748MB up to kernel 2.6.27.41 and as 136899MB in 2.6.28 and up.
 > 
 > The two kernels (2.6.27.41 and 2.6.28) were compiled with approximatively the same parameters (just an oldconfig between them, I'll paste a line to their respective config at the end of the mail)
 > except that many changes occured in IDE management between 2.6.27 and 2.6.28 series of the kernel so it is possible that the problem is coming from a misconfiguration on our side (in which case I'll present you my truthful apologies for making you waste your time).
 > 
 > Here are some useful informations (I think) for start :
 > 
 > [On the "working" kernel, 2.6.27.41 w/ 200GB recognized vdisk]
 > 
 > # hdparm -I /dev/hda

Try using libata and ata_piix instead of the old IDE drivers, but
be aware that the disk will show up as /dev/sda not /dev/hda.

Also, IDE/ATA-related issues should be cc:d to linux-ide (see MAINTAINERS).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: Possible regression of LBA48 support for piix
  2009-12-17 10:04   ` Possible regression of LBA48 support for piix Romain Kubany
@ 2009-12-17 11:03     ` Jeff Garzik
  2009-12-17 11:34       ` Romain Kubany
  2009-12-17 12:05       ` Jeff Garzik
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Garzik @ 2009-12-17 11:03 UTC (permalink / raw)
  To: Romain Kubany
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

On 12/17/2009 05:04 AM, Romain Kubany wrote:
> Ok, thanks for the prompt reply and the notice for the cc: :)
> I'm using libata and ata_piix now.
> My disk is seen as "sda" and a lshw is reporting the controler as using "ata_piix" :
>
> # lshw -c STORAGE
>    *-ide
>         description: IDE interface
>         product: 82371AB/EB/MB PIIX4 IDE
>         vendor: Intel Corporation
>         physical id: 7.1
>         bus info: pci@0000:00:07.1
>         logical name: scsi0
>         logical name: scsi1
>         version: 01
>         width: 32 bits
>         clock: 33MHz
>         capabilities: ide bus_master emulated
>         configuration: driver=ata_piix latency=0
>
> But fdisk always recognize the disk as 136.8Gb :
>
> # fdisk -l
>
> Disk /dev/sda: 136.8 GB, 136899993600 bytes
> 16 heads, 63 sectors/track, 265260 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> Disk identifier: 0xd7267427
>
>     Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1         204      102815+  83  Linux
> /dev/sda2             205        2236     1024128   82  Linux swap / Solaris
> /dev/sda3            2237       20805     9358776   83  Linux
>
> Here is the new kernel config file : http://pastebin.com/f65fd472b

I would definitely be interested in seeing the 'dmesg' output for 
libata, and results from a more recent kernel.

	Jeff




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

* RE: Possible regression of LBA48 support for piix
  2009-12-17 11:03     ` Jeff Garzik
@ 2009-12-17 11:34       ` Romain Kubany
  2009-12-17 12:02         ` Jeff Garzik
  2009-12-17 12:05       ` Jeff Garzik
  1 sibling, 1 reply; 9+ messages in thread
From: Romain Kubany @ 2009-12-17 11:34 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

Thanks for your concern. :)

Here is the full dmesg output : http://pastebin.com/f484004a5 (2.6.28 with same config as in my previous mail)

I'm going to test a 2.6.32.1 kernel and similar config

-----Message d'origine-----
De : linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] De la part de Jeff Garzik
Envoyé : jeudi 17 décembre 2009 12:04
À : Romain Kubany
Cc : Mikael Pettersson; linux-kernel@vger.kernel.org; linux-ide@vger.kernel.org
Objet : Re: Possible regression of LBA48 support for piix

On 12/17/2009 05:04 AM, Romain Kubany wrote:
> Ok, thanks for the prompt reply and the notice for the cc: :)
> I'm using libata and ata_piix now.
> My disk is seen as "sda" and a lshw is reporting the controler as using "ata_piix" :
>
> # lshw -c STORAGE
>    *-ide
>         description: IDE interface
>         product: 82371AB/EB/MB PIIX4 IDE
>         vendor: Intel Corporation
>         physical id: 7.1
>         bus info: pci@0000:00:07.1
>         logical name: scsi0
>         logical name: scsi1
>         version: 01
>         width: 32 bits
>         clock: 33MHz
>         capabilities: ide bus_master emulated
>         configuration: driver=ata_piix latency=0
>
> But fdisk always recognize the disk as 136.8Gb :
>
> # fdisk -l
>
> Disk /dev/sda: 136.8 GB, 136899993600 bytes
> 16 heads, 63 sectors/track, 265260 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> Disk identifier: 0xd7267427
>
>     Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1         204      102815+  83  Linux
> /dev/sda2             205        2236     1024128   82  Linux swap / Solaris
> /dev/sda3            2237       20805     9358776   83  Linux
>
> Here is the new kernel config file : http://pastebin.com/f65fd472b

I would definitely be interested in seeing the 'dmesg' output for 
libata, and results from a more recent kernel.

	Jeff



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


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

* Re: Possible regression of LBA48 support for piix
  2009-12-17 11:34       ` Romain Kubany
@ 2009-12-17 12:02         ` Jeff Garzik
  0 siblings, 0 replies; 9+ messages in thread
From: Jeff Garzik @ 2009-12-17 12:02 UTC (permalink / raw)
  To: Romain Kubany
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

On 12/17/2009 06:34 AM, Romain Kubany wrote:
> Thanks for your concern. :)
>
> Here is the full dmesg output : http://pastebin.com/f484004a5 (2.6.28 with same config as in my previous mail)
>
> I'm going to test a 2.6.32.1 kernel and similar config

[    0.804002] ata1.00: ATA-0: Virtual HD, 1.1.0, max MWDMA2
[    0.804002] ata1.00: 267382800 sectors, multi 128: LBA

For starters, the virtual disk is reporting ATA version 0.  That means 
the disk is telling us it does not support LBA48 or other advanced 
features.  libata (and probably IDE, too) happily obliges.

That sounds like either a broken emulation, or some information returned 
from the virtual disk got zeroed somehow.

	Jeff



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

* Re: Possible regression of LBA48 support for piix
  2009-12-17 11:03     ` Jeff Garzik
  2009-12-17 11:34       ` Romain Kubany
@ 2009-12-17 12:05       ` Jeff Garzik
  2009-12-17 12:07         ` Romain Kubany
  1 sibling, 1 reply; 9+ messages in thread
From: Jeff Garzik @ 2009-12-17 12:05 UTC (permalink / raw)
  To: Romain Kubany
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

On 12/17/2009 06:03 AM, Jeff Garzik wrote:
> On 12/17/2009 05:04 AM, Romain Kubany wrote:
>> Here is the new kernel config file : http://pastebin.com/f65fd472b
>
> I would definitely be interested in seeing the 'dmesg' output for
> libata, and results from a more recent kernel.

Also, what does 'hdparm -I /dev/XXXX' output look like?

	Jeff




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

* RE: Possible regression of LBA48 support for piix
  2009-12-17 12:05       ` Jeff Garzik
@ 2009-12-17 12:07         ` Romain Kubany
  2009-12-17 12:22           ` Jeff Garzik
  0 siblings, 1 reply; 9+ messages in thread
From: Romain Kubany @ 2009-12-17 12:07 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

Here it is under the 2.6.28 :

# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
        Model Number:       Virtual HD
        Serial Number:
        Firmware Revision:  1.1.0
Standards:
        Likely used: 2
Configuration:
        Logical         max     current
        cylinders       16383   65535
        heads           16      16
        sectors/track   63      255
        --
        bytes/track: 65024      bytes/sector: 512
        CHS current addressable sectors:  267382800
        LBA    user addressable sectors:  267382800
        device size with M = 1024*1024:      130558 MBytes
        device size with M = 1000*1000:      136899 MBytes (136 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Buffer size: 64.0kB
        Standby timer values: spec'd by Vendor
        R/W multiple sector transfer: Max = 128 Current = 128
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=333ns  IORDY flow control=120ns


-----Message d'origine-----
De : Jeff Garzik [mailto:jgpobox@gmail.com] De la part de Jeff Garzik
Envoyé : jeudi 17 décembre 2009 13:06
À : Romain Kubany
Cc : Mikael Pettersson; linux-kernel@vger.kernel.org; linux-ide@vger.kernel.org
Objet : Re: Possible regression of LBA48 support for piix

On 12/17/2009 06:03 AM, Jeff Garzik wrote:
> On 12/17/2009 05:04 AM, Romain Kubany wrote:
>> Here is the new kernel config file : http://pastebin.com/f65fd472b
>
> I would definitely be interested in seeing the 'dmesg' output for
> libata, and results from a more recent kernel.

Also, what does 'hdparm -I /dev/XXXX' output look like?

	Jeff





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

* Re: Possible regression of LBA48 support for piix
  2009-12-17 12:07         ` Romain Kubany
@ 2009-12-17 12:22           ` Jeff Garzik
  2009-12-17 13:33             ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff Garzik @ 2009-12-17 12:22 UTC (permalink / raw)
  To: Romain Kubany
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

On 12/17/2009 07:07 AM, Romain Kubany wrote:
> Here it is under the 2.6.28 :
>
> # hdparm -I /dev/sda
>
> /dev/sda:
>
> ATA device, with non-removable media
>          Model Number:       Virtual HD
>          Serial Number:
>          Firmware Revision:  1.1.0
> Standards:
>          Likely used: 2
> Configuration:
>          Logical         max     current
>          cylinders       16383   65535
>          heads           16      16
>          sectors/track   63      255
>          --
>          bytes/track: 65024      bytes/sector: 512
>          CHS current addressable sectors:  267382800
>          LBA    user addressable sectors:  267382800
>          device size with M = 1024*1024:      130558 MBytes
>          device size with M = 1000*1000:      136899 MBytes (136 GB)

Yeah, that info is straight from the virtual disk, without any sort of 
massaging.  The disk is reporting 136GB max, so I would poke around 
Windows to see if a setting changed somewhere...  maybe there is an "old 
IDE compatible" setting that got turned on, for the virtual hd?

	Jeff




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

* Re: Possible regression of LBA48 support for piix
  2009-12-17 12:22           ` Jeff Garzik
@ 2009-12-17 13:33             ` Bartlomiej Zolnierkiewicz
  2009-12-18 13:36               ` Romain Kubany
  0 siblings, 1 reply; 9+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-12-17 13:33 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Romain Kubany, Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

On Thursday 17 December 2009 01:22:22 pm Jeff Garzik wrote:
> On 12/17/2009 07:07 AM, Romain Kubany wrote:
> > Here it is under the 2.6.28 :
> >
> > # hdparm -I /dev/sda
> >
> > /dev/sda:
> >
> > ATA device, with non-removable media
> >          Model Number:       Virtual HD
> >          Serial Number:
> >          Firmware Revision:  1.1.0
> > Standards:
> >          Likely used: 2
> > Configuration:
> >          Logical         max     current
> >          cylinders       16383   65535
> >          heads           16      16
> >          sectors/track   63      255
> >          --
> >          bytes/track: 65024      bytes/sector: 512
> >          CHS current addressable sectors:  267382800
> >          LBA    user addressable sectors:  267382800
> >          device size with M = 1024*1024:      130558 MBytes
> >          device size with M = 1000*1000:      136899 MBytes (136 GB)
> 
> Yeah, that info is straight from the virtual disk, without any sort of 
> massaging.  The disk is reporting 136GB max, so I would poke around 
> Windows to see if a setting changed somewhere...  maybe there is an "old 
> IDE compatible" setting that got turned on, for the virtual hd?

It is also possible that this virtual disk has never worked with ata_piix
driver and worked with piix driver in the older kernels because of pure luck.

In 2.6.28 I've fixed LBA48 checks in IDE to match libata (see commit 942dcd8
for details) so it would be worth to try:

	- simulating the older buggy IDE behavior with 2.6.32 kernel

or

	- staring long enough at 'hdparm --Istdout /dev/sda' output

first.

--
Bartlomiej Zolnierkiewicz

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

* RE: Possible regression of LBA48 support for piix
  2009-12-17 13:33             ` Bartlomiej Zolnierkiewicz
@ 2009-12-18 13:36               ` Romain Kubany
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Kubany @ 2009-12-18 13:36 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz, Jeff Garzik
  Cc: Mikael Pettersson, linux-kernel@vger.kernel.org,
	linux-ide@vger.kernel.org

Hello

Sorry, some kind of emergency occured and I didn't had the time to answer your mails

Jeff : No change were made to the VM configuration between the two kernel (2.6.27.41 & 2.6.28) so it is unlikely the disk himself or the VM configuration which are provoking this behavior.
Also, not this virtual machine in particular but others (with the same hardware configuration) are running Windows 2003/2008 without that limitation to 136Gb.

Bartlomiej : Ok, here is the dmesg of a 2.6.32.1 (http://pastebin.com/f3645803b ) and here is the output of a 'hdparm --Istdout /dev/sda' (under 2.6.32) as you suggested :

# hdparm --Istdout /dev/sda

/dev/sda:
045a 3fff 0000 0010 fe00 0200 003f abcd
dcba 0123 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 0003 0080 0000 312e
312e 3020 2020 5669 7274 7561 6c20 4844
2020 2020 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 8080
0000 0f00 0000 0200 0200 0003 ffff 0010
00ff f010 0fef 0180 f010 0fef 0007 0407
0003 0078 0078 014d 0078 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0400 0000 0000 0400 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 1900 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 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



-----Message d'origine-----
De : linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] De la part de Bartlomiej Zolnierkiewicz
Envoyé : jeudi 17 décembre 2009 14:34
À : Jeff Garzik
Cc : Romain Kubany; Mikael Pettersson; linux-kernel@vger.kernel.org; linux-ide@vger.kernel.org
Objet : Re: Possible regression of LBA48 support for piix

On Thursday 17 December 2009 01:22:22 pm Jeff Garzik wrote:
> On 12/17/2009 07:07 AM, Romain Kubany wrote:
> > Here it is under the 2.6.28 :
> >
> > # hdparm -I /dev/sda
> >
> > /dev/sda:
> >
> > ATA device, with non-removable media
> >          Model Number:       Virtual HD
> >          Serial Number:
> >          Firmware Revision:  1.1.0
> > Standards:
> >          Likely used: 2
> > Configuration:
> >          Logical         max     current
> >          cylinders       16383   65535
> >          heads           16      16
> >          sectors/track   63      255
> >          --
> >          bytes/track: 65024      bytes/sector: 512
> >          CHS current addressable sectors:  267382800
> >          LBA    user addressable sectors:  267382800
> >          device size with M = 1024*1024:      130558 MBytes
> >          device size with M = 1000*1000:      136899 MBytes (136 GB)
> 
> Yeah, that info is straight from the virtual disk, without any sort of 
> massaging.  The disk is reporting 136GB max, so I would poke around 
> Windows to see if a setting changed somewhere...  maybe there is an "old 
> IDE compatible" setting that got turned on, for the virtual hd?

It is also possible that this virtual disk has never worked with ata_piix
driver and worked with piix driver in the older kernels because of pure luck.

In 2.6.28 I've fixed LBA48 checks in IDE to match libata (see commit 942dcd8
for details) so it would be worth to try:

	- simulating the older buggy IDE behavior with 2.6.32 kernel

or

	- staring long enough at 'hdparm --Istdout /dev/sda' output

first.

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


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

end of thread, other threads:[~2009-12-18 13:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <A9C151C7BD19EC47976D4AA14CF277A8BC64DFB2AF@HMCEXMBX01CLUS.hmcikoula.com>
     [not found] ` <19241.63911.160765.909812@pilspetsen.it.uu.se>
2009-12-17 10:04   ` Possible regression of LBA48 support for piix Romain Kubany
2009-12-17 11:03     ` Jeff Garzik
2009-12-17 11:34       ` Romain Kubany
2009-12-17 12:02         ` Jeff Garzik
2009-12-17 12:05       ` Jeff Garzik
2009-12-17 12:07         ` Romain Kubany
2009-12-17 12:22           ` Jeff Garzik
2009-12-17 13:33             ` Bartlomiej Zolnierkiewicz
2009-12-18 13:36               ` Romain Kubany

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).