History log of /external/libdrm/freedreno/freedreno_priv.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
84badffe5e1995eae6739267bdc3fd9ef7a55f32 07-Sep-2014 Emil Velikov <emil.l.velikov@gmail.com> freedreno: 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/freedreno/freedreno_priv.h
666788a6062de62aa0b3560760fbb0903167a319 16-Sep-2014 Rob Clark <robclark@freedesktop.org> freedreno: add dmabuf import/export helpers

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
8c2ae1695913990cbe6c6a8aa294f354eba33bd0 25-Aug-2014 Emil Velikov <emil.l.velikov@gmail.com> freedreno: fd_bo_from_handle() remove duplicate declaration

Already declared in our public header freedreno_drmif.h

Cc: Rob Clark <robclark@freedesktop.org>
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
479b6cef702f26d886b3f6ccfd48d5e39a623944 04-Aug-2014 Maarten Lankhorst <maarten.lankhorst@canonical.com> freedreno: Use symbol visibility.

Hiding fd_device_del_locked, and fd_cleanup_bo_cache.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
/external/libdrm/freedreno/freedreno_priv.h
c5de5abbd90333fe1359283fb3a5e457b0f389f3 19-Feb-2014 Rob Clark <robclark@freedesktop.org> freedreno: some msm-ring reset/flush fixes

Need to update timestamp on all ring's associated with a submit (ie.
both the binning pass and main ring). Also, make sure nr_reloc's
in particular gets cleared if the rb is reset.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
8279c8fb498785ea2700c6cc4a3456d7e1134665 12-Jan-2014 Rob Clark <robclark@freedesktop.org> freedreno: add fd_device_new_dup()

There seem to be some cases (I've noticed this switching resolution in
some games, for example) where the fd can get closed() before the device
and all it's bo's are destroyed. Which, if the drm device is opened
again and bo's are allocated with the same handles, results that when
the first pipe_screen/pipe_context is destroyed causes the first dev to
close handles for bo's allocated by the second device.

The easy solution to that is to add a mode where the fd_device creates
it's own private fd (a dup()).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
068ea68b3f7ebd5efcfcc2f6ae417651423c8382 13-Dec-2013 Rob Clark <robclark@freedesktop.org> freedreno: add bo cache

Workloads which create many transient buffers cause significant CPU
overhead in buffer allocation, zeroing, cache maint, and mmap setup.
By caching and re-using existing buffers, the CPU overhead drops
significantly. See:

http://bloggingthemonkey.blogspot.com/2013/09/freedreno-update-moar-fps.html

A simple time based policy is used for purging the cache. Once the
kernel supports it, we could use madvise style API to handle memory
pressure scenarios a bit better.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
126c45828aa3eaf1f404a4fc65a09a93fda76467 29-Aug-2013 Emil Velikov <emil.l.velikov@gmail.com> freedreno: use local drm.h over the system one

Otherwise build will fail, as drm/drm.h is not available.

Cc: Rob Clark <robclark@freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
/external/libdrm/freedreno/freedreno_priv.h
f17d417e28143176cb36b64e1b6a5818897e8154 21-Jul-2013 Rob Clark <robclark@freedesktop.org> freedreno: add support for msm drm

This adds support for the "msm" backend, using the upstream msm drm/kms
driver.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
b2b1885dfcb3a206623e926704057b448d06781d 10-Jul-2013 Rob Clark <robclark@freedesktop.org> freedreno: support either kgsl or msm

Split out common code and backend. Current backend is for 'kgsl'
android driver, but a new backend will provide support for the
upstream msm drm/kms driver.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
0b89e2730c41466e8d9c04c469679ba23d052ec9 15-May-2013 Rob Clark <robclark@freedesktop.org> freedreno: add handle and name tracking

Due to the evil userspace buffer tracking we have to do, and hacks for
creating GEM buffer from fbdev/scanout, "evil-twin" fd_bo objects are
problematic. So introduce hashtable tracking of bo's and dev's, to
avoid getting duplicate fd_bo ptrs for the same underlying gem object,
in particular when importing via flink name.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
b3a3a77823ada2eb37233678b5a49efaec9b75cb 25-Apr-2013 Rob Clark <robclark@freedesktop.org> freedreno: add synchronization between mesa and ddx

Super-cheezy way to synchronization between mesa and ddx.. the
SET_ACTIVE ioctl gives us a way to stash a 32b # w/ a GEM bo, and
GET_BUFINFO gives us a way to retrieve it. We use this to stash
the timestamp of the last ISSUEIBCMDS on the buffer.

To avoid an obscene amount of syscalls, we:
1) Only set the timestamp for buffers w/ an flink name, ie.
only buffers shared across processes. This is enough to
catch the DRI2 buffers.
2) Only set the timestamp for buffers submitted to the 3d ring
and only check the timestamps on buffers submitted to the
2d ring. This should be enough to handle synchronizing of
presentation blit. We could do synchronization in the other
direction too, but that would be problematic if we are using
the 3d ring from DDX, since client side wouldn't know this.

The waiting on timestamp happens before flush, and setting of
timestamp happens after flush. It is transparent to the user
of libdrm_freedreno as all the tracking of buffers happens via
_emit_reloc()..

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h
41fc2cc8a98a8d02ea7d3635d3103f7dd371de10 08-Oct-2012 Rob Clark <robclark@freedesktop.org> freedreno: add freedreno DRM

The libdrm_freedreno helper layer for use by xf86-video-freedreno,
fdre (freedreno r/e library and tests for driving gpu), and eventual
gallium driver for the Adreno GPU. This uses the msm gpu driver
from QCOM's android kernel tree.

Note that current msm kernel driver is a bit strange. It provides a
DRM interface for GEM, which is basically sufficient to have DRI2
working. But it does not provide KMS. And interface to 2d and 3d
cores is via different other devices (/dev/kgsl-*). This is not
quite how I'd write a DRM driver, but at this stage it is useful for
xf86-video-freedreno and fdre (and eventual gallium driver) to be
able to work on existing kernel driver from QCOM, to allow to
capture cmdstream dumps from the binary blob drivers without having
to reboot. So libdrm_freedreno attempts to hide most of the crazy.
The intention is that when there is a proper kernel driver, it will
be mostly just changes in libdrm_freedreno to adapt the gallium
driver and xf86-video-freedreno (ignoring the fbdev->KMS changes).

So don't look at freedreno as an example of how to write a libdrm
module or a DRM driver.. it is just an attempt to paper over a non-
standard kernel driver architecture.

v1: original
v2: hold ref's to pending bo's (because qcom's kernel driver doesn't),
various bug fixes, add ringbuffer markers so we can emit IB's to
portion of ringbuffer (so that gallium driver can use a single
ringbuffer for both tile cmds and draw cmds.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
/external/libdrm/freedreno/freedreno_priv.h