public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sairaj Kodilkar <sarunkod@amd.com>
To: <iommu@lists.linux.dev>, <linux-kernel@vger.kernel.org>
Cc: <joro@8bytes.org>, <suravee.suthikulpanit@amd.com>,
	<vasant.hegde@amd.com>, <robin.murphy@arm.com>,
	<ashish.kalra@amd.com>, <will@kernel.org>, <jgg@nvidia.com>,
	Sairaj Kodilkar <sarunkod@amd.com>
Subject: [PATCH v2 0/2] amd/iommu: Preserve domain ids inside the kdump kernel
Date: Fri, 21 Nov 2025 14:41:14 +0530	[thread overview]
Message-ID: <20251121091116.25663-1-sarunkod@amd.com> (raw)

Patch 1: Reserves the Domain IDs allocated by the host kernel while reusing its
	 device table inside kdump kernel
Patch 2: Cleanup around pdom allocation

-------------------------------------------------------------------------------

Changes since v1:
https://lore.kernel.org/all/20251114104442.23296-1-sarunkod@amd.com/
P1:
  - Use FIELD_GET to read the DTE fields [Ankit]
  - Use GFP_KERNEL instead of GFP_ATOMIC [Jason]
  - Remove print on ENOMEM [Jason]

P2:
  - Use u32 instead of int [Jason]
  - pass gfp flags as argument to 'amd_iommu_pdom_id_reserve' [Jason]

-------------------------------------------------------------------------------

Base Commit: 91920a9d87f5192c56ba5bf3e133aeb3576b705d (iommu-next)

-------------------------------------------------------------------------------

Fixes: 38e5f33ee359 ("iommu/amd: Reuse device table for kdump")
Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>

Sairaj Kodilkar (2):
  amd/iommu: Preserve domain ids inside the kdump kernel
  amd/iommu: Make protection domain ID functions non-static

 drivers/iommu/amd/amd_iommu.h |  5 +++++
 drivers/iommu/amd/init.c      | 24 +++++++++++++++++++++---
 drivers/iommu/amd/iommu.c     | 27 ++++++++++++++++++---------
 3 files changed, 44 insertions(+), 12 deletions(-)

-- 
2.34.1


             reply	other threads:[~2025-11-21  9:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-21  9:11 Sairaj Kodilkar [this message]
2025-11-21  9:11 ` [PATCH v2 1/2] amd/iommu: Preserve domain ids inside the kdump kernel Sairaj Kodilkar
2025-11-24 14:44   ` Jason Gunthorpe
2025-11-25  6:32     ` Sairaj Kodilkar
2025-11-26  8:21     ` Vasant Hegde
2025-11-26 15:20       ` Jason Gunthorpe
2025-12-02  5:21         ` Vasant Hegde
2025-11-21  9:11 ` [PATCH v2 2/2] amd/iommu: Make protection domain ID functions non-static Sairaj Kodilkar
2025-12-02  5:23 ` [PATCH v2 0/2] amd/iommu: Preserve domain ids inside the kdump kernel Vasant Hegde
2025-12-19 10:29   ` Joerg Roedel

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=20251121091116.25663-1-sarunkod@amd.com \
    --to=sarunkod@amd.com \
    --cc=ashish.kalra@amd.com \
    --cc=iommu@lists.linux.dev \
    --cc=jgg@nvidia.com \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=vasant.hegde@amd.com \
    --cc=will@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