> From: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> > Sent: Thursday, July 13, 2023 12:33 PM > > The core code now prevents devices with RMRR regions from being assigned > to user space. There is no need to check for this condition in individual > drivers. Remove it to avoid duplicate code. > > Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> > Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> A side note. device_rmrr_is_relaxable() marks USB/GPU as relaxable. I wonder whether this policy is specific to Intel platform or generally applied. If the latter probably that could be moved to iommu core too.