From: bugzilla-daemon@freedesktop.org Subject: [Bug 108014] AMD WX4150 - Hotplugging on an MST hub doesn't work Date: Wed, 10 Oct 2018 14:45:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1677274367==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id B83726E1CD for ; Wed, 10 Oct 2018 14:45:06 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1677274367== Content-Type: multipart/alternative; boundary="15391827061.a2A26e5.2892" Content-Transfer-Encoding: 7bit --15391827061.a2A26e5.2892 Date: Wed, 10 Oct 2018 14:45:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108014 --- Comment #9 from Harry Wentland --- > All of that being said, that means this is a lot more severe then I thoug= ht! > :), phew. Do you mean less severe? >=20 > ---- > Now onto the actual patch that you sent: what exactly is this supposed to= be > doing? Are we dereferencing an mstb's port too early somewhere in the DRM > MST core? Imagine this daisy-chain configuration: GPU > MST display 1 > MST display 2 When unplugging MST display 2 we fail to deallocate the payload allocation = for the link between the two MST displays. It looks like the MST connector dest= roy code tries to do so but fails to do so because it can no longer get a validate_port_ref for the 2nd MST display's port. Jerry's done a ton of debugging here and give more info. My thoughts are th= at it seems like Dave designed the drm_dp_mst_* code to deal with it quite well but it got broken at some point, maybe with the introduction of the validated_port_ref, or something else. But even then, all the new changes a= re good. I've been trying to think how this could be solved but haven't found a solution I'm happy with yet. --=20 You are receiving this mail because: You are the assignee for the bug.= --15391827061.a2A26e5.2892 Date: Wed, 10 Oct 2018 14:45:06 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 9 on bug 10801= 4 from Harry Wentland
> All of that being said, that means =
this is a lot more severe then I thought!
> :), phew.

Do you mean less severe?

>=20
> ----
> Now onto the actual patch that you sent: what exactly is this supposed=
 to be
> doing? Are we dereferencing an mstb's port too early somewhere in the =
DRM
> MST core?

Imagine this daisy-chain configuration:

GPU > MST display 1 > MST display 2

When unplugging MST display 2 we fail to deallocate the payload allocation =
for
the link between the two MST displays. It looks like the MST connector dest=
roy
code tries to do so but fails to do so because it can no longer get a
validate_port_ref for the 2nd MST display's port.

Jerry's done a ton of debugging here and give more info. My thoughts are th=
at
it seems like Dave designed the drm_dp_mst_* code to deal with it quite well
but it got broken at some point, maybe with the introduction of the
validated_port_ref, or something else. But even then, all the new changes a=
re
good. I've been trying to think how this could be solved but haven't found a
solution I'm happy with yet.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15391827061.a2A26e5.2892-- --===============1677274367== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1677274367==--