Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5A3F432BD6; Sat, 12 Sep 2026 10:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789210792; cv=none; b=epun2iHklFJcJqLfKMYjVd+nkS0vyPAv70lmXVu4W+OiO8WR6YEyvWQRZFdLL1nU8nwRdmr8OyVqBmdCTbGIKNisNertaXzXo3ZJKTdx1jXt9DRo1t0j7npUuDk+1XfWt/vfSMx/aRzmJv8+KaVVSyRrMDL/Gd0mAwpWIF46JdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789210792; c=relaxed/simple; bh=vHakuZANudJ7XBHKpxti9S2J2vmbWOpL2PC0FMZ+JWY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y4b2GM+iHQYOwJbPBjUpJWCe2Fe58HUlLb29jxeXxi8CZDLt/yTPPtg2Q8KyeXjTBooL4C7KNWIifYtC9Y+E81kDuddRVTth88nCKzo+wR+htvecriEVxdg59yTHTHMFNrC9DD3fcSgLq+8gDnvpWZHDPgblrdbhVq8C6wW8u0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t/UC9nst; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="t/UC9nst" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8BAC1F00893; Sat, 12 Sep 2026 10:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789210789; bh=F0lTHIj/4HuuDNDqDpl6T3O1lkl4+eALj18qNEnfu2M=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=t/UC9nstrPfxuvm75n+a9fNWgRSlRXSL9mAckwlZPUoomuIYX0wRRbukiPQdzZkso dfmPpcfuXG7ng/9udgda7GMBKHwcsR5QFzlm0+CQFISiHvaxWKbE8tQuzpc75cThC1 +jcpYUO4ZMf7x7+lzdBjU1dE5kI98ysjgeOclOFo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vasant Hegde , Ankit Soni , Joerg Roedel , Sasha Levin Subject: [PATCH 6.18 1096/1518] iommu/amd: Fix incorrect device ID in invalid PASID error message Date: Sat, 12 Sep 2026 08:54:25 +0200 Message-ID: <20260912065648.245762263@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065623.398859879@linuxfoundation.org> References: <20260912065623.398859879@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasant Hegde [ Upstream commit 5322e19fc5acf013784207bc38191cd418a8bb48 ] The IO page fault notifier handler logs pdev->dev.id when reporting an invalid PASID, but pdev->dev.id is the kernel-internal device ID and not the IOMMU device ID (BDF). Use dev_data->devid instead, which reflects actual devid. Fixes: 978d626b8f1a ("iommu/amd: Add IO page fault notifier handler") Signed-off-by: Vasant Hegde Reviewed-by: Ankit Soni Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- drivers/iommu/amd/ppr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd/ppr.c b/drivers/iommu/amd/ppr.c index 80369ca1e316e..1dde19a79e80f 100644 --- a/drivers/iommu/amd/ppr.c +++ b/drivers/iommu/amd/ppr.c @@ -140,7 +140,7 @@ static void iommu_call_iopf_notifier(struct amd_iommu *iommu, u64 *raw) if (event.fault.prm.pasid == 0 || event.fault.prm.pasid >= dev_data->max_pasids) { pr_info_ratelimited("Invalid PASID : 0x%x, device : 0x%x\n", - event.fault.prm.pasid, pdev->dev.id); + event.fault.prm.pasid, dev_data->devid); goto out; } -- 2.53.0