All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ankit Soni <Ankit.Soni@amd.com>
To: <alejandro.j.jimenez@oracle.com>, <pbonzini@redhat.com>,
	<sarunkod@amd.com>
Cc: <richard.henderson@linaro.org>, <mst@redhat.com>,
	<farosas@suse.de>, <lvivier@redhat.com>, <imammedo@redhat.com>,
	<anisinha@redhat.com>, <vasant.hegde@amd.com>,
	<qemu-devel@nongnu.org>
Subject: [PATCH 0/4] hw/i386: amd-iommu: add FCH stub at 00:14.0
Date: Wed, 18 Nov 2026 05:08:27 +0000	[thread overview]
Message-ID: <cover.1794484966.git.Ankit.Soni@amd.com> (raw)

Linux AMD IOMMU interrupt remapping needs an FCH at the IVRS
southbridge IOAPIC SID. q35 leaves 00:14.0 empty, so the guest
class check fails and remapping stays off.

This series puts an SMBus-class stub at 00:14.0 when amd-iommu
is realized. ICH9 stays at 00:1f.x. Occupied 00:14.0 fails
realize.

QEMU ACPI tests require the usual three-step blob update:

  1. whitelist DSDT.ivrs and IVRS.ivrs
  2. FCH stub, vmstate, add a qtest
  3. new expected blobs, empty whitelist

The stub uses AMD FCH SMBus ids (1022:790b) so it looks like an
FCH. Linux IOMMU only checks class. i2c-piix4 may still match
the id and fail probe. That is dmesg noise, not a timer hang.

Ankit Soni (4):
  tests/acpi: allow q35 IVRS DSDT/IVRS blob updates
  hw/i386: amd-iommu: add FCH stub at 00:14.0
  tests/qtest: amd-iommu: test FCH stub at 00:14.0
  tests/acpi: update q35 IVRS expected blobs

 hw/i386/amd_iommu.c               |  52 ++++++++++++++++++++++++++++++
 hw/i386/amd_iommu.h               |   2 ++
 tests/data/acpi/x86/q35/DSDT.ivrs | Bin 8445 -> 8462 bytes
 tests/data/acpi/x86/q35/IVRS.ivrs | Bin 176 -> 184 bytes
 tests/qtest/amd-iommu-test.c      |  30 +++++++++++++++++
 5 files changed, 84 insertions(+)

-- 
2.43.0



             reply	other threads:[~2026-11-18  9:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  5:08 Ankit Soni [this message]
2026-11-18  5:08 ` [PATCH 1/4] tests/acpi: allow q35 IVRS DSDT/IVRS blob updates Ankit Soni
2026-11-18  5:08 ` [PATCH 2/4] hw/i386: amd-iommu: add FCH stub at 00:14.0 Ankit Soni
2026-11-18  5:08 ` [PATCH 3/4] tests/qtest: amd-iommu: test " Ankit Soni
2026-11-18  5:08 ` [PATCH 4/4] tests/acpi: update q35 IVRS expected blobs Ankit Soni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1794484966.git.Ankit.Soni@amd.com \
    --to=ankit.soni@amd.com \
    --cc=alejandro.j.jimenez@oracle.com \
    --cc=anisinha@redhat.com \
    --cc=farosas@suse.de \
    --cc=imammedo@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sarunkod@amd.com \
    --cc=vasant.hegde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.