Skip to content

Commit a816487

Browse files
committed
drm/xe/pf: Invalidate LMTT after completing changes
Once we finish populating all leaf pages in the VF's LMTT we should make sure that hardware will not access any stale data. Explicitly force LMTT invalidation (as it was already planned in the past). Signed-off-by: Michal Wajdeczko <[email protected]> Cc: Michał Winiarski <[email protected]> Cc: Piotr Piórkowski <[email protected]> Reviewed-by: Piotr Piórkowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e497957 commit a816487

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,17 @@ static int pf_distribute_config_lmem(struct xe_gt *gt, unsigned int vfid, u64 si
13471347

13481348
static void pf_force_lmtt_invalidate(struct xe_device *xe)
13491349
{
1350-
/* TODO */
1350+
struct xe_lmtt *lmtt;
1351+
struct xe_tile *tile;
1352+
unsigned int tid;
1353+
1354+
xe_assert(xe, xe_device_has_lmtt(xe));
1355+
xe_assert(xe, IS_SRIOV_PF(xe));
1356+
1357+
for_each_tile(tile, xe, tid) {
1358+
lmtt = &tile->sriov.pf.lmtt;
1359+
xe_lmtt_invalidate_hw(lmtt);
1360+
}
13511361
}
13521362

13531363
static void pf_reset_vf_lmtt(struct xe_device *xe, unsigned int vfid)

0 commit comments

Comments
 (0)