summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-02-20 19:52:00 +0000
committerkettenis <kettenis@openbsd.org>2020-02-20 19:52:00 +0000
commit4c39f1796c98bfbbeb775a97f43f1002223f34c8 (patch)
tree9c9356ad121487142654458b4b5042e881ad27dd
parentdrm/amd: Add ucode DMCU support (diff)
downloadwireguard-openbsd-4c39f1796c98bfbbeb775a97f43f1002223f34c8.tar.xz
wireguard-openbsd-4c39f1796c98bfbbeb775a97f43f1002223f34c8.zip
drm/amd: Add PSP DMCU support
From David Francis 6b7eab2ce60d2363b0e4bfea6667439b926bcf54 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/psp_v10_0.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/psp_v10_0.c b/sys/dev/pci/drm/amd/amdgpu/psp_v10_0.c
index 31c1185f46e..abc2c5b9e66 100644
--- a/sys/dev/pci/drm/amd/amdgpu/psp_v10_0.c
+++ b/sys/dev/pci/drm/amd/amdgpu/psp_v10_0.c
@@ -92,6 +92,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;