drm/dp: Allow signals to interrupt drm_aux-dev reads/writes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 Apr 2016 19:43:45 +0000 (22:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Apr 2016 09:48:09 +0000 (11:48 +0200)
commit36230cb5668c2633bee4ec87b58983eac3a5cb4c
tree92235a35a80e5ab82925506b454ca5f6497d03f8
parent676fb3240df3e12d55bbf29bff032bf9494bca28
drm/dp: Allow signals to interrupt drm_aux-dev reads/writes

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@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1461786225-7790-1-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_dp_aux_dev.c