Skip to content

Commit dd1ba62

Browse files
zhanjunrodrigovivi
authored andcommitted
drm/xe/guc: Prevent GuC register capture running on VF
GuC based register capture is not supported by VF, thus prevent it running on VF. Signed-off-by: Zhanjun Dong <[email protected]> Reviewed-by: Michal Wajdeczko <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 6ef3bb6 commit dd1ba62

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/gpu/drm/xe/xe_guc_capture.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,9 @@ xe_engine_manual_capture(struct xe_hw_engine *hwe, struct xe_hw_engine_snapshot
15901590
u16 guc_id = 0;
15911591
u32 lrca = 0;
15921592

1593+
if (IS_SRIOV_VF(xe))
1594+
return;
1595+
15931596
new = guc_capture_get_prealloc_node(guc);
15941597
if (!new)
15951598
return;
@@ -1820,7 +1823,7 @@ xe_guc_capture_get_matching_and_lock(struct xe_sched_job *job)
18201823
return NULL;
18211824

18221825
xe = gt_to_xe(q->gt);
1823-
if (xe->wedged.mode >= 2 || !xe_device_uc_enabled(xe))
1826+
if (xe->wedged.mode >= 2 || !xe_device_uc_enabled(xe) || IS_SRIOV_VF(xe))
18241827
return NULL;
18251828

18261829
ss = &xe->devcoredump.snapshot;
@@ -1876,6 +1879,9 @@ xe_engine_snapshot_capture_for_job(struct xe_sched_job *job)
18761879
enum xe_hw_engine_id id;
18771880
u32 adj_logical_mask = q->logical_mask;
18781881

1882+
if (IS_SRIOV_VF(xe))
1883+
return;
1884+
18791885
for_each_hw_engine(hwe, q->gt, id) {
18801886
if (hwe->class != q->hwe->class ||
18811887
!(BIT(hwe->logical_instance) & adj_logical_mask)) {

0 commit comments

Comments
 (0)