[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191015121424.GM14518@8bytes.org>
Date: Tue, 15 Oct 2019 14:14:24 +0200
From: "joro@...tes.org" <joro@...tes.org>
To: "Suthikulpanit, Suravee" <Suravee.Suthikulpanit@....com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
Joerg Roedel <jroedel@...e.de>,
"Hook, Gary" <Gary.Hook@....com>
Subject: Re: iommu: amd: Fix incorrect PASID decoding from event log
On Mon, Oct 14, 2019 at 08:06:05PM +0000, Suthikulpanit, Suravee wrote:
> IOMMU Event Log encodes 20-bit PASID for events:
> ILLEGAL_DEV_TABLE_ENTRY
> IO_PAGE_FAULT
> PAGE_TAB_HARDWARE_ERROR
> INVALID_DEVICE_REQUEST
> as:
> PASID[15:0] = bit 47:32
> PASID[19:16] = bit 19:16
>
> Note that INVALID_PPR_REQUEST event has different encoding
> from the rest of the events as the following:
> PASID[15:0] = bit 31:16
> PASID[19:16] = bit 45:42
>
> So, fixes the decoding logic.
>
> Fixes: d64c0486ed50 ("iommu/amd: Update the PASID information printed to the system log")
> Cc: Joerg Roedel <jroedel@...e.de>
> Cc: Gary R Hook <gary.hook@....com>
> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@....com>
> ---
> drivers/iommu/amd_iommu.c | 5 +++--
> drivers/iommu/amd_iommu_types.h | 4 ++--
> 2 files changed, 5 insertions(+), 4 deletions(-)
Applied for v5.4, thanks Suravee.
Powered by blists - more mailing lists