[PATCH] drm/dp: Allow signals to interrupt drm_aux-dev reads/writes

Daniel Vetter daniel at ffwll.ch
Thu Apr 28 09:48:38 UTC 2016


On Thu, Apr 28, 2016 at 11:49:12AM +0300, Jani Nikula wrote:
> On Wed, 27 Apr 2016, ville.syrjala at linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> >
> > Let's be nice and interrupt the dpcd aux-dev reads/writes when there's
> > a signal pending. Much nicer if the user can hit ^C instead of having to
> > sit around waiting for the read/write to finish.
> >
> > time dd if=/dev/drm_dp_aux0 bs=$((1024*1024))
> > ^C
> >
> > before:
> >  real	0m34.681s
> >  user	0m0.003s
> >  sys	0m6.880s
> >
> > after:
> >  real	0m0.222s
> >  user	0m0.006s
> >  sys	0m0.057s
> >
> > Cc: Rafael Antognolli <rafael.antognolli at intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Reviewed-by: Jani Nikula <jani.nikula at intel.com>

Applied to drm-misc, thanks.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list