summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/xe/xe_device.c5
-rw-r--r--drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 4b68a2d55651..3ac9c5611b81 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1074,10 +1074,7 @@ static void tdf_request_sync(struct xe_device *xe)
struct xe_gt *gt;
u8 id;
- for_each_gt(gt, xe, id) {
- if (xe_gt_is_media_type(gt))
- continue;
-
+ for_each_gt_with_type(gt, xe, id, BIT(XE_GT_TYPE_MAIN)) {
CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FW_GT);
if (!fw_ref.domains)
return;
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
index b867203b4997..2f376b5fb088 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
@@ -1579,10 +1579,7 @@ static int pf_update_vf_lmtt(struct xe_device *xe, unsigned int vfid)
goto fail;
offset = 0;
- for_each_gt(gt, xe, gtid) {
- if (xe_gt_is_media_type(gt))
- continue;
-
+ for_each_gt_with_type(gt, xe, gtid, BIT(XE_GT_TYPE_MAIN)) {
config = pf_pick_vf_config(gt, vfid);
bo = config->lmem_obj;
if (!bo)