From: Lucas De Marchi Date: Mon, 13 May 2024 21:37:48 +0000 (-0700) Subject: drm/xe: Drop useless forcewake get/put X-Git-Tag: io_uring-6.11-20240722~49^2~26^2~139 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=402c014cbcc7c9ada6d62ee646b2b359d4793ce2;p=linux-block.git drm/xe: Drop useless forcewake get/put Forcewake used to be needed in xe_gt_init_early() since it was calling xe_gt_topology_init(). That call was dropped in commit 4c47049d93b7 ("drm/xe/guc: Fix missing topology init"), but the forcewake calls were left behind. Remove them. Cc: Zhanjun Dong Reviewed-by: MichaƂ Winiarski Reviewed-by: Zhanjun Dong Reviewed-by: Matthew Brost Link: https://patchwork.freedesktop.org/patch/msgid/20240513213751.1017791-2-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi --- diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c index 3b3418eb7bc4..05b77214f996 100644 --- a/drivers/gpu/drm/xe/xe_gt.c +++ b/drivers/gpu/drm/xe/xe_gt.c @@ -318,14 +318,6 @@ int xe_gt_init_early(struct xe_gt *gt) return err; } - err = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT); - if (err) - return err; - - err = xe_force_wake_put(gt_to_fw(gt), XE_FW_GT); - if (err) - return err; - xe_reg_sr_init(>->reg_sr, "GT", gt_to_xe(gt)); err = xe_wa_init(gt);