Bug 8835

Summary: IDE CD/DVD RW drive ignored at boot with sata hd
Product: IO/Storage Reporter: Persio Barros (persiobarros)
Component: Serial ATAAssignee: Tejun Heo (htejun)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: htejun
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.22 Subsystem:
Regression: --- Bisected commit-id:
Attachments: Output of dmesg
Output of lspci -nnvvv
Output of cat /proc/ioports
Add-a-PCI-ID-for-santa-rosa-s-PATA-controller.patch

Description Persio Barros 2007-08-01 10:14:32 UTC
Most recent kernel where this bug did not occur: 2.6.19
Distribution: Ubuntu 7.10 Gutsy (testing)
Hardware Environment: Lenovo 3000 V200 notebook
Software Environment: Linux OS
Problem Description:
After installation of Ubuntu 7.10 I noted that the CDROM was not accessible. An entry in fstab was created poiting the CDROM drive to /dev/hda. But there was no such device. I could access the drive with "modprobe ide-generic", but then I can't set DMA to the drive.
This problem happens with last kernel versions from Ubuntu (2.6.20 and 2.6.22) and also with the last official stable kernel (2.6.22.1). The problem doesn't occur with Knoppix (kernel 2.6.19). Also, Fedora 7 cannot be installed from the cdrom drive. After booting the installation system, it stops saying that it cannot find the "installation image", which is in the CD/DVD disk.

Steps to reproduce: Install a recent Linux distribution on his notebook.

This bug report is a follow-up of bug #8784
Log files with system details follows.
Comment 1 Persio Barros 2007-08-01 10:15:55 UTC
Created attachment 12225 [details]
Output of dmesg
Comment 2 Persio Barros 2007-08-01 10:16:49 UTC
Created attachment 12226 [details]
Output of lspci -nnvvv
Comment 3 Persio Barros 2007-08-01 10:17:26 UTC
Created attachment 12227 [details]
Output of cat /proc/ioports
Comment 4 Tejun Heo 2007-08-01 10:27:32 UTC
What does 'modinfo ata_piix' say?
Comment 5 Persio Barros 2007-08-01 11:30:27 UTC
Here it goes:

modinfo ata_piix
filename:       /lib/modules/2.6.22-9-generic/kernel/drivers/ata/ata_piix.ko
version:        2.11
license:        GPL
description:    SCSI low-level driver for Intel PIIX/ICH ATA controllers
author:         Andre Hedrick, Alan Cox, Andrzej Krzysztofowicz, Jeff Garzik
srcversion:     DBBE3C8B8C2097262F3303F
alias:          pci:v00008086d0000292Esv*sd*bc*sc*i*
alias:          pci:v00008086d0000292Dsv*sd*bc*sc*i*
alias:          pci:v00008086d00002928sv*sd*bc*sc*i*
alias:          pci:v00008086d00002926sv*sd*bc*sc*i*
alias:          pci:v00008086d00002921sv*sd*bc*sc*i*
alias:          pci:v00008086d00002920sv*sd*bc*sc*i*
alias:          pci:v00008086d00002828sv*sd*bc*sc*i*
alias:          pci:v00008086d00002825sv*sd*bc*sc*i*
alias:          pci:v00008086d00002820sv*sd*bc*sc*i*
alias:          pci:v00008086d00002680sv*sd*bc*sc*i*
alias:          pci:v00008086d000027C4sv*sd*bc*sc*i*
alias:          pci:v00008086d000027C0sv*sd*bc*sc*i*
alias:          pci:v00008086d00002653sv*sd*bc*sc*i*
alias:          pci:v00008086d00002652sv*sd*bc*sc*i*
alias:          pci:v00008086d00002651sv*sd*bc*sc*i*
alias:          pci:v00008086d000025B0sv*sd*bc*sc*i*
alias:          pci:v00008086d000025A3sv*sd*bc*sc*i*
alias:          pci:v00008086d000024DFsv*sd*bc*sc*i*
alias:          pci:v00008086d000024D1sv*sd*bc*sc*i*
alias:          pci:v00008086d0000811Asv*sd*bc*sc*i*
alias:          pci:v00008086d0000269Esv*sd*bc*sc*i*
alias:          pci:v00008086d000027DFsv*sd*bc*sc*i*
alias:          pci:v00008086d0000266Fsv*sd*bc*sc*i*
alias:          pci:v00008086d000025A2sv*sd*bc*sc*i*
alias:          pci:v00008086d0000245Bsv*sd*bc*sc*i*
alias:          pci:v00008086d000024DBsv*sd*bc*sc*i*
alias:          pci:v00008086d000024CBsv*sd*bc*sc*i*
alias:          pci:v00008086d000024CAsv*sd*bc*sc*i*
alias:          pci:v00008086d0000248Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000248Asv*sd*bc*sc*i*
alias:          pci:v00008086d0000244Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000244Asv*sd*bc*sc*i*
alias:          pci:v00008086d00002421sv*sd*bc*sc*i*
alias:          pci:v00008086d00002411sv*sd*bc*sc*i*
alias:          pci:v00008086d000084CAsv*sd*bc*sc*i*
alias:          pci:v00008086d00007601sv*sd*bc*sc*i*
alias:          pci:v00008086d00007199sv*sd*bc*sc*i*
alias:          pci:v00008086d00007111sv*sd*bc*sc*i*
alias:          pci:v00008086d00007010sv*sd*bc*sc*i*
depends:        libata
vermagic:       2.6.22-9-generic SMP mod_unload 586 
Comment 6 Tejun Heo 2007-08-01 23:39:53 UTC
Created attachment 12232 [details]
Add-a-PCI-ID-for-santa-rosa-s-PATA-controller.patch

Right, that's commit c1e6f28cc5de37dcd113b9668a185c0b9334ba8a which was added after 2.6.22 is released.  The attached patch adds PCI ID for the controller.  You've got a very new machine there.  I'll forward the patch to -stable such that it can be included in the next stable release.
Comment 7 Tejun Heo 2007-08-01 23:40:12 UTC
Closing.
Comment 8 Persio Barros 2007-08-02 04:27:33 UTC
Thank you very much for the patch. I will try it.
Can I compile only the ata_piix module or I should recompile the full kernel? In the first case, how to do that such that I can use it with the installed Gutsy kernel?
Comment 9 Tejun Heo 2007-08-02 04:30:32 UTC
You can compile only the ata_piix module if you have the exact source and config file of your running kernel.
Comment 10 Persio Barros 2007-08-02 06:14:31 UTC
It worked!
Thanks again,
Persio