]> git.baikalelectronics.ru Git - kernel.git/commit
radeon: use memcpy_to/fromio for UVD fw upload
authorChen Li <chenli@uniontech.com>
Fri, 4 Jun 2021 08:43:02 +0000 (16:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 18:05:11 +0000 (14:05 -0400)
commite936102a490e101e2babba360085fea9b8ea08b9
treea00ee004db6c8041a70cbfb790c4a7d4b5ca2436
parentde43048cfecef10e3c496a144ef8b592dd33b10f
radeon: use memcpy_to/fromio for UVD fw upload

I met a gpu addr bug recently and the kernel log
tells me the pc is memcpy/memset and link register is
radeon_uvd_resume.

As we know, in some architectures, optimized memcpy/memset
may not work well on device memory. Trival memcpy_toio/memset_io
can fix this problem.

BTW, amdgpu has already done it in:
commit 7fd27e402ef1 ("drm/amdgpu: use memcpy_to/fromio for UVD fw upload"),
that's why it has no this issue on the same gpu and platform.

Signed-off-by: Chen Li <chenli@uniontech.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_uvd.c