emulation: qemu-sbsa: Fill in correct ITS ID
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 20 Mar 2025 12:51:58 +0000 (13:51 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 8 Apr 2025 22:23:27 +0000 (16:23 -0600)
commit65504478fe44f6dd8b61907efa4eaeba5b79cbf5
tree25f03f961bb00f7231acc790831eed04c1a290e3
parentd5a060b01b322231725dfc38090d8dc5e080cd33
emulation: qemu-sbsa: Fill in correct ITS ID

The ACPI IORT and ACPI MADT needs to use the same IDs when referencing
GIC ITS. The GIC-v3 ITS driver uses dev_seq(dev) to generate a unique ID
for the MADT, but qemu sbsa-ref hardcodes it.
Currently it's not the same ID, breaking interrupt routing on the OS.

Don't assume it's 0 and fetch it from the device instead.

TEST: Fixes non working IRQs in QEMU sbsa-ref.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
board/emulation/qemu-sbsa/acpi.c