From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "Lin, Shuicheng" <shuicheng.lin@intel.com>
Cc: "Auld, Matthew" <matthew.auld@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Fix stolen size check to allow equal WOPCM size
Date: Tue, 21 Oct 2025 13:11:07 -0400 [thread overview]
Message-ID: <aPe-q-JaxJAToN9q@intel.com> (raw)
In-Reply-To: <BL1PR11MB5447E7EA697902D7F6925F35EAF2A@BL1PR11MB5447.namprd11.prod.outlook.com>
On Tue, Oct 21, 2025 at 12:09:44PM -0400, Lin, Shuicheng wrote:
> Thanks Matthew for the review.
>
> Hi xe maintainers,
> Could you please help me review and merge it?
> Thanks in advance for your support.
Double sorry here, for the delay and for missing this case where
the stolen is solely the wocpm.
pushed to drm-xe-next now.
Thanks,
Rodrigo.
>
> Best Regards
> Shuicheng
>
> On Fri, Oct 17, 2025 1:55 AM Matthew Auld wrote:
> > On 16/10/2025 23:55, Shuicheng Lin wrote:
> > > On some platforms without dedicated stolen memory, the calculated
> > > stolen size may be exactly equal to the WOPCM size. The current
> > > assertion incorrectly requires it to be strictly greater, causing a
> > > false failure. Relax the check to allow equality.
> > >
> > > Fixes: 65369b8e2961 ("drm/xe: Change return type of detect_bar2_dgfx()
> > > from s64 to u64")
> > > Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6359
> > > Cc: Matthew Auld <matthew.auld@intel.com>
> > > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > > Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
> >
> > Looking at the logs for PVC it has previously never been probed with an actual
> > usable stolen area it seems, so this looks correct to me.
> >
> > Reviewed-by: Matthew Auld <matthew.auld@intel.com>
> >
> > > ---
> > > drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> > > b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> > > index e368b2a36bac..1bddecfb723a 100644
> > > --- a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> > > +++ b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> > > @@ -106,7 +106,7 @@ static u64 detect_bar2_dgfx(struct xe_device *xe,
> > > struct xe_ttm_stolen_mgr *mgr)
> > >
> > > stolen_size = tile_size - mgr->stolen_base;
> > >
> > > - xe_assert(xe, stolen_size > wopcm_size);
> > > + xe_assert(xe, stolen_size >= wopcm_size);
> > > stolen_size -= wopcm_size;
> > >
> > > /* Verify usage fits in the actual resource available */
>
next prev parent reply other threads:[~2025-10-21 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 22:55 [PATCH] drm/xe: Fix stolen size check to allow equal WOPCM size Shuicheng Lin
2025-10-16 23:04 ` ✓ CI.KUnit: success for " Patchwork
2025-10-16 23:42 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-17 8:54 ` [PATCH] " Matthew Auld
2025-10-21 16:09 ` Lin, Shuicheng
2025-10-21 17:11 ` Rodrigo Vivi [this message]
2025-10-17 20:53 ` ✓ Xe.CI.Full: success for " 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=aPe-q-JaxJAToN9q@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--cc=shuicheng.lin@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.