drm/amdgpu: gtt offset should be 64 bit
Subsystems (2)
PATCH 1/1 drm/amdgpu: gtt offset should be 64 bit
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +2 -2
@@ -619,9 +619,9 @@ int amdgpu_gart_table_vram_pin(struct amdgpu_device *adev);void amdgpu_gart_table_vram_unpin (struct amdgpu_device *adev);int amdgpu_gart_init (struct amdgpu_device *adev);void amdgpu_gart_fini (struct amdgpu_device *adev); -void amdgpu_gart_unbind (struct amdgpu_device *adev,unsigned offset, +void amdgpu_gart_unbind (struct amdgpu_device *adev,u64 offset,int pages); -int amdgpu_gart_bind (struct amdgpu_device *adev,unsigned offset, +int amdgpu_gart_bind (struct amdgpu_device *adev,u64 offset,int pages,struct page **pagelist,dma_addr_t *dma_addr,uint32_t flags);int amdgpu_ttm_recover_gart (struct amdgpu_device *adev);
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +4 -6
@@ -221,11 +221,10 @@ void amdgpu_gart_table_vram_free(struct amdgpu_device *adev)* Unbinds the requested pages from the gart page table and * replaces them with the dummy page (all asics). */ -void amdgpu_gart_unbind (struct amdgpu_device *adev,unsigned offset, +void amdgpu_gart_unbind (struct amdgpu_device *adev,u64 offset,int pages) { -unsigned t; -unsigned p; +u64 t, p;int i, j;u64 page_base;uint32_t flags =AMDGPU_PTE_SYSTEM ;
@@ -268,12 +267,11 @@ void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset,* (all asics). * Returns 0 for success, -EINVAL for failure. */ -int amdgpu_gart_bind (struct amdgpu_device *adev,unsigned offset, +int amdgpu_gart_bind (struct amdgpu_device *adev,u64 offset,int pages,struct page **pagelist,dma_addr_t *dma_addr,uint32_t flags) { -unsigned t; -unsigned p; +uint64_t t, p;uint64_t page_base;int i, j;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1473844418-22724-1-git-send-email-Flora.Cui-5C7GfCeVMHo@public.gmane.org
Am 14.09.2016 um 11:13 schrieb Flora Cui:
Quoted 2 lines
Change-Id I05618a472b1ebf381575d02e226264609bf4db7fSigned-off-by Flora Cui <[email protected]>
Didn't Felix came up with the same patch a few weeks ago?
Anyway the fix is clearly not committed. Patch is Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.
Quoted 44 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu.h +2
-2@@ -619,9 +619,9 @@ int amdgpu_gart_table_vram_pin(struct amdgpu_device *adev);void amdgpu_gart_table_vram_unpin (struct amdgpu_device *adev);int amdgpu_gart_init (struct amdgpu_device *adev);void amdgpu_gart_fini (struct amdgpu_device *adev); -void amdgpu_gart_unbind (struct amdgpu_device *adev,unsigned offset, +void amdgpu_gart_unbind (struct amdgpu_device *adev,u64 offset,int pages); -int amdgpu_gart_bind (struct amdgpu_device *adev,unsigned offset, +int amdgpu_gart_bind (struct amdgpu_device *adev,u64 offset,int pages,struct page **pagelist,dma_addr_t *dma_addr,uint32_t flags);int amdgpu_ttm_recover_gart (struct amdgpu_device *adev);drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +2
-4@@ -221,11 +221,10 @@ void amdgpu_gart_table_vram_free(struct amdgpu_device *adev)* Unbinds the requested pages from the gart page table and * replaces them with the dummy page (all asics). */ -void amdgpu_gart_unbind (struct amdgpu_device *adev,unsigned offset, +void amdgpu_gart_unbind (struct amdgpu_device *adev,u64 offset,int pages) { -unsigned t; -unsigned p; +u64 t, p;int i, j;u64 page_base;uint32_t flags =AMDGPU_PTE_SYSTEM ;@@ -268,12 +267,11 @@ void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset,* (all asics). * Returns 0 for success, -EINVAL for failure. */ -int amdgpu_gart_bind(struct amdgpu_device *adev, unsigned offset,
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset, · line 277
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +2
-2+int amdgpu_gart_bind (struct amdgpu_device *adev,u64 offset,int pages,struct page **pagelist,dma_addr_t *dma_addr,uint32_t flags) { - unsigned t; -unsigned p; +uint64_t t, p;uint64_t page_base;int i, j;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 4a840c0a-30bd-836d-7d50-8bc8c7565f4e-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
yes. i just find it out. it's commit 9040cf0a in 4.6 branch yet not in 4.7. please ignore this commit.
Quoted 57 lines · Christian König
Am 14.09.2016 um 11:13 schrieb Flora Cui:
Quoted 2 lines
Change-Id I05618a472b1ebf381575d02e226264609bf4db7fSigned-off-by Flora Cui <[email protected]>Didn't Felix came up with the same patch a few weeks ago?
Anyway the fix is clearly not committed. Patch is Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.Quoted 45 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu.h +2
-2@@ -619,9 +619,9 @@ int amdgpu_gart_table_vram_pin(struct amdgpu_device *adev);void amdgpu_gart_table_vram_unpin (struct amdgpu_device *adev);int amdgpu_gart_init (struct amdgpu_device *adev);void amdgpu_gart_fini (struct amdgpu_device *adev); -void amdgpu_gart_unbind (struct amdgpu_device *adev,unsigned offset, +void amdgpu_gart_unbind (struct amdgpu_device *adev,u64 offset,int pages); -int amdgpu_gart_bind (struct amdgpu_device *adev,unsigned offset, +int amdgpu_gart_bind (struct amdgpu_device *adev,u64 offset,int pages,struct page **pagelist,dma_addr_t *dma_addr,uint32_t flags);int amdgpu_ttm_recover_gart (struct amdgpu_device *adev);drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +3
-4@@ -221,11 +221,10 @@ void amdgpu_gart_table_vram_free(struct amdgpu_device *adev)* Unbinds the requested pages from the gart page table and * replaces them with the dummy page (all asics). */ -void amdgpu_gart_unbind (struct amdgpu_device *adev,unsigned offset, +void amdgpu_gart_unbind (struct amdgpu_device *adev,u64 offset,int pages) { -unsigned t; -unsigned p; +u64 t, p;int i, j;u64 page_base;uint32_t flags =AMDGPU_PTE_SYSTEM ;@@ -268,12 +267,11 @@ void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset,* (all asics). * Returns 0 for success, -EINVAL for failure. */ -int amdgpu_gart_bind(struct amdgpu_device *adev, unsigned offset, +int amdgpu_gart_bind(struct amdgpu_device *adev, u64 offset,
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c void amdgpu_gart_unbind(struct amdgpu_device *adev, unsigned offset, · line 276
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +1
-2int pages, struct page **pagelist, dma_addr_t *dma_addr, uint32_t flags) { - unsigned t; -unsigned p; + uint64_t t, p;uint64_t page_base;int i, j;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx