From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>,
<intel-xe@lists.freedesktop.org>, <jani.nikula@linux.intel.com>
Subject: Re: [PATCH] drm/xe/xe_gt_idle: Fix name conflict
Date: Tue, 10 Sep 2024 12:39:29 -0400 [thread overview]
Message-ID: <ZuB2Qa2O1Vak6rVI@intel.com> (raw)
In-Reply-To: <0732e0c6-d3d1-4886-ba76-11995ca4554b@intel.com>
On Tue, Sep 10, 2024 at 09:55:23PM +0530, Riana Tauro wrote:
> Hi Rodrigo/ Matthew
>
> There was an error when this change was merged to linux-next
> https://lore.kernel.org/r/20240909195939.067c1c13@canb.auug.org.au
>
> The conflict was because the below commit
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/hardening&id=3ff37dbb1ae9926d3b51749f7d0d3f474fe2440b
>
> Jani suggested to rename or remove it in
> https://patchwork.freedesktop.org/patch/612760/?series=136477&rev=5.
>
> Removed it for now, will add it once the commit is in the tree
So, the easiest way is to just rename as Brost suggested.
Then when we are rebased on top of this we just include the
string choices and rename back.
But please mention this in the commit message.
>
> Thanks
> Riana Tauro
>
>
>
> On 9/10/2024 8:24 PM, Matthew Brost wrote:
> > On Tue, Sep 10, 2024 at 10:52:35AM -0400, Rodrigo Vivi wrote:
> > > On Tue, Sep 10, 2024 at 07:58:37PM +0530, Riana Tauro wrote:
> > > > Remove local copy of str_up_down to fix name conflict.
> > >
> > > what conflict?
> > >
> > > I don't see any conflict caused by this. But well, nothing
> > > against this change itself.
> > >
> >
> > I don't see one either:
> > https://elixir.bootlin.com/linux/v6.11-rc7/A/ident/str_up_down
> >
> > > perhaps s/to fix/to avoid/g in the commit message?!
> > >
> >
> > What about s/str_up_down/__str_up_down rather than remove the helper.
> >
> > > Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > >
> > > >
> > > > Fixes: 0914c1e45d3a ("drm/xe/xe_gt_idle: add debugfs entry for powergating info")
> > > > Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> > > > ---
> > > > drivers/gpu/drm/xe/xe_gt_debugfs.c | 2 +-
> > > > drivers/gpu/drm/xe/xe_gt_idle.c | 9 ++-------
> > > > 2 files changed, 3 insertions(+), 8 deletions(-)
> > > >
> > > > diff --git a/drivers/gpu/drm/xe/xe_gt_debugfs.c b/drivers/gpu/drm/xe/xe_gt_debugfs.c
> > > > index cbc43973ff7e..8f850b9e1947 100644
> > > > --- a/drivers/gpu/drm/xe/xe_gt_debugfs.c
> > > > +++ b/drivers/gpu/drm/xe/xe_gt_debugfs.c
> > > > @@ -14,8 +14,8 @@
> > > > #include "xe_force_wake.h"
> > > > #include "xe_ggtt.h"
> > > > #include "xe_gt.h"
> > > > -#include "xe_gt_mcr.h"
> > > > #include "xe_gt_idle.h"
> > > > +#include "xe_gt_mcr.h"
> > > > #include "xe_gt_sriov_pf_debugfs.h"
> > > > #include "xe_gt_sriov_vf_debugfs.h"
> > > > #include "xe_gt_stats.h"
> > > > diff --git a/drivers/gpu/drm/xe/xe_gt_idle.c b/drivers/gpu/drm/xe/xe_gt_idle.c
> > > > index 85a35ed153a3..a8ce8b484561 100644
> > > > --- a/drivers/gpu/drm/xe/xe_gt_idle.c
> > > > +++ b/drivers/gpu/drm/xe/xe_gt_idle.c
> > > > @@ -53,11 +53,6 @@ pc_to_xe(struct xe_guc_pc *pc)
> > > > return gt_to_xe(gt);
> > > > }
> > > > -static inline const char *str_up_down(bool v)
> >
> > Also if this is kept, drop the inline as we don't use inline in *.c in Xe.
> >
> > Matt
> >
> > > > -{
> > > > - return v ? "up" : "down";
> > > > -}
> > > > -
> > > > static const char *gt_idle_state_to_string(enum xe_gt_idle_state state)
> > > > {
> > > > switch (state) {
> > > > @@ -227,7 +222,7 @@ int xe_gt_idle_pg_print(struct xe_gt *gt, struct drm_printer *p)
> > > > str_yes_no(pg_enabled & RENDER_POWERGATE_ENABLE));
> > > > drm_printf(p, "Render Power Gate Status: %s\n",
> > > > - str_up_down(pg_status & RENDER_AWAKE_STATUS));
> > > > + (pg_status & RENDER_AWAKE_STATUS) ? "up" : "down");
> > > > }
> > > > vcs_mask = xe_hw_engine_mask_per_class(gt, XE_ENGINE_CLASS_VIDEO_DECODE);
> > > > @@ -241,7 +236,7 @@ int xe_gt_idle_pg_print(struct xe_gt *gt, struct drm_printer *p)
> > > > for (n = 0; n < ARRAY_SIZE(media_slices); n++)
> > > > if (gt->info.engine_mask & media_slices[n].engines)
> > > > drm_printf(p, "Media Slice%d Power Gate Status: %s\n", n,
> > > > - str_up_down(pg_status & media_slices[n].status_bit));
> > > > + (pg_status & media_slices[n].status_bit) ? "up" : "down");
> > > > }
> > > > return 0;
> > > > }
> > > > --
> > > > 2.40.0
> > > >
next prev parent reply other threads:[~2024-09-10 16:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 14:28 [PATCH] drm/xe/xe_gt_idle: Fix name conflict Riana Tauro
2024-09-10 14:52 ` Rodrigo Vivi
2024-09-10 14:54 ` Matthew Brost
2024-09-10 16:25 ` Riana Tauro
2024-09-10 16:39 ` Rodrigo Vivi [this message]
2024-09-10 16:48 ` Lucas De Marchi
2024-09-10 17:23 ` Rodrigo Vivi
2024-09-10 17:45 ` Rodrigo Vivi
2024-09-11 6:39 ` Riana Tauro
2024-09-11 20:53 ` Rodrigo Vivi
2024-09-10 16:26 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-10 16:26 ` ✓ CI.checkpatch: " Patchwork
2024-09-10 16:27 ` ✓ CI.KUnit: " Patchwork
2024-09-10 16:39 ` ✓ CI.Build: " Patchwork
2024-09-10 16:42 ` ✓ CI.Hooks: " Patchwork
2024-09-10 16:43 ` ✓ CI.checksparse: " Patchwork
2024-09-10 16:57 ` ✓ CI.BAT: " Patchwork
2024-09-10 20:11 ` ✗ 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=ZuB2Qa2O1Vak6rVI@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=matthew.brost@intel.com \
--cc=riana.tauro@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.