public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Joerg Roedel <joro@8bytes.org>,
	iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iommu/amd: Fix a stale comment about which legacy mode is user visible
Date: Mon, 6 Apr 2026 16:03:35 -0700	[thread overview]
Message-ID: <adQ7x0FMmo4FG26t@google.com> (raw)
In-Reply-To: <20250315032148.2377902-1-seanjc@google.com>

On Fri, Mar 14, 2025, Sean Christopherson wrote:
> Update a stale comment about which of the legacy modes is visible to the
> user, i.e. can be forced via amd_iommu_intr=legacy.
> 
> Fixes: b74aa02d7a30 ("iommu/amd: Fix legacy interrupt remapping for x2APIC-enabled system")
> Signed-off-by: Sean Christopherson <seanjc@google.com>
> ---
>  drivers/iommu/amd/amd_iommu_types.h | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
> index 23caea22f8dc..f7877abd0091 100644
> --- a/drivers/iommu/amd/amd_iommu_types.h
> +++ b/drivers/iommu/amd/amd_iommu_types.h
> @@ -968,12 +968,13 @@ static inline int get_hpet_devid(int id)
>  }
>  
>  enum amd_iommu_intr_mode_type {
> +	/*
> +	 * The legacy format mode is not visible to users to prevent the user
> +	 * from crashing x2APIC systems, which for all intents and purposes
> +	 * require 128-bit IRTEs.   The legacy format will be forced as needed
> +	 * when hardware doesn't support 128-bit IRTEs.
> +	 */
>  	AMD_IOMMU_GUEST_IR_LEGACY,
> -
> -	/* This mode is not visible to users. It is used when
> -	 * we cannot fully enable vAPIC and fallback to only support
> -	 * legacy interrupt remapping via 128-bit IRTE.
> -	 */
>  	AMD_IOMMU_GUEST_IR_LEGACY_GA,
>  	AMD_IOMMU_GUEST_IR_VAPIC,
>  };
> 
> base-commit: ea9bd29a9c0d757b3384ae3e633e6bbaddf00725
> -- 

High latency ping!  A year later, and this still applies cleanly :-)

  reply	other threads:[~2026-04-06 23:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-15  3:21 [PATCH] iommu/amd: Fix a stale comment about which legacy mode is user visible Sean Christopherson
2026-04-06 23:03 ` Sean Christopherson [this message]
2026-04-07 14:47   ` Wei Wang

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=adQ7x0FMmo4FG26t@google.com \
    --to=seanjc@google.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    /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