OSDN Git Service

drm/amd/amdgpu: fix offset into page with amdgpu_iomem debugfs file
authorTom St Denis <tom.stdenis@amd.com>
Tue, 20 Mar 2018 13:13:08 +0000 (09:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 04:43:34 +0000 (23:43 -0500)
commit864917a3b8d459ee2cfd37a1d1c9251cca88d108
tree4a9f478067d100ea76d3fb38ef2be7f55a371b39
parentbd08a8d9e8dd6b77a990372fc1233765ca9175e9
drm/amd/amdgpu: fix offset into page with amdgpu_iomem debugfs file

The offset inside the page wasn't included in the copy call meaning
the start of the page was being read/written instead.

Reported-by: Jay Cornwall <Jay.Cornwall@amd.com>
Signed-off-by: Tom St Denis <tom.stdenis@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