Skip to contentSkip to conversation

Revert "drm/amdgpu: Report vbios version instead of PN"

PATCH In review Lijo Lazar 2 participants 2 messages Sep 14, 2023

Subsystems (2)
lore
Share & tools
lore

Lijo Lazar

author
#0 lore raw

PATCH 1/1 Revert "drm/amdgpu: Report vbios version instead of PN"

This reverts commit c187a67725b47f9c1603359a51b79cc19e27442a.

vbios_version sysfs node is used to identify Part Number also. Revert to the same so that it doesn't break scripts/software which parse this.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +1 -1
index 73ee14f7a9a4..dce9e7d5e4ec 100644
@@ -1776,7 +1776,7 @@ static ssize_t amdgpu_atombios_get_vbios_version(struct device *dev,
 	struct amdgpu_device *adev = drm_to_adev(ddev);
 	struct atom_context *ctx = adev->mode_info.atom_context;
 
-	return sysfs_emit(buf, "%s\n", ctx->vbios_ver_str);
+	return sysfs_emit(buf, "%s\n", ctx->vbios_pn);
 }
 
 static DEVICE_ATTR(vbios_version, 0444, amdgpu_atombios_get_vbios_version,
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Regards,
Hawking
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Thursday, September 14, 2023 14:18
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH] Revert "drm/amdgpu: Report vbios version instead of PN"

This reverts commit c187a67725b47f9c1603359a51b79cc19e27442a.

vbios_version sysfs node is used to identify Part Number also. Revert to the same so that it doesn't break scripts/software which parse this.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +1 -1
index 73ee14f7a9a4..dce9e7d5e4ec 100644
@@ -1776,7 +1776,7 @@ static ssize_t amdgpu_atombios_get_vbios_version(struct device *dev,
        struct amdgpu_device *adev = drm_to_adev(ddev);
        struct atom_context *ctx = adev->mode_info.atom_context;
 
-       return sysfs_emit(buf, "%s\n", ctx->vbios_ver_str);
+       return sysfs_emit(buf, "%s\n", ctx->vbios_pn);
 }
 
 static DEVICE_ATTR(vbios_version, 0444, amdgpu_atombios_get_vbios_version,

--
2.25.1