From: Gustavo Sousa <gustavo.sousa@intel.com>
To: "Upadhyay, Tejas" <tejas.upadhyay@intel.com>,
"Girotra, Himanshu" <himanshu.girotra@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: RE: [PATCH] drm/xe/guc: Use xe_device_is_l2_flush_optimized()
Date: Mon, 18 May 2026 18:33:31 -0300 [thread overview]
Message-ID: <87cxys9zdg.fsf@intel.com> (raw)
In-Reply-To: <DS0PR11MB87180B8324EF263C8F688F0D81042@DS0PR11MB8718.namprd11.prod.outlook.com>
"Upadhyay, Tejas" <tejas.upadhyay@intel.com> writes:
>> -----Original Message-----
>> From: Girotra, Himanshu <himanshu.girotra@intel.com>
>> Sent: 14 May 2026 17:30
>> To: Sousa, Gustavo <gustavo.sousa@intel.com>; intel-
>> xe@lists.freedesktop.org
>> Cc: Upadhyay, Tejas <tejas.upadhyay@intel.com>; Sousa, Gustavo
>> <gustavo.sousa@intel.com>
>> Subject: RE: [PATCH] drm/xe/guc: Use xe_device_is_l2_flush_optimized()
>>
>>
>>
>> > -----Original Message-----
>> > From: Intel-xe <intel-xe-bounces@lists.freedesktop.org> On Behalf Of
>> > Gustavo Sousa
>> > Sent: 14 May 2026 00:37
>> > To: intel-xe@lists.freedesktop.org
>> > Cc: Upadhyay, Tejas <tejas.upadhyay@intel.com>; Sousa, Gustavo
>> > <gustavo.sousa@intel.com>
>> > Subject: [PATCH] drm/xe/guc: Use xe_device_is_l2_flush_optimized()
>> >
>> > We encapsulate the logic to check if the platform has L2 flush
>> > optimization feature in xe_device_is_l2_flush_optimized(), but
>> > guc_ctl_feature_flags() is using an open-coded version of that same type of
>> check.
>> > Fix that by replacing the open-coded check with
>> > xe_device_is_l2_flush_optimized().
>> >
>> > Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
>> > Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
>>
>> Reviewed-by: Himanshu Girotra <himanshu.girotra@intel.com>
>> > ---
>> > drivers/gpu/drm/xe/xe_guc.c | 2 +-
>> > 1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
>> > index
>> > e468b638271b..4023700ff2a9 100644
>> > --- a/drivers/gpu/drm/xe/xe_guc.c
>> > +++ b/drivers/gpu/drm/xe/xe_guc.c
>> > @@ -98,7 +98,7 @@ static u32 guc_ctl_feature_flags(struct xe_guc *guc)
>> > if (xe_guc_using_main_gamctrl_queues(guc))
>> > flags |= GUC_CTL_MAIN_GAMCTRL_QUEUES;
>> >
>> > - if (GRAPHICS_VER(xe) >= 35 && !IS_DGFX(xe) &&
>> > xe_gt_is_media_type(guc_to_gt(guc)))
>> > + if (xe_device_is_l2_flush_optimized(xe) &&
>> > +xe_gt_is_media_type(guc_to_gt(guc)))
>> > flags |= GUC_CTL_ENABLE_L2FLUSH_OPT;
>
> Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Pushed to drm-xe-next. Thanks Himanshu and Tejas for the reviews!
--
Gustavo Sousa
>
> Tejas
>> >
>> > return flags;
>> >
>> > ---
>> > base-commit: e54a14bbf920aa5eefc70aba9927482ebe630f8b
>> > change-id:
>> > 20260513-guc-l2-flush-opt-use-xe_device_is_l2_flush_optimized-
>> > f94e54ef51cb
>> >
>> > Best regards,
>> > --
>> > Gustavo Sousa <gustavo.sousa@intel.com>
next prev parent reply other threads:[~2026-05-18 21:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 19:07 [PATCH] drm/xe/guc: Use xe_device_is_l2_flush_optimized() Gustavo Sousa
2026-05-13 20:18 ` ✓ CI.KUnit: success for " Patchwork
2026-05-13 21:32 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-14 11:59 ` [PATCH] " Girotra, Himanshu
2026-05-15 6:24 ` Upadhyay, Tejas
2026-05-18 21:33 ` Gustavo Sousa [this message]
2026-05-14 21:35 ` ✗ Xe.CI.FULL: failure for " Patchwork
2026-05-18 21:22 ` Gustavo Sousa
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=87cxys9zdg.fsf@intel.com \
--to=gustavo.sousa@intel.com \
--cc=himanshu.girotra@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=tejas.upadhyay@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.