On Mon, 25 Apr 2005, David Brownell wrote:

> On Monday 25 April 2005 8:36 am, Alan Stern wrote:
> > On Sun, 24 Apr 2005, Alan Stern wrote:
> > 
> > > I tried this out with an OHCI controller and it seemed to work.  I'll 
> > > post 
> > > the patches tomorrow.
> > > 
> > > But I encountered a problem with resume-detect interrupt handling.  
> > > Probably this has nothing to do my changes and was present all along, but 
> > > I haven't tested the vanilla driver to make sure.  I'll do that next.
> > 
> > FYI Yes, the vanilla driver behaved the same way.
> 
> Which way -- the sysfs state being irrelevant?  (As expected.)
> Or the INTR_RD appearing a lot?  (Never seen before in extensive usage.)
> If the latter, I'll suspect one of your usbcore/hcd changes ...

Both ways, but the INTR_RD one is the problem.  Even that test had Greg's 
usb-2.6.12-rc3.patch applied, so I'll do it again later with an unpatched 
2.6.12-rc3.

> > This morning I tried testing an EHCI controller.  Its behavior was even
> > more puzzling.  After I suspended the root hub and its interface, plugging
> > or unplugging a device had no effect at all!  The driver didn't wake up
> > and the port change wasn't recognized until I resumed the root hub by
> > hand.  This was on a regular Intel ICH4 motherboard:
> 
> Again, never seen that behavior.  It's worked just fine for me, as
> recently as when I submitted those PCI resume fixes.

Tried again with an unpatched 2.6.12-rc3 kernel under Fedora Core 3.  
Here's a captured serial-console log, edited only to remove typing
mistakes.  It shows exactly what's going on.

Alan Stern


[EMAIL PROTECTED] ~]# uname -a
Linux iolanthe.rowland.org 2.6.12-rc3 #2 SMP Tue Apr 26 14:44:33 EDT 2005 i686 
i686 i386 GNU/Linux
[EMAIL PROTECTED] ~]# echo /bin/true >/proc/sys/kernel/hotplug 
[EMAIL PROTECTED] ~]# rmmod uhci-hcd
[EMAIL PROTECTED] ~]# rmmod ehci-hcd
[EMAIL PROTECTED] ~]# 
[EMAIL PROTECTED] ~]# SysRq : Changing Loglevel
Loglevel set to 9

[EMAIL PROTECTED] ~]# modprobe ehci-hcd
ehci_hcd: block sizes: qh 128 qtd 96 itd 192 sitd 96
ACPI: PCI Interrupt 0000:00:1d.7[D] -> GSI 23 (level, low) -> IRQ 23
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI 
Controller
ehci_hcd 0000:00:1d.7: reset hcs_params 0x103206 dbg=1 cc=3 pcc=2 ordered !ppc 
ports=6
ehci_hcd 0000:00:1d.7: reset hcc_params 6871 thresh 7 uframes 1024 64 bit addr
ehci_hcd 0000:00:1d.7: capability 0001 at 68
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: irq 23, io mem 0xffa7fc00
ehci_hcd 0000:00:1d.7: reset command 080002 (park)=0 ithresh=8 period=1024 
Reset HALT
PCI: cache line size of 128 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: init command 010001 (park)=0 ithresh=1 period=1024 RUN
ehci_hcd 0000:00:1d.7: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
ehci_hcd 0000:00:1d.7: supports USB remote wakeup
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI 
Controller
usb usb1: Manufacturer: Linux 2.6.12-rc3 ehci_hcd
usb usb1: SerialNumber: 0000:00:1d.7
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: ganged power switching
hub 1-0:1.0: individual port over-current protection
hub 1-0:1.0: Single TT
hub 1-0:1.0: TT requires at most 8 FS bit times
hub 1-0:1.0: power on to power good time: 20ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: enabling power on all ports
hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0000
usb 1-0:1.0: hotplug
[EMAIL PROTECTED] ~]# 
[EMAIL PROTECTED] ~]# cd /sys/devices/pci*/*1d.7/usb1
[EMAIL PROTECTED] usb1]# ls
1-0:1.0/             bDeviceSubClass     bus@           idProduct     product
bcdDevice            bmAttributes        configuration  idVendor      serial
bConfigurationValue  bMaxPower           detach_state   manufacturer  speed
bDeviceClass         bNumConfigurations  devnum         maxchild      version
bDeviceProtocol      bNumInterfaces      driver@        power/
[EMAIL PROTECTED] usb1]# 
[EMAIL PROTECTED] usb1]# echo -n 3 >*0/power/state
[EMAIL PROTECTED] usb1]# echo -n 3 >power/state
usb usb1: usb suspend
[EMAIL PROTECTED] usb1]# 
[EMAIL PROTECTED] usb1]# # Plug in USB device -- nothing happens
[EMAIL PROTECTED] usb1]# 
[EMAIL PROTECTED] usb1]# echo -n 0 >power/state
ehci_hcd 0000:00:1d.7: resume root hub
usb usb1: usb resume
hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0000
hub 1-0:1.0: port 4, status 0501, change 0000, 480 Mb/s
ehci_hcd 0000:00:1d.7: port 4 high speed
ehci_hcd 0000:00:1d.7: GetStatus port 4 status 001005 POWER sig=se0  PE CONNECT
usb 1-4: new high speed USB device using ehci_hcd and address 2
ehci_hcd 0000:00:1d.7: port 4 high speed
ehci_hcd 0000:00:1d.7: GetStatus port 4 status 001005 POWER sig=se0  PE CONNECT
usb 1-4: default language 0x0409
usb 1-4: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-4: Product: Memorex TD 2B   
usb 1-4: Manufacturer:         
usb 1-4: SerialNumber: 07460E030679
usb 1-4: hotplug
usb 1-4: adding 1-4:1.0 (config #1, interface 0)
usb 1-4:1.0: hotplug
[EMAIL PROTECTED] usb1]# 
[EMAIL PROTECTED] usb1]# echo -n 3 >*0/power/state
usb 1-4: usb suspend
[EMAIL PROTECTED] usb1]# echo -n 3 >power/state
usb usb1: usb suspend
[EMAIL PROTECTED] usb1]# 
[EMAIL PROTECTED] usb1]# # Unplug USB device -- nothing happens
[EMAIL PROTECTED] usb1]# 
[EMAIL PROTECTED] usb1]# echo -n 0 >power/state
ehci_hcd 0000:00:1d.7: resume root hub
usb usb1: usb resume
usb 1-4: usb resume
ehci_hcd 0000:00:1d.7: devpath 4 ep0in 3strikes
usb 1-4: gone after usb resume? status -71
hub 1-0:1.0: resume port 4 --> -71
hub 1-0:1.0: logical disconnect on port 4
hub 1-0:1.0: state 5 ports 6 chg 0010 evt 0000
hub 1-0:1.0: port 4, status 0100, change 0000, 12 Mb/s
usb 1-4: USB disconnect, address 2
usb 1-4: usb_disable_device nuking all URBs
usb 1-4: unregistering interface 1-4:1.0
usb 1-4:1.0: hotplug
usb 1-4: unregistering device
usb 1-4: hotplug
hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0000
[EMAIL PROTECTED] usb1]# 



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to