From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 3/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C02
Date: Mon, 29 Apr 2024 10:24:16 -0400 [thread overview]
Message-ID: <Zi-tkMDLRDD-Wiix@intel.com> (raw)
In-Reply-To: <550d4e787445802236f0bf89e4d2f4f32cbd6d75.1714399071.git.jani.nikula@intel.com>
On Mon, Apr 29, 2024 at 05:02:17PM +0300, Jani Nikula wrote:
> Avoid the implicit dev_priv local variable use, and pass dev_priv
> explicitly to the PIPE_WGC_C02 register macro.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_color.c | 4 ++--
> drivers/gpu/drm/i915/display/intel_color_regs.h | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
> index cdcf8e796335..f96d6af028b6 100644
> --- a/drivers/gpu/drm/i915/display/intel_color.c
> +++ b/drivers/gpu/drm/i915/display/intel_color.c
> @@ -618,7 +618,7 @@ static void vlv_load_wgc_csc(struct intel_crtc *crtc,
>
> intel_de_write_fw(dev_priv, PIPE_WGC_C01_C00(dev_priv, pipe),
> csc->coeff[1] << 16 | csc->coeff[0]);
> - intel_de_write_fw(dev_priv, PIPE_WGC_C02(pipe),
> + intel_de_write_fw(dev_priv, PIPE_WGC_C02(dev_priv, pipe),
> csc->coeff[2]);
>
> intel_de_write_fw(dev_priv, PIPE_WGC_C11_C10(pipe),
> @@ -643,7 +643,7 @@ static void vlv_read_wgc_csc(struct intel_crtc *crtc,
> csc->coeff[0] = tmp & 0xffff;
> csc->coeff[1] = tmp >> 16;
>
> - tmp = intel_de_read_fw(dev_priv, PIPE_WGC_C02(pipe));
> + tmp = intel_de_read_fw(dev_priv, PIPE_WGC_C02(dev_priv, pipe));
> csc->coeff[2] = tmp & 0xffff;
>
> tmp = intel_de_read_fw(dev_priv, PIPE_WGC_C11_C10(pipe));
> diff --git a/drivers/gpu/drm/i915/display/intel_color_regs.h b/drivers/gpu/drm/i915/display/intel_color_regs.h
> index 57438989f469..741c0b8592d9 100644
> --- a/drivers/gpu/drm/i915/display/intel_color_regs.h
> +++ b/drivers/gpu/drm/i915/display/intel_color_regs.h
> @@ -257,7 +257,7 @@
> #define _PIPE_A_WGC_C22 0x600C4 /* s2.10 */
>
> #define PIPE_WGC_C01_C00(dev_priv, pipe) _MMIO_TRANS2(dev_priv, pipe, _PIPE_A_WGC_C01_C00)
> -#define PIPE_WGC_C02(pipe) _MMIO_TRANS2(dev_priv, pipe, _PIPE_A_WGC_C02)
> +#define PIPE_WGC_C02(dev_priv, pipe) _MMIO_TRANS2(dev_priv, pipe, _PIPE_A_WGC_C02)
> #define PIPE_WGC_C11_C10(pipe) _MMIO_TRANS2(dev_priv, pipe, _PIPE_A_WGC_C11_C10)
> #define PIPE_WGC_C12(pipe) _MMIO_TRANS2(dev_priv, pipe, _PIPE_A_WGC_C12)
> #define PIPE_WGC_C21_C20(pipe) _MMIO_TRANS2(dev_priv, pipe, _PIPE_A_WGC_C21_C20)
> --
> 2.39.2
>
next prev parent reply other threads:[~2024-04-29 14:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 14:02 [PATCH 0/7] drm/i915/color: first batch of implicit dev_priv removals Jani Nikula
2024-04-29 14:02 ` [PATCH 1/7] drm/i915: pass dev_priv explicitly to PALETTE Jani Nikula
2024-04-29 14:23 ` Rodrigo Vivi
2024-04-30 9:41 ` Jani Nikula
2024-04-29 14:02 ` [PATCH 2/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C01_C00 Jani Nikula
2024-04-29 14:23 ` Rodrigo Vivi
2024-04-29 14:02 ` [PATCH 3/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C02 Jani Nikula
2024-04-29 14:24 ` Rodrigo Vivi [this message]
2024-04-29 14:02 ` [PATCH 4/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C11_C10 Jani Nikula
2024-04-29 14:24 ` Rodrigo Vivi
2024-04-29 14:02 ` [PATCH 5/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C12 Jani Nikula
2024-04-29 14:24 ` Rodrigo Vivi
2024-04-29 14:02 ` [PATCH 6/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C21_C20 Jani Nikula
2024-04-29 14:25 ` Rodrigo Vivi
2024-04-29 14:02 ` [PATCH 7/7] drm/i915: pass dev_priv explicitly to PIPE_WGC_C22 Jani Nikula
2024-04-29 14:25 ` Rodrigo Vivi
2024-04-29 15:11 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/color: first batch of implicit dev_priv removals Patchwork
2024-04-29 15:11 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-04-29 15:20 ` ✓ Fi.CI.BAT: success " Patchwork
2024-04-29 20:18 ` ✓ Fi.CI.IGT: " 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=Zi-tkMDLRDD-Wiix@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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