Re: qemu-xhci: no interrupts with 2.6.32.11 kernel [SOLVED]

2024-02-09 Thread Christian Gudrian

On 07.02.2024 23:10, Christian Gudrian wrote:


Is the kernel too old for the XHCI emulator or am I missing something else?


The ancient kernel wasn't honoring bits 4:7 in register hcs_params2
(max. number of event ring segments) and tried to allocate 2 segments
while QEMU only supports 1. That kills QEMU XHCI driver very early
during initialization.

I've patched the kernel appropriately (by replacing all occurences of
ERST_NUM_SEGS with the computed allowed maximum number).

XHCI is working now.

Christian



qemu-xhci: no interrupts with 2.6.32.11 kernel

2024-02-07 Thread Christian Gudrian

Hello!

I'm running a 2.6.32.11 Linux kernel in QEMU 8.1.2 with a qemu-xhci USB
host controller and a usb-mouse and usb-tablet attached.

While the host controller gets discovered by the system and is assigned
an IRQ number it never receives any interrupt callbacks making the
driver run into timeouts.

Is the kernel too old for the XHCI emulator or am I missing something else?

Christian