aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2019-08-09 15:57:51 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-08-09 11:17:30 -0500
commit6ca523d7eb198b78f79df882b7dc4a8c795d8777 (patch)
treec1a2d57fae41ee7b5dbc74a7cd3dabfe5cf63a81 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdd21a572c9068e9a59b46dea67e8a65a44aee90b (diff)
downloadlinux-6ca523d7eb198b78f79df882b7dc4a8c795d8777.tar.gz
linux-6ca523d7eb198b78f79df882b7dc4a8c795d8777.tar.bz2
linux-6ca523d7eb198b78f79df882b7dc4a8c795d8777.zip
drm/amdgpu: remove RREG64/WREG64
atomic 64 bits REG operations are useless currently Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 0471a1d4305c..682833f90fdd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -264,39 +264,6 @@ void amdgpu_mm_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v,
}
/**
- * amdgpu_mm_rreg64 - read a 64 bit memory mapped IO register
- *
- * @adev: amdgpu_device pointer
- * @reg: dword aligned register offset
- *
- * Returns the 64 bit value from the offset specified.
- */
-uint64_t amdgpu_mm_rreg64(struct amdgpu_device *adev, uint32_t reg)
-{
- if ((reg * 4) < adev->rmmio_size)
- return atomic64_read((atomic64_t *)(adev->rmmio + (reg * 4)));
- else
- BUG();
-}
-
-/**
- * amdgpu_mm_wreg64 - write to a 64 bit memory mapped IO register
- *
- * @adev: amdgpu_device pointer
- * @reg: dword aligned register offset
- * @v: 64 bit value to write to the register
- *
- * Writes the value specified to the offset specified.
- */
-void amdgpu_mm_wreg64(struct amdgpu_device *adev, uint32_t reg, uint64_t v)
-{
- if ((reg * 4) < adev->rmmio_size)
- atomic64_set((atomic64_t *)(adev->rmmio + (reg * 4)), v);
- else
- BUG();
-}
-
-/**
* amdgpu_io_rreg - read an IO register
*
* @adev: amdgpu_device pointer