From: sashiko-bot@kernel.org
To: "Stuart Summers" <stuart.summers@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/xe: Add enable_media module parameter
Date: Thu, 03 Dec 2026 23:58:56 +0000 [thread overview]
Message-ID: <sashiko-outbox-248796@kernel.org> (raw)
In-Reply-To: <20261203232859.321380-5-stuart.summers@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/xe: alloc_media_gt() suppresses Media GT disabled log on
SR-IOV VFs
--
commit 70b923e02e002693479f5778516b2b12abe532d5
Author: Stuart Summers <stuart.summers@intel.com>
drm/xe: Add enable_media module parameter
This commit adds a tri-state enable_media module parameter and latches
the combined modparam and configfs decision into xe->info.media_allowed
during early probe.
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index 3f61d3eec2e2c..4e464ba3bbee8 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -652,7 +652,7 @@ static int read_gmdid(struct xe_device *xe, enum xe_gmdid_type type, u32 *ver, u
> int err;
>
> /* Don't try to read media ver if media GT is not allowed */
> - if (type == GMDID_MEDIA && !xe_configfs_media_gt_allowed(to_pci_dev(xe->drm.dev))) {
> + if (type == GMDID_MEDIA && !xe_device_media_allowed(xe)) {
> *ver = *revid = 0;
> return 0;
> }
[ ... ]
> @@ -962,13 +977,13 @@ static struct xe_gt *alloc_media_gt(struct xe_tile *tile,
> struct xe_device *xe = tile_to_xe(tile);
> struct xe_gt *gt;
>
> - if (!xe_configfs_media_gt_allowed(to_pci_dev(xe->drm.dev))) {
> - xe_tile_info(tile, "Media GT disabled via configfs\n");
> + if (MEDIA_VER(xe) < 13 || !media_desc)
> return NULL;
> - }
>
> - if (MEDIA_VER(xe) < 13 || !media_desc)
> + if (!xe_device_media_allowed(xe)) {
> + xe_tile_info(tile, "Media GT disabled\n");
> return NULL;
> + }
>
> gt = xe_gt_alloc(tile);
> if (IS_ERR(gt))
[Severity: Low]
Does reordering these checks suppress the "Media GT disabled" log message
on SR-IOV VFs?
When media is disallowed on a VF, read_gmdid() returns *ver = 0 for
GMDID_MEDIA, leaving MEDIA_VER(xe) == 0 and media_desc == NULL.
alloc_media_gt() then returns early before xe_tile_info(), so VF logs can
no longer distinguish disabled media from hardware without a media GT.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203232859.321380-4-stuart.summers@intel.com?part=1
next prev parent reply other threads:[~2026-12-03 23:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 23:28 [PATCH 0/2] Work around 52-bit limitation in CRI media Stuart Summers
2026-12-03 23:28 ` [PATCH 1/2] drm/xe: Add enable_media module parameter Stuart Summers
2026-12-03 23:32 ` Summers, Stuart
2026-12-03 23:58 ` sashiko-bot [this message]
2026-12-03 23:29 ` [PATCH 2/2] drm/xe: Work around media 52-bit limitation on CRI Stuart Summers
2026-12-04 0:03 ` sashiko-bot
-- strict thread matches above, loose matches on Subject: below --
2026-12-03 19:09 [PATCH 0/2] Work around 52-bit limitation in CRI media Stuart Summers
2026-12-03 19:09 ` [PATCH 1/2] drm/xe: Add enable_media module parameter Stuart Summers
2026-12-03 19:34 ` sashiko-bot
2026-12-03 20:01 ` Summers, Stuart
2026-12-03 20:52 ` Matt Roper
2026-12-03 21:24 ` Rodrigo Vivi
2026-12-03 21:27 ` Summers, Stuart
2026-12-03 21:50 ` Matt Roper
2026-12-03 21:33 ` Rodrigo Vivi
2026-12-03 21:39 ` Summers, Stuart
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=sashiko-outbox-248796@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=stuart.summers@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