From: Raag Jadav <raag.jadav@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>,
Andi Shyti <andi.shyti@kernel.org>,
Matt Atwood <matthew.s.atwood@intel.com>,
intel-gfx@lists.freedesktop.org, matthew.d.roper@intel.com
Subject: Re: [PATCH v3] drm/i915:move and rename reg_in_range_table
Date: Thu, 16 Oct 2025 17:26:17 +0200 [thread overview]
Message-ID: <aPEOmdqD4YlijyU0@black.igk.intel.com> (raw)
In-Reply-To: <bedf7c86774b9eb81bdd8e03107c7da04c9cd1f7@intel.com>
On Thu, Oct 16, 2025 at 06:20:01PM +0300, Jani Nikula wrote:
> On Thu, 16 Oct 2025, Rodrigo Vivi <rodrigo.vivi@intel.com> wrote:
> > On Tue, Oct 14, 2025 at 01:09:46AM +0200, Andi Shyti wrote:
> > > Hi,
> > >
> > > On Fri, Oct 10, 2025 at 09:19:24AM -0400, Rodrigo Vivi wrote:
> > > > On Fri, Oct 10, 2025 at 12:55:02PM +0300, Jani Nikula wrote:
> > > > > On Thu, 09 Oct 2025, Matt Atwood <matthew.s.atwood@intel.com> wrote:
> > > > > > reg_in_range_table is a useful function that is used in multiple places,
> > > > > > and will be needed for WA_BB implementation later.
> > > > > >
> > > > > > Let's move this function and i915_range struct to its own file, as we are
> > > > > > trying to move away from i915_utils files.
> > > > > >
> > > > > > v2: move functions to their own file
> > > > > > v3: use correct naming convention
> > > > >
> > > > > Okay, Message from the Department of Bikeshedding and Nitpicking.
> > > > >
> > > > > There's really nothing mmio specific about the functionality being
> > > > > abstracted. You have a range represented by two u32's in a struct, and a
> > > > > function to check if another u32 is within that range.
> > > > >
> > > > > The struct could just as well remain i915_range, the files could be
> > > > > i915_range.[ch], and the function could be, say,
> > > > > i915_range_table_contains(). IMO "mmio" makes it unnecessarily specific.
> > > >
> > > > hmm, I'm really sorry about that... That is my bad. I'm so bad with naming.
> > > >
> > > > I suggested mmio in the name because i915_range is way to generic.
> > > > The other extreme side.
> > > >
> > > > Perhaps i915_addr_range ?
> > >
> > > If we use it only for mmio, why should we make it generic? If we
> > > want to keep things generic we could well use things from in
> > > range.h, as Jani has suggested in one of his reviews and add our
> > > function directly there.
> >
> > Well, I don't have strong feelings here.
> >
> > Perhaps i915_addr_range is more generic and middle ground.
> >
> > Jani?
>
> Lots of bikeshedding here, but in the end just get it merged with
> whatever naming and move on?
We've all been here at some point, this is arguably the hardest part :D
Raag
next prev parent reply other threads:[~2025-10-16 15:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-09 21:52 [PATCH v3] drm/i915:move and rename reg_in_range_table Matt Atwood
2025-10-10 0:07 ` ✗ i915.CI.BAT: failure for drm/i915:move and rename reg_in_range_table (rev2) Patchwork
2025-10-10 9:55 ` [PATCH v3] drm/i915:move and rename reg_in_range_table Jani Nikula
2025-10-10 13:19 ` Rodrigo Vivi
2025-10-10 21:26 ` Matt Atwood
2025-10-13 23:09 ` Andi Shyti
2025-10-16 12:19 ` Rodrigo Vivi
2025-10-16 15:20 ` Jani Nikula
2025-10-16 15:26 ` Raag Jadav [this message]
2025-10-16 19:25 ` Rodrigo Vivi
2025-10-10 13:07 ` Ville Syrjälä
2025-10-10 21:23 ` Matt Atwood
2025-10-10 22:56 ` Ville Syrjälä
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=aPEOmdqD4YlijyU0@black.igk.intel.com \
--to=raag.jadav@intel.com \
--cc=andi.shyti@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=matthew.d.roper@intel.com \
--cc=matthew.s.atwood@intel.com \
--cc=rodrigo.vivi@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