diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0302-drm-amd-Add-PSP-DMCU-support.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0302-drm-amd-Add-PSP-DMCU-support.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0302-drm-amd-Add-PSP-DMCU-support.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0302-drm-amd-Add-PSP-DMCU-support.patch new file mode 100644 index 00000000..6b398263 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0302-drm-amd-Add-PSP-DMCU-support.patch @@ -0,0 +1,39 @@ +From 0a9e1cfba8f00f6f7b68e929d7f6f97dbe641af2 Mon Sep 17 00:00:00 2001 +From: David Francis <David.Francis@amd.com> +Date: Tue, 11 Sep 2018 13:46:41 -0400 +Subject: [PATCH 0302/2940] drm/amd: Add PSP DMCU support + +DMCU (Display Microcontroller Unit) is a GPU chip involved in +eDP features like Adaptive Backlight Modulation and Panel Self +Refresh. + +PSP is already equipped to handle DMCU firmware loading, all +that is needed is to translate between the new DMCU ucode ID and +the equivalent psp_gfx_fw_type. + +Signed-off-by: David Francis <David.Francis@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c +index 45f932250862..295c2205485a 100644 +--- a/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c +@@ -93,6 +93,12 @@ psp_v10_0_get_fw_type(struct amdgpu_firmware_info *ucode, enum psp_gfx_fw_type * + case AMDGPU_UCODE_ID_VCN: + *type = GFX_FW_TYPE_VCN; + break; ++ case AMDGPU_UCODE_ID_DMCU_ERAM: ++ *type = GFX_FW_TYPE_DMCU_ERAM; ++ break; ++ case AMDGPU_UCODE_ID_DMCU_INTV: ++ *type = GFX_FW_TYPE_DMCU_ISR; ++ break; + case AMDGPU_UCODE_ID_MAXIMUM: + default: + return -EINVAL; +-- +2.17.1 + |