Skip to content

Commit e82c175

Browse files
LuBaolujoergroedel
authored andcommitted
Revert "iommu/vt-d: Remove unused function"
This reverts commit c61c255. The pasid_set_wpe() helper, which was removed by the reverted commit, is still used by the nesting translation support in the iommufd tree. To avoid a merge conflict, revert the commit. Link: https://lore.kernel.org/linux-kernel/[email protected]/ Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 2b437e8 commit e82c175

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/iommu/intel/pasid.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,15 @@ static inline void pasid_set_fault_enable(struct pasid_entry *pe)
335335
pasid_set_bits(&pe->val[0], 1 << 1, 0);
336336
}
337337

338+
/*
339+
* Setup the WPE(Write Protect Enable) field (Bit 132) of a
340+
* scalable mode PASID entry.
341+
*/
342+
static inline void pasid_set_wpe(struct pasid_entry *pe)
343+
{
344+
pasid_set_bits(&pe->val[2], 1 << 4, 1 << 4);
345+
}
346+
338347
/*
339348
* Setup the P(Present) field (Bit 0) of a scalable mode PASID
340349
* entry.

0 commit comments

Comments
 (0)