Skip to content

Commit 58c3978

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amdgpu: Add pldm version reporting
Add pldm version reporting through sysfs node Signed-off-by: Asad Kamal <asad.kamal@amd.com> Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent e3d0870 commit 58c3978

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ FW_VERSION_ATTR(vcn_fw_version, 0444, vcn.fw_version);
767767
FW_VERSION_ATTR(dmcu_fw_version, 0444, dm.dmcu_fw_version);
768768
FW_VERSION_ATTR(mes_fw_version, 0444, mes.sched_version & AMDGPU_MES_VERSION_MASK);
769769
FW_VERSION_ATTR(mes_kiq_fw_version, 0444, mes.kiq_version & AMDGPU_MES_VERSION_MASK);
770+
FW_VERSION_ATTR(pldm_fw_version, 0444, firmware.pldm_version);
770771

771772
static struct attribute *fw_attrs[] = {
772773
&dev_attr_vce_fw_version.attr, &dev_attr_uvd_fw_version.attr,
@@ -781,7 +782,7 @@ static struct attribute *fw_attrs[] = {
781782
&dev_attr_sdma2_fw_version.attr, &dev_attr_vcn_fw_version.attr,
782783
&dev_attr_dmcu_fw_version.attr, &dev_attr_imu_fw_version.attr,
783784
&dev_attr_mes_fw_version.attr, &dev_attr_mes_kiq_fw_version.attr,
784-
NULL
785+
&dev_attr_pldm_fw_version.attr, NULL
785786
};
786787

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ struct amdgpu_firmware {
602602

603603
void *fw_buf_ptr;
604604
uint64_t fw_buf_mc;
605+
uint32_t pldm_version;
605606
};
606607

607608
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr);

0 commit comments

Comments
 (0)