Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Summers, Stuart" <stuart.summers@intel.com>
To: "sashiko-reviews@lists.linux.dev" <sashiko-reviews@lists.linux.dev>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 1/2] drm/xe: Add enable_media module parameter
Date: Fri, 4 Dec 2026 18:03:26 +0000	[thread overview]
Message-ID: <ea5bf01ef7a02a9aeb6fa9d15a3c2ed1f8a5adbe.camel@intel.com> (raw)
In-Reply-To: <sashiko-outbox-248796@kernel.org>

On Thu, 2026-12-03 at 23:58 +0000, sashiko-bot@kernel.org wrote:
> 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.

IMO this isn't a real problem. The PF still has this information
available and this was anyway an info message. The user can clearly see
media is not available from the VF side either way.

Thanks,
Stuart

> 


  reply	other threads:[~2026-12-04 18:03 UTC|newest]

Thread overview: 22+ 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
2026-12-04 18:03     ` Summers, Stuart [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
2026-12-04 22:06     ` Summers, Stuart
2026-12-04 14:45   ` Rodrigo Vivi
2026-12-04 20:55     ` Summers, Stuart
2026-12-04  0:52 ` ✗ CI.checkpatch: warning for Work around 52-bit limitation in CRI media (rev2) Patchwork
2026-12-04  0:54 ` ✓ CI.KUnit: success " Patchwork
2026-12-04  1:30 ` ✓ Xe.CI.BAT: " Patchwork
  -- 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=ea5bf01ef7a02a9aeb6fa9d15a3c2ed1f8a5adbe.camel@intel.com \
    --to=stuart.summers@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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