drm/amdgpu: use memcpy_to/fromio for UVD fw upload
authorChristian König <christian.koenig@amd.com>
Tue, 23 Aug 2016 09:00:17 +0000 (11:00 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Aug 2016 20:25:06 +0000 (16:25 -0400)
commitba0b2275a6781b2f3919d931d63329b5548f6d5f
tree0094a9b454d9266e7b068210c9de04a9cb6c99a0
parent39a5830a05a1b599192346e832eb9fe4ff4f2164
drm/amdgpu: use memcpy_to/fromio for UVD fw upload

Also use the firmware size from the header instead of calculating it.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c