Adam Cheney cc8b4d68aca Add new DRM_MODE_CONNECTOR and _ENCODER defines
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> Add new DRM_MODE_CONNECTOR and _ENCODER defines 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> 16 Dec 2014 Eric Anholt e4013228673 drm: Initialize or valgrind-clear modesetting ioctl arguments. 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> 14 Nov 2014 Thomas Hellstrom c9ca82b80ac libdrm/mode: Update the encoder and connector defines 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> 14 Nov 2014 Damien Lespiau c0eab7399e0 drm: Introduce a drmSetClientCap() wrapper 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> 14 Nov 2014 srinivas pulukuru 5f5fbf49b6b drm: Sync the DRM_SET_CLIENT_CAP ioctl definition 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> 29 Jan 2015 Damien Lespiau 24a14d6419f drm: Synchronize the stereo 3D mode flags from the kernel headers 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> 14 Nov 2014 Daniel Kurtz 33f1f8cf3af libdrm: Make some drm headers compatible with gcc -std=c89 -pedantic 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... 14 Nov 2014 Imre Deak 245a2966a45 libdrm: add missing DRM_CAP_TIMESTAMP_MONOTONIC 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> 14 Nov 2014 Dave Airlie ccb75122cdb drm: add hotspot cursor interface support. Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: srinivas pulukuru <srinivas.pulukuru@ti.com> 14 Nov 2014 Laurent Pinchart 5f74733530a kms: Return a negative error code in kms_bo_create() 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: sriniv... 14 Nov 2014 Daniel Kurtz 5986e020c15 drm: Fix error message in drmWaitVBlank 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> 14 Nov 2014 srinivas pulukuru 19087e509db modetest: add support for modetest 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>][@... 14 Nov 2014 Hemant Hariyani aeaa7d3d78f omap: Add DRM_RDWR flag to dmabuf export Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE.
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com> 03 Dec 2014 Hemant Hariyani b3ac4b3a8a1 libdrm: Add define for DRM_RDWR 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> 03 Dec 2014 Tony Zlatinski b1da92efe6d OMAPKMSLIB: Fixed the KMS Lib alloc/free/map 18 Sep 2012 Tony Zlatinski 9061a8f14d6 DRMKMS: fix the makefile to omapdrm 20 Aug 2012 Tony Zlatinski e0bf30f3420 DRM-KMS: Android support of libdrm 17 Aug 2012 Nikhil Devshatwar 3cb54050841 DEBIAN: debianization 20 May 2013 Vincent Stehlé 91f7a8be1cc Add omapdrm module to kmstest and vbltest Signed-off-by: Vincent Stehlé <v-stehle@ti.com> 10 May 2012 Vincent Stehlé 623ed288936 gitignore Signed-off-by: Vincent Stehlé <v-stehle@ti.com> 18 Apr 2012 Jesse Barnes 2041b4bb1cf intel: add more VLV PCI IDs 02 Feb 2013 Thierry Reding 7264168c506 man: Fix typo and use $() for make expressions 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> 18 Jan 2013 Michel Dänzer 35779fe814b radeon: Fix 1D tiling layout on SI. 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> 17 Jan 2013 David Herrmann 0c72cc8e668 man: fix manpage build instructions 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> 16 Jan 2013 Maarten Lankhorst bd0c5c20181 nouveau: use @PACKAGE_VERSION@ in libdrm_nouveau.pc Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> 16 Jan 2013 Vincent Penquerc'h 87478683050 omap: release lock also on error paths Signed-off-by: Rob Clark <rob@ti.com> 09 Oct 2012 Nikhil Devshatwar 91d114f8ba0 libdrm 2.4.37 nouveau 1 17 May 2013 Nikhil Devshatwar e3b9911484c build against librt 17 May 2013 Nikhil Devshatwar a30caaea1d6 default perms 17 May 2013 Maarten Lankhorst 007bff7a034 configure.ac: bump version to 2.4.41 for release 16 Jan 2013 Ben Skeggs c41b494c47f nouveau: expose channel engine selection on kepler chipsets 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> 22 Nov 2012 Marcin Slusarz 9e6f96a579f libdrm_nouveau.pc: don't include I${includedir}/nouveau Nouveau headers are installed in I${includedir}/libdrm. 16 Dec 2012 Chris Wilson fdda97007b1 intel: Remove the fence count contributions when clearing relocs 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. 10 Jan 2013 Jesse Barnes 1dbd873700f man: disable man page building until David saves us all 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. 09 Jan 2013 David Herrmann fd6b369d39b man: add drm-memory overview page 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> 28 Sep 2012 David Herrmann 8cd0c131df2 man: add drm-kms overview page 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> 28 Sep 2012 David Herrmann 0a766a5388b man: add drm.7 overview page 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> 28 Sep 2012 David Herrmann 6b7e45c7516 man: convert manpages to XML instead of plain troff 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> 28 Sep 2012 Ben Skeggs 891517f5111 nouveau: disallow pushbuf BOs in multiple memory types 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 b... 06 Jan 2013 Maxime Villard baf0a7daafc libkms: return -EINVAL on fstat error 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> 02 Jan 2013 Maxime Villard 1f4b5e11e63 libkms: fix memory leak in error path Signed-off-by: Maxime Villard <rustyBSD@gmx.fr>
Signed-off-by: Jerome Glisse <jglisse@redhat.com> 02 Jan 2013 Jerome Glisse 0980633afd9 drm/radeon: track global bo name and always return the same 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> 27 Nov 2012 Alex Deucher 171666e4b81 radeon: add new SI pci id Signed-off-by: Alex Deucher <alexdeucher@gmail.com> 21 Nov 2012 David Shao 7d42b49c0cf intel: Fix missing ETIME on BSD operating systems 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> 09 Nov 2012 Marek Olšák e01d68f9f3a configure.ac: bump version to 2.4.40 for release 05 Nov 2012 Dave Airlie 2089a0080ed fix make distcheck typo,
Reported-by: mareko on irc
Signed-off-by: Dave Airlie <airlied@redhat.com> 05 Nov 2012 Marek Olšák e32fff8e9ea radeon: fix tile_split of 128-bit surface formats with 8x MSAA The calculation led to the number 8192, which is too high.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> 15 Oct 2012 Andreas Boll bc494b310d7 radeon: fix unused-function warning 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> 28 Aug 2012 Alex Deucher a4cb7233a8d radeon: add some new SI pci ids Signed-off-by: Alex Deucher <alexander.deucher@amd.com> 16 Oct 2012 Rob Clark e81acf51013 initialize width/height fields in drmModeCrtc 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> 14 Oct 2012