[PATCH 0/6] vga-switcheroo: initial dynamic mux switch support

Daniel Dadap ddadap at nvidia.com
Mon Jul 27 20:51:06 UTC 2020


Changes to allow vga-switcheroo to switch the mux while modesetting
clients remain active. There is existing support for switching the
mux without checking can_switch; however, this support also does not
reprobe after the mux switch is complete. This patch series adds a new
type of switch event which switches immediately while still calling
client driver callbacks, and updates the i915 DRM-KMS driver to reprobe
eDP outputs after switching the mux to an i915-driven GPU, and to avoid
using eDP links (which i915 always assumes to be connected) while the
mux is switched away.

Daniel Dadap (6):
  vga-switcheroo: add new "immediate" switch event type
  vga-switcheroo: Add a way to test for the active client
  vga-switcheroo: notify clients of pending/completed switch events
  i915: implement vga-switcheroo reprobe() callback
  i915: fail atomic commit when muxed away
  i915: bail out of eDP link training while mux-switched away

 drivers/gpu/drm/i915/display/intel_display.c  |   7 +
 .../drm/i915/display/intel_dp_link_training.c |   9 ++
 drivers/gpu/drm/i915/i915_switcheroo.c        |  27 +++-
 drivers/gpu/vga/vga_switcheroo.c              | 153 ++++++++++++++----
 include/linux/vga_switcheroo.h                |  20 +++
 5 files changed, 185 insertions(+), 31 deletions(-)

-- 
2.18.4



More information about the dri-devel mailing list