History log of /external/libdrm/xf86drmMode.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
870942e56aac024da5e0a621275f6561a4ddab1b 03-Feb-2016 Sean Paul <seanpaul@chromium.org> Merge tag 'tags/libdrm-2.4.66' into master

Tag libdrm-2.4.66 from git://anongit.freedesktop.org/mesa/drm

Signed-off-by: Sean Paul <seanpaul@chromium.org>

Conflicts:
Android.mk
Makefile.am
configure.ac
freedreno/Android.mk
include/drm/drm_mode.h
intel/Android.mk
libkms/Android.mk
nouveau/Android.mk
radeon/Android.mk
tegra/tegra.c
tests/Makefile.am
xf86drmMode.c
xf86drmMode.h

Change-Id: I3186bde7f196d2f3438c4334591ee2a0c1371c96
ed3c665548c2c0400a7e9e91cb9324c9e1f29375 05-Sep-2015 Emil Velikov <emil.l.velikov@gmail.com> xf86drmMode: smoke-test the atomic API

As going through the modetest patches for atomic support I've noticed
that if we pass NULL for the drmModeAtomicReqPtr argument we'll crash.

So let's handle things appropriately if the user forgot to check the
return value of drmModeAtomicAlloc and drmModeAtomicDuplicate or made a
typo somewhere along the way.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rob Clark <robclark@freedesktop.org>
Cc: Daniel Stone <daniels@collabora.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
4bac035c34b8dfd02e8046150fd19843058618b8 19-Aug-2015 Hyungwon Hwang <human.hwang@samsung.com> xf86drmMode: remove the trailing white spaces

This patch removes the trailing white spaces.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
/external/libdrm/xf86drmMode.c
5e5a3c48b83fb3929e57cb4e7261624a327137f3 09-Apr-2014 Thierry Reding <treding@nvidia.com> libdrm: Make indentation consistent

Use tabs and spaces consistently to align function arguments on
subsequent lines with those of the first line.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/xf86drmMode.c
d2d361cddd2bdf8f1bf627b9ebe8ca802156f8af 09-Apr-2014 Thierry Reding <treding@nvidia.com> libdrm: Remove gratuitous blank lines

Usage of blank lines can be a matter of taste, of course, but for these
we can surely all agree that they're not needed and inconsistent.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/xf86drmMode.c
1d3b823650bf980a48df00b748fef7cfc7c19b14 18-Jul-2015 Jonathan Gray <jsg@jsg.id.au> xf86drmMode: Implement drmCheckModesettingSupported() for OpenBSD

This is implemented with kms ioctls so it could also be used as a
generic fallback.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
1a6efaf68e207302cd9423051b8091fa663bbabe 21-Jul-2015 Chris Wilson <chris@chris-wilson.co.uk> drm: Detect no-op drmModeAtomicRequest and return early

If the number of items to process in the request is zero, we can forgo
duplicating, sorting the request and feeding it into the kernel and
instead report success immediately. This prevents a NULL dereference of
the sorted->items for the no-op request.

Fixes: ed44e0b9585c563905447eceed12af9c1c7ca8d4
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rob Clark <robclark@freedesktop.org>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
fc8c3e23fb990efd620ef9d9bf3b91686aecc934 06-Jul-2015 Julien Cristau <jcristau@debian.org> Fix headers inclusion in xf86drmMode.c

Add sys/sysctl.h to get sysctlbyname declaration on kFreeBSD

Updated by Thorsten “mirabilos” Glaser <t.glaser@tarent.de>
to add autoconf check and only include <sys/sysctl.h> if it
is detected by configure as it’s unusable on Linux/x32 (and
others, e.g. other new architectures).

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
5f76273d51fee5c176302ae5f57673461b80333b 29-Jun-2015 Emil Velikov <emil.l.velikov@gmail.com> xf86drmMode: include config.h before anything else

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
8426967d4e34ef5924a30166662c60d1003072bd 22-Jun-2015 Emil Velikov <emil.l.velikov@gmail.com> xf86drmMode: remove unused valgrind(VG) macros

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
32471b265c6fbce6d519f0420a0ffeb608296502 22-Jun-2015 Daniel Stone <daniels@collabora.com> Add blob property create/destroy ioctl wrappers

v2: Use memclear to zero out structure.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/xf86drmMode.c
ed44e0b9585c563905447eceed12af9c1c7ca8d4 22-Jun-2015 Ville Syrjälä <ville.syrjala@linux.intel.com> Support atomic modesetting ioctl

Add support for the atomic modesetting ioctl through a property-set API.

v1: Squashed intermediate patches from Ville, Rob and myself. Updated
for current kernel interface (no blobs).
v2: Rewrite user-facing API to provide transactional/cursor interface.
Use memclear to zero out ioctl.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Signed-off-by: Daniel Stone <daniels@collabora.com>

v3 [Emil Velikov]: Remove DRM_CAP_ATOMIC - superseded by
DRM_CLIENT_CAP_ATOMIC.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
0f45884ffc7a46dd4aef14ae6d227a10d8d24fd7 18-Dec-2014 Rob Clark <robclark@freedesktop.org> BACKPORT: fixup! libdrm: atomic mode set

(cherry picked from commit 6ddc823aeb1af0c70cdcd9b206aa45d1e5f394d7)
Signed-off-by: Sean Paul <seanpaul@chromium.org>
/external/libdrm/xf86drmMode.c
34254f950699b1fa20c4f8d585cece0f15661249 27-Jul-2012 Ander Conselvan de Oliveira <conselvan2@gmail.com> BACKPORT: libdrm: Fix bogus increment of a property set object count

If drmModePropertySetAdd() is called with the following property pairs
it will mistakenly increase the object count:

(4, 1), (5,1), (4, 2).

When adding the third pair, the new_obj variable would be set when prev
points to (4, 1) since it disregarded the value of the previous item.

This patch changes the logic so that the obj count is incresed only if
both the previous and next items have differing object ids.

(cherry picked from commit 2b1faf742b6391b1537e2635b6926b3a196c1540)
Signed-off-by: Sean Paul <seanpaul@chromium.org>
/external/libdrm/xf86drmMode.c
ba5b0e9d9a3c894673b68b14cc82f53df32bbce8 18-May-2012 Ville Syrjälä <ville.syrjala@linux.intel.com> BACKPORT: libdrm: atomic mode set

(cherry picked from commit fb8403c23edb3e06c979115b7b0cce2ba5099aa2)
Signed-off-by: Sean Paul <seanpaul@chromium.org>
/external/libdrm/xf86drmMode.c
5ed5fa10600f0140b317ec07be6f24739c11bd18 04-Mar-2015 Chris Wilson <chris@chris-wilson.co.uk> mode: Retrieve only the current information for a Connector

Add a new API that allows the caller to skip any forced probing, which
may require slow i2c to a remote display, and only report the currently
active mode and encoder for a Connector. This is often the information
of interest and is much, much faster than re-retrieving the link status
and EDIDs, e.g. if the caller only wishes to count the number of active
outputs.

v2: Fix error path to avoid double free after a failed GETCONNECTOR
ioctl.

v3: Daniel strongly disapproved of my disjoint in behaviour between
GetConnector and GetConnectorCurrent, and considering how best to make a
drop in replacement for drmmode_output_init() convinced me keeping the
API as consistent as possible was the right approach.

v4: Avoid probing on the second calls to GETCONNECTOR for unconnected
outputs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.com>
Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: David Herrmann <dh.herrmann@googlemail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/libdrm/xf86drmMode.c
65041c4a19bc6d1cc86f768259b9e0888af0bd5f 27-Feb-2015 Jan Vesely <jan.vesely@rutgers.edu> Fix type-limits, pointer-arith and sign-compare warnings

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Emil Velikov <eil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
7e0460c6d4b509983307f3106ad56c6622c0c7f2 11-Feb-2015 Daniel Vetter <daniel.vetter@ffwll.ch> xf86drmMode: Unconditionally clear ioctl structs

We really have to do this to avoid surprises when extending the ABI
later on. Especially when growing the structures.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
/external/libdrm/xf86drmMode.c
de8532dd8359dfdaba839ff61fc9e2f05eaf57d3 30-Nov-2014 Jan Vesely <jan.vesely@rutgers.edu> Fix gcc -Wextra warnings

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drmMode.c
edbb4e545f75c08d9d178173bdcdc87ffc88dcd4 26-Jul-2014 François Tigeot <ftigeot@wolfpond.org> drm: Implement drmCheckModesettingSupported() for DragonFly

For the sake of simplicity, KMS support can always be considered
present on DragonFly.

If some particular version doesn't support KMS yet, appropriate
checks are already done in Dports's x11-drivers/ Makefiles and
KMS-enabled driver packages don't get built.

Signed-off-by: François Tigeot <ftigeot@wolfpond.org>
Signed-off-by: Maarten Lankhorst <dev@mblankhorst.nl>
/external/libdrm/xf86drmMode.c
828c3e85be697acfeb518793dbada0cca8a691f9 01-May-2014 Daniel Kurtz <djkurtz@chromium.org> Use signed location for drmModeSetPlane

DRM_IOCTL_MODE_SETPLANE crtc_x, crtc_y are s32.
This is to allow a destination location that is partially off screen.

Make this more obvious to users of libdrm by using signed crtc_x/_y
parameters for drmModeSetPlane() as well.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
/external/libdrm/xf86drmMode.c
cbb31f2d6e674513c0f66484c414475baba09153 23-Jan-2014 Robert Millan <rmh@freebsd.org> drm: Implement drmCheckModesettingSupported() for FreeBSD

Add the missing implementation of drmCheckModesettingSupported()
to detect KMS support on FreeBSD (and GNU/kFreeBSD).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72847
Signed-off-by: Konstantin Belousov <kib@freebsd.org>
Signed-off-by: Robert Millan <rmh@freebsd.org>
/external/libdrm/xf86drmMode.c
734de7093db296912da0027e4fa1094f60787c11 29-Dec-2013 Eric Anholt <eric@anholt.net> 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>
/external/libdrm/xf86drmMode.c
2e0ab6237697c9754d92689f77c1792c11be881b 02-Jul-2013 Dave Airlie <airlied@redhat.com> drm: add hotspot cursor interface support.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/libdrm/xf86drmMode.c
e81acf51013d5d4245417c46ee6b4055c26f1a91 14-Oct-2012 Rob Clark <rob@ti.com> 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>
/external/libdrm/xf86drmMode.c
7b228e900f59cda3cafb60692be9dd7aced6ad96 05-Jun-2012 Rob Clark <rob@ti.com> Add support for bitmask properties

A bitmask property is similar to an enum. The enum value is a bit
position (0-63), and valid property values consist of a mask of
zero or more of (1 << enum_val[n]).

Signed-off-by: Rob Clark <rob@ti.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
/external/libdrm/xf86drmMode.c
8c75703df0fdf65b3851f8eb5822705638decff3 15-May-2012 Paulo Zanoni <paulo.r.zanoni@intel.com> Add support for generic object properties IOCTLs

New library calls:
- drmModeObjectGetProperties
- drmModeFreeObjectProperties
- drmModeObjectSetProperties

Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
/external/libdrm/xf86drmMode.c
76b4a69aab7cbfb4a087194b6d6ee182c1d5dd7e 02-Feb-2012 Ville Syrjälä <ville.syrjala at linux.intel.com> Using sizeof() on a function parameter with an array type does not
work. sizeof() treats such parameters as pointers.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
/external/libdrm/xf86drmMode.c
a14c3dd0f9c468d5dba86df5ffa786aea77068a9 02-Feb-2012 Ville Syrjälä <ville.syrjala at linux.intel.com> This function was missing.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
/external/libdrm/xf86drmMode.c
df497e9281036ca9397bc5a08a82fdf44dbc12b2 02-Feb-2012 Ville Syrjälä <ville.syrjala at linux.intel.com> drmModeFreeResources() always leaked some memory.
drmModeGetPlaneResources() and drmModeGetPlane() leaked in one error
path.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
/external/libdrm/xf86drmMode.c
ac168bf2a068761b591187e6a0a52083d456280b 29-Apr-2011 Jesse Barnes <jbarnes@virtuousgeek.org> libdrm: update drm headers from kernel, including new overlay ioctls & structs

Add structs and functions necessary for the new plane and fb handling code,
including a new header, drm_fourcc.h, that includes the surface formats
supported by various DRM drivers.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
/external/libdrm/xf86drmMode.c
763b618d55a973807823bb1a1c6e60b9e2db6d8b 05-Jun-2011 Marcin Slusarz <marcin.slusarz@gmail.com> drm mode: fix drmIoctl wrapper

Both drmIoctl and ioctl define second argument as unigned long.

Debugging/tracing tools (like strace or valgrind) on 64-bit machines see
different request value for ioctls with 32nd bit set, because casting
signed int to unsigned long extends 32nd bit to upper word, so 0x80000000
becomes 0xFFFFFFFF80000000)

Nobody noticed because higher 32 bits are chopped off on their way to kernel.
/external/libdrm/xf86drmMode.c
8d055890d90c3d92647e3d8b98d32630ef87c2c8 12-Jul-2011 Chih-Wei Huang <cwhuang@linux.org.tw> Specify the return type explicitly.
/external/libdrm/xf86drmMode.c
8a76244a0fd09d0e3298fe68af812d7eaa4dbcb5 24-Aug-2010 Chris Wilson <chris@chris-wilson.co.uk> Free the property blob along the error path.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/libdrm/xf86drmMode.c
b803918f3f77c62edf22e78cb2095be399753423 01-Jul-2010 Chris Wilson <chris@chris-wilson.co.uk> drm mode: Return -errno on drmIoctl() failure

The high layers expect to receive a status code on error (on the
pessimistic assumption that the errno value will have been overwritten
by the time the failure is propagated all the way up), so convert
xf86drmMode.c to return -errno on an ioctl error and be consistent with
the rest of the libdrm API.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/libdrm/xf86drmMode.c
04f90a44709a48fb932ea954011cb551659bf246 06-Jan-2010 Peter Clifton <pcjc2@cam.ac.uk> modes: Retry GETCONNECTOR if a hotplug event occurs between the two ioctls

If the available modes changes between the two GETCONNECTOR ioctls, that
caused the kernel to skip filling one array and led to a crash (as the size
of the allocated and initialised block of memory differed from the reported
size, and might be NULL if no modes were present at first).

This bug manifest its self on my machine due to spurious false positive
detections of a connected TV-out.

Fixes: http://bugs.freedesktop.org/show_bug.cgi?id=25912
Crash whilst probing modes

Based upon the similar fixes for the GETRESOURCES ioctls by Chris Wilson,
in the following commits:

commit e6c136ca7a4c54457b48be1aec2be024b3e4a28d
commit 85fb3e55fdb7af9b5f59c1ec0f15d1950e601b05
commit d1308f4fe7f94aae51ca9f70947aea8e09597f37

Signed-off-by: Peter Clifton <pcjc2@cam.ac.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/libdrm/xf86drmMode.c
e6c136ca7a4c54457b48be1aec2be024b3e4a28d 06-Jan-2010 Chris Wilson <chris@chris-wilson.co.uk> modes: Fix previous commit for potential legal NULLs

If the count is 0, then the malloc is permitted to return NULL, so don't
throw an error in that case.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/libdrm/xf86drmMode.c
85fb3e55fdb7af9b5f59c1ec0f15d1950e601b05 06-Jan-2010 Chris Wilson <chris@chris-wilson.co.uk> modes: Free local resources after allocation failure in GETRESOURCES

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/libdrm/xf86drmMode.c
d1308f4fe7f94aae51ca9f70947aea8e09597f37 06-Jan-2010 Chris Wilson <chris@chris-wilson.co.uk> modes: Retry GETRESOURCES if a hotplug event occurs between the two ioctls

Peter Clifton hit an issue whereby he had a spurious TV hotplug event
that occurred between the two GETRESOURCES ioctls that caused the kernel
to skip filling one array and led to a crash (as the size of the
allocated and initialised block of memory differed from the reported
size).

Fixes: http://bugs.freedesktop.org/show_bug.cgi?id=25912
Crash whilst probing modes

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Peter Clifton <pcjc2@cam.ac.uk>
/external/libdrm/xf86drmMode.c
3bd834a2178ee1273fd84628e87210a500f8fc84 02-Dec-2009 Jakob Bornecrantz <jakob@vmware.com> Merge branch 'modesetting-dirty-libdrm'

Conflicts:
include/drm/drm.h
14f5958f7fd9ebe8a772ea931feb044d2d5d967b 03-Dec-2009 Jesse Barnes <jbarnes@virtuousgeek.org> Bump event context structure version for page flipping
/external/libdrm/xf86drmMode.c
53addc5d6ef7406d9fab5ea481cf68fa011870f1 03-Dec-2009 Jesse Barnes <jbarnes@virtuousgeek.org> Merge branch 'pageflip' of git://people.freedesktop.org/~jbarnes/drm

Conflicts:
include/drm/drm.h - RMFB had its signature changed to avoid uint32_t
3e48613b482a8ca01ea5719e9cc342a9d4b28db0 24-Nov-2009 Jakob Bornecrantz <jakob@vmware.com> Bring dirty code from old branch
/external/libdrm/xf86drmMode.c
4f57abfe66091281c9f59c14e6ea27b524b55d5b 17-Nov-2009 Kristian Høgsberg <krh@bitplanet.net> Move libdrm/ up one level
/external/libdrm/xf86drmMode.c