Linux IOMMU Development
 help / color / mirror / Atom feed
From: Johannes Stezenbach <js@sig21.net>
To: Vasant Hegde <vasant.hegde@amd.com>
Cc: iommu@lists.linux.dev, Joerg Roedel <joro@8bytes.org>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Subject: Re: AMD IOMMU issue with hibernate on Asrock X600
Date: Tue, 3 Feb 2026 12:40:29 +0100	[thread overview]
Message-ID: <aYHerYcZ-5FOguKY@sig21.net> (raw)
In-Reply-To: <52148f32-2348-42d8-95e0-49b30c29da1c@amd.com>

On Tue, Feb 03, 2026 at 11:08:49AM +0530, Vasant Hegde wrote:
> On 1/28/2026 3:01 PM, Johannes Stezenbach wrote:
> > 
> >> [0.000] [  343.790320][ T4340] WARNING: drivers/iommu/amd/init.c:952 at amd_iommu_enable_interrupts+0x4c8/0x550, CPU#0: pm-hibernate/4340
> > 
> > - is it Linux or firmware bug?
> > - if Linux bug: please let me know what to do to help debug it
> > - if firmware bug: what additional tests to run; how to add a quirk
> > 
> > What's the downside of amd_iommu_intr=legacy? Does it only
> > affect kvm guests? What's the relationship with x2APIC?
> 
> If you pass `legacy`, then it only affects kvm. It will not accelerate
> interrupts to guest.
> 
> interrupt acceleration has two modes:
>  AVIC works with xAPIC
>  X2AVIC works with X2APIC.
> 
> Generally BIOS will automatically enables appropriate acceleration mode.

It is strange because dmesg says:

[    2.647593] [    T1] kvm_amd: AVIC enabled
[    2.647598] [    T1] kvm_amd: x2AVIC enabled (max 512 vCPUs)

but no message about x2APIC. If I enable x2APIC in BIOS (default
setting is "auto", other settings are "enable" or "disable") then
there is a message about x2APIC. So it seems BIOS default is
to have x2APIC disabled.

> Can you try below patch?

Sadly it doesn't work, same error on hibernate.


Thanks,
Johannes

  reply	other threads:[~2026-02-03 11:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-26 14:54 AMD IOMMU issue with hibernate on Asrock X600 Johannes Stezenbach
2026-01-26 15:02 ` Asrock X600 port80 UART Johannes Stezenbach
2026-01-28  9:31 ` AMD IOMMU issue with hibernate on Asrock X600 Johannes Stezenbach
2026-02-03  5:38   ` Vasant Hegde
2026-02-03 11:40     ` Johannes Stezenbach [this message]
2026-02-04 15:16       ` Johannes Stezenbach
2026-02-05 14:05         ` Johannes Stezenbach
2026-02-21 14:31           ` Vasant Hegde
2026-02-21 20:28             ` Johannes Stezenbach
2026-02-23  8:49               ` Vasant Hegde
2026-02-23  9:09                 ` Johannes Stezenbach
2026-02-24  8:56                   ` Vasant Hegde
2026-02-24  9:11                     ` Johannes Stezenbach
2026-03-05 16:50                       ` Vasant Hegde
2026-02-21 13:14         ` Vasant Hegde
2026-02-21 12:51       ` Vasant Hegde
2026-02-23  6:17         ` Naveen N Rao
2026-02-03  5:28 ` Vasant Hegde
2026-02-03 11:49   ` Johannes Stezenbach

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=aYHerYcZ-5FOguKY@sig21.net \
    --to=js@sig21.net \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=suravee.suthikulpanit@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox