Files
linux/drivers/gpu/drm/radeon
Chen Li ba7df8d260 radeon: use memcpy_to/fromio for UVD fw upload
[ Upstream commit ab8363d387 ]

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 ba0b2275a6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 11:15:35 +09:00
..
2016-03-16 18:08:06 -04:00
2015-05-26 15:09:03 +02:00
2016-03-16 18:08:06 -04:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2015-12-02 12:45:54 -05:00
2016-05-16 10:25:13 -04:00
2013-09-11 11:44:38 -04:00
2013-09-11 11:44:38 -04:00
2015-12-02 12:45:54 -05:00
2014-03-06 16:46:56 -05:00
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2015-11-30 14:44:34 -05:00
2016-05-18 19:16:24 +02:00
2015-12-02 12:45:54 -05:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00
2016-03-16 18:08:06 -04:00