From: Matthew Auld Date: Fri, 6 Oct 2023 08:46:15 +0000 (+0100) Subject: drm/xe/pat: trim the xelp PAT table X-Git-Tag: v6.8-rc1~111^2~7^2~302 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=406be3cc186eec67367b87a2af91cb598ff8e239;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Matthew Auld Cc: Pallavi Mishra Cc: Lucas De Marchi Reviewed-by: Matt Roper Reviewed-by: Lucas De Marchi Reviewed-by: José Roberto de Souza Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c index 31565ccbb0ec1..7c1078707aa0e 100644 --- a/drivers/gpu/drm/xe/xe_pat.c +++ b/drivers/gpu/drm/xe/xe_pat.c @@ -56,10 +56,6 @@ static const u32 xelp_pat_table[] = { [1] = XELP_PAT_WC, [2] = XELP_PAT_WT, [3] = XELP_PAT_UC, - [4] = XELP_PAT_WB, - [5] = XELP_PAT_WB, - [6] = XELP_PAT_WB, - [7] = XELP_PAT_WB, }; static const u32 xehpc_pat_table[] = {