Skip to content

vga-switcheroo: initial dynamic mux switch support

Daniel Dadap dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vga-switcheroo: add new "immediate" switch event typedrivers/gpu/vga/vga_switcheroo.c+58 -280 replies
2/6vga-switcheroo: Add a way to test for the active clientdrivers/gpu/vga/vga_switcheroo.c include/linux/vga_switcheroo.h+39 -10 replies
3/6vga-switcheroo: notify clients of pending/completed switch eventsdrivers/gpu/vga/vga_switcheroo.c include/linux/vga_switcheroo.h+46 -10 replies
4/6i915: implement vga-switcheroo reprobe() callbackdrivers/gpu/drm/i915/i915_switcheroo.c+26 -10 replies
5/6i915: fail atomic commit when muxed awaydrivers/gpu/drm/i915/display/intel_display.c+7 -00 replies
6/6i915: bail out of eDP link training while mux-switched awaydrivers/gpu/drm/i915/display/intel_dp_link_training.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 6 lines
2.18.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx