Skip to content

Commit 76dcd93

Browse files
committed
Merge tag 'drm-fixes-for-4.8-rc3' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie: "Pretty quiet so far: - a few amdgpu/radeon fixup for pcie pm changes - a couple of amdgpu fixes - some build fixes - printk fix" * tag 'drm-fixes-for-4.8-rc3' of git://people.freedesktop.org/~airlied/linux: drm/amdgpu: Change GART offset to 64-bit drm/mediatek: add ARM_SMCCC dependency drm/mediatek: add CONFIG_OF dependency drm/mediatek: add COMMON_CLK dependency drm/amdgpu: Fix memory trashing if UVD ring test fails drm/amdgpu: fix vm init error path drm/amdkfd: print doorbell offset as a hex value 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 184ca82 + 91d62d9 commit 76dcd93

File tree

8 files changed

+14
-25
lines changed

8 files changed

+14
-25
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,9 @@ int amdgpu_gart_table_vram_pin(struct amdgpu_device *adev);
646646
void amdgpu_gart_table_vram_unpin(struct amdgpu_device *adev);
647647
int amdgpu_gart_init(struct amdgpu_device *adev);
648648
void amdgpu_gart_fini(struct amdgpu_device *adev);
649-
void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset,
649+
void amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset,
650650
int pages);
651-
int amdgpu_gart_bind(struct amdgpu_device *adev, unsigned offset,
651+
int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
652652
int pages, struct page **pagelist,
653653
dma_addr_t *dma_addr, uint32_t flags);
654654

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_gart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void amdgpu_gart_table_vram_free(struct amdgpu_device *adev)
221221
* Unbinds the requested pages from the gart page table and
222222
* replaces them with the dummy page (all asics).
223223
*/
224-
void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset,
224+
void amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset,
225225
int pages)
226226
{
227227
unsigned t;
@@ -268,7 +268,7 @@ void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset,
268268
* (all asics).
269269
* Returns 0 for success, -EINVAL for failure.
270270
*/
271-
int amdgpu_gart_bind(struct amdgpu_device *adev, unsigned offset,
271+
int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
272272
int pages, struct page **pagelist, dma_addr_t *dma_addr,
273273
uint32_t flags)
274274
{

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/amd/amdkfd/kfd_doorbell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ u32 __iomem *kfd_get_kernel_doorbell(struct kfd_dev *kfd,
184184
sizeof(u32)) + inx;
185185

186186
pr_debug("kfd: get kernel queue doorbell\n"
187-
" doorbell offset == 0x%08d\n"
187+
" doorbell offset == 0x%08X\n"
188188
" kernel address == 0x%08lX\n",
189189
*doorbell_off, (uintptr_t)(kfd->doorbell_kernel_ptr + inx));
190190

drivers/gpu/drm/mediatek/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ config DRM_MEDIATEK
22
tristate "DRM Support for Mediatek SoCs"
33
depends on DRM
44
depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST)
5+
depends on COMMON_CLK
6+
depends on HAVE_ARM_SMCCC
7+
depends on OF
58
select DRM_GEM_CMA_HELPER
69
select DRM_KMS_HELPER
710
select DRM_MIPI_DSI

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)