[Intel-gfx] [PATCH 02/21] drm: Add functions to setup/tear down drm_events.
Alex Deucher
alexdeucher at gmail.com
Fri Jan 8 13:10:06 PST 2016
On Fri, Jan 8, 2016 at 3:36 PM, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> An attempt at not spreading out the file_priv->event_space stuff out
> quite so far and wide. And I think fixes something in ipp_get_event()
> that is broken (or if they are doing something more weird/subtle, then
> breaks it in a fun way).
>
> Based upon a patch from Rob Clark, rebased and polished.
>
> Cc: Rob Clark <robdclark at gmail.com>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
> ---
> drivers/gpu/drm/drm_atomic.c | 44 ++++++++---------------------
> drivers/gpu/drm/drm_crtc.c | 36 +++++++-----------------
> drivers/gpu/drm/drm_fops.c | 67 ++++++++++++++++++++++++++++++++++++++++++++
> include/drm/drmP.h | 7 ++++-
> 4 files changed, 94 insertions(+), 60 deletions(-)
>
<snip>
> +
> +/**
> + * drm_event_reserve_init - init a DRM event and reserve space for it
> + * @dev: DRM device
> + * @file_priv: DRM file private data
> + * @p: tracking structure for the pending event
> + * @e: actual event data to deliver to userspace
> + *
> + * This function prepares the passed in even for eventual deliver. If the event
Typo even -> event, deliver -> delivery
Alex
More information about the Intel-gfx
mailing list