- 05 Sep, 2018 3 commits
-
-
Eric Engestrom authored
"real_path" was getting confusing when there are other *paths in the same functions. Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Eric Engestrom authored
Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Tom Anderson authored
typeof() is a GNU extension that will only work when the compiler is passed -std=gnu*. __typeof__() works with -std=c*, however. Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
- 04 Sep, 2018 2 commits
-
-
Eric Engestrom authored
It currently does 4 builds: 2 using Meson and 2 using Autotools, 2 using the latest dependencies on ArchLinux and 2 using very old dependencies on Debian (including manually building libpciaccess to have the oldest version supported, to make sure it keeps being supported). All the build options are turned on for both Meson and Autotools. Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Vetter authored
I picked up a bunch of the pieces from wayland's version: https://gitlab.freedesktop.org/wayland/wayland/blob/master/CONTRIBUTING.md The weston one is fairly similar. Then I rather massively trimmed it down since in reality libdrm is a bit a dumping ground with very few real rules. The commit rights and CoC sections I've copied verbatim from igt respectively drm-misc. Weston/Wayland only differ in their pick of how many patches you need (10 instead of 5). I think for libdrm this is supremely relevant, since most everyone will get their commit rights by contributing already to the kernel or mesa and having commit rights there already. Anyway, I figured this is good to get the rules documented, even if there's mostly not many rules. Note: This references maintainers in a MAINTAINERS file, which needs to be created first. Note: With the gitlab migration the entire commit rights process is still a bit up in the air. But gitlab commit rights and roles are hierarchical, so we ca...
-
- 03 Sep, 2018 2 commits
-
-
Qiang Yu authored
Signed-off-by:
Qiang Yu <Qiang.Yu@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-
Qiang Yu authored
For Pro OGL be able to work with upstream libdrm. Signed-off-by:
Qiang Yu <Qiang.Yu@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
- 01 Sep, 2018 1 commit
-
-
Junwei Zhang authored
If nothing is found, error should be returned. v2: udpate the error value different from parameter check Signed-off-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com>
-
- 27 Aug, 2018 1 commit
-
-
Michel Dänzer authored
Fixes: 4d454424 ("amdgpu: add a function to find bo by cpu mapping (v2)"
-
- 24 Aug, 2018 1 commit
-
-
Emil Velikov authored
Earlier commit reworked our sysfs handling to use realpath. Sadly that backfired since the Firefox sandboxing mechanism rejects that. Despite the files/folders being in the allowed list, of the sandboxing mechanism. Oddly enough, the Chromium sandboxing doesn't complain about any of this. Since there are no Firefox releases with the fix, add a temporary solution which falls back to the original handling. Sadly, this won't work for virgl. v2: drop return type - function cannot return NULL (Eric) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107516 Fixes: a0290013 ("xf86drm: introduce a get_real_pci_path() helper") Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Tested-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
- 23 Aug, 2018 2 commits
-
-
Kristian H. Kristensen authored
-
Tanmay Shah authored
msm_drm.h file Generated using make headers_install. Generated from tree - git://people.freedesktop.org/~airlied/linux branch - drm-next commit - 6d08b06e67cd117f6992c46611dfb4ce267cd71e Remove freedreno/msm/msm_drm.h to maintain only one copy of msm_drm.h and change freedreno Makefile and meson.build file accordingly. v2: Remove private freedreno/msm/msm_drm.h v3: meson.build update v3: README update (by anholt) Signed-off-by:
Tanmay Shah <tanmay@codeaurora.org> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
- 17 Aug, 2018 3 commits
-
-
Junwei Zhang authored
a helper function to create and initialize amdgpu bo v2: update error handling: add label and free bo v3: update error handling: separate each error label v4: update error handling and rebase Signed-off-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-
Junwei Zhang authored
Fix potential memory leak when handle flink bo in bo import. Free the flink bo after bo import and in error handling. Signed-off-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-
Michel Dänzer authored
Arithmetic using void* pointers isn't defined by the C standard, only as a GCC extension. Avoids compiler warnings: ../../amdgpu/amdgpu_bo.c: In function ‘amdgpu_find_bo_by_cpu_mapping’: ../../amdgpu/amdgpu_bo.c:554:48: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] if (cpu >= bo->cpu_ptr && cpu < (bo->cpu_ptr + bo->alloc_size)) ^ ../../amdgpu/amdgpu_bo.c:561:23: warning: pointer of type ‘void *’ used in subtraction [-Wpointer-arith] *offset_in_bo = cpu - bo->cpu_ptr; ^ v2: Use uintptr_t instead of char*, don't change function signature (Junwei Zhang) Fixes: 4d454424 ("amdgpu: add a function to find bo by cpu mapping (v2)") Reviewed-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
- 16 Aug, 2018 2 commits
-
-
Likun Gao authored
disable deadlock test suite for RV Reviewed-by:
Alex Deucher <alexander.deucher@amd.com> Reviewed-by:
Huang Rui <ray.huang@amd.com> Signed-off-by:
Likun Gao <Likun.Gao@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
Christian König authored
Stupid me, max_key must always be larger than key. Signed-off-by:
Christian König <christian.koenig@amd.com> Bugzilla: https://bugs.freedesktop.org/107552Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
- 15 Aug, 2018 1 commit
-
-
Michel Dänzer authored
The compiler points out that an int doesn't work as intended if dev->bo_handles.max_key > INT_MAX: ../../amdgpu/amdgpu_bo.c: In function ‘amdgpu_find_bo_by_cpu_mapping’: ../../amdgpu/amdgpu_bo.c:550:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] for (i = 0; i < dev->bo_handles.max_key; i++) { ^ ../../amdgpu/amdgpu_bo.c:558:8: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] if (i < dev->bo_handles.max_key) { ^ Fixes: 4d454424 ("amdgpu: add a function to find bo by cpu mapping (v2)") Reviewed-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
- 14 Aug, 2018 1 commit
-
-
Rodrigo Vivi authored
One more CFL ID added to spec. Align with kernel commit d0e062ebb3a4 ("drm/i915/cfl: Add a new CFL PCI ID.") v2: fix commit subject. Cc: José Roberto de Souza <jose.souza@intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by:
José Roberto de Souza <jose.souza@intel.com>
-
- 08 Aug, 2018 5 commits
-
-
Rob Clark authored
We could be dropping last reference in ->flush(), so clear the entry in the parent rb's table to avoid deref'ing after free'd. Also, ring_bo_del()'s use of ring_cache expects that it is dropping the last reference. So drop our ref to the stateobj's ring_bo first. Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Rob Clark authored
One stateobj can be emitted multiple times in a single cmdstream, but only the first time is a cmd entry added to the parent. Since it will be only unref'd once after flush, we should only ref it the first time it is emitted (ie. the time it is added to cmd table). Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Junwei Zhang authored
Add a test for API to query bo by CPU mapping Signed-off-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-
Junwei Zhang authored
Userspace needs to know if the user memory is from BO or malloc. v2: update mutex range and rebase Signed-off-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-
Junwei Zhang authored
When create bo from user memory, add it to handle table for future query. Signed-off-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-
- 07 Aug, 2018 9 commits
-
-
Benjamin Gaignard authored
Signed-off-by:
Benjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Mike Lothian authored
Use the correct files to build libdrm_amdgpu. Signed-of-by:
Mike Lothian <mike@fireburn.co.uk> Fixes: d6cb0ee4 ("amdgpu: remove the hash table implementation") Cc: Christian König <christian.koenig@amd.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Benjamin Gaignard authored
If "-a" option is set this make modetest use atomic API instead of legacy API. Test the frame rate ("-v") it does a loop and swap between two framebuffer for each active planes. Signed-off-by:
Benjamin Gaignard <benjamin.gaignard@linaro.org> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Christian König authored
This way we can always find a BO structure by its handle. Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
Christian König authored
Not used any more. Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
Christian König authored
Instead of the hash use the handle table. Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
Christian König authored
Instead of the hash use the handle table. Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
Christian König authored
The kernel handles are dense and the kernel always tries to use the lowest free id. Use this to implement a more efficient handle table by using a resizeable array instead of a hash. v2: add handle_table_fini function, extra key checks, fix typo in function name Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
Christian König authored
We have so few devices that just walking a linked list is probably faster. Signed-off-by:
Christian König <christian.koenig@amd.com> Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by:
Junwei Zhang <Jerry.Zhang@amd.com>
-
- 01 Aug, 2018 1 commit
-
-
Marek Olšák authored
-
- 30 Jul, 2018 5 commits
-
-
Rob Clark authored
Adds support for "state object" cmdstream buffers which can be constructed once, and re-used many times. This enables the use for CP_SET_DRAW_STATE packets on newer hardware, to lower the CPU overhead. Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Rob Clark authored
Splitting code-motion out from next patch. Once we add stateobj rb's this loop could add new entries to bos table, so it needs to be before we set req.bos/req.nr_bos. Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Rob Clark authored
Make cheezy growable array thing less open-coded before adding more. Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Rob Clark authored
Add new API for reusable "state objects" which can be re-used multiple times. Backend implementation for msm will follow. (Probably not needed to support this for any device that uses kgsl backend, since this is mostly useful for a5xx+.) Signed-off-by:
Rob Clark <robclark@freedesktop.org>
-
Mariusz Ceier authored
In drmGetDevice2 when no local device is found or when drm_device_has_rdev filters out all devices, *device might be left uninitialized causing drmGetDevice2 to not return error - since it's only returned when *device == NULL. Above leads to crash in the firefox in system with amdgpu. With this change firefox displays: libGL error: MESA-LOADER: failed to retrieve device information libGL error: unable to load driver: amdgpu_dri.so libGL error: driver pointer missing libGL error: failed to load driver: amdgpu libGL error: MESA-LOADER: failed to retrieve device information libGL error: unable to load driver: amdgpu_dri.so libGL error: driver pointer missing libGL error: failed to load driver: amdgpu and doesn't crash. Bugzilla: https://bugs.freedesktop.org/107384Reviewed-by:
Michel Dänzer <michel.daenzer@amd.com> Signed-off-by:
Mariusz Ceier <mceier+mesa-dev@gmail.com>
-
- 25 Jul, 2018 1 commit
-
-
Marek Olšák authored
Reviewed-by:
Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
-