aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add new DRM_MODE_CONNECTOR and _ENCODER definesHEADmasterAdam Cheney2015-10-071-0/+5
| | | | | | | | Update drm_mode.h defines from kernel upstream for connector and encoder types to expose DSI and other newly defined types. Signed-off-by: Adam Cheney <acheney@nvidia.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>
* drm: Initialize or valgrind-clear modesetting ioctl arguments.Eric Anholt2015-01-302-0/+21
| | | | | | | | | | Fixes valgrind complaints in the modesetting driver. I tried to follow each ioctl's pattern for whether it was initializing just the in values, or both in and out values. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* libdrm/mode: Update the encoder and connector definesThomas Hellstrom2015-01-301-0/+5
| | | | | | | | Update the defines to match the kernel drm_mode.h Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* drm: Introduce a drmSetClientCap() wrapperDamien Lespiau2015-01-302-0/+9
| | | | | | | | That wraps around the new DRM_SET_CLIENT_CAP ioctl. v2: SET_CAP -> SET_CLIENT_CAP renaming Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* drm: Sync the DRM_SET_CLIENT_CAP ioctl definitionsrinivas pulukuru2015-01-301-0/+16
| | | | | | | v2: SET_CAP -> SET_CLIENT_CAP renaming Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* drm: Synchronize the stereo 3D mode flags from the kernel headersDamien Lespiau2015-01-302-28/+49
| | | | | | | v2: stereo layouts are now an enum (Daniel Vetter) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* libdrm: Make some drm headers compatible with gcc -std=c89 -pedanticDaniel Kurtz2015-01-302-4/+4
| | | | | | | | | | | | | | | The following minor changes were needed to these headers: * Convert // comments to /* */ * No , after final member of enum With these changes, these header files can be included by a program that is built with gcc options: -std=c89 -Werror -pedantic Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* libdrm: add missing DRM_CAP_TIMESTAMP_MONOTONICImre Deak2015-01-301-0/+1
| | | | | | | Just add the definition according the kernel's copy of drm.h Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* drm: add hotspot cursor interface support.Dave Airlie2015-01-304-0/+30
| | | | | Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* kms: Return a negative error code in kms_bo_create()Laurent Pinchart2015-01-301-1/+1
| | | | | | | | | | | The function returns returns 0 on success or a negative value in case of an error, except when given invalid attributes in which case it returns the positive EINVAL value. Replace that with -EINVAL to allow the caller to detect errors with a < 0 check. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* drm: Fix error message in drmWaitVBlankDaniel Kurtz2015-01-301-1/+1
| | | | | | | | If clock_gettime did fail, it would return -1 and set errno. What we really want to strerror() is the errno. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com>
* modetest: add support for modetestsrinivas pulukuru2015-01-304-416/+1100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | added support for scaling, window coordinates, refresh rate for mode setting Added other options such as Query options: -c list connectors -e list encoders -f list framebuffers -p list CRTCs and planes (pipes) Test options: -P <crtc_id>:<w>x<h>[+<x>+<y>][*<scale>][@<format>] set a plane -s <connector_id>[,<connector_id>][@<crtc_id>]:<mode>[-<vrefresh>][@<format>] set a mode -v test vsynced page flipping -w <obj_id>:<prop_name>:<value> set property Generic options: -d drop master after mode set -M module use the given driver -D device use the given device Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Vincent Abriou <vincent.abriou@st.com> Signed-off-by: Rob Clark <robclark@freedesktop.org> Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
* omap: Add DRM_RDWR flag to dmabuf exportHemant Hariyani2014-12-041-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 Hariyani2014-12-041-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>
* OMAPKMSLIB: Fixed the KMS Lib alloc/free/mapTony Zlatinski2014-10-143-51/+112
|
* DRMKMS: fix the makefile to omapdrmTony Zlatinski2014-10-141-0/+3
|
* DRM-KMS: Android support of libdrmTony Zlatinski2014-10-1412-1/+505
|
* DEBIAN: debianizationNikhil Devshatwar2013-05-2129-0/+1852
|
* Add omapdrm module to kmstest and vbltestVincent Stehlé2013-05-172-1/+2
| | | | Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
* gitignoreVincent Stehlé2013-05-171-0/+2
| | | | Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
* intel: add more VLV PCI IDsJesse Barnes2013-05-171-1/+7
|
* man: Fix typo and use $() for make expressionsThierry Reding2013-05-171-1/+2
| | | | | | | | | | | | Due to the typo, none of the .xml files would end up in the release tarball and cause make distcheck as well as builds from the tarball to fail. Using $() isn't strictly necessary but other variables and expressions use that variant already so it makes the usage consistent. Reviewed-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
* radeon: Fix 1D tiling layout on SI.Michel Dänzer2013-05-171-23/+88
| | | | | | | | | | Very similar to Evergreen, but slightly different rules for tile / slice alignment. Fortunately, these map quite naturally onto the previous fixes for linear aligned layout on SI. 2D tiling still needs more work here and possibly in the kernel. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
* man: fix manpage build instructionsDavid Herrmann2013-05-174-15/+42
| | | | | | | | | | | | This fixes all the out-of-tree build-failures with manpages and uses a .man_fixup file to avoid overriding man-pages on every build. Manpages are only built if xsltproc is found and the stylesheets are available locally. You can disable building manpages with --disable-manpages so the quite expensive xsltproc procedure can be skipped. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
* nouveau: use @PACKAGE_VERSION@ in libdrm_nouveau.pcMaarten Lankhorst2013-05-171-1/+1
| | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* omap: release lock also on error pathsVincent Penquerc'h2013-05-171-0/+2
| | | | Signed-off-by: Rob Clark <rob@ti.com>
* libdrm 2.4.37 nouveau 1Nikhil Devshatwar2013-05-1724-1/+2766
|
* build against librtNikhil Devshatwar2013-05-171-0/+2
|
* default permsNikhil Devshatwar2013-05-171-1/+1
|
* configure.ac: bump version to 2.4.41 for releaseMaarten Lankhorst2013-01-161-1/+1
|
* nouveau: expose channel engine selection on kepler chipsetsBen Skeggs2013-01-164-0/+48
| | | | | | | | v2: Take Maarten Lankhorst's suggestion of nesting the struct to prevent sizeof() issues due to padding on older revisions. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* libdrm_nouveau.pc: don't include I${includedir}/nouveauMarcin Slusarz2013-01-141-1/+1
| | | | Nouveau headers are installed in I${includedir}/libdrm.
* intel: Remove the fence count contributions when clearing relocsChris Wilson2013-01-131-3/+4
| | | | | | As we clear the relocs from the bo, we also need to clear the contribution of the reloc_target_bo from the fence count. Otherwise they are leaked and prevent any further relocations being added to the bo.
* man: disable man page building until David saves us allJesse Barnes2013-01-091-1/+1
| | | | | | I must have botched something in the push of the xml switchover, since I now get errors when building the pages and aliases. Just disable for now.
* man: add drm-memory overview pageDavid Herrmann2013-01-092-2/+437
| | | | | | | | | This adds an overview page that describes Dumb-Buffers, TTM and GEM. It does not describe chipset-specific features. You should do that in the driver-manpages. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
* man: add drm-kms overview pageDavid Herrmann2013-01-092-0/+343
| | | | | | | | This is an overview page for KMS. It is again targeted at novice users that need redirection to the correct function man-pages. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
* man: add drm.7 overview pageDavid Herrmann2013-01-092-0/+138
| | | | | | | | | The drm.xml file compiles to drm.7 and is meant as a global overview page for libdrm. It is targeted to new users of libdrm and redirects to all other main man-pages. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
* man: convert manpages to XML instead of plain troffDavid Herrmann2013-01-099-181/+370
| | | | | | | | | If we want to use the manpages in external documentation other than normal manpages, we should rather use XML. Furthermore, almost no-one knows troff today, anyway, and XML allows others to easily add more pages without having to learn troff. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
* nouveau: disallow pushbuf BOs in multiple memory typesBen Skeggs2013-01-061-4/+4
| | | | | | | | | | | | | Under certain circumstances it's possible for libdrm to decide to move a GART|VRAM pushbuf to be VRAM-only. This causes the kernel to reject the command submission on GF8 and up, due to a stricter policy where buffers are only allowed to move to memory types that were specified at creation time. The simplest fix for this is to force the creation-time memory type for the lifetime of the push buffer. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* libkms: return -EINVAL on fstat errorMaxime Villard2013-01-021-1/+1
| | | | | | | On error fstat return -1, instead return -EINVAL to caller Signed-off-by: Maxime Villard <rustyBSD@gmx.fr> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
* libkms: fix memory leak in error pathMaxime Villard2013-01-022-0/+2
| | | | | Signed-off-by: Maxime Villard <rustyBSD@gmx.fr> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
* drm/radeon: track global bo name and always return the sameJerome Glisse2012-11-281-5/+11
| | | | | | | | | | | | To avoid kernel rejecting cs if we return different global name for same bo keep track of global name and always return the same. Seems to fix issue with suspend/resume failing and repeatly printing following message : [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -35! There might still be way for a rogue program to trigger this issue. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
* radeon: add new SI pci idAlex Deucher2012-11-211-0/+1
| | | | Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
* intel: Fix missing ETIME on BSD operating systemsDavid Shao2012-11-101-0/+3
| | | | | | | | | | | | Originally posted to Free Desktop bug #52549 by David Shao. Resolves Gentoo Bug #433403. Commit message by Richard Yao. Reviewed-by: Richard Yao <ryao@gentoo.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> References: https://bugs.freedesktop.org/show_bug.cgi?id=52549 Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
* configure.ac: bump version to 2.4.40 for releaseMarek Olšák2012-11-051-1/+1
|
* fix make distcheckDave Airlie2012-11-051-1/+1
| | | | | | | typo, Reported-by: mareko on irc Signed-off-by: Dave Airlie <airlied@redhat.com>
* radeon: fix tile_split of 128-bit surface formats with 8x MSAAMarek Olšák2012-10-261-0/+2
| | | | | | The calculation led to the number 8192, which is too high. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* radeon: fix unused-function warningAndreas Boll2012-10-241-0/+2
| | | | | | | radeon_cs_gem.c:333:13: warning: 'cs_gem_dump_bof' defined but not used [-Wunused-function] Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* radeon: add some new SI pci idsAlex Deucher2012-10-161-0/+3
| | | | Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* initialize width/height fields in drmModeCrtcRob Clark2012-10-141-1/+4
| | | | | | | | | If we have valid timings, we can at least set width/height to *something*, which is I think at least less confusing than always seeing width/height of zero. At least modeprint and modetest seem to expect width/height to mean something. Signed-off-by: Rob Clark <rob@ti.com>