Skip to content

Commit c3beef5

Browse files
committed
Merge branch 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
Some AMD fixes and remove workaround now we have pcieport pm. * 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux: drm/amdgpu: Fix memory trashing if UVD ring test fails drm/amdgpu: fix vm init error path Revert "drm/radeon: work around lack of upstream ACPI support for D3cold" Revert "drm/amdgpu: work around lack of upstream ACPI support for D3cold"
2 parents 8c065c0 + c2a4c5b commit c3beef5

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,7 @@ static int amdgpu_atpx_validate(struct amdgpu_atpx *atpx)
200200
atpx->is_hybrid = false;
201201
if (valid_bits & ATPX_MS_HYBRID_GFX_SUPPORTED) {
202202
printk("ATPX Hybrid Graphics\n");
203-
#if 1
204-
/* This is a temporary hack until the D3 cold support
205-
* makes it upstream. The ATPX power_control method seems
206-
* to still work on even if the system should be using
207-
* the new standardized hybrid D3 cold ACPI interface.
208-
*/
209-
atpx->functions.power_cntl = true;
210-
#else
211203
atpx->functions.power_cntl = false;
212-
#endif
213204
atpx->is_hybrid = true;
214205
}
215206

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,8 @@ int amdgpu_uvd_ring_test_ib(struct amdgpu_ring *ring, long timeout)
11871187
r = 0;
11881188
}
11891189

1190-
error:
11911190
fence_put(fence);
1191+
1192+
error:
11921193
return r;
11931194
}

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm)
15351535
r = amd_sched_entity_init(&ring->sched, &vm->entity,
15361536
rq, amdgpu_sched_jobs);
15371537
if (r)
1538-
return r;
1538+
goto err;
15391539

15401540
vm->page_directory_fence = NULL;
15411541

@@ -1565,6 +1565,9 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm)
15651565
error_free_sched_entity:
15661566
amd_sched_entity_fini(&ring->sched, &vm->entity);
15671567

1568+
err:
1569+
drm_free_large(vm->page_tables);
1570+
15681571
return r;
15691572
}
15701573

drivers/gpu/drm/radeon/radeon_atpx_handler.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,7 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx)
198198
atpx->is_hybrid = false;
199199
if (valid_bits & ATPX_MS_HYBRID_GFX_SUPPORTED) {
200200
printk("ATPX Hybrid Graphics\n");
201-
#if 1
202-
/* This is a temporary hack until the D3 cold support
203-
* makes it upstream. The ATPX power_control method seems
204-
* to still work on even if the system should be using
205-
* the new standardized hybrid D3 cold ACPI interface.
206-
*/
207-
atpx->functions.power_cntl = true;
208-
#else
209201
atpx->functions.power_cntl = false;
210-
#endif
211202
atpx->is_hybrid = true;
212203
}
213204

0 commit comments

Comments
 (0)