aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1340-drm-amd-powerplay-add-interface-to-init-fb-allocatio.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1340-drm-amd-powerplay-add-interface-to-init-fb-allocatio.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1340-drm-amd-powerplay-add-interface-to-init-fb-allocatio.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1340-drm-amd-powerplay-add-interface-to-init-fb-allocatio.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1340-drm-amd-powerplay-add-interface-to-init-fb-allocatio.patch
new file mode 100644
index 00000000..c83b59b6
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1340-drm-amd-powerplay-add-interface-to-init-fb-allocatio.patch
@@ -0,0 +1,51 @@
+From 2f3cb318bb4d8e1de06688ef83c3fb892911353d Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Tue, 4 Dec 2018 18:54:50 +0800
+Subject: [PATCH 1340/2940] drm/amd/powerplay: add interface to init fb
+ allocations (v2)
+
+This patch adds interface to init fb allocations for smu.
+It's to allocate vram bos to store smc table contents.
+
+v2: add detailed info to describe this function
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+index d7d40bfba7b0..931343c80978 100644
+--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+@@ -132,6 +132,12 @@ static int smu_sw_fini(void *handle)
+ return 0;
+ }
+
++static int smu_init_fb_allocations(struct smu_context *smu)
++{
++ /* TODO */
++ return 0;
++}
++
+ static int smu_smc_table_hw_init(struct smu_context *smu)
+ {
+ int ret;
+@@ -153,6 +159,13 @@ static int smu_smc_table_hw_init(struct smu_context *smu)
+ if (ret)
+ return ret;
+
++ /*
++ * allocate vram bos to store smc table contents.
++ */
++ ret = smu_init_fb_allocations(smu);
++ if (ret)
++ return ret;
++
+ return 0;
+ }
+
+--
+2.17.1
+