ba5a6ecf81fc2e25a4c7b8c592143faadfdd63db |
|
17-Oct-2015 |
Matt Roper <matthew.d.roper@intel.com> |
xf86drm: Handle unrecognized subsystems safely in drmGetDevice[s]() Both drmGetDevice() and drmGetDevices() currently print a warning when they encounter an unknown (non-PCI) subsystem type for a device node, but they still proceed to assume that the drmDevicePtr was initialized and try to add it to the local device array. Add a 'continue' to the error case handling to bypass the rest of the processing for devices we can't handle. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
cf0f036e3d819fb7894562bfdfea95e5e5f57219 |
|
17-Oct-2015 |
Matt Roper <matthew.d.roper@intel.com> |
xf86drm: Fix error handling for drmGetDevice() Some of the error conditions in drmGetDevice() can lead to us calling closedir(NULL) or leaking memory. Fix these conditions the same way we did for drmGetDevices() in commit: commit 8c4a1cbd98bd8d185d489395f33302a17db643a9 Author: Matt Roper <matthew.d.roper@intel.com> Date: Wed Sep 30 09:30:51 2015 -0700 xf86drm: Fix error handling for drmGetDevices() Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
3045523de214fb7df92ee3c8482e883637504bbe |
|
13-Oct-2015 |
Michel Dänzer <michel.daenzer@amd.com> |
Fix void pointer arithmetic in drmProcessPciDevice Arithmetic on void pointers is a GCC extension. CC libdrm_la-xf86drm.lo ../xf86drm.c: In function 'drmProcessPciDevice': ../xf86drm.c:3017:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith] addr += sizeof(drmDevice); ^ ../xf86drm.c:3020:10: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith] addr += DRM_NODE_MAX * sizeof(void *); ^ ../xf86drm.c:3023:14: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith] addr += max_node_str; ^ ../xf86drm.c:3035:14: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith] addr += sizeof(drmPciBusInfo); ^ Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
8c4a1cbd98bd8d185d489395f33302a17db643a9 |
|
30-Sep-2015 |
Matt Roper <matthew.d.roper@intel.com> |
xf86drm: Fix error handling for drmGetDevices() If the opendir() call in drmGetDevices() returns failure, we jump to an error label that calls closedir() and then returns. However this means that we're calling closedir(NULL) which may not be safe on all implementations. We are also leaking the local_devices array that was allocated before the opendir() call. Fix both of these issues by jumping to an earlier error label (to free local_devices) and guarding the closedir() call with a NULL test. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> [Emil Velikov: make the teardown symmetrical, remove the NULL check] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
4031dc17bb728850c9b079c8d5f9cc0a379b9d46 |
|
26-Sep-2015 |
Felix Janda <felix.janda@posteo.de> |
xf86drm: include <limits.h> for PATH_MAX fixes compilation error with musl libc and Solaris based platforms. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92082 Signed-off-by: Felix Janda <felix.janda@posteo.de> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
f3c6740f0c27d98d16340396f1a15e10384f9284 |
|
07-Aug-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: remove makedev() hack/workaround Back when this was introduced commit 569da5a42eb(Merged glxmisc-3-0-0) sys/sysmacros.h was used instead of the respecive headers (as per the manual). We've been handling it correctly for a little while now - in Linux, BSD and Solaris. Thus we can drop this workaround. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
ccedf66b65f6ab245aa6028d7fe9eb603a121b43 |
|
09-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: add drm{Get,Free}Device Similar interface to the *Devices() ones but they obtain/free the information of the opened device (as given by its fd). Note there is a fair bit of duplication between the two Get functions, and anyone interested is more than welcome to consolidate it. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
fae59d7234caf4827bf5ca74c1b706cbfb70a460 |
|
09-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: split out drmProcessPciDevice and drmFoldDuplicatedDevices Will be reused in the next commit. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
8415a00a3f2f5cb4827b58b86e974900d3892d29 |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: warn on missing drmGetMinorNameForFD implementation Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
291b2bb92c5fc90101417b80bbdc6c994be5fff2 |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: move ifdef __linux__ guards where needed Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
5f68d31820315ebda9b49e8bd50d1ab605efd7fa |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: rework drmGetDevices() Do a once off memory allocation for each drmDevice. This allows us to ease the error handling and simplify the de-duplication loop. As part of this we need to rework drmFreeDevice() such so that it frees the relevant hunks, rather than leaving that to the caller. Some memory stats from the drmdevice test before: 22 allocs, 22 frees, 66,922 bytes allocated after: 9 allocs, 9 frees, 66,436 bytes allocated Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
bc2aca9e22bf2cc82874f3e44568c684eec9c5e1 |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: rename drmSameDevice to drmCompareBusInfo Move away form the boolean name, change the return value appropriately and check if either argument is NULL. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
a250fceaaa150363accaf3fb71a0e42bcecc40da |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: move the final linux specific bits out of drmGetDevices Third and final piece of making drmGetDevices less crazy/ugly. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
ef5192e9c7897c82da815a2c893b2e2562997a3a |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: move platform details to drmParsePciDeviceInfo() As with previous commit let's try to keep drmGetDevices clean of linux specifics. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
536e0deba3829e194aafda6d9a1d9e938ba8277a |
|
07-Sep-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: flex platform specifics into drmParsePciBusInfo This will allow one to reuse the core drmGetDevices implementation on other platforms. Keeping all the platform specifics in ParseFoo. On the plus side this saves a bit of code :) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
eb7c2d5e63e0e9d133b16880e36c14676276d412 |
|
04-Sep-2015 |
Rob Clark <robdclark@gmail.com> |
drm: make individual drm_server_info fxns optional For android / drm_gralloc, we want to hook up our own debug_print() without bothering with the reset of it. Signed-off-by: Rob Clark <robdclark@gmail.com>
/external/libdrm/xf86drm.c
|
b556ea127e004b734b2a7bf8e67cdcf56312171d |
|
17-Aug-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
drm: add interface to get drm devices on the system v3 For mutiple GPU support, the devices on the system should be enumerated to get necessary information about each device, and the drmGetDevices interface is added for this. Currently only PCI devices are supported for the enumeration. Typical usage: int count; drmDevicePtr *foo; count = drmGetDevices(NULL, 0); foo = calloc(count, sizeof(drmDevicePtr)); count = drmGetDevices(foo, count); /* find proper device, open correct device node, etc */ drmFreeDevices(foo, count); free(foo); v2: [Jammy Zhou] - return a list of devices, rather than nodes v3: [Jammy Zhou] - fix the signed extension for PCI device info Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
/external/libdrm/xf86drm.c
|
5c42b5e36a4a02e579ec5dcdc3a95ce58538224c |
|
24-Aug-2015 |
Mathias Tillman <master.homer@gmail.com> |
drm: fix the usage after free For readdir_r(), the next directory entry is returned in caller-allocted buffer (pointered by pent here). https://bugs.freedesktop.org/show_bug.cgi?id=91704 Signed-off-by: Mathias Tillman <master.homer@gmail.com> Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
/external/libdrm/xf86drm.c
|
fc083322b0c8a58b51976adf23a582bce8bb75f1 |
|
20-Jul-2015 |
Jonathan Gray <jsg@jsg.id.au> |
xf86drm: use the correct device minor names on OpenBSD Add defines for the device minor names and make use of them in drmGetMinorName() so the correct paths will be used on OpenBSD. v2: don't add new defines to xf86drm.h to keep them out of the API as requested by Emil. Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
66c3afb75fa993f2f8b00c2dd9c2ec37a3a9dfb6 |
|
20-Jul-2015 |
Jonathan Gray <jsg@jsg.id.au> |
xf86drm: correct the OpenBSD DRM_MAJOR define As far as I can tell no OpenBSD platform ever used 81 for a drm major. While the value was added to libdrm in 2003 or earlier drm didn't appear in OpenBSD till 2007. Of the OpenBSD platforms that support drm amd64/macppc/sparc64 use a major of 87, i386 uses 88. v2: rearrange ifdefs as suggested by Emil. Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
c1cd3d93881a9b4a27f7190393ccc7a0236d28a4 |
|
14-Jul-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: fix incorrect fd comparison in drmOpenOnce{,WithType} Spotted by looking for similar "let's assume fd == 0 is invalid" bugs. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/xf86drm.c
|
5b0e76f143887c4ec7db45c54a7ba27a58f59227 |
|
30-May-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
Revert "Add device enumeration interface (v4)" This reverts commit fde4969176822fe54197b6baa78f8b0ef900baba. The commit adds an API that does not seem flexible enough to be used in current open-source projects. Additionally it adds a hidden dependency of libudev, which when used in mesa caused grief when combined with Steam('s runtime). Let's revert this for now and add a tweaked API later on that can be used in mesa/xserver. Cc: Frank Min <frank.min@amd.com> Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Jammy Zhou <Jammy.Zhou@amd.com>
/external/libdrm/xf86drm.c
|
4bca42fc504a2051964030daaa49b5ac49bb64d3 |
|
29-Apr-2015 |
Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> |
drmPrime*: initialize output args to 0 Fix Valgrind errors because those memory was uninitialized. https://bugs.freedesktop.org/show_bug.cgi?id=90194 Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> v2: Explicitly zero the whole struct using memclear. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
454b14949452c4e44990a8f455bcc307306181bc |
|
27-Apr-2015 |
Jammy Zhou <Jammy.Zhou@amd.com> |
Fix one warning (v2) xf86drm.c:356:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] group = (serv_group >= 0) ? serv_group : DRM_DEV_GID; ^ v2: do 'int' cast to fix the warning Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
d0e592d4e9b59d9cc185f1d63b3c1dd818e95098 |
|
28-Apr-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
xf86drm: simplify drmMalloc/drmFree Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/xf86drm.c
|
fde4969176822fe54197b6baa78f8b0ef900baba |
|
19-May-2015 |
frank <frank.min@amd.com> |
Add device enumeration interface (v4) Add an interface for enumerating PCI devices on a system. v3: switch to udev/sysfs for the enumeration v4: fix warnings Signed-off-by: Frank Min <frank.min@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
/external/libdrm/xf86drm.c
|
42465feb9759ef5a6d79d7e628510cd0a081f913 |
|
05-Apr-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
drm: rename libdrm{,_macros}.h Provide a more meaningful name, considering what it does. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
1490055bc05fa941b59d10e89ef3fccd673af477 |
|
24-Mar-2015 |
Connor Behan <connor.behan@gmail.com> |
xf86drm: Fix ioctl struct clearing in drmAgpEnable This one is a bit harder to notice. Signed-off-by: Connor Behan <connor.behan@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
cfbe9c9807888d24a56d9b1df28db7da669dee85 |
|
18-Mar-2015 |
Jan Vesely <jan.vesely@rutgers.edu> |
Remove drmSetDebugMsgFunction and related infrastructure Not used anywhere Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
6fc0e4ba1ea153ff949cba0002fc5ed544de0de0 |
|
27-Feb-2015 |
Jan Vesely <jan.vesely@rutgers.edu> |
Fix unused function warnings v2: Remove the handler function instead of commenting out split debugmsg function removal to a separate patch Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
0706c14e7cc5f1d996bb1c3c526f877c4f8fc215 |
|
27-Feb-2015 |
Jan Vesely <jan.vesely@rutgers.edu> |
Fix unused, and unused-but-set variables warnings Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <eil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
0e1135de5cbb783846a4f7e9ef8a5f953f7c77ae |
|
07-Mar-2015 |
Alan Coopersmith <alan.coopersmith@oracle.com> |
On Solaris, #include <sys/mkdev.h> in xf86drm.c Needed on Solaris for the definitions of major() & minor() used in drmGetNodeTypeFromFd() and makedev() used in drmOpenMinor() Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
0ca03a4087a550646de7f26b6b53a932e8546474 |
|
07-Mar-2015 |
Emil Velikov <emil.l.velikov@gmail.com> |
drm: add drmGet(Primary|Render)DeviceNameFromFd functions Currently most places assume reliable primary(master) <> render node mapping. Although this may work in some cases, it is not correct. Add a couple of helpers that hide the details and provide the name of the master or render device name, given an fd. The latter may belong to either the master, control or render node device. v2: - Rename Device and Primary to Master (aka the /dev/dri/cardX device). - Check for the file via readdir_r() rather than stat(). - Wrap the check into a single function. - Return NULL for non-linux platforms. v3: - Don't segfault if name is NULL. - Update function names, as suggested by Frank Binns. v4: - Update commit message to reflect the function name changes. Cc: Frank Binns <frank.binns@imgtec.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com>
/external/libdrm/xf86drm.c
|
1f73578df32f895a678a41758f6c563f49484347 |
|
13-Feb-2015 |
Frank Binns <frank.binns@imgtec.com> |
Add new drmGetNodeTypeFromFd function Add a helper function that returns the type of device node from an fd. Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/xf86drm.c
|
dbc8b11db6f3fcbe2a76487bb0b1930908226a17 |
|
02-Feb-2015 |
Jammy Zhou <Jammy.Zhou@amd.com> |
Add new drmOpenOnceWithType function (v2) v2: call drmOpenOnceWithType in drmOpenOnce, and drop unused param for drmOpenOnceWithType Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
/external/libdrm/xf86drm.c
|
f1adc4b375a16b07f560b86a34e617984049c422 |
|
10-Feb-2015 |
Jammy Zhou <Jammy.Zhou@amd.com> |
Add new drmOpenWithType function (v4) v2: Add drmGetMinorBase, and call drmOpenWithType in drmOpen v3: Pass 'type' to drmOpenByBusid and drmOpenDevice in drmOpenByName v4: Renumber node type definitions, and return -1 for unsupported type Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v3) Reviewed-by: Frank Binns <frank.binns@imgtec.com>
/external/libdrm/xf86drm.c
|
95f23cf894757d05a6b6c980062a46968dc069b1 |
|
11-Feb-2015 |
Daniel Vetter <daniel.vetter@ffwll.ch> |
xf86drm: Fix ioctl struct clearing in drmGetVersion Oops, fumbled that one. Reported-by: Jan Vesely <jan.vesely@rutgers.edu> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
/external/libdrm/xf86drm.c
|
fd38794344f7211f45cc213344d0f5b9f9f98dd8 |
|
11-Feb-2015 |
Daniel Vetter <daniel.vetter@ffwll.ch> |
xf86drm: Unconditionally clear ioctl structs We really have to do this to avoid surprises when extending the ABI later on. Especially when growing the structures. A bit overkill to update all the old legacy ioctl wrappers, but can't hurt really either. 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/xf86drm.c
|
80834b377e1b25c2d56c59a1984451b29eae6501 |
|
11-Feb-2015 |
Daniel Vetter <daniel.vetter@ffwll.ch> |
drm: use drmIoctl everywhere Well just core drm. All the other callers in there that still use direct calls to ioctl have some custom retry logic already, so should be good already. All the other offenders (tests, freedreno/kgsl, ...) don't really matter (e.g. kgsl is the blob library and so not a drm thing) or are again special exceptions with their own retry loops. 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/xf86drm.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/xf86drm.c
|
0c5aaeef51233aec89ee1f43f03d457f278f8fa0 |
|
14-Jan-2015 |
Frank Binns <frank.binns@imgtec.com> |
Add new drmOpenRender function Add a new function, drmOpenRender, that can be used to open render nodes. This can be used in the same way that drmOpenControl is used to open control nodes. Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
/external/libdrm/xf86drm.c
|
ad8bbfd3c74466f088be8088d2d0524bed392b71 |
|
14-Jan-2015 |
Frank Binns <frank.binns@imgtec.com> |
Rename DRM_NODE_RENDER to DRM_NODE_PRIMARY Now that there are render nodes it doesn't seem appropriate for the type of the card nodes to be DRM_NODE_RENDER. For this reason, rename this type to DRM_NODE_PRIMARY as this name better represents the purpose of these nodes. Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
/external/libdrm/xf86drm.c
|
faf51d5694e3f0ec12c7fa1fd2f87fc96a300fe3 |
|
07-Sep-2014 |
Emil Velikov <emil.l.velikov@gmail.com> |
drm: use drm_mmap/drm_munmap wrappers Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
/external/libdrm/xf86drm.c
|
305478ce02ebd908a75c9830ecea15f6e2469b42 |
|
16-Apr-2014 |
Daniel Kurtz <djkurtz@chromium.org> |
drmOpenByName: remove redundant drmAvailable check drmOpenByName() is a static function that is only called by drmOpen(). drmOpen() already checks drmAvailable(), so the check in drmOpenByName() is redundant. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/xf86drm.c
|
303ff26311dc5efdf28676be34d86f501699acf3 |
|
08-Apr-2014 |
Thierry Reding <treding@nvidia.com> |
libdrm: Remove extraneous parameter The debug message's format string doesn't contain any conversion specifiers, therefore making the fd argument unused. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/xf86drm.c
|
44b08c0ddf7ced99a5914421f18b269a1dcaafae |
|
22-Jan-2014 |
Thierry Reding <treding@nvidia.com> |
Mark functions printf-like where possible These functions all take a format string and either a list of variable arguments or a va_list. Use the new DRM_PRINTFLIKE macro to tell the compiler about it so that the arguments can be checked against the format string. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Thierry Reding <treding@nvidia.com>
/external/libdrm/xf86drm.c
|
ddbbdb13d80ea7f60e6f71356a444995b905366b |
|
03-Sep-2013 |
Damien Lespiau <damien.lespiau@intel.com> |
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>
/external/libdrm/xf86drm.c
|
1eb2860b4bd0306dddc5b2f2dc7403aa65c5e476 |
|
28-Mar-2013 |
Daniel Kurtz <djkurtz@chromium.org> |
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>
/external/libdrm/xf86drm.c
|
cc0a14575d9fd0aafe73cb4aa445eaf024436114 |
|
14-Jul-2012 |
Dave Airlie <airlied@gmail.com> |
libdrm: add prime fd->handle and handle->fd interfaces These are just basic ioctl wrappers around the prime ioctls, along with the capability reporting. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/libdrm/xf86drm.c
|
961bf9b5c2866ccb4fedf2b45b29fb688519d0db |
|
01-Nov-2011 |
Jeremy Huddleston <jeremyhu@apple.com> |
Fix compilation with -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
/external/libdrm/xf86drm.c
|
3b04c73650b5e9bbcb602fdb8cea0b16ad82d0c0 |
|
04-Mar-2011 |
Dave Airlie <airlied@redhat.com> |
libdrm: oops fix get cap return value.
/external/libdrm/xf86drm.c
|
5c6c6913d1260024e5d156db7973c9e46fe1ff03 |
|
21-Feb-2011 |
Ben Skeggs <bskeggs@redhat.com> |
Implement drmGetCap() to query device/driver capabilities Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
/external/libdrm/xf86drm.c
|
39e5e982242cd2b611a9dfc1e9b63f857d52da61 |
|
07-Dec-2010 |
Dave Airlie <airlied@redhat.com> |
drm: don't do the create the node ourselves if we have udev. this can remove nodes it shouldn't, let udev run the show. this is needed for reliably GPU switch. Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/libdrm/xf86drm.c
|
0a1ff35c70730160973715b82112cd97c62ac13e |
|
28-Oct-2010 |
Adam Jackson <ajax@redhat.com> |
s/drmStrdup/strdup/ _DRM_MALLOC hasn't been a relevant concern since we split libdrm out from xserver. Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/libdrm/xf86drm.c
|
b04515c5d6c95f573457a94267b855cceb639105 |
|
06-Aug-2010 |
Benjamin Herrenschmidt <benh@kernel.crashing.org> |
libdrm: Fix PCI domain domain support This works in conjunction with newer kernels. If we succeed in requesting interface 1.4, the we know the kernel provides proper domain numbers. If not, ignore the domain number as it's bogus (except on Alpha). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/libdrm/xf86drm.c
|
fbc8b2d95f5da096ee771a3e2ef6f89306679e89 |
|
09-Dec-2009 |
Kristian Høgsberg <krh@bitplanet.net> |
Be less chatty in drmSetMaster/drmDropMaster
/external/libdrm/xf86drm.c
|
6f66de982ad6ee6967ec61a7399e600bdd9e5887 |
|
25-Nov-2009 |
Robert Noland <rnoland@2hip.net> |
Correctly set DRM_MAX_MINOR for all platforms. DRM_MAJOR is platform specific, but not used outside of xf86drm.c that I can find.
/external/libdrm/xf86drm.c
|
22d46669043d38fcd16efca773f5ed5693c0fb58 |
|
24-Nov-2009 |
Kristian Høgsberg <krh@bitplanet.net> |
Add drmGetDeviceNameFromFd function Determines the /dev filename of the drm fd argument.
/external/libdrm/xf86drm.c
|
4f57abfe66091281c9f59c14e6ea27b524b55d5b |
|
17-Nov-2009 |
Kristian Høgsberg <krh@bitplanet.net> |
Move libdrm/ up one level
/external/libdrm/xf86drm.c
|