]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/dp: Allow signals to interrupt drm_aux-dev reads/writes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Sep 2016 12:51:09 +0000 (15:51 +0300)
committerKamal Mostafa <kamal@canonical.com>
Thu, 15 Sep 2016 14:38:57 +0000 (07:38 -0700)
commit1d63b5391bc87e4c823531761e758838c463add5
tree2f02331560b2e9497ede5821b67899bce6757d59
parent1355bbac010b618d1d02fb1dd48e4e8691a33472
drm/dp: Allow signals to interrupt drm_aux-dev reads/writes

BugLink: http://bugs.launchpad.net/bugs/1619756
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
(cherry picked from commit 36230cb5668c2633bee4ec87b58983eac3a5cb4c)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/gpu/drm/drm_dp_aux_dev.c