aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0412-drm-amdgpu-gfx7-add-MTYPE-definition.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0412-drm-amdgpu-gfx7-add-MTYPE-definition.patch')
-rw-r--r--common/recipes-kernel/linux/files/0412-drm-amdgpu-gfx7-add-MTYPE-definition.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0412-drm-amdgpu-gfx7-add-MTYPE-definition.patch b/common/recipes-kernel/linux/files/0412-drm-amdgpu-gfx7-add-MTYPE-definition.patch
new file mode 100644
index 00000000..ddb67942
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0412-drm-amdgpu-gfx7-add-MTYPE-definition.patch
@@ -0,0 +1,32 @@
+From c40eaf1b92a5dbf10b5591e6095fc99989af28ca Mon Sep 17 00:00:00 2001
+From: Flora Cui <flora.cui@amd.com>
+Date: Mon, 12 Oct 2015 10:12:03 +0800
+Subject: [PATCH 0412/1110] drm/amdgpu/gfx7: add MTYPE definition
+
+Signed-off-by: Flora Cui <Flora.Cui@amd.com>
+Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/include/asic_reg/gca/gfx_7_2_enum.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_7_2_enum.h b/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_7_2_enum.h
+index 9d4347d..dfe7879 100644
+--- a/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_7_2_enum.h
++++ b/drivers/gpu/drm/amd/include/asic_reg/gca/gfx_7_2_enum.h
+@@ -6225,6 +6225,12 @@ typedef enum TCC_CACHE_POLICIES {
+ TCC_CACHE_POLICY_STREAM = 0x1,
+ TCC_CACHE_POLICY_BYPASS = 0x2,
+ } TCC_CACHE_POLICIES;
++typedef enum MTYPE {
++ MTYPE_NC_NV = 0x0,
++ MTYPE_NC = 0x1,
++ MTYPE_CC = 0x2,
++ MTYPE_UC = 0x3,
++} MTYPE;
+ typedef enum PERFMON_COUNTER_MODE {
+ PERFMON_COUNTER_MODE_ACCUM = 0x0,
+ PERFMON_COUNTER_MODE_ACTIVE_CYCLES = 0x1,
+--
+2.7.4
+