From: Lang Yu Date: Fri, 17 Jun 2022 02:35:47 +0000 (+0800) Subject: drm/amdgpu: add HWID for VPE X-Git-Tag: v6.7-rc1~145^2~10^2~473 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b233357a63961dbb70fccb5d6076ec80a964b3a;p=thirdparty%2Flinux.git drm/amdgpu: add HWID for VPE Add HWID for Video Processing Engine. Signed-off-by: Lang Yu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 76a931877dead..003fddffab50e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -175,6 +175,7 @@ static const char *hw_id_names[HW_ID_MAX] = { [XGMI_HWID] = "XGMI", [XGBE_HWID] = "XGBE", [MP0_HWID] = "MP0", + [VPE_HWID] = "VPE", }; static int hw_id_map[MAX_HWIP] = { @@ -204,6 +205,7 @@ static int hw_id_map[MAX_HWIP] = { [XGMI_HWIP] = XGMI_HWID, [DCI_HWIP] = DCI_HWID, [PCIE_HWIP] = PCIE_HWID, + [VPE_HWIP] = VPE_HWID, }; static int amdgpu_discovery_read_binary_from_sysmem(struct amdgpu_device *adev, uint8_t *binary) diff --git a/drivers/gpu/drm/amd/include/soc15_hw_ip.h b/drivers/gpu/drm/amd/include/soc15_hw_ip.h index bc9783da7e96c..dad83037793aa 100644 --- a/drivers/gpu/drm/amd/include/soc15_hw_ip.h +++ b/drivers/gpu/drm/amd/include/soc15_hw_ip.h @@ -43,6 +43,7 @@ #define DAZ_HWID 274 #define SDPMUX_HWID 19 #define NTB_HWID 20 +#define VPE_HWID 21 #define IOHC_HWID 24 #define L2IMU_HWID 28 #define VCE_HWID 32