diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3991-drm-amd-powerplay-initlialize-smu-is_apu-is-false-by.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3991-drm-amd-powerplay-initlialize-smu-is_apu-is-false-by.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3991-drm-amd-powerplay-initlialize-smu-is_apu-is-false-by.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3991-drm-amd-powerplay-initlialize-smu-is_apu-is-false-by.patch new file mode 100644 index 00000000..d6a5fb7a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3991-drm-amd-powerplay-initlialize-smu-is_apu-is-false-by.patch @@ -0,0 +1,36 @@ +From 0db115dbc6fb543d8477e5fbeab2dec3ffe265c0 Mon Sep 17 00:00:00 2001 +From: Kevin Wang <kevin1.wang@amd.com> +Date: Fri, 27 Sep 2019 14:52:10 +0800 +Subject: [PATCH 3991/4256] drm/amd/powerplay: initlialize smu->is_apu is false + by default + +the member of is_apu in smu_context need to initlialize by default. + +set default value is false (dGPU) + +for patch: + drm/amd/powerplay: bypass dpm_context null pointer check guard + for some smu series + +Signed-off-by: Kevin Wang <kevin1.wang@amd.com> +Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> +Reviewed-by: Prike Liang <Prike.Liang@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +index efc14c7e7bc2..c63b2a9902de 100644 +--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c ++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +@@ -712,6 +712,7 @@ static int smu_early_init(void *handle) + + smu->adev = adev; + smu->pm_enabled = !!amdgpu_dpm; ++ smu->is_apu = false; + mutex_init(&smu->mutex); + + return smu_set_funcs(adev); +-- +2.17.1 + |