Skip to content

Commit b886aa6

Browse files
mbrost05Thomas Hellström
authored andcommitted
drm/xe: Disable timestamp WA on VFs
The timestamp WA does not work on a VF because it requires reading MMIO registers, which are inaccessible on a VF. This timestamp WA confuses LRC sampling on a VF during TDR, as the LRC timestamp would always read as 1 for any active context. Disable the timestamp WA on VFs to avoid this confusion. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Fixes: 617d824 ("drm/xe: Add WA BB to capture active context utilization") Link: https://patch.msgid.link/20260110012739.2888434-7-matthew.brost@intel.com (cherry picked from commit efffd56) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 47bf28e commit b886aa6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/xe/xe_lrc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,9 @@ static ssize_t setup_utilization_wa(struct xe_lrc *lrc,
10501050
{
10511051
u32 *cmd = batch;
10521052

1053+
if (IS_SRIOV_VF(gt_to_xe(lrc->gt)))
1054+
return 0;
1055+
10531056
if (xe_gt_WARN_ON(lrc->gt, max_len < 12))
10541057
return -ENOSPC;
10551058

0 commit comments

Comments
 (0)