aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu/amdgpu_bo.c
Commit message (Collapse)AuthorAgeFilesLines
...
* amdgpu: validate the upper limit of virtual address v2Jammy Zhou2015-08-051-1/+19
| | | | | | | | Only 8GB virtual address space is used by default now v2: use -ENOSPC for the error case Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
* amdgpu: fix 32-on-64 support (v2)Jammy Zhou2015-08-051-1/+1
| | | | | | | | | | | 0xffffffff was appended to the higher 32bit with (intptr_t) when use 32bit libdrm_amdgpu.so with 64bit kernel, and it caused segmentation fault for 32bit application. v2: switch to uintptr_t Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* amdgpu: add public bo list interface v3Christian König2015-08-051-0/+56
| | | | | | | | | | v2: cleanup comments and function parameter v3: rebased on internal branch Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: add missing mutex lock/unlock pairmonk.liu2015-08-051-0/+2
| | | | | | Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: support non-page-aligned userptrmonk.liu2015-08-051-1/+11
| | | | | | Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* drm: add libdrm_amdgpu (v7)Alex Deucher2015-08-051-0/+626
This is the new ioctl wrapper used by the new admgpu driver. It's primarily used by xf86-video-amdgpu and mesa. v2: fix amdgpu_drm.h install v3: Integrate some of the sugestions from Emil: clean up Makefile.am, configure.ac capitalize header guards fix _FILE_OFFSET_BITS with config.h use drm_mmap/drm_munmap Remove unused ARRAY_SIZE macro use shared list implementation use shared math implementation use drmGetNodeTypeFromFd helper v4: remove unused tiling defines v5: include amdgpu.h in Makefile.am v6: update amdgpu_drm.h v7: libdrm.h -> libdrm_macros.h Signed-off-by: Alex Deucher <alexander.deucher@amd.com>