aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* omap: install library in vendor partitionti-2.4.67Vishal Mahaveer2017-11-021-0/+1
| | | | | | | As part of Android treble adaptations, mark libdrm_omap as vendor module. This change installs library in vendor partition. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* Remove headers from LOCAL_SRC_FILESVishal Mahaveer2017-08-234-5/+5
| | | | | | | | | | | | Cherry picking parts of AOSP commit 3e22b166 The build system does not use headers in LOCAL_SRC_FILES. To prevent typos, it's becoming a warning to add something to LOCAL_SRC_FILES that is not used. Since these lists are coming from file shared with other Makefile systems, use filter-out to do this dynamically. Once we move to Soong, we will need our own lists though - Soong cannot read makefiles. Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* amdgpu: android: compile amdgpu on BOARD_GPU_DRIVERSGowtham Tammana2016-06-221-0/+4
| | | | | | Compile amdgpu driver only if BOARD_GPU_DRIVERS is set to amdgpu. Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
* omap: Add DRM_RDWR flag to dmabuf exportHemant Hariyani2016-06-221-1/+1
| | | | | | Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* libdrm: Add define for DRM_RDWRHemant Hariyani2016-06-221-0/+1
| | | | | | | | | mmap requires O_RDWR to be set if MAP_SHARED is requested with PROT_WRITE. Adding DRM_RDWR (defined as O_RDWR) as a valid flag that can be passed to DRM_IOCTL_PRIME_HANDLE_TO_FD for buffers that need required mapping. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* omap: build file for androidGowtham Tammana2016-06-221-0/+19
| | | | | | | Android.mk file to build libdrm_omap.so library, this gets invoked on BOARD_GPU_DRIVERS being set to `omapdrm`. Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
* android: Compile submodules depending on BOARD_GPU_DRIVERSTomasz Figa2016-06-224-0/+16
| | | | | | | | Only libraries that are actually used should be compiled, so this patch makes the compilation conditional depending on presence of particular drivers in BOARD_GPU_DRIVERS variable. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
* Bump version for releaseRob Clark2016-02-151-1/+1
| | | | Signed-off-by: Rob Clark <robclark@freedesktop.org>
* freedreno: add support for FD_MAX_FREQRob Clark2016-02-123-0/+6
| | | | | | | Only msm backend supports this. Sorry, if you are using kgsl, no time-elapsed query for you. Signed-off-by: Rob Clark <robclark@freedesktop.org>
* freedreno: small refactor for get_paramRob Clark2016-02-121-13/+30
| | | | | | Will simplify next commit. Signed-off-by: Rob Clark <robclark@freedesktop.org>
* freedreno: update uapiRob Clark2016-02-121-0/+1
| | | | | | In drm-next.. needed for time-elapsed (and future perf ctrs) in mesa. Signed-off-by: Rob Clark <robclark@freedesktop.org>
* amdgpu: fix for submition with no ibsKen Wang2016-02-042-0/+9
| | | | | | | Avoid a crash if no IBs are specified. Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: add a test for cp dma copyAlex Deucher2016-02-041-0/+18
| | | | | | | Use the CP to copy data between buffers Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: make amdgpu_command_submission_sdma_copy_linear genericAlex Deucher2016-02-041-10/+17
| | | | | | | So it can be shared for CP tests. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: add a test for cp dma fillAlex Deucher2016-02-041-0/+18
| | | | | | | Use the CP to fill to memory. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: make amdgpu_command_submission_sdma_const_fill genericAlex Deucher2016-02-041-8/+16
| | | | | | | So it can be shared for CP tests. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: add a test for cp write dataAlex Deucher2016-02-041-0/+125
| | | | | | | Use the CP to write data to memory. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: make amdgpu_command_submission_sdma_write_linear genericAlex Deucher2016-02-041-9/+18
| | | | | | | So it can be shared for CP tests. Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu: make amdgpu_sdma_test_exec_cs() generic (v2)Alex Deucher2016-02-041-23/+28
| | | | | | | | | Share with upcoming CP tests. v2: drop unnecessary forward declaration Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* android: enable building static version of libdrmSumit Semwal2016-02-041-0/+19
| | | | | | | | | | Android needs libdrm built statically for recovery; enable that as well. Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Cc: Chih-Wei Huang <cwhuang@linux.org.tw> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* libkms: add libdrm to Requires.privateEmil Velikov2016-02-041-0/+1
| | | | | | | | Analogous to last two changes (amdgpu and radeon). Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* radeon: add libdrm to Requires.privateEmil Velikov2016-02-041-0/+1
| | | | | | | | | | | Equivalent to the amdgpu commit before. Additionally, when libdrm is installed to a 'non-default' location, users of libdrm_radeon will fail to build, as radeon_cs.h (and maybe others) won't have their dependencies (drm.h radeon_drm.h) fulfilled. Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* amdgpu: add libdrm as private requirement/dependencyEmil Velikov2016-02-041-0/+1
| | | | | | | | | Otherwise libdrm.so won't end up in the --libs, when one static links libdrm_amdgpu. Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* vc4: Add headers and .pc files for VC4 userspace development.Eric Anholt2016-02-037-0/+742
| | | | | | | | | | | | | | | The headers were originally written in Mesa, imported to the kernel, and improved upon in vc4-gpu-tools. These come from the v-g-t copies and will replace the Mesa and v-g-t copies, and hopefully be used from new tests in igt, as well. v2: Fix linking against libdrm_intel instead of libdrm. v3: Drop Libs and Cflags since they'll be inherited from libdrm. v4: Switch to Requires.private. I was wrong about standard practice, apparently only Intel was doing plain Requires (sorry to all involved). Signed-off-by: Eric Anholt <eric@anholt.net>
* util: Add support for vc4.Eric Anholt2016-02-031-0/+1
| | | | | | This lets allows using modetest for overlay plane testing. Signed-off-by: Eric Anholt <eric@anholt.net>
* vc4: Add the DRM header file.Eric Anholt2016-02-032-0/+280
| | | | | | | | I'll build some libdrm C code soon, but for now this lets libdrm users use vc4 ioctls. Produced from headers_install of 1df59b8497f47495e873c23abd6d3d290c730505 (drm-next) in the kernel. Signed-off-by: Eric Anholt <eric@anholt.net>
* tests/kmstest: inverse the order of LDADD librariesEmil Velikov2016-01-271-2/+2
| | | | | | | | | | | | | | The utils library depends on libdrm. Flip the order, orderwise we might error during link stage like below: CC main.o CCLD kmstest /usr/bin/ld: ../../tests/util/.libs/libutil.a(libutil_la-kms.o): undefined reference to symbol 'drmOpen' Reported-by: Tom Stellard <thomas.stellard@amd.com> Tested-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: Include poll.h rather than sys/poll.hKylie McClain2016-01-262-2/+2
| | | | | | | | | | sys/poll.h is a non-standard location of the poll.h header, and is incorrect on non-glibc libcs. poll.h, however, is defined in SUS (v2) and is more portable. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93764 http://pubs.opengroup.org/onlinepubs/007908799/xsh/poll.h.html Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: Include sys/select.hKhem Raj2016-01-265-1/+13
| | | | | | | | | | | | | | | | Used in compliance with POSIX 2001/2008 Fixes errors e.g. error: implicit declaration of function 'select' and helps with missing definitions of FD_* defines v2: conditionally include sys/select.h, include in every test where needed. Signed-off-by: Khem Raj <raj.khem@gmail.com> Reviewed-by: Thierry Reding <thierry.reding@gmail.com> (v1) Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: util: Fixup util_open() parameter orderThierry Reding2016-01-263-3/+3
| | | | | | | | | | util_open() takes a device parameter, followed by a module parameter. The existing tests used the drmOpen() function, which uses a different ordering of the parameters, and the old ordering was accidentally kept during the conversion. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests: add fsl-dcu-drm to modulesStefan Agner2016-01-261-0/+1
| | | | | Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* kmstest: Use util_open()Stefan Agner2016-01-262-17/+32
| | | | | | | | | | Use the new util_open() helper instead of open-coding the method for finding a usable device. While at it, make the command-line interface more consistent with that of modetest by adding the -D and -M options. Signed-off-by: Stefan Agner <stefan@agner.ch> v2: correctly use util_open() - swap device, module Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* configure.ac: don't detect disabled options dependenciesMarcin Ślusarz2016-01-241-14/+22
| | | | | | | | Currently with --disable-amdgpu --disable-valgrind --disable-cairo-tests cunit, valgrind and cairo are still detected. Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* xf86drm: Bound strstr() to the allocated dataDamien Lespiau2016-01-221-1/+2
| | | | | | | | | | | We are reading at most sizeof(data) bytes, but then data may not contain a terminating '\0', at least in theory, so strstr() may overflow the stack allocated array. Make sure that data always contains at least one '\0'. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
* radeon: Pass radeon_bo_open flags to the DRM_RADEON_GEM_CREATE ioctlMichel Dänzer2016-01-211-1/+1
| | | | | | | Not doing so makes it impossible for radeon_bo_open callers to set any RADEON_GEM_* flags for the newly created BO. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: Add new symbols to amdgpu-symbols-checkMichel Dänzer2016-01-201-0/+4
| | | | | | Fixes make check. Trivial.
* amdgpu: list each entry safely for sw semaphore when submit ibJunwei Zhang2016-01-191-2/+2
| | | | | | | Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: David Zhou <david1.zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* tests/amdgpu: add semaphore testChunming Zhou2016-01-191-0/+133
| | | | | | Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: add semaphore supportMarek Olšák2016-01-193-4/+249
| | | | | | | | | | | | the semaphore is a binary semaphore. the work flow is: 1. create sem 2. signal sem 3. wait sem, reset sem after signalled 4. destroy sem. Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: validate user memory for userptrChunming Zhou2016-01-191-1/+2
| | | | | Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* amdgpu: drop address patching logicsmonk.liu2016-01-191-10/+1
| | | | | | | we don't support non-page-aligned cpu pointer anymore Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* configure.ac: disable annoying warning -Wmissing-field-initializersMarek Olšák2016-01-192-3/+2
| | | | | | | It warns for all "{}" initializers. Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
* Fix memory leak with drmModeGetConnectorCurrent()Ville Syrjälä2016-01-071-4/+7
| | | | | | | | | | | | | | | | | drmModeGetConnectorCurrent() must provide temporary storage for the kernel to fill in at least one mode (asking for !=0 modes is how you prevent the heavyweight probe in the kernel). Currently we malloc that temp storage but we fail to free it before overwriting the pointer with the address of the actual storage we use to store the real mode list we get from the kernel in the second ioctl call. Let's just keep the temporary storage on the stack and thus we avoid the leak and also eliminate some pointless mallocs. Cc: Chris Wilson <chris@chris-wilson.co.uk> Fixes: 5ed5fa10600f ("mode: Retrieve only the current information for a Connector") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
* intel/kbl: Add Kabylake PCI idsRodrigo Vivi2016-01-061-1/+56
| | | | | | | Also, following kernel definition Kabylake is skylake. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
* intel: Restore formatting of offsets in debug statementsMichał Winiarski2015-12-221-9/+14
| | | | | | | | | | | | | | | Using lower_32_bits and upper_32_bits macros was accidentally dropped in: commit 8b4d57e7b75cb0bd01d11ad7f597909034a316aa Author: Michał Winiarski <michal.winiarski@intel.com> Date: Wed Sep 9 16:07:10 2015 +0200 intel: Add support for softpin Let's restore previous, more readable format. Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* Bump version for releaseBen Skeggs2015-12-211-1/+1
| | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: clean up nouveau.h, noting deprecated members/functionsBen Skeggs2015-12-211-113/+114
| | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: add support for newer kernel interfacesBen Skeggs2015-12-212-7/+155
| | | | | | | | | v2. - leave client-provided pointer unmodified on sclass_get() failure Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: add new interface to create a nouveau_deviceBen Skeggs2015-12-213-47/+89
| | | | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: remove nouveau_object_find()Ben Skeggs2015-12-213-13/+0
| | | | | | | | No more internal users, and there's never been external users. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>