Skip to content

Commit 82a277d

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Export DMCUB version to sysfs
For supported ASICs DMCU version is exported, but ASICs that support DMCUB there is no information exported to sysfs. Add an attribute for DMCUB. Reviewed-by: Lijo Lazar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 324194b commit 82a277d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ FW_VERSION_ATTR(sdma_fw_version, 0444, sdma.instance[0].fw_version);
765765
FW_VERSION_ATTR(sdma2_fw_version, 0444, sdma.instance[1].fw_version);
766766
FW_VERSION_ATTR(vcn_fw_version, 0444, vcn.fw_version);
767767
FW_VERSION_ATTR(dmcu_fw_version, 0444, dm.dmcu_fw_version);
768+
FW_VERSION_ATTR(dmcub_fw_version, 0444, dm.dmcub_fw_version);
768769
FW_VERSION_ATTR(mes_fw_version, 0444, mes.sched_version & AMDGPU_MES_VERSION_MASK);
769770
FW_VERSION_ATTR(mes_kiq_fw_version, 0444, mes.kiq_version & AMDGPU_MES_VERSION_MASK);
770771
FW_VERSION_ATTR(pldm_fw_version, 0444, firmware.pldm_version);
@@ -780,9 +781,10 @@ static struct attribute *fw_attrs[] = {
780781
&dev_attr_ta_ras_fw_version.attr, &dev_attr_ta_xgmi_fw_version.attr,
781782
&dev_attr_smc_fw_version.attr, &dev_attr_sdma_fw_version.attr,
782783
&dev_attr_sdma2_fw_version.attr, &dev_attr_vcn_fw_version.attr,
783-
&dev_attr_dmcu_fw_version.attr, &dev_attr_imu_fw_version.attr,
784-
&dev_attr_mes_fw_version.attr, &dev_attr_mes_kiq_fw_version.attr,
785-
&dev_attr_pldm_fw_version.attr, NULL
784+
&dev_attr_dmcu_fw_version.attr, &dev_attr_dmcub_fw_version.attr,
785+
&dev_attr_imu_fw_version.attr, &dev_attr_mes_fw_version.attr,
786+
&dev_attr_mes_kiq_fw_version.attr, &dev_attr_pldm_fw_version.attr,
787+
NULL
786788
};
787789

788790
#define to_dev_attr(x) container_of(x, struct device_attribute, attr)

0 commit comments

Comments
 (0)