Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
	Alan Previn <alan.previn.teres.alexis@intel.com>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/guc: make default_lists const data
Date: Wed, 23 Nov 2022 14:15:06 +0200	[thread overview]
Message-ID: <87edttx3xx.fsf@intel.com> (raw)
In-Reply-To: <20221122173820.ub5sleuugf5ao47n@ldmartin-desk2.lan>

On Tue, 22 Nov 2022, Lucas De Marchi <lucas.demarchi@intel.com> wrote:
> On Tue, Nov 22, 2022 at 04:16:16PM +0200, Jani Nikula wrote:
>>The default_lists array should be in rodata.
>>
>>Fixes: dce2bd542337 ("drm/i915/guc: Add Gen9 registers for GuC error state capture.")
>>Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
>>Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>>Cc: Lucas De Marchi <lucas.demarchi@intel.com>
>>Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
>
> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>

Thanks, pushed to drm-intel-gt-next.

BR,
Jani.

>
> thanks
> Lucas De Marchi
>
>>---
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>>diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
>>index 1d49a7ec0bd8..1c1b85073b4b 100644
>>--- a/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
>>+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
>>@@ -170,7 +170,7 @@ static const struct __guc_mmio_reg_descr empty_regs_list[] = {
>> 	}
>>
>> /* List of lists */
>>-static struct __guc_mmio_reg_descr_group default_lists[] = {
>>+static const struct __guc_mmio_reg_descr_group default_lists[] = {
>> 	MAKE_REGLIST(default_global_regs, PF, GLOBAL, 0),
>> 	MAKE_REGLIST(default_rc_class_regs, PF, ENGINE_CLASS, GUC_RENDER_CLASS),
>> 	MAKE_REGLIST(xe_lpd_rc_inst_regs, PF, ENGINE_INSTANCE, GUC_RENDER_CLASS),
>>-- 
>>2.34.1
>>

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2022-11-23 12:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-22 14:16 [Intel-gfx] [PATCH] drm/i915/guc: make default_lists const data Jani Nikula
2022-11-22 17:38 ` Lucas De Marchi
2022-11-23 12:15   ` Jani Nikula [this message]
2022-11-22 19:09 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for " Patchwork
2022-11-22 19:38 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-11-23  7:37 ` [Intel-gfx] ✓ 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=87edttx3xx.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=alan.previn.teres.alexis@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=lucas.demarchi@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