diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1920-drm-amdgpu-vega10-static-constify-channel_number.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1920-drm-amdgpu-vega10-static-constify-channel_number.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1920-drm-amdgpu-vega10-static-constify-channel_number.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1920-drm-amdgpu-vega10-static-constify-channel_number.patch new file mode 100644 index 00000000..86d79c1d --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1920-drm-amdgpu-vega10-static-constify-channel_number.patch @@ -0,0 +1,28 @@ +From 0b15c9be9a3da2e4610173c9a585114874a298b0 Mon Sep 17 00:00:00 2001 +From: Dave Airlie <airlied@redhat.com> +Date: Thu, 28 Sep 2017 06:51:21 +1000 +Subject: [PATCH 1920/4131] drm/amdgpu/vega10: static constify channel_number + +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Dave Airlie <airlied@redhat.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +index faf57fc..6976843 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +@@ -56,7 +56,7 @@ + + #define HBM_MEMORY_CHANNEL_WIDTH 128 + +-uint32_t channel_number[] = {1, 2, 0, 4, 0, 8, 0, 16, 2}; ++static const uint32_t channel_number[] = {1, 2, 0, 4, 0, 8, 0, 16, 2}; + + #define MEM_FREQ_LOW_LATENCY 25000 + #define MEM_FREQ_HIGH_LATENCY 80000 +-- +2.7.4 + |