drm/radeon: don't use ttm bo->offset
authorNirmoy Das <nirmoy.aiemd@gmail.com>
Wed, 24 Jun 2020 18:26:42 +0000 (20:26 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 25 Jun 2020 09:58:49 +0000 (11:58 +0200)
commita0e4a29857b1acca6a4e724a42b9fdb76ae2d560
treef0be50e28fc78656e54ee90790802a9c61bdff35
parentb1a8ef952a25a926869deca08b74874ecfadf7ad
drm/radeon: don't use ttm bo->offset

Calculate GPU offset in radeon_bo_gpu_offset without depending on
bo->offset.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-and-tested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/372935/
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_object.h
drivers/gpu/drm/radeon/radeon_ttm.c