From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe/guc: Remove explicit shutdown of SLPC
Date: Thu, 21 Mar 2024 15:51:56 -0400 [thread overview]
Message-ID: <ZfyP3C2I_vxjg-Nr@intel.com> (raw)
In-Reply-To: <20240321184924.234579-1-vinay.belgaumkar@intel.com>
On Thu, Mar 21, 2024 at 11:49:24AM -0700, Vinay Belgaumkar wrote:
> SLPC shutdown is called in reset and suspend paths. In the reset
> path, it is possible that the H2G call gets lost as GuC is in the
> process of being reset. There is no value in stopping SLPC when
> it will happen anyways.
>
> In the suspend path, we disable communication with GuC, so there
> is no need to explicitly shutdown SLPC.
>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_pc.c | 29 -----------------------------
> 1 file changed, 29 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_pc.c b/drivers/gpu/drm/xe/xe_guc_pc.c
> index 786acaf71931..6dfae1c23946 100644
> --- a/drivers/gpu/drm/xe/xe_guc_pc.c
> +++ b/drivers/gpu/drm/xe/xe_guc_pc.c
> @@ -145,25 +145,6 @@ static int pc_action_reset(struct xe_guc_pc *pc)
> return ret;
> }
>
> -static int pc_action_shutdown(struct xe_guc_pc *pc)
> -{
> - struct xe_guc_ct *ct = &pc_to_guc(pc)->ct;
> - int ret;
> - u32 action[] = {
> - GUC_ACTION_HOST2GUC_PC_SLPC_REQUEST,
> - SLPC_EVENT(SLPC_EVENT_SHUTDOWN, 2),
> - xe_bo_ggtt_addr(pc->bo),
> - 0,
> - };
> -
> - ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
> - if (ret)
> - drm_err(&pc_to_xe(pc)->drm, "GuC PC shutdown %pe",
> - ERR_PTR(ret));
> -
> - return ret;
> -}
> -
> static int pc_action_query_task_state(struct xe_guc_pc *pc)
> {
> struct xe_guc_ct *ct = &pc_to_guc(pc)->ct;
> @@ -889,7 +870,6 @@ int xe_guc_pc_start(struct xe_guc_pc *pc)
> int xe_guc_pc_stop(struct xe_guc_pc *pc)
> {
> struct xe_device *xe = pc_to_xe(pc);
> - int ret;
>
> if (xe->info.skip_guc_pc) {
> xe_gt_idle_disable_c6(pc_to_gt(pc));
> @@ -900,15 +880,6 @@ int xe_guc_pc_stop(struct xe_guc_pc *pc)
> pc->freq_ready = false;
> mutex_unlock(&pc->freq_lock);
>
> - ret = pc_action_shutdown(pc);
> - if (ret)
> - return ret;
> -
> - if (wait_for_pc_state(pc, SLPC_GLOBAL_STATE_NOT_RUNNING)) {
> - drm_err(&pc_to_xe(pc)->drm, "GuC PC Shutdown failed\n");
> - return -EIO;
> - }
> -
> return 0;
> }
>
> --
> 2.38.1
>
next prev parent reply other threads:[~2024-03-21 19:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-21 18:49 [PATCH] drm/xe/guc: Remove explicit shutdown of SLPC Vinay Belgaumkar
2024-03-21 19:51 ` Rodrigo Vivi [this message]
2024-03-21 21:00 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-21 21:00 ` ✓ CI.checkpatch: " Patchwork
2024-03-21 21:01 ` ✓ CI.KUnit: " Patchwork
2024-03-21 21:12 ` ✓ CI.Build: " Patchwork
2024-03-21 21:14 ` ✓ CI.Hooks: " Patchwork
2024-03-21 21:16 ` ✓ CI.checksparse: " Patchwork
2024-03-21 21:39 ` ✓ CI.BAT: " Patchwork
2024-03-25 23:12 ` ✓ CI.Patch_applied: success for drm/xe/guc: Remove explicit shutdown of SLPC (rev2) Patchwork
2024-03-25 23:12 ` ✓ CI.checkpatch: " Patchwork
2024-03-25 23:13 ` ✓ CI.KUnit: " Patchwork
2024-03-25 23:24 ` ✓ CI.Build: " Patchwork
2024-03-25 23:27 ` ✓ CI.Hooks: " Patchwork
2024-03-25 23:28 ` ✓ CI.checksparse: " Patchwork
2024-03-25 23:44 ` ✗ CI.BAT: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-03-25 23:56 [PATCH] drm/xe/guc: Remove explicit shutdown of SLPC Vinay Belgaumkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZfyP3C2I_vxjg-Nr@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=vinay.belgaumkar@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox