]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix for BO move issue
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Tue, 18 Oct 2022 14:08:38 +0000 (07:08 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Oct 2022 02:14:07 +0000 (22:14 -0400)
commit93e49228ca15399e7bfb8335af3ff48fe18505ae
tree77ce9ca09bd6fe530bc35d4d96a4580bc982998c
parent825a54af72db3e4f142254ee31937e412b22c902
drm/amdgpu: Fix for BO move issue

A user reported a bug on CAPE VERDE system where uvd_v3_1
IP component failed to initialize as there is an issue with
BO move code from one memory to other.

In function amdgpu_mem_visible() called by amdgpu_bo_move(),
when there are no blocks to compare or if we have a single
block then break the loop.

Fixes: 02ae455f3fb3 ("drm/amdgpu: Fix VRAM BO swap issue")
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c