Re: [PATCH] iommu/amd: Fix logics to determine and checking max PASID

From: Suravee Suthikulanit
Date: Wed Mar 05 2014 - 18:09:34 EST


On 3/5/2014 4:35 PM, Joerg Roedel wrote:
- cmd->data[1] = pasid & PASID_MASK;
>+ cmd->data[1] = pasid & amd_iommu_max_pasid;
... masking out the other bits is redundant.


Joerg

Agree. I can take out the masking stuff here, but I think we should be using the amd_iommu_max_pasid instead of hard coded PASID_MASK for the rest.

Suravee


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/