]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: refine fault cache updates
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Jul 2023 21:09:40 +0000 (17:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Oct 2023 21:49:51 +0000 (17:49 -0400)
commit7d3f1d76f33dbeca5ffb2cb424f1e3b7e34c8d45
treeba9df4f6b1d2160f8f89ac85755cf74f70c7eacd
parent7a41ed8b59ba74ae36adc7f4688feff9e710cf76
drm/amdgpu: refine fault cache updates

Don't update the fault cache if status is 0.  In the multiple
fault case, subsequent faults will return a 0 status which is
useless for userspace and replaces the useful fault status, so
only update if status is non-0.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c