drm/amdgpu: add missing vbios version from devcoredump
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 12 Apr 2024 10:22:42 +0000 (15:52 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:25:28 +0000 (21:25 -0400)
Add vbios version in the devcoredump along with formatting
the information with proper alignment.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c

index 1129e5e5fb42efd384cd732c413d99c9453f1d5a..64fe564b8036596615ec027dc25e4dabac0ed667 100644 (file)
@@ -188,10 +188,11 @@ static void amdgpu_devcoredump_fw_info(struct amdgpu_device *adev,
                   adev->vpe.feature_version, adev->vpe.fw_version);
 
        drm_printf(p, "\nVBIOS Information\n");
-       drm_printf(p, "name: %s\n", ctx->name);
-       drm_printf(p, "pn %s\n", ctx->vbios_pn);
-       drm_printf(p, "version: %s\n", ctx->vbios_ver_str);
-       drm_printf(p, "date: %s\n", ctx->date);
+       drm_printf(p, "vbios name       : %s\n", ctx->name);
+       drm_printf(p, "vbios pn         : %s\n", ctx->vbios_pn);
+       drm_printf(p, "vbios version    : %d\n", ctx->version);
+       drm_printf(p, "vbios ver_str    : %s\n", ctx->vbios_ver_str);
+       drm_printf(p, "vbios date       : %s\n", ctx->date);
 }
 
 static ssize_t