aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-09-13 16:41:57 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-09-14 10:38:03 -0400
commit741deade2a704a434bd5939118c43d38e9ddac25 (patch)
tree403036d4b55161c6d968ff2593e5ddfd47eb81eb /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parent23ecdc6187ef74e00b78e889446a309628719b6e (diff)
drm/amdgpu: simplify Raven, Raven2, and Picasso handling
Treat them all as Raven rather than adding a new picasso asic type. This simplifies a lot of code and also handles the case of rv2 chips with the 0x15d8 pci id. It also fixes dmcu fw handling for picasso. Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 7a9ffe9eb8bb..a7f9aaa47c49 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2981,7 +2981,7 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm,
2981 vm->use_cpu_for_update = !!(adev->vm_manager.vm_update_mode & 2981 vm->use_cpu_for_update = !!(adev->vm_manager.vm_update_mode &
2982 AMDGPU_VM_USE_CPU_FOR_COMPUTE); 2982 AMDGPU_VM_USE_CPU_FOR_COMPUTE);
2983 2983
2984 if (adev->asic_type == CHIP_RAVEN || adev->asic_type == CHIP_PICASSO) 2984 if (adev->asic_type == CHIP_RAVEN)
2985 vm->pte_support_ats = true; 2985 vm->pte_support_ats = true;
2986 } else { 2986 } else {
2987 vm->use_cpu_for_update = !!(adev->vm_manager.vm_update_mode & 2987 vm->use_cpu_for_update = !!(adev->vm_manager.vm_update_mode &
@@ -3073,7 +3073,7 @@ error_free_sched_entity:
3073 */ 3073 */
3074int amdgpu_vm_make_compute(struct amdgpu_device *adev, struct amdgpu_vm *vm, unsigned int pasid) 3074int amdgpu_vm_make_compute(struct amdgpu_device *adev, struct amdgpu_vm *vm, unsigned int pasid)
3075{ 3075{
3076 bool pte_support_ats = (adev->asic_type == CHIP_RAVEN || adev->asic_type == CHIP_PICASSO); 3076 bool pte_support_ats = (adev->asic_type == CHIP_RAVEN);
3077 int r; 3077 int r;
3078 3078
3079 r = amdgpu_bo_reserve(vm->root.base.bo, true); 3079 r = amdgpu_bo_reserve(vm->root.base.bo, true);