[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] ehci dbgp troubles



Hi Jan,

I'm hoping the troubles that I'm having are simply operator error, and
you can help me sort the problems I'm having testing the EHCI debug
port stuff.

I finally got a hold of a USB debugger cable from here:
http://www.semiconductorstore.com/pages/asp/supplier.asp?pl=0121
as suggested from:
http://www.coreboot.org/EHCI_Debug_Port#Devices.2FDongles

My intent was to debug some issues on a few Ultrabooks that have been
having some S3 related issues.
The usb debugger cable was a prerequisite to this effort, since
Ultrabooks do not have a serial port.

However, I have been struggling to get Xen to see the device as a debug console.

My relevant xen command line args are:
dbgp=ehci console=dbgp

I have enabled the #define DBGP_DEBUG at the top of ehci-dbgp.c, and
get the following output:

(XEN) Found EHCI debug port on 00:1a.0
(XEN) bar: 10 offset: 0a0
(XEN) bar_val: e063a000
(XEN) ehci_bar: ffff82c3ffffc000
(XEN) dbgp: EHCI BIOS state 00000001
(XEN) debug_port: 2
(XEN) n_ports:    2
(XEN) dbgp:
(XEN)   debug control: 00000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) portstatus1: 00003000
(XEN) portstatus2: 00003000
(XEN) dbgp: ehci reset done
(XEN)   debug control: 00000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 00000004
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: Trying to force debug port online
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000100c
(XEN)   EHCI portsc  : 00041005
(XEN) dbgp: ehci reset done
(XEN)   debug control: 00000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 00000004
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) no device found in debug port
(XEN) debug_port: 2
(XEN) n_ports:    2
(XEN) dbgp:
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) portstatus1: 00001803
(XEN) portstatus2: 00001000
(XEN) debug_port: 2
(XEN) n_ports:    2
(XEN) dbgp:
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) portstatus1: 00001803
(XEN) portstatus2: 00001000
(XEN) dbgp: ehci skip - already configured
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: Trying to force debug port online
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000100c
(XEN)   EHCI portsc  : 00041005
(XEN) dbgp: ehci reset done
(XEN)   debug control: 00000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 00000004
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) no device found in debug port
(XEN) debug_port: 2
(XEN) n_ports:    2
(XEN) dbgp:
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) portstatus1: 00001803
(XEN) portstatus2: 00001000
(XEN) debug_port: 2
(XEN) n_ports:    2
(XEN) dbgp:
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) portstatus1: 00001803
(XEN) portstatus2: 00001000
(XEN) dbgp: ehci skip - already configured
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: Trying to force debug port online
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000100c
(XEN)   EHCI portsc  : 00041005
(XEN) dbgp: ehci reset done
(XEN)   debug control: 00000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080000
(XEN)   EHCI conf flg: 00000000
(XEN)   EHCI status  : 00001000
(XEN)   EHCI portsc  : 00003000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 00000004
(XEN)   EHCI portsc  : 00001000
(XEN) dbgp: EHCI startup
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) EHCI started
(XEN) dbgp: reset port
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) no device found in debug port
(XEN) debug_port: 2
(XEN) n_ports:    2
(XEN) dbgp:
(XEN)   debug control: 40000000
(XEN)   EHCI cmd     : 00080001
(XEN)   EHCI conf flg: 00000001
(XEN)   EHCI status  : 0000000c
(XEN)   EHCI portsc  : 00001000
(XEN) portstatus1: 00001803
(XEN) portstatus2: 00001000
(XEN) ehci_dbgp_setup failed

As you can see, it never seems to find the device.
I have tried all 3 available physical ports on this machine.

lspci output is:

00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge
Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Toshiba America Info Systems Device 0004
        Flags: bus master, fast devsel, latency 0, IRQ 74
        Memory at e0000000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 2000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915

00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host
Controller (rev 04) (prog-if 30 [XHCI])
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, medium devsel, latency 0, IRQ 71
        Memory at e0620000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [70] Power Management version 2
        Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci-hcd

00:16.0 Communication controller: Intel Corporation Panther Point MEI
Controller #1 (rev 04)
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at e0634000 (64-bit, non-prefetchable) [size=16]
        Capabilities: [50] Power Management version 3
        Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+

00:16.3 Serial controller: Intel Corporation Panther Point KT
Controller (rev 04) (prog-if 02 [16550])
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 19
        I/O ports at 20b0 [size=8]
        Memory at e063c000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Kernel driver in use: serial

00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network
Connection (rev 04)
        Subsystem: Toshiba America Info Systems Device 0002
        Flags: bus master, fast devsel, latency 0, IRQ 72
        Memory at e0600000 (32-bit, non-prefetchable) [size=128K]
        Memory at e063b000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at 2080 [size=32]
        Capabilities: [c8] Power Management version 2
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [e0] PCI Advanced Features
        Kernel driver in use: e1000e
        Kernel modules: e1000e

00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced
Host Controller #2 (rev 04) (prog-if 20 [EHCI])
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, medium devsel, latency 0, IRQ 16
        Memory at e063a000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci-pci
        Kernel modules: ehci-pci

00:1b.0 Audio device: Intel Corporation Panther Point High Definition
Audio Controller (rev 04)
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, fast devsel, latency 0, IRQ 78
        Memory at e0630000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd-hda-intel

        Memory behind bridge: e0400000-e04fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Toshiba America Info Systems Device 0001
        Capabilities: [a0] Power Management version 2
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced
Host Controller #1 (rev 04) (prog-if 20 [EHCI])
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at e0639000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
        Kernel driver in use: ehci-pci
        Kernel modules: ehci-pci

00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA
Controller [AHCI mode] (rev 04) (prog-if 01 [AHCI 1.0])
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 73
        I/O ports at 20a8 [size=8]
        I/O ports at 20bc [size=4]
        I/O ports at 20a0 [size=8]
        I/O ports at 20b8 [size=4]
        I/O ports at 2060 [size=32]
        Memory at e0638000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA v1.0
        Capabilities: [b0] PCI Advanced Features
        Kernel driver in use: ahci
        Kernel modules: ahci

01:00.0 System peripheral: Ricoh Co Ltd Device e823 (rev 04) (prog-if 01)
        Subsystem: Toshiba America Info Systems Device 0001
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at e0500000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [800] Advanced Error Reporting

02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
        Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN
        Flags: bus master, fast devsel, latency 0, IRQ 77
        Memory at e0400000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number c4-85-08-ff-ff-09-07-7c
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi



Do you have any suggestions?


Thanks for any pointers.

Ben

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.