diff options
author | Christian König <christian.koenig@amd.com> | 2016-08-17 09:46:42 +0200 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-08-31 22:05:44 -0400 |
commit | 0a47a53081df72950f8614c6b9e8e830e80a3ac1 (patch) | |
tree | 547c4a5ad212ae5e068bab6a47fcdb01e742475b | |
parent | 183e633e33201530453c84b5affd01df8c46171b (diff) | |
download | lwn-0a47a53081df72950f8614c6b9e8e830e80a3ac1.tar.gz lwn-0a47a53081df72950f8614c6b9e8e830e80a3ac1.zip |
drm/radeon: fix radeon_move_blit on 32bit systems
[ Upstream commit 13f479b9df4e2bbf2d16e7e1b02f3f55f70e2455 ]
This bug seems to be present for a very long time.
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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index fdea9d07cca7..f361af72c548 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -240,8 +240,8 @@ static int radeon_move_blit(struct ttm_buffer_object *bo, rdev = radeon_get_rdev(bo->bdev); ridx = radeon_copy_ring_index(rdev); - old_start = old_mem->start << PAGE_SHIFT; - new_start = new_mem->start << PAGE_SHIFT; + old_start = (u64)old_mem->start << PAGE_SHIFT; + new_start = (u64)new_mem->start << PAGE_SHIFT; switch (old_mem->mem_type) { case TTM_PL_VRAM: |