]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: skip printing vram_lost if needed
authorTrigger Huang <Trigger.Huang@amd.com>
Mon, 19 Aug 2024 07:53:22 +0000 (15:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Aug 2024 17:38:53 +0000 (13:38 -0400)
commit6122f5c72e38a88eda13c7168e2ebbd3bd80b681
tree41b6959129a28506fbd9208b7d69dd9d14029e41
parent7c1a2d8aba6cadde0cc542b2d805edc0be667e79
drm/amdgpu: skip printing vram_lost if needed

The vm lost status can only be obtained after a GPU reset occurs, but
sometimes a dev core dump can be happened before GPU reset. So a new
argument is added to tell the dev core dump implementation whether to
skip printing the vram_lost status in the dump.
And this patch is also trying to decouple the core dump function from
the GPU reset function, by replacing the argument amdgpu_reset_context
with amdgpu_job to specify the context for core dump.

V2: Inform user if VRAM lost check is skipped so users don't assume
VRAM wasn't lost (Alex)

Signed-off-by: Trigger Huang <Trigger.Huang@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c