]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe/pat: trim the xelp PAT table
authorMatthew Auld <matthew.auld@intel.com>
Fri, 6 Oct 2023 08:46:15 +0000 (09:46 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:42:58 +0000 (11:42 -0500)
commit406be3cc186eec67367b87a2af91cb598ff8e239
tree817d8f33f33cf22c58ae8b18a87c88d387e4876a
parente3fee3aa7a8911b60776127cb2e1c25ef8584f42
drm/xe/pat: trim the xelp PAT table

We don't seem to use the 4-7 pat indexes, even though they are defined
by the HW. In a future patch userspace will be able to directly set the
pat_index as part of vm_bind and we don't want to allow setting 4-7.
Simplest is to just ignore them here.

Suggested-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Pallavi Mishra <pallavi.mishra@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pat.c