Bug 435590

Summary: docking does not detect DVD drive
Product: [openSUSE] openSUSE 11.1 Reporter: Stephane Delcroix <sdelcroix>
Component: HotplugAssignee: Holger Macht <hmacht>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: vlewin
Version: Beta 2   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/messages
boot.msg

Description Stephane Delcroix 2008-10-15 10:16:10 UTC
observed on an x61t.

I docked my laptop to burn a cd, and even if the GNOME dock applet was displayed, it failed to find the DVD drive. I had to reboot with the dock to be able to see the drive.

This was working fine on 11.0
Comment 1 Michal Seben 2008-10-15 10:27:51 UTC
could you please attach /var/log/messages log file after docking your laptop?
thanks!
Comment 2 Stephane Delcroix 2008-10-15 11:20:45 UTC
Oct 15 12:31:35 linux-66wt kernel: hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
Oct 15 12:31:35 linux-66wt kernel: ACPI: \_SB_.GDCK - docking
Oct 15 12:31:35 linux-66wt kernel: usb 4-4: new high speed USB device using ehci_hcd and address 8
Oct 15 12:31:35 linux-66wt kernel: usb 4-4: configuration #1 chosen from 1 choice
Oct 15 12:31:35 linux-66wt kernel: hub 4-4:1.0: USB hub found
Oct 15 12:31:35 linux-66wt kernel: hub 4-4:1.0: 4 ports detected
Oct 15 12:31:35 linux-66wt kernel: usb 4-4: New USB device found, idVendor=17ef, idProduct=1000
Oct 15 12:31:35 linux-66wt kernel: usb 4-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Comment 4 Holger Macht 2008-10-16 07:04:01 UTC
Yes, I think I know that know. Stephane, can you try to just do another undock->dock sequence? On my X60, I need to dock two times shortly in a row to get the DVD drive recognised. Still looking for a solution...
Comment 5 Stephane Delcroix 2008-10-16 11:02:32 UTC
(In reply to comment #4 from Holger Macht)
> Yes, I think I know that know. Stephane, can you try to just do another
> undock->dock sequence? On my X60, I need to dock two times shortly in a row to
> get the DVD drive recognised. Still looking for a solution...

lucky you, does not works for me
Comment 6 Holger Macht 2008-10-16 11:19:26 UTC
Ok, I'll have to get my hands on one of such systems to manually reproduce it.
Comment 7 Stephane Delcroix 2008-11-03 11:01:08 UTC
ping ?
Comment 8 Holger Macht 2008-11-03 19:00:55 UTC
Can you please try the kernel from
 ftp://ftp.suse.com/pub/people/hmacht/11.1/kernel/
Thanks.
Comment 9 Stephane Delcroix 2008-11-04 09:02:54 UTC
Holger,

the new kernel does not work any better.


Nov  4 10:00:10 dogbert kernel: CPU0 attaching NULL sched-domain.
Nov  4 10:00:10 dogbert kernel: CPU1 attaching NULL sched-domain.
Nov  4 10:00:10 dogbert kernel: CPU0 attaching sched-domain:
Nov  4 10:00:10 dogbert kernel:  domain 0: span 0-1 level MC
Nov  4 10:00:10 dogbert kernel:   groups: 0 1
Nov  4 10:00:10 dogbert kernel:   domain 1: span 0-1 level CPU
Nov  4 10:00:10 dogbert kernel:    groups: 0-1
Nov  4 10:00:10 dogbert kernel:    domain 2: span 0-1 level NODE
Nov  4 10:00:10 dogbert kernel:     groups: 0-1
Nov  4 10:00:10 dogbert kernel: CPU1 attaching sched-domain:
Nov  4 10:00:10 dogbert kernel:  domain 0: span 0-1 level MC
Nov  4 10:00:10 dogbert kernel:   groups: 1 0
Nov  4 10:00:10 dogbert kernel:   domain 1: span 0-1 level CPU
Nov  4 10:00:10 dogbert kernel:    groups: 0-1
Nov  4 10:00:10 dogbert kernel:    domain 2: span 0-1 level NODE
Nov  4 10:00:10 dogbert kernel:     groups: 0-1
Nov  4 10:00:12 dogbert kernel: usb 1-4: new high speed USB device using ehci_hcd and address 5
Nov  4 10:00:13 dogbert kernel: usb 1-4: configuration #1 chosen from 1 choice
Nov  4 10:00:13 dogbert kernel: hub 1-4:1.0: USB hub found
Nov  4 10:00:13 dogbert kernel: hub 1-4:1.0: 4 ports detected
Nov  4 10:00:13 dogbert kernel: usb 1-4: New USB device found, idVendor=17ef, idProduct=1000
Nov  4 10:00:13 dogbert kernel: usb 1-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Comment 10 Stephane Delcroix 2008-11-04 09:07:01 UTC
sorry, here's a more correct log, with the dock being powered. but the result is the same... no dvd drive:

Nov  4 10:03:36 dogbert kernel: ACPI: \_SB_.GDCK - undocking
Nov  4 10:03:36 dogbert kernel: usb 1-4: USB disconnect, address 5
Nov  4 10:03:55 dogbert kernel: CPU0 attaching NULL sched-domain.
Nov  4 10:03:55 dogbert kernel: CPU1 attaching NULL sched-domain.
Nov  4 10:03:56 dogbert kernel: CPU0 attaching sched-domain:
Nov  4 10:03:56 dogbert kernel:  domain 0: span 0-1 level MC
Nov  4 10:03:56 dogbert kernel:   groups: 0 1
Nov  4 10:03:56 dogbert kernel:   domain 1: span 0-1 level NODE
Nov  4 10:03:56 dogbert kernel:    groups: 0-1
Nov  4 10:03:56 dogbert kernel: CPU1 attaching sched-domain:
Nov  4 10:03:56 dogbert kernel:  domain 0: span 0-1 level MC
Nov  4 10:03:56 dogbert kernel:   groups: 1 0
Nov  4 10:03:56 dogbert kernel:   domain 1: span 0-1 level NODE
Nov  4 10:03:56 dogbert kernel:    groups: 0-1
Nov  4 10:03:56 dogbert kernel: ACPI: \_SB_.GDCK - docking
Nov  4 10:03:56 dogbert kernel: usb 1-4: new high speed USB device using ehci_hcd and address 6
Nov  4 10:03:56 dogbert kernel: usb 1-4: configuration #1 chosen from 1 choice
Nov  4 10:03:56 dogbert kernel: hub 1-4:1.0: USB hub found
Nov  4 10:03:56 dogbert kernel: hub 1-4:1.0: 4 ports detected
Nov  4 10:03:56 dogbert kernel: usb 1-4: New USB device found, idVendor=17ef, idProduct=1000
Nov  4 10:03:56 dogbert kernel: usb 1-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Nov  4 10:03:57 dogbert pulseaudio[4048]: module-hal-detect.c: Error getting capability: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/platform_parport_pc_888
Nov  4 10:03:57 dogbert pulseaudio[4048]: module-hal-detect.c: Error getting capability: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/platform_parport_pc_632
Nov  4 10:03:57 dogbert kernel: ppdev: user-space parallel port driver
Nov  4 10:03:57 dogbert pulseaudio[4048]: module-hal-detect.c: Error getting capability: org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/platform_parport_pc_956
Comment 11 Holger Macht 2008-11-10 11:50:15 UTC
Please test this:

1. Boot undocked
2. $ echo 1 > /sys/devices/platform/dock.?/undock
3. dock

Look at /var/log/messages if DVD drive is recognized. Thanks.
Comment 12 Holger Macht 2008-11-11 12:27:56 UTC
*** Bug 441807 has been marked as a duplicate of this bug. ***
Comment 13 Holger Macht 2008-11-16 15:17:11 UTC
Alternatively, please try the kernel from ftp://ftp.suse.com/pub/people/hmacht/11.1/kernel/ ? Thanks.
Comment 14 Stephane Delcroix 2008-11-18 08:19:54 UTC
(In reply to comment #11 from Holger Macht)
> 1. Boot undocked
> 2. $ echo 1 > /sys/devices/platform/dock.?/undock
> 3. dock
> 
> Look at /var/log/messages if DVD drive is recognized. Thanks.

It's not.

Nov 18 09:18:24 dogbert kernel: CPU0 attaching NULL sched-domain.
Nov 18 09:18:24 dogbert kernel: CPU1 attaching NULL sched-domain.
Nov 18 09:18:24 dogbert kernel: CPU0 attaching sched-domain:
Nov 18 09:18:24 dogbert kernel:  domain 0: span 0-1 level MC
Nov 18 09:18:24 dogbert kernel:   groups: 0 1
Nov 18 09:18:24 dogbert kernel:   domain 1: span 0-1 level CPU
Nov 18 09:18:24 dogbert kernel:    groups: 0-1
Nov 18 09:18:24 dogbert kernel:    domain 2: span 0-1 level NODE
Nov 18 09:18:24 dogbert kernel:     groups: 0-1
Nov 18 09:18:24 dogbert kernel: CPU1 attaching sched-domain:
Nov 18 09:18:24 dogbert kernel:  domain 0: span 0-1 level MC
Nov 18 09:18:24 dogbert kernel:   groups: 1 0
Nov 18 09:18:24 dogbert kernel:   domain 1: span 0-1 level CPU
Nov 18 09:18:24 dogbert kernel:    groups: 0-1
Nov 18 09:18:24 dogbert kernel:    domain 2: span 0-1 level NODE
Nov 18 09:18:24 dogbert kernel:     groups: 0-1
Nov 18 09:18:30 dogbert kernel: ACPI: \_SB_.GDCK - docking
Nov 18 09:18:31 dogbert kernel: usb 1-4: new high speed USB device using ehci_hcd and address 6
Nov 18 09:18:31 dogbert kernel: usb 1-4: configuration #1 chosen from 1 choice
Nov 18 09:18:31 dogbert kernel: hub 1-4:1.0: USB hub found
Nov 18 09:18:31 dogbert kernel: hub 1-4:1.0: 4 ports detected
Nov 18 09:18:31 dogbert kernel: usb 1-4: New USB device found, idVendor=17ef, idProduct=1000
Nov 18 09:18:31 dogbert kernel: usb 1-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Comment 15 Stephane Delcroix 2008-11-18 09:18:18 UTC
(In reply to comment #13 from Holger Macht)
> Alternatively, please try the kernel from
> ftp://ftp.suse.com/pub/people/hmacht/11.1/kernel/ ? Thanks.

rpm report that those pacakges are already installed in beta5. The report on comment #15 was done on b5 too.
Comment 16 Holger Macht 2008-11-18 09:29:25 UTC
Hm, they are nearly identical except for some ACPI fixes. So it shouldn't hurt to install with --force.
Comment 17 Stephane Delcroix 2008-11-18 09:58:27 UTC
does not work any better
Comment 18 Holger Macht 2008-11-18 16:09:08 UTC
Ok, please give the kernel from http://download.opensuse.org/repositories/home:/hmacht:/branches:/Kernel:/HEAD/openSUSE_Factory/ another try. It contains additional debug output.

After booting undocked, please dock, do
 $ logger "XXXXXXXXXXXXXXX"
and undock.

Attach /var/log/messages and /var/log/boot.msg to this bug. Thanks.
Comment 19 Stephane Delcroix 2008-11-19 13:22:23 UTC
Created attachment 253432 [details]
/var/log/messages
Comment 20 Stephane Delcroix 2008-11-19 13:22:45 UTC
Created attachment 253433 [details]
boot.msg
Comment 21 Holger Macht 2008-11-21 15:31:21 UTC
Too bad. Another try: Can you boot docked, but without the DVD drive? Is the drive detected when you plug it into the docking station. When booting docked and with the DVD drive inserted, please post the output of hwinfo --disk.

We have a X61t, but no proper docking station. So it's really hard to debug from remot.
Comment 22 Stephane Delcroix 2008-11-21 15:58:49 UTC
(In reply to comment #21 from Holger Macht)
> Too bad. Another try: Can you boot docked, but without the DVD drive? Is the
> drive detected when you plug it into the docking station. When booting docked
> and with the DVD drive inserted, please post the output of hwinfo --disk.

with which kernel ?
Comment 24 Holger Macht 2008-11-25 14:50:51 UTC
Doesn't matter with which kernel you provide the hwinfo --disk. I think I got it, what a stupid thing ;-) I bet that you're drive comes up as /dev/hda when booting docked, please confirm. If so, the SATA "emulation" is not working. Tejun, can you please sched some light on this. We won't have hotplug support if those drives do not show up as /dev/sr*.
Comment 25 Stephane Delcroix 2008-11-25 16:11:36 UTC
(In reply to comment #24 from Holger Macht)
I bet that you're drive comes up as /dev/hda when
> booting docked

yes, am quite sure it is. I'll try to confirm all this this evening
Comment 26 Holger Macht 2008-11-25 16:15:26 UTC
Resetting NEEDINFO. Tejun I thought most drives will be handled as S-ATA devices already some time ago. At least the ICH7 chipset should be. If not, we ought to have a big problem ;-)
Comment 27 Tejun Heo 2008-11-26 05:07:21 UTC
Aieee... dang.  Why haven't I thought of it before?  Sorry about wasting your time.  Please take a look at the bug#441384.  We were missing modules.order upto b5 making the installation system prefer ide drivers over libata ones.  Of course hotplug doesn't work.  Please feel free to mark it as duplicate of 441384.  Clean rc1 installation will fix the driver priority mess.  Thank you.
Comment 28 Holger Macht 2008-11-26 08:01:54 UTC
Never mind, closing as dup of 441384.

*** This bug has been marked as a duplicate of bug 441384 ***