Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-07-24 Thread Daniel Dadap
Sorry for letting this stagnate. I have some patches ready for discussion which I'll send shortly, but wanted to follow up on some of the previous conversation: On 4/28/20 5:14 AM, Daniel Vetter wrote: On Wed, Apr 22, 2020 at 05:04:54PM -0500, Daniel Dadap wrote: On 4/3/20 2:59 PM, Daniel

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-28 Thread Daniel Vetter
On Wed, Apr 22, 2020 at 05:04:54PM -0500, Daniel Dadap wrote: > On 4/3/20 2:59 PM, Daniel Vetter wrote: > > On Fri, Apr 3, 2020 at 8:06 PM Daniel Dadap wrote: > > > > > > On 4/3/20 2:16 AM, Daniel Vetter wrote: > > > > On Fri, Apr 3, 2020 at 8:54 AM Daniel Dadap wrote: > > > > > On 4/2/20 6:39

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-23 Thread Daniel Dadap
On 4/3/20 2:59 PM, Daniel Vetter wrote: On Fri, Apr 3, 2020 at 8:06 PM Daniel Dadap wrote: On 4/3/20 2:16 AM, Daniel Vetter wrote: On Fri, Apr 3, 2020 at 8:54 AM Daniel Dadap wrote: On 4/2/20 6:39 AM, Lukas Wunner wrote: On Fri, Mar 27, 2020 at 04:25:19PM -0500, Daniel Dadap wrote: A

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-04 Thread Daniel Dadap
On 4/3/20 2:16 AM, Daniel Vetter wrote: On Fri, Apr 3, 2020 at 8:54 AM Daniel Dadap wrote: On 4/2/20 6:39 AM, Lukas Wunner wrote: On Fri, Mar 27, 2020 at 04:25:19PM -0500, Daniel Dadap wrote: A number of hybrid GPU notebook computer designs with dual (integrated plus discrete) GPUs are

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-03 Thread Daniel Vetter
On Fri, Apr 3, 2020 at 8:06 PM Daniel Dadap wrote: > > > On 4/3/20 2:16 AM, Daniel Vetter wrote: > > On Fri, Apr 3, 2020 at 8:54 AM Daniel Dadap wrote: > >> > >> On 4/2/20 6:39 AM, Lukas Wunner wrote: > >> > >> > >> On Fri, Mar 27, 2020 at 04:25:19PM -0500, Daniel Dadap wrote: > A number of

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-03 Thread Daniel Vetter
On Fri, Apr 3, 2020 at 8:54 AM Daniel Dadap wrote: > > > On 4/2/20 6:39 AM, Lukas Wunner wrote: > > External email: Use caution opening links or attachments > > > > > > On Fri, Mar 27, 2020 at 04:25:19PM -0500, Daniel Dadap wrote: > >> A number of hybrid GPU notebook computer designs with dual

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-03 Thread Daniel Dadap
On 4/2/20 1:25 PM, Lukas Wunner wrote: On Thu, Apr 02, 2020 at 12:56:04PM -0500, Daniel Dadap wrote: I'll check one of the eDP-based systems I've been experimenting on to see if setting the VGA_SWITCHER_NEEDS_EDP_CONFIG capability in the handler is sufficient to make i915 avoid poking the AUX

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-03 Thread Daniel Dadap
On 4/2/20 6:39 AM, Lukas Wunner wrote: External email: Use caution opening links or attachments On Fri, Mar 27, 2020 at 04:25:19PM -0500, Daniel Dadap wrote: A number of hybrid GPU notebook computer designs with dual (integrated plus discrete) GPUs are equipped with multiplexers (muxes)

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Lukas Wunner
On Thu, Apr 02, 2020 at 12:56:04PM -0500, Daniel Dadap wrote: > I'll check one of the eDP-based systems I've been experimenting on to see if > setting the VGA_SWITCHER_NEEDS_EDP_CONFIG capability in the handler is > sufficient to make i915 avoid poking the AUX channel when it's mux-switched >

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Daniel Vetter
On Thu, Apr 2, 2020 at 4:31 PM Lukas Wunner wrote: > > On Thu, Apr 02, 2020 at 03:13:26PM +0200, Daniel Vetter wrote: > > On Thu, Apr 2, 2020 at 2:58 PM Pekka Paalanen wrote: > > > On Thu, 2 Apr 2020 13:39:25 +0200 Lukas Wunner wrote: > > > > Note that vga_switcheroo is currently controlled via

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Lukas Wunner
On Thu, Apr 02, 2020 at 03:13:26PM +0200, Daniel Vetter wrote: > On Thu, Apr 2, 2020 at 2:58 PM Pekka Paalanen wrote: > > On Thu, 2 Apr 2020 13:39:25 +0200 Lukas Wunner wrote: > > > Note that vga_switcheroo is currently controlled via debugfs. > > > That is a historic artefact. The kernel has

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Daniel Vetter
On Thu, Apr 2, 2020 at 2:58 PM Pekka Paalanen wrote: > > On Thu, 2 Apr 2020 13:39:25 +0200 > Lukas Wunner wrote: > > > Note that vga_switcheroo is currently controlled via debugfs. > > That is a historic artefact. The kernel has since gained a > > mux subsystem in drivers/mux/ which could be

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Pekka Paalanen
On Thu, 2 Apr 2020 13:39:25 +0200 Lukas Wunner wrote: > Note that vga_switcheroo is currently controlled via debugfs. > That is a historic artefact. The kernel has since gained a > mux subsystem in drivers/mux/ which could be used to represent > the display mux in a standardized way in regular

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Daniel Stone
Hi Daniel (another one!), On Thu, 2 Apr 2020 at 08:18, Daniel Dadap wrote: > > I primarily asked about vgaswitcheroo since you didn't mention it at all. > > I had actually anticipated that vga-switcheroo would likely be > suggested, and my first draft of my initial message had a lengthy >

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Lukas Wunner
On Thu, Apr 02, 2020 at 01:39:25PM +0200, Lukas Wunner wrote: > First of all, there's DPCD byte 3 bit 6 (NO_AUX_HANDSHAKE_LINK_TRAINING) > which is documented as follows: > > Does not require AUX CH handshake when the link configuration is > already known. [...] The known-good drive

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Lukas Wunner
On Fri, Mar 27, 2020 at 04:25:19PM -0500, Daniel Dadap wrote: > A number of hybrid GPU notebook computer designs with dual (integrated plus > discrete) GPUs are equipped with multiplexers (muxes) that allow display > panels to be driven by either the integrated GPU or the discrete GPU. >

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Daniel Dadap
On 4/1/20 1:46 AM, Daniel Vetter wrote On Wed, Apr 1, 2020 at 3:58 AM Daniel Dadap wrote: On 3/31/20 2:32 AM, Daniel Vetter wrote: Since I see no mention of this anywhere in your mail ... have you tried looking at drivers/gpu/vga/vga_switcheroo.c? This also supports switching of just

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-02 Thread Daniel Dadap
On 4/1/20 3:14 AM, Pekka Paalanen wrote: On Tue, 31 Mar 2020 20:59:39 -0500 Daniel Dadap wrote: On 3/30/20 10:11 AM, Jani Nikula wrote: On Fri, 27 Mar 2020, Daniel Dadap wrote: A number of hybrid GPU notebook computer designs with dual (integrated plus discrete) GPUs are equipped with

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-01 Thread Jani Nikula
On Tue, 31 Mar 2020, Daniel Dadap wrote: > On 3/30/20 10:11 AM, Jani Nikula wrote: >> On Fri, 27 Mar 2020, Daniel Dadap wrote: >>> A number of hybrid GPU notebook computer designs with dual (integrated >>> plus discrete) GPUs are equipped with multiplexers (muxes) that allow >>> display panels

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-01 Thread Pekka Paalanen
On Tue, 31 Mar 2020 20:59:39 -0500 Daniel Dadap wrote: > On 3/30/20 10:11 AM, Jani Nikula wrote: > > On Fri, 27 Mar 2020, Daniel Dadap wrote: > >> A number of hybrid GPU notebook computer designs with dual (integrated > >> plus discrete) GPUs are equipped with multiplexers (muxes) that allow

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-01 Thread Daniel Dadap
On 3/31/20 2:32 AM, Daniel Vetter wrote: Since I see no mention of this anywhere in your mail ... have you tried looking at drivers/gpu/vga/vga_switcheroo.c? This also supports switching of just outputs, not just the old optimus way of switching out the entire gpu and having to disable the

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-01 Thread Daniel Dadap
On 3/30/20 10:11 AM, Jani Nikula wrote: On Fri, 27 Mar 2020, Daniel Dadap wrote: A number of hybrid GPU notebook computer designs with dual (integrated plus discrete) GPUs are equipped with multiplexers (muxes) that allow display panels to be driven by either the integrated GPU or the

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-04-01 Thread Daniel Vetter
On Wed, Apr 1, 2020 at 3:58 AM Daniel Dadap wrote: > On 3/31/20 2:32 AM, Daniel Vetter wrote: > > Since I see no mention of this anywhere in your mail ... have you > > tried looking at drivers/gpu/vga/vga_switcheroo.c? This also supports > > switching of just outputs, not just the old optimus way

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-03-31 Thread Daniel Vetter
Since I see no mention of this anywhere in your mail ... have you tried looking at drivers/gpu/vga/vga_switcheroo.c? This also supports switching of just outputs, not just the old optimus way of switching out the entire gpu and having to disable the other one. There's some rough corners (like the

Re: How to handle disconnection of eDP panels due to dynamic display mux switches

2020-03-30 Thread Jani Nikula
On Fri, 27 Mar 2020, Daniel Dadap wrote: > A number of hybrid GPU notebook computer designs with dual (integrated > plus discrete) GPUs are equipped with multiplexers (muxes) that allow > display panels to be driven by either the integrated GPU or the discrete > GPU. Typically, this is a

How to handle disconnection of eDP panels due to dynamic display mux switches

2020-03-30 Thread Daniel Dadap
A number of hybrid GPU notebook computer designs with dual (integrated plus discrete) GPUs are equipped with multiplexers (muxes) that allow display panels to be driven by either the integrated GPU or the discrete GPU. Typically, this is a selection that can be made at boot time as a menu