diff options
| author | André Almeida <[email protected]> | 2023-09-15 16:44:53 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-10-20 19:11:29 +0000 |
| commit | de009982c6aa8363b2bc8800fb0a13896d264853 (patch) | |
| tree | 7b83da9475c2787674812290248058a45e21a93e /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | |
| parent | drm/amdgpu: Move coredump code to amdgpu_reset file (diff) | |
| download | kernel-de009982c6aa8363b2bc8800fb0a13896d264853.tar.gz kernel-de009982c6aa8363b2bc8800fb0a13896d264853.zip | |
drm/amdgpu: Create version number for coredumps
Even if there's nothing currently parsing amdgpu's coredump files, if
we eventually have such tools they will be glad to find a version field
to properly read the file.
Create a version number to be displayed on top of coredump file, to be
incremented when the file format or content get changed.
Signed-off-by: André Almeida <[email protected]>
Reviewed-by: Shashank Sharma <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c index f53ddca35be6..4baa300121d8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c @@ -185,6 +185,7 @@ amdgpu_devcoredump_read(char *buffer, loff_t offset, size_t count, p = drm_coredump_printer(&iter); drm_printf(&p, "**** AMDGPU Device Coredump ****\n"); + drm_printf(&p, "version: " AMDGPU_COREDUMP_VERSION "\n"); drm_printf(&p, "kernel: " UTS_RELEASE "\n"); drm_printf(&p, "module: " KBUILD_MODNAME "\n"); drm_printf(&p, "time: %lld.%09ld\n", coredump->reset_time.tv_sec, |
