[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5da796b5-a19e-e07b-7cb5-7a30726bd2ff@linux.intel.com>
Date: Tue, 11 Jan 2022 09:13:37 +0000
From: Tvrtko Ursulin <tvrtko.ursulin@...ux.intel.com>
To: Colin Ian King <colin.i.king@...il.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i915: make array flex_regs static const
On 09/01/2022 20:31, Colin Ian King wrote:
> Don't populate the read-only array flex_regs on the stack but
> instead it static const. Also makes the object code a little smaller.
>
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
> ---
> drivers/gpu/drm/i915/i915_perf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
> index e27f3b7cf094..df698960fdc0 100644
> --- a/drivers/gpu/drm/i915/i915_perf.c
> +++ b/drivers/gpu/drm/i915/i915_perf.c
> @@ -2114,7 +2114,7 @@ gen8_update_reg_state_unlocked(const struct intel_context *ce,
> u32 ctx_oactxctrl = stream->perf->ctx_oactxctrl_offset;
> u32 ctx_flexeu0 = stream->perf->ctx_flexeu0_offset;
> /* The MMIO offsets for Flex EU registers aren't contiguous */
> - i915_reg_t flex_regs[] = {
> + static const i915_reg_t flex_regs[] = {
> EU_PERF_CNTL0,
> EU_PERF_CNTL1,
> EU_PERF_CNTL2,
>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@...el.com>
And will merge shortly, thanks for the patch.
Regards,
Tvrtko
Powered by blists - more mailing lists