diff options
author | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2014-03-05 18:54:18 -0600 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2014-03-24 16:45:59 +0100 |
commit | a919a018cccf999aa56d7f9adeae0525b01b7434 (patch) | |
tree | 2dc30421a1fff7a9bb26d0209aff36ba39a4998d /firmware/r128 | |
parent | e8d2d82d4a73f37b3270e4fd19ba83e48b589656 (diff) | |
download | blackbird-op-linux-a919a018cccf999aa56d7f9adeae0525b01b7434.tar.gz blackbird-op-linux-a919a018cccf999aa56d7f9adeae0525b01b7434.zip |
iommu/amd: Fix logic to determine and checking max PASID
In reality, the spec can only support 16-bit PASID since
INVALIDATE_IOTLB_PAGES and COMPLETE_PPR_REQUEST commands only allow 16-bit
PASID. So, we updated the PASID_MASK accordingly and invoke BUG_ON
if the hardware is reporting PASmax more than 16-bit.
Besides, max PASID is defined as ((2^(PASmax+1)) - 1). The current does not
determine this correctly.
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tested-by: Jay Cornwall <Jay.Cornwall@amd.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'firmware/r128')
0 files changed, 0 insertions, 0 deletions