Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org,
	intel-gvt-dev@lists.freedesktop.org, rodrigo.vivi@intel.com
Subject: Re: [PATCH 5/6] drm/i915: remove unused pipe/plane B register macros
Date: Fri, 07 Jun 2024 15:12:40 +0300	[thread overview]
Message-ID: <87tti5kl3b.fsf@intel.com> (raw)
In-Reply-To: <ZmLwOzZO4e4gaXIS@intel.com>

On Fri, 07 Jun 2024, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Fri, Jun 07, 2024 at 01:51:28PM +0300, Jani Nikula wrote:
>> None of these are used. The parametrized register macros all depend on
>> the pipe/plane A offset macros alone. Remove the unused ones.
>> 
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>>  drivers/gpu/drm/i915/i915_reg.h | 23 -----------------------
>>  1 file changed, 23 deletions(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
>> index 15ad35178f1a..2d834c32a3fa 100644
>> --- a/drivers/gpu/drm/i915/i915_reg.h
>> +++ b/drivers/gpu/drm/i915/i915_reg.h
>> @@ -2214,29 +2214,6 @@
>>  #define SWF3(dev_priv, i)	_MMIO(DISPLAY_MMIO_BASE(dev_priv) + 0x72414 + (i) * 4)
>>  #define SWF_ILK(i)	_MMIO(0x4F000 + (i) * 4)
>>  
>> -/* Pipe B */
>> -#define _PIPEBDSL		(DISPLAY_MMIO_BASE(dev_priv) + 0x71000)
>> -#define _TRANSBCONF		(DISPLAY_MMIO_BASE(dev_priv) + 0x71008)
>> -#define _PIPEBSTAT		(DISPLAY_MMIO_BASE(dev_priv) + 0x71024)
>> -#define _PIPEBFRAMEHIGH		0x71040
>> -#define _PIPEBFRAMEPIXEL	0x71044
>> -#define _PIPEB_FRMCOUNT_G4X	(DISPLAY_MMIO_BASE(dev_priv) + 0x71040)
>> -#define _PIPEB_FLIPCOUNT_G4X	(DISPLAY_MMIO_BASE(dev_priv) + 0x71044)
>> -
>
> All the _ stuff should go for sure.
>
>> -
>> -/* Display B control */
>> -#define _DSPBCNTR		(DISPLAY_MMIO_BASE(dev_priv) + 0x71180)
>> -#define   DISP_ALPHA_TRANS_ENABLE	REG_BIT(15)
>
> Unlikely we'll ever use this, but if desired we could relocate
> this next to all the other DSPCNTR bits. With perhaps a note that
> it only applies to plane B.

Huh. I can't actually find a platform where bit 15 would be "alpha trans
enable". It's either 180 degree rotation or decompression of compressed
surfaces.

>> -#define   DISP_SPRITE_ABOVE_OVERLAY	REG_BIT(0)
>
> This too could be relocated, with a note that it only applies to plane
> B/C. Though as far as plane Z order goes I think there's at least one
> more bit for that we've not even defined, so this isn't super useful
> as is.

And here it's either reserved or relocated rotation in bits 0-1.

What am I missing?

BR,
Jani.


>
>> -#define _DSPBADDR		(DISPLAY_MMIO_BASE(dev_priv) + 0x71184)
>> -#define _DSPBSTRIDE		(DISPLAY_MMIO_BASE(dev_priv) + 0x71188)
>> -#define _DSPBPOS		(DISPLAY_MMIO_BASE(dev_priv) + 0x7118C)
>> -#define _DSPBSIZE		(DISPLAY_MMIO_BASE(dev_priv) + 0x71190)
>> -#define _DSPBSURF		(DISPLAY_MMIO_BASE(dev_priv) + 0x7119C)
>> -#define _DSPBTILEOFF		(DISPLAY_MMIO_BASE(dev_priv) + 0x711A4)
>> -#define _DSPBOFFSET		(DISPLAY_MMIO_BASE(dev_priv) + 0x711A4)
>> -#define _DSPBSURFLIVE		(DISPLAY_MMIO_BASE(dev_priv) + 0x711AC)
>> -
>>  /* ICL DSI 0 and 1 */
>>  #define _PIPEDSI0CONF		0x7b008
>>  #define _PIPEDSI1CONF		0x7b808
>> -- 
>> 2.39.2

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-06-07 12:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 10:51 [PATCH 0/6] drm/i915: gvt register macro cleanups, unused macro removals Jani Nikula
2024-06-07 10:51 ` [PATCH 1/6] drm/i915/gvt: remove the unused end parameter from calc_index() Jani Nikula
2024-06-07 10:51 ` [PATCH 2/6] drm/i915/gvt: use proper i915_reg_t for calc_index() parameters Jani Nikula
2024-06-07 10:51 ` [PATCH 3/6] drm/i915/gvt: rename range variable to stride Jani Nikula
2024-06-07 10:51 ` [PATCH 4/6] drm/i915/gvt: do not use implict dev_priv in DSPSURF_TO_PIPE() Jani Nikula
2024-06-07 10:51 ` [PATCH 5/6] drm/i915: remove unused pipe/plane B register macros Jani Nikula
2024-06-07 11:34   ` Ville Syrjälä
2024-06-07 12:12     ` Jani Nikula [this message]
2024-06-07 13:42       ` Ville Syrjälä
2024-06-07 10:51 ` [PATCH 6/6] drm/i915: remove unused HSW_STEREO_3D_CTL " Jani Nikula
2024-06-07 11:35   ` Ville Syrjälä
2024-06-07 12:21     ` Jani Nikula
2024-06-07 13:41       ` Rodrigo Vivi
2024-06-07 13:44       ` Ville Syrjälä
2024-06-07 15:09         ` Jani Nikula
2024-06-07 13:32 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: gvt register macro cleanups, unused macro removals Patchwork
2024-06-07 13:40 ` ✓ Fi.CI.BAT: success " 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=87tti5kl3b.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    --cc=ville.syrjala@linux.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