Skip to content

Commit 0698ff5

Browse files
mwajdeczThomas Hellström
authored andcommitted
drm/xe/pf: Update the LMTT when freeing VF GT config
The LMTT must be updated whenever we change the VF LMEM configuration. We missed that step when freeing the whole VF GT config, which could result in stale PTE in LMTT or LMTT PT object leaks. Fix that. Fixes: ac6598a ("drm/xe/pf: Add support to configure SR-IOV VFs") Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240527115408.1064-1-michal.wajdeczko@intel.com (cherry picked from commit c063cce) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 6c5cd08 commit 0698ff5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,7 @@ static void pf_release_vf_config(struct xe_gt *gt, unsigned int vfid)
17491749
if (!xe_gt_is_media_type(gt)) {
17501750
pf_release_vf_config_ggtt(gt, config);
17511751
pf_release_vf_config_lmem(gt, config);
1752+
pf_update_vf_lmtt(gt_to_xe(gt), vfid);
17521753
}
17531754
pf_release_config_ctxs(gt, config);
17541755
pf_release_config_dbs(gt, config);

0 commit comments

Comments
 (0)