drm/xe/xe_guc_ads: Add nonpriv registers to write list
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Fri, 22 Nov 2024 18:08:26 +0000 (18:08 +0000)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 3 Dec 2024 22:02:59 +0000 (14:02 -0800)
commit20124c3e22db52c6507529dbf2315260a5769a75
tree4319465a12c004908c1381b1c41e564fadc0f224
parent0c45e76fcc6243723f1f90848170d6bcb4a5bc6c
drm/xe/xe_guc_ads: Add nonpriv registers to write list

When performing a guc_mmio_regset_write, we add all the registers in the
reg_sr list to the save/restore list, but do not do the same for the
nonpriv registers.  Add them in.

v2:
- Add all NONPRIV registers to avoid undefined behavior (Harrison)
- s/whitelist/nonpriv

v3:
- Rebase

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2249
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
CC: Lucas de Marchi <lucas.demarchi@intel.com>
CC: Matt Roper <matthew.d.roper@intel.com>
CC: John Harrison <john.c.harrison@intel.com>
CC: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
CC: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241122180826.7075-1-jonathan.cavitt@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_guc_ads.c