All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harish Chegondi <harish.chegondi@intel.com>
To: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <james.ausmus@intel.com>,
	<felix.j.degrood@intel.com>, <jose.souza@intel.com>,
	<matias.a.cabral@intel.com>, <joshua.santosh.ranjan@intel.com>,
	<shubham.kumar@intel.com>
Subject: Re: [PATCH v4 1/5] drm/xe/topology: Add a function to find the index of the last DSS in a mask
Date: Tue, 15 Oct 2024 20:44:30 -0700	[thread overview]
Message-ID: <Zw82ni3Y7eQhdvUn@intel.com> (raw)
In-Reply-To: <85ldyq2x5y.wl-ashutosh.dixit@intel.com>

On Mon, Oct 14, 2024 at 02:26:49PM -0700, Dixit, Ashutosh wrote:
> On Sun, 13 Oct 2024 23:00:32 -0700, Harish Chegondi wrote:
> >
> > Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
> > ---
> >  drivers/gpu/drm/xe/xe_gt_topology.c | 9 +++++++++
> >  drivers/gpu/drm/xe/xe_gt_topology.h | 3 +++
> >  2 files changed, 12 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_gt_topology.c b/drivers/gpu/drm/xe/xe_gt_topology.c
> > index df2042db7ee6..1e7476f71906 100644
> > --- a/drivers/gpu/drm/xe/xe_gt_topology.c
> > +++ b/drivers/gpu/drm/xe/xe_gt_topology.c
> > @@ -278,6 +278,15 @@ xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum)
> >	return find_next_bit(mask, XE_MAX_DSS_FUSE_BITS, groupnum * groupsize);
> >  }
> >
> > +/*
> > + * Used to obtain the index of the last DSS.
> > + */
> > +unsigned int
> > +xe_dss_mask_last_dss(const xe_dss_mask_t mask)
> > +{
> > +	return find_last_bit(mask, XE_MAX_DSS_FUSE_BITS);
> 
> Does this need to be exposed from xe_gt_topology.c/.h, can't this just be
> local to eu stall?

The reason I exposed this is - there is another function
xe_dss_mask_group_ffs() to find the index of the first DSS in xe_gt_topology.c/.h
This new function is to find the last DSS which is some what related to
xe_dss_mask_group_ffs() and can be useful if exposed.
So, I exposed it instead of keeping it local to EU stall code.

Thanks
Harish.

> 
> > +}
> > +
> >  bool xe_dss_mask_empty(const xe_dss_mask_t mask)
> >  {
> >	return bitmap_empty(mask, XE_MAX_DSS_FUSE_BITS);
> > diff --git a/drivers/gpu/drm/xe/xe_gt_topology.h b/drivers/gpu/drm/xe/xe_gt_topology.h
> > index 746b325bbf6e..7ee022784397 100644
> > --- a/drivers/gpu/drm/xe/xe_gt_topology.h
> > +++ b/drivers/gpu/drm/xe/xe_gt_topology.h
> > @@ -28,6 +28,9 @@ void xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p);
> >  unsigned int
> >  xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum);
> >
> > +unsigned int
> > +xe_dss_mask_last_dss(const xe_dss_mask_t mask);
> > +
> >  bool xe_dss_mask_empty(const xe_dss_mask_t mask);
> >
> >  bool
> > --
> > 2.45.1
> >

  reply	other threads:[~2024-10-16  3:44 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-14  6:00 [PATCH v4 0/5] Add support for EU stall sampling Harish Chegondi
2024-10-14  6:00 ` [PATCH v4 1/5] drm/xe/topology: Add a function to find the index of the last DSS in a mask Harish Chegondi
2024-10-14 21:26   ` Dixit, Ashutosh
2024-10-16  3:44     ` Harish Chegondi [this message]
2024-10-18 21:26   ` Matt Roper
2024-10-14  6:00 ` [PATCH v4 2/5] drm/xe/eustall: Introduce API for EU stall sampling Harish Chegondi
2024-10-14 22:21   ` Dixit, Ashutosh
2024-10-18 22:03   ` Matt Roper
2024-11-14 16:23   ` Umesh Nerlige Ramappa
2024-11-19 23:59     ` Harish Chegondi
2024-11-20 19:04       ` Dixit, Ashutosh
2024-11-21  1:05         ` Umesh Nerlige Ramappa
2024-11-21  3:18           ` Dixit, Ashutosh
2024-11-22 18:18             ` Dixit, Ashutosh
2024-11-27 18:47               ` Harish Chegondi
2024-11-29  4:31                 ` Kumar, Shubham
2024-11-29  4:35                 ` Kumar, Shubham
2024-10-14  6:00 ` [PATCH v4 3/5] drm/xe/eustall: Implement EU stall sampling APIs Harish Chegondi
2024-10-18 23:31   ` Matt Roper
2024-10-14  6:00 ` [PATCH v4 4/5] drm/xe/query: Add a device query to get EU stall data information Harish Chegondi
2024-10-14 21:39   ` Dixit, Ashutosh
2024-10-14  6:00 ` [PATCH v4 5/5] drm/xe/eustall: Add workaround 22016596838 which applies to PVC Harish Chegondi
2024-10-14  6:05 ` ✓ CI.Patch_applied: success for Add support for EU stall sampling Patchwork
2024-10-14  6:05 ` ✗ CI.checkpatch: warning " Patchwork
2024-10-14  6:06 ` ✓ CI.KUnit: success " Patchwork
2024-10-14  6:18 ` ✓ CI.Build: " Patchwork
2024-10-14  6:20 ` ✗ CI.Hooks: failure " Patchwork
2024-10-14  6:22 ` ✓ CI.checksparse: success " Patchwork
2024-10-14  6:47 ` ✓ CI.BAT: " Patchwork
2024-10-14  7:54 ` ✗ CI.FULL: failure " 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=Zw82ni3Y7eQhdvUn@intel.com \
    --to=harish.chegondi@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=felix.j.degrood@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=james.ausmus@intel.com \
    --cc=jose.souza@intel.com \
    --cc=joshua.santosh.ranjan@intel.com \
    --cc=matias.a.cabral@intel.com \
    --cc=shubham.kumar@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.