]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix the issue that retry constantly once the buffer is oversize
authorHuang Rui <ray.huang@amd.com>
Sat, 30 Jan 2021 09:14:30 +0000 (17:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 22:32:06 +0000 (17:32 -0500)
commit428a188442c5fb415a2b4d7223e12717c3c8c42d
tree5d222b7b65fd69b633edafa5e565d22e133103d1
parent4545a8075b7f9cdaf363983b98219b6b00027b15
drm/amdgpu: fix the issue that retry constantly once the buffer is oversize

We cannot modify initial_domain every time while the retry starts. That
will cause the busy waiting that unable to switch to GTT while the vram
is not enough.

Fixes: 8d69a39a9c3e ("drm/amdgpu: Initialise drm_gem_object_funcs for imported BOs")
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c