]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Don't hardcode GuC's MOCS index in register header
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 2 Jun 2023 23:52:10 +0000 (16:52 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:34:28 +0000 (18:34 -0500)
commit1fce9a6f69f57318842bd2771f761f203db6f49c
tree9f5f195686e72f2d5d95c518113c542ddb217f98
parent17a6726c3d3040c0a47d7ec5bd8cc4056a379017
drm/xe: Don't hardcode GuC's MOCS index in register header

Although PVC is currently the only platform that needs us to program a
GuC register with the index of an uncached MOCS entry, it's likely other
platforms will need this in the future.  Rather than hardcoding PVC's
index into the register header, we should just pull the appropriate
index from gt->mocs.uc_index to future-proof the code.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20230602235210.1314028-3-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/regs/xe_guc_regs.h
drivers/gpu/drm/xe/xe_guc.c