From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Zhanjun Dong <zhanjun.dong@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v1] drm/xe/guc: Disable lite restore for MTL
Date: Tue, 18 Mar 2025 15:35:37 +0100 [thread overview]
Message-ID: <4928bef5-a008-4af2-80ca-d7c5bddeb671@intel.com> (raw)
In-Reply-To: <20250318141802.2516616-1-zhanjun.dong@intel.com>
On 18.03.2025 15:18, Zhanjun Dong wrote:
> Lite restore for MTL is not POR for Xe, then disable it for MTL.
>
> Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index bc5714a5b36b..0c2629e578d9 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -80,7 +80,9 @@ static u32 guc_ctl_debug_flags(struct xe_guc *guc)
>
> static u32 guc_ctl_feature_flags(struct xe_guc *guc)
> {
> - u32 flags = GUC_CTL_ENABLE_LITE_RESTORE;
> + u32 flags = (guc_to_xe(guc)->info.platform == XE_METEORLAKE) ?
> + 0 : GUC_CTL_ENABLE_LITE_RESTORE;
> +
please avoid long conditional initialization code,
all this could be done in a simpler/unified way:
struct xe_device *xe = guc_to_xe(guc);
u32 flags = 0;
if (xe->info.platform != XE_METEORLAKE)
flags |= GUC_CTL_ENABLE_LITE_RESTORE;
>
> if (!guc_to_xe(guc)->info.skip_guc_pc)
> flags |= GUC_CTL_ENABLE_SLPC;
next prev parent reply other threads:[~2025-03-18 14:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-18 14:18 [PATCH v1] drm/xe/guc: Disable lite restore for MTL Zhanjun Dong
2025-03-18 14:32 ` ✓ CI.Patch_applied: success for " Patchwork
2025-03-18 14:32 ` ✓ CI.checkpatch: " Patchwork
2025-03-18 14:33 ` ✓ CI.KUnit: " Patchwork
2025-03-18 14:35 ` Michal Wajdeczko [this message]
2025-03-18 21:35 ` [PATCH v1] " Julia Filipchuk
2025-03-19 15:29 ` Dong, Zhanjun
2025-03-18 14:50 ` ✓ CI.Build: success for " Patchwork
2025-03-18 14:52 ` ✓ CI.Hooks: " Patchwork
2025-03-18 14:53 ` ✓ CI.checksparse: " Patchwork
2025-03-18 15:13 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-18 16:13 ` ✓ Xe.CI.Full: " Patchwork
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=4928bef5-a008-4af2-80ca-d7c5bddeb671@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=zhanjun.dong@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