aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorAlex Xie <AlexBin.Xie@amd.com>2017-06-08 14:58:05 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-06-09 11:30:27 -0400
commit0fa4955838ea1ecde268456676540dd2e84dce26 (patch)
treeb5bba67d6ad2ec168c51988c46efdd623f431ce4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parenteb0f0373e575822cf35949627b92533c7c41629c (diff)
drm/amdgpu: move comment to the right place
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 0296c9efc356..de2abef922f5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2058,8 +2058,6 @@ int amdgpu_device_init(struct amdgpu_device *adev,
2058 2058
2059 amdgpu_check_arguments(adev); 2059 amdgpu_check_arguments(adev);
2060 2060
2061 /* Registers mapping */
2062 /* TODO: block userspace mapping of io register */
2063 spin_lock_init(&adev->mmio_idx_lock); 2061 spin_lock_init(&adev->mmio_idx_lock);
2064 spin_lock_init(&adev->smc_idx_lock); 2062 spin_lock_init(&adev->smc_idx_lock);
2065 spin_lock_init(&adev->pcie_idx_lock); 2063 spin_lock_init(&adev->pcie_idx_lock);
@@ -2080,6 +2078,8 @@ int amdgpu_device_init(struct amdgpu_device *adev,
2080 2078
2081 INIT_DELAYED_WORK(&adev->late_init_work, amdgpu_late_init_func_handler); 2079 INIT_DELAYED_WORK(&adev->late_init_work, amdgpu_late_init_func_handler);
2082 2080
2081 /* Registers mapping */
2082 /* TODO: block userspace mapping of io register */
2083 if (adev->asic_type >= CHIP_BONAIRE) { 2083 if (adev->asic_type >= CHIP_BONAIRE) {
2084 adev->rmmio_base = pci_resource_start(adev->pdev, 5); 2084 adev->rmmio_base = pci_resource_start(adev->pdev, 5);
2085 adev->rmmio_size = pci_resource_len(adev->pdev, 5); 2085 adev->rmmio_size = pci_resource_len(adev->pdev, 5);