Skip to content

Commit 07faf3d

Browse files
committed
another memcpy, tripped by vaapi
1 parent 8b0c2de commit 07faf3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ static int amdgpu_cs_patch_ibs(struct amdgpu_cs_parser *p,
10561056
kptr += va_start - (m->start * AMDGPU_GPU_PAGE_SIZE);
10571057

10581058
if (ring->funcs->parse_cs) {
1059-
memcpy(ib->ptr, kptr, ib->length_dw * 4);
1059+
memcpy_fromio(ib->ptr, kptr, ib->length_dw * 4);
10601060
amdgpu_bo_kunmap(aobj);
10611061

10621062
r = amdgpu_ring_parse_cs(ring, p, job, ib);

0 commit comments

Comments
 (0)