libata-core.c bug

Bug #878254 reported by Roberto
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi,
I am using kubuntu 11.10 version with it standard kernel, however I tested also the new one 3.1.

I see from dmesg that my sata II hard disks work like UDMA133, there are no jumpers setted on hds or mb.

0.000000] BIOS-e820: 00000000ddd80000 - 00000000ddd8e000 (ACPI data)
[ 0.000000] Memory: 8086376k/8912896k available (5494k kernel code, 266452k reserved, 2653k data, 720k init, 7439880k highmem)
[ 0.000000] .data : 0xc155d9b0 - 0xc17f5180 (2653 kB)
[ 0.060003] PEBS disabled due to CPU errata.
[ 0.365693] libata version 3.00 loaded.
[ 0.915948] ata_piix 0000:00:1f.1: version 2.13
[ 0.915966] ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 0.916015] ata_piix 0000:00:1f.1: setting latency timer to 64
[ 0.916294] scsi0 : ata_piix
[ 0.916403] scsi1 : ata_piix
[ 0.917442] ata1: PATA max UDMA/100 cmd 0xb480 ctl 0xb400 bmdma 0xac00 irq 18
[ 0.917445] ata2: PATA max UDMA/100 cmd 0x8f0 ctl 0x8f8 bmdma 0xac08 irq 18
[ 0.917470] ata_piix 0000:00:1f.2: PCI INT B -> GSI 22 (level, low) -> IRQ 22
[ 0.917474] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[ 0.917505] ata_piix 0000:00:1f.2: setting latency timer to 64
[ 0.917609] ata2: port disabled. ignoring.
[ 0.917765] scsi2 : ata_piix
[ 0.917839] scsi3 : ata_piix
[ 0.919105] ata3: SATA max UDMA/133 cmd 0xc080 ctl 0xc000 bmdma 0xb800 irq 22
[ 0.919108] ata4: SATA max UDMA/133 cmd 0xbc00 ctl 0xb880 bmdma 0xb808 irq 22
[ 1.072760] ata1.00: ATAPI: SAMSUNG DVD-ROM SD-616T, F306, max UDMA/33
[ 1.080463] ata1.00: configured for UDMA/33
[ 1.088428] ata3.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
[ 1.088432] ata3.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.115607] ata4.00: ATA-8: MAXTOR STM3160813AS, MC1J, max UDMA/133
[ 1.115612] ata4.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.116016] ata3.01: ATA-7: MAXTOR STM3320820AS, 3.AAE, max UDMA/133
[ 1.116021] ata3.01: 625142448 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.124280] ata3.00: configured for UDMA/133
[ 1.143024] ata4.01: ATA-8: MAXTOR STM3160813AS, MC1J, max UDMA/133
[ 1.143028] ata4.01: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.190982] ata3.01: configured for UDMA/133
[ 1.199552] ata4.00: configured for UDMA/133
[ 1.255551] ata4.01: configured for UDMA/133
[ 1.292584] Write protecting the kernel read-only data: 2232k
[ 1.292586] NX-protecting the kernel data: 4744k
[ 1.358978] pata_it821x 0000:03:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 1.358983] pata_it821x: controller in smart mode.
[ 1.359034] pata_it821x 0000:03:00.0: setting latency timer to 64
[ 1.361265] pata_it821x: Firmware 02/09/3030
[ 1.361825] scsi4 : pata_it821x
[ 1.361890] scsi5 : pata_it821x
[ 1.361925] ata5: PATA max UDMA/133 cmd 0xec00 ctl 0xe880 bmdma 0xe400 irq 19
[ 1.361927] ata6: PATA max UDMA/133 cmd 0xe800 ctl 0xe480 bmdma 0xe408 irq 19
[ 2.524205] ata5.00: NODEV after polling detection
[ 3.202274] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

The data from hdparm about one of my HD is :

hdparm -i /dev/sda
/dev/sda:

 Model=WDC WD10EARS-00Y5B1, FwRev=80.00A80, SerialNo=WD-WCAV5C428831
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes: pio0 pio3 pio4
 DMA modes: mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7

 * signifies the current active mode

hdparm -I /dev/sda
/dev/sda:

ATA device, with non-removable media
        Model Number: WDC WD10EARS-00Y5B1
        Serial Number: WD-WCAV5C428831
        Firmware Revision: 80.00A80
        Transport: Serial, SATA 1.0a, SATA II Extensions, SATA
Rev 2.5, SATA Rev 2.6
Standards:
        Supported: 8 7 6 5
        Likely used: 8
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: 1953525168
        Logical/Physical Sector size: 512 bytes
        device size with M = 1024*1024: 953869 MBytes
        device size with M = 1000*1000: 1000204 MBytes (1000 GB)
        cache/buffer size = unknown
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, with device specific
minimum
        R/W multiple sector transfer: Max = 16 Current = 16
        Recommended acoustic management value: 128, current value: 254
        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=120ns 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
                Power-Up In Standby feature set
           * SET_FEATURES required to spinup after power up
                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
           * {READ,WRITE}_DMA_EXT_GPL commands
           * Segmented DOWNLOAD_MICROCODE
           * Gen1 signaling speed (1.5Gb/s)
           * Gen2 signaling speed (3.0Gb/s)
           * Native Command Queueing (NCQ)
           * Host-initiated interface power management
           * Phy event counters
           * NCQ priority information
                DMA Setup Auto-Activate optimization
           * Software settings preservation
           * SMART Command Transport (SCT) feature set
           * SCT Features Control (AC4)
           * SCT Data Tables (AC5)
                unknown 206[12] (vendor specific)
                unknown 206[13] (vendor specific)
Security:
        Master password revision code = 65534
                supported
        not enabled
        not locked
                frozen
        not expired: security count
                supported: enhanced erase
        208min for SECURITY ERASE UNIT. 208min for ENHANCED SECURITY
ERASE UNIT.
Logical Unit WWN Device Identifier: 50014ee2046fdd31
        NAA : 5
        IEEE OUI : 0014ee
        Unique ID : 2046fdd31
Checksum: correct

speed :
hdparm -I /dev/sda | grep -i speed

* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)

and also :
for i in 1 2 3; do sudo hdparm -tT /dev/sda; done

/dev/sda:
 Timing cached reads: 8474 MB in 2.00 seconds = 4241.24 MB/sec
 Timing buffered disk reads: 300 MB in 3.02 seconds = 99.45 MB/sec

/dev/sda:
 Timing cached reads: 8064 MB in 2.00 seconds = 4035.54 MB/sec
 Timing buffered disk reads: 306 MB in 3.01 seconds = 101.65 MB/sec

/dev/sda:
 Timing cached reads: 8292 MB in 2.00 seconds = 4149.71 MB/sec
 Timing buffered disk reads: 308 MB in 3.02 seconds = 102.09 MB/sec

I think velocity of hd is ok, is like a sataII, but I don't get why dmesg report me wrong info

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-12-generic-pae 3.0.0-12.20
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4
Uname: Linux 3.0.0-12-generic-pae i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nobuteru 2437 F.... pulseaudio
CRDA: Error: [Errno 2] File o directory non esistente
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe9f8000 irq 43'
   Mixer name : 'Realtek ALC887-VD'
   Components : 'HDA:10ec0887,10438445,00100302'
   Controls : 35
   Simple ctrls : 21
Date: Wed Oct 19 16:38:42 2011
HibernationDevice: RESUME=UUID=3207d9fe-e7ca-4642-9214-8b7061d5ceec
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
MachineType: System manufacturer System Product Name
ProcEnviron:
 LANGUAGE=
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic-pae root=UUID=8ecbd316-adfc-4d5f-9cdc-06f9961aa9de ro crashkernel=384M-2G:64M,2G-:128M quiet splash scsi_mod.scan=sync vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-12-generic-pae N/A
 linux-backports-modules-3.0.0-12-generic-pae N/A
 linux-firmware 1.60
RfKill:

SourcePackage: linux
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (5 days ago)
dmi.bios.date: 05/16/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0803
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5G41T-M LX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0803:bd05/16/2011:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5G41T-MLX:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Roberto (roby-programmer) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Roberto (roby-programmer) wrote :

Looking on the source code I think that my previous bug report (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/859006) depend from something wrong in libata-core, but sorry my skills don't allow me to find out where and why

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the release candidate kernel versus the daily build. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the others). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed by the mainline kernel, please add the following tag 'kernel-fixed-upstream-KERNEL-VERSION'. For example, if kernel version 3.1-rc9 fixed and issue, the tag would be: 'kernel-fixed-upstream-v3.1-rc9'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Thanks in advance.

tags: added: needs-upstream-testing
tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing
Revision history for this message
Roberto (roby-programmer) wrote :
Download full text (54.3 KiB)

I tested is with new 3.1 rc10 kernel from this repository http://kernel.ubuntu.com/~kernel-ppa/mainline/

Here it is the dmesg results, the issue is the same :

dmesg | grep ata :

[ 0.000000] BIOS-e820: 00000000ddd80000 - 00000000ddd8e000 (ACPI data)
[ 0.000000] Memory: 3429320k/3634688k available (5405k kernel code, 204916k reserved, 2685k data, 756k init, 2725384k highmem)
[ 0.000000] .data : 0xc15474ef - 0xc17e69c0 (2685 kB)
[ 0.068003] PEBS disabled due to CPU errata.
[ 0.373808] libata version 3.00 loaded.
[ 1.376400] ata_piix 0000:00:1f.1: version 2.13
[ 1.376421] ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 1.376450] ata_piix 0000:00:1f.1: setting latency timer to 64
[ 1.376733] scsi0 : ata_piix
[ 1.376832] scsi1 : ata_piix
[ 1.377964] ata1: PATA max UDMA/100 cmd 0xb480 ctl 0xb400 bmdma 0xac00 irq 18
[ 1.377967] ata2: PATA max UDMA/100 cmd 0x8f0 ctl 0x8f8 bmdma 0xac08 irq 18
[ 1.377994] ata_piix 0000:00:1f.2: PCI INT B -> GSI 22 (level, low) -> IRQ 22
[ 1.377999] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[ 1.378034] ata_piix 0000:00:1f.2: setting latency timer to 64
[ 1.378156] ata2: port disabled--ignoring
[ 1.378308] scsi2 : ata_piix
[ 1.378385] scsi3 : ata_piix
[ 1.379798] ata3: SATA max UDMA/133 cmd 0xc080 ctl 0xc000 bmdma 0xb800 irq 22
[ 1.379800] ata4: SATA max UDMA/133 cmd 0xbc00 ctl 0xb880 bmdma 0xb808 irq 22
[ 1.532648] ata1.00: ATAPI: SAMSUNG DVD-ROM SD-616T, F306, max UDMA/33
[ 1.540413] ata1.00: configured for UDMA/33
[ 1.579550] ata4.00: ATA-8: MAXTOR STM3160813AS, MC1J, max UDMA/133
[ 1.579555] ata4.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.588914] ata3.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
[ 1.588920] ata3.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.606985] ata4.01: ATA-8: MAXTOR STM3160813AS, MC1J, max UDMA/133
[ 1.606991] ata4.01: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.620454] ata3.01: ATA-7: MAXTOR STM3320820AS, 3.AAE, max UDMA/133
[ 1.620459] ata3.01: 625142448 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.636990] ata3.00: configured for UDMA/133
[ 1.663618] ata4.00: configured for UDMA/133
[ 1.695423] ata3.01: configured for UDMA/133
[ 1.719533] ata4.01: configured for UDMA/133
[ 1.752346] Write protecting the kernel read-only data: 2272k
[ 1.815397] pata_it821x 0000:03:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 1.815400] pata_it821x: controller in smart mode.
[ 1.815427] pata_it821x 0000:03:00.0: setting latency timer to 64
[ 1.817772] pata_it821x: Firmware 02/09/3030
[ 1.818267] scsi4 : pata_it821x
[ 1.818336] scsi5 : pata_it821x
[ 1.818375] ata5: PATA max UDMA/133 cmd 0xec00 ctl 0xe880 bmdma 0xe400 irq 19
[ 1.818378] ata6: PATA max UDMA/133 cmd 0xe800 ctl 0xe480 bmdma 0xe408 irq 19
[ 2.984194] ata5.00: NODEV after polling detection
[ 3.524076] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

full dmesg output :

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.1.0-0301rc...

Revision history for this message
Roberto (roby-programmer) wrote :

Hi, as I wrote for the previus bug, I have tested 3.2 rc2 oneiric kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/ , the bug still exist :-(, I am continuing to install and test the new kernels if it vanish I will close the bug report... thanks!

Revision history for this message
penalvch (penalvch) wrote :

Roberto, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc5

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: bios-outdated-1101 needs-upstream-testing regression-potential
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.