Skip to content

Commit 91d62d9

Browse files
committed
Merge branch 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
Single 64-bit gart size fix. * 'drm-fixes-4.8' of git://people.freedesktop.org/~agd5f/linux: drm/amdgpu: Change GART offset to 64-bit
2 parents 93b1f14 + cab0b8d commit 91d62d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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_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
{

0 commit comments

Comments
 (0)