Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.85.50 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796378218; b=mh2c2APYFS/Am2ncdehk09hLKxfMqA9Z66O3j8CtRpXFeIJ9bcCoDQAaAsrQTMyODagI 2iQE4R8YmhbpN8BaAv32XGKunlIVKQgMRRRcfz7GiT8zCCQjqM1pNOR6y7LQXa5JJW7g8 AmxAAq2WDL1snJXsEBDyr+cbBWCpy42TcihT41bcjNYMPYGoOOTHDfsSFGqhm//Ia1HAM m4NEIHK4mhQ4Vo7dEhrRPb0cu1oYFb3MCXdxgfq1A8YXYiYBRPfPBh+2YOhPRpmC5eZo/ XVFewb/zK0xiCuUwxwnrX7Vv67GHBUdOpKXep37LQEOC8e2GvsFzw19umcRhWb0vp5g== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796378218; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy:X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=PN9+SXsi8iHchNN50BBEdsYV++XOl7pdQ3pqErWvtLs=; b=4boz9g6JiTlnJlrJBGYBf7LrOj6TWZGBDDdHwVwalFh2NMR3hojr6NaGmqUBi3ohO3dG mu1LNmm2+vLW/H0gk7qF+wL+UWaRTjrAtRkGvSy5x5Fh9ykQKRzUqFxm2fw2yswlokz38 xAIRk5Oz+Mkv1qLJIZwzhKA39YpRm4qzPoHYs760qeJAY2xCIFYtUvAMk9rn604oYd/Ez k52fbsSdVKde7C5Fo6+7AjVtMXS5ACU3D4bL9Jzh1vdtWO4p9MWps12z1zoZdWqqntJlE M8vvdN9hkRn5EMxbguaFyWWrK8OxqTQb9MoAKaHcCFELvkpk/xqYOI8lPFkP1t24Fzg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b="z//+vRYB"; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.85.50 Received: from BYAPR05CU005.outbound.protection.outlook.com (mail-westusazon11010050.outbound.protection.outlook.com [52.101.85.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFD62606A322 for ; Fri, 4 Dec 2026 09:56:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BFD62606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=z//+vRYB ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yZDQK24DDcPa6lYhqjbrags7izgwERP/LFSQvD41lpNZm6Cj44VjKPH1igf8tqZeuxMBbhHz6MeHQK8a2c5jqccwtGjMjdn4BxJgW+nUvPew4DPXbkqX4KEXLi1u5u64iuL6fK7VhgK82LFMou60eG2S5TLuzigZxUJw8rzPcPcbhWp60/cxG/85ZnPZqXL1kitYJT3euq0spCD1jm+mJUWlNG/kjj2dYQ2KVdK7MMExH1alu6xGvhlcF21V1UfRhsgwra7B3QYZSJ0/aBwz0nygjan9xcVVgYVNktPzEVqkjkjPOjA0UfJEx/ce+QCmTjMTv2WWxUQfb/fBUF1lAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PN9+SXsi8iHchNN50BBEdsYV++XOl7pdQ3pqErWvtLs=; b=ZqcyS0GKpsIo2Fx0hzAeKq/6SIfQtsY3zpgPbcnANgwjtkrxSwW8WosHPVGvsyWGyJdXTG+h5izCNpzslsYg6yT+Dgfq1DzH0OUJVOaTNMRwQngfNCuhdlSC7VCoEZd/kuucePy/v+nQKP+6eOL7jhUFXgSRXgv0s5iW7SlbGmne+b0jAADwaGOs4icsYBAvuvh433RS+97e6C8cMWGOq+GfCyglIOs7ktAwgHa2N2Vt8odhkbLzFSXuwSN9H6f1rszqh+BNTXLAnHS0rXpPitEYJC/Mw/X8jgq6BGwjlAnVJfcJ702qARMfU4KHQ3LZOcULw6X8VWim9SqqD7ojnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=8bytes.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PN9+SXsi8iHchNN50BBEdsYV++XOl7pdQ3pqErWvtLs=; b=z//+vRYBrFwHNb5YpfwWMDW8kuZa7WUw+EzJNJ4O49kh07xfaRhvQTfbeU4rtFtOkW3vLNJoY98d3tsPlW12coecsi6lqg05EvTWR68WRB6PCD5lUzHibk+JRapxk19fSse4arbFc9LwoGo6Mup/+Cn7RiQ3OXQYFwe3jCKxpYA= Received: from PH8PR05CA0005.namprd05.prod.outlook.com (2603:10b6:510:2cc::14) by PH7PR12MB7843.namprd12.prod.outlook.com (2603:10b6:510:27e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Fri, 4 Dec 2026 09:56:53 +0000 Received: from PH2PEPF00048917.namprd05.prod.outlook.com (2603:10b6:510:2cc:cafe::16) by PH8PR05CA0005.outlook.office365.com (2603:10b6:510:2cc::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.709.7 via Frontend Transport; Fri, 4 Dec 2026 09:56:53 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by PH2PEPF00048917.mail.protection.outlook.com (10.167.243.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 09:56:53 +0000 Received: from kali.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Fri, 4 Dec 2026 03:56:51 -0600 From: Vasant Hegde To: CC: Subject: [PATCH 00/38][PULL REQUEST] AMD IOMMU Updates for v7.5 Date: Fri, 4 Dec 2026 09:55:58 +0000 Message-ID: <20261204095636.335222-1-vasant.hegde@amd.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: iommu@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH2PEPF00048917:EE_|PH7PR12MB7843:EE_ X-MS-Office365-Filtering-Correlation-Id: 20bd9db6-a0f9-4a0c-182e-08df51ecec83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|376014|82310400026|261102123227099003|56012099006|261022075727099003|261021121427099003|261026140227099003|261022105027099003|261028144727099003|261026121527099003|261021123027099003|10067099003|261009223027099003|18002099003|11063799006|6133799003|13003099007|3023799007; X-Microsoft-Antispam-Message-Info: MVazJm2RpKbhrWDwWD7DwUpFL1qzAUtFf5J8hFWov/zPEbf7cgj1ZOhU24UcR1wiCXu0vNury6KIvd4hlbIf5V+DVEWlMnXXnYyDIszlPBDb6TDU0uuaHge4g2CCHgSW33mP5Bq2Ii283golEfb+E1cXRphNTaaJx3tQuGKMyh1/7ppX9fWJq3XZnz2FgiPQfTGoYwyy3CAwaXkjIgHCP8/9Wo7S8vFN/6RUCt4HnZbER61pp3XQ0iMQFTdDTG8cEruELqEZLccc5s/be8A4dUEoKGw4zxx6733BmwB4n1MduuGVvekbvnJw29JjkYxoG/QNou5fasjOUijbH1TLG/ErG9HW+VyVx8iltAQ6tD6pEpctJb8ULWVQdgherKpFExWyQX7mnNktO/xkpMChzzdpHu4NY99wpiIOjFOP3Xi/8h/wfNsMNlAli0dKQR02JAX7KQKetuKjyO6405khoNpTQAwlbzlL4xLRwhpHD/oKuwYlzgtBwdfwhtTpo/Qj8leQ/hBHuu+xka1WW5Z+75eLPrJxt1LNnYMvfCo+5Swq7beliUq5JeBvq6gHSiMeSPq0zmoW1iCXftcFc7lDhIMIfW1qulexE3eTBougLJVBUG5FXPOJaPqe+dpcJkgqXg0LJ4ryk2OoD+0FMWSGMZ5tSqSl2aNBJSRpICE7rMaGlqo53W5k/92vKbflaDkUQRNWqJYWPXAy51Cfr+1Yng== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(376014)(82310400026)(261102123227099003)(56012099006)(261022075727099003)(261021121427099003)(261026140227099003)(261022105027099003)(261028144727099003)(261026121527099003)(261021123027099003)(10067099003)(261009223027099003)(18002099003)(11063799006)(6133799003)(13003099007)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MMQhl6r89rgtlJ1CEvLOwT+06lrxtTgnNmXiTxmXXd5CoQi4/e+5IaO6qBJSDbQJpkI2/zJen8+veDwH2180G3me2ZWwdEKFlJ1sOEg+fWK2vcFL9iaoEqsFr0gvprLPcElTf/KZ0C74a6THmHD2nRsHD8szOw1K7AdziPlLcfKQ4gbZvIs/aIVDj/bp0LEVh0BnInbZqim0zwVfle+nqKv7S/LAId5nhIPXzWGgxgk/eTp5pi6Ibid6K8k1DsDyZCPIQFrHNKxexTE2rk/OhxReAAw/A0N3HDy5q5hZlXwBeR13hA0feGYTGZIqvPB+BW8JX3i3HgfDbKbxbVDaku00W+Yjj2kloSi6KByP7Fl6lC1Ucm/aL9bbSf8ZJZKtuCB3V6s4HmRQPBt5zu8BNFpC4Yk0j/Mhh6mKJ3c2rlDnbKHAhpCbDR/PUTC2Fcz1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 09:56:53.0922 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20bd9db6-a0f9-4a0c-182e-08df51ecec83 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: PH2PEPF00048917.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7843 Hi Joerg, This series includes quite a few fixes and minor cleanups. Major changes: - Move DTE lock from dev_data structure to pci segment so that we can have consistent locking mechanism while updating DTE. - Fixes for init/teardown path specifically around interrupt allocation, protection domain ID free path, etc. - RCU protectin for GA Log notifier, keep unobserved log overflow status bits and performance improvement in interrupt invalidation path. Disable GAPPI bit during boot to avoid unhandled interrupt issue when AVIC is enabled. - Couple of fixes for PASID/PRI handling path. Note that this addresses most of the issues in SVA path. I still have one more series to finish This series is based on top of amd/amd-vi branch (commit b6a9fa34ce418). Please consider pulling these patches for v7.5. The full series is also available on GitHub: https://github.com/AMDESE/linux-iommu/tree/amd-vi/updates-7.5 Thanks Vasant Ankit Soni (2): iommu/amd: Move page-table setup into init_pgtable_params() iommu/amd: Adhere to IVINFO[PAsize] for output address limits Dheeraj Kumar Srivastava (1): iommu/amd: Enhance "Command buffer timeout" error message Guanghui Feng (2): iommu/amd: Do not clear unobserved log overflow status bits iommu/amd: Reuse device data for IRTE cache invalidation Li RongQing (1): iommu/amd: RCU-protect iommu_ga_log_notifier Naveen N Rao (AMD) (1): iommu/amd: Explicitly disable GAPPI Santosh Shukla (1): iommu/amd: Restore an SVA PASID after PCI reset Vasant Hegde (29): iommu/amd: Continue the completion sequence in SNP kdump iommu/amd: Destroy protection domain IDs after the domains are freed iommu/amd: Unregister the IOMMUs before disabling them on init failure iommu/amd: Log error message when IOMMU interrupt setup failed iommu/amd: Remove the shared INTCAPXT domain only after its IRQs are freed iommu/amd: Serialize device-table writes with one per-segment lock iommu/amd: Identify a DTE entry by its DeviceID iommu/amd: Drop the iommu_dev_data allocation for alias devices iommu/amd: Clear the event log entry after reporting an I/O page fault iommu/amd: Hold the device mutex across a page-fault report iommu/amd: Log raw event log iommu/amd: Drop redundant flushes when the page table top changes iommu/amd: Fix page-counter drift in multi-level GCR3 table teardown iommu/amd: Do not allocate GCR3 tables when clearing a PASID iommu/amd: Allocate the completion sequence after queueing commands iommu/amd: Free the level-1 tables of a two-level GCR3 table iommu/amd: Update device attach state only after a successful attach iommu/amd: Write the DTE under the domain lock on attach and detach iommu/amd: Disable PRI before ATS and PASID iommu/amd: Derive the PPR completion GN bit from the request iommu/amd: Complete a PPR from a device the IOMMU did not probe iommu/amd: Keep the GCR3 table while PASIDs are attached iommu/amd: Return -ENOMEM when SVA PASID allocation fails iommu/amd: Complete an aborted PPR group only on its last page iommu/amd: Discard partial page requests when the PPR log overflows iommu/amd: Allocate the GCR3 table from the device iommu/amd: Drain the PPR log before detaching an SVA PASID iommu/amd: Drain the PPR log before removing a device from the IOPF queue iommu/amd: Don't detach SVA PASIDs from the mm release notifier Wei Wang (1): iommu/amd: Skip the southbridge IOAPIC PCI class check in guests drivers/iommu/amd/amd_iommu.h | 9 +- drivers/iommu/amd/amd_iommu_types.h | 21 +- drivers/iommu/amd/init.c | 229 +++++++++--- drivers/iommu/amd/iommu.c | 562 +++++++++++++++------------- drivers/iommu/amd/pasid.c | 32 +- drivers/iommu/amd/ppr.c | 92 ++++- 6 files changed, 608 insertions(+), 337 deletions(-) -- 2.31.1