]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: return EINVAL instead of ENOENT in the VM code
authorChristian König <christian.koenig@amd.com>
Wed, 22 Jan 2020 12:38:43 +0000 (13:38 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Feb 2020 04:30:39 +0000 (23:30 -0500)
commit28f149be56cab0dda6cb8833d93924a5ca74b1a6
treeb5bdb8aa06b02eba65c1c10a975e543e3e18725f
parenta9a841f7b54a76bd82c836157d3ed33915310d08
drm/amdgpu: return EINVAL instead of ENOENT in the VM code

That we can't find a PD above the root is expected can only happen if
we try to update a larger range than actually managed by the VM.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c