From: Suravee Suthikulpanit Date: Thu, 6 Mar 2014 00:54:18 +0000 (-0600) Subject: iommu/amd: Fix logic to determine and checking max PASID X-Git-Tag: v3.15-rc1~70^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a919a018cccf999aa56d7f9adeae0525b01b7434;p=pandora-kernel.git 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 Tested-by: Jay Cornwall Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed