diff options
| author | ZhenGuo Yin <[email protected]> | 2024-07-19 08:10:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-24 18:45:24 +0000 |
| commit | 47c0388b0589cb481c294dcb857d25a214c46eb3 (patch) | |
| tree | 015832c4000548907129a4270dcdb56a36e34189 /drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | |
| parent | drm/amd/display: Add null check for set_output_gamma in dcn30_set_output_tran... (diff) | |
| download | kernel-47c0388b0589cb481c294dcb857d25a214c46eb3.tar.gz kernel-47c0388b0589cb481c294dcb857d25a214c46eb3.zip | |
drm/amdgpu: reset vm state machine after gpu reset(vram lost)
[Why]
Page table of compute VM in the VRAM will lost after gpu reset.
VRAM won't be restored since compute VM has no shadows.
[How]
Use higher 32-bit of vm->generation to record a vram_lost_counter.
Reset the VM state machine when vm->genertaion is not equal to
the new generation token.
v2: Check vm->generation instead of calling drm_sched_entity_error
in amdgpu_vm_validate.
v3: Use new generation token instead of vram_lost_counter for check.
Signed-off-by: ZhenGuo Yin <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atombios_encoders.c')
0 files changed, 0 insertions, 0 deletions
