Skip to contentSkip to conversation

i915 MST HDCP code looks broken

Intel-gfx Ville Syrjälä 2 participants 3 messages Oct 4, 2021

lore
Share & tools
lore
#0 lore raw

Hi,

I took a quick peek at intel_dp_add_mst_connector() the other day and noticed that it calls intel_dp_hdcp_init() and passes in the SST dig_port. And digging in a bit further that seems to clobber all kinds of things in dig_port->hdcp_port_data. This looks rather broken to me.

So has anyone actually thought what happens if you first use MST on the port, and then later switch to SST on the same port?

Signature · 2 lines
Ville Syrjälä
Intel
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: Monday, October 4, 2021 4:22 PM
To: [email protected]
Cc: Sean Paul <[email protected]>; Gupta, Anshuman <[email protected]>; C, Ramalingam <[email protected]>; B S, Karthik <[email protected]>
Subject: i915 MST HDCP code looks broken

Hi,

Quoted 7 lines

I took a quick peek at intel_dp_add_mst_connector() the other day and noticed that it calls intel_dp_hdcp_init() and passes in the SST dig_port. And digging in a bit further that seems to clobber all kinds of things in dig_port->hdcp_port_data. This looks rather broken to me.

So has anyone actually thought what happens if you first use MST on the port, and then later switch to SST on the same port?

AFAIU there shouldn't be , when the last connector of MST topology get destroyed and it switches to SST mode on same port. The base static connector of same dig_port should get connected and will call intel_dp_init_connector()->intel_dp_hdcp_init(). What is the specific sequence is broken here , is it the connector destroy path ?

Quoted 3 lines

--
Ville Syrjälä
Intel

#2 lore raw
Quoted 18 lines · Anshuman
Quoted 18 lines

-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: Monday, October 4, 2021 4:22 PM
To: [email protected]
Cc: Sean Paul <[email protected]>; Gupta, Anshuman <[email protected]>; C, Ramalingam <[email protected]>; B S, Karthik <[email protected]>
Subject: i915 MST HDCP code looks broken

Hi,

I took a quick peek at intel_dp_add_mst_connector() the other day and noticed that it calls intel_dp_hdcp_init() and passes in the SST dig_port. And digging in a bit further that seems to clobber all kinds of things in dig_port->hdcp_port_data. This looks rather broken to me.

Quoted 4 lines
Quoted 2 lines

So has anyone actually thought what happens if you first use MST on the port, and then later switch to SST on the same port?

AFAIU there shouldn't be , when the last connector of MST topology get destroyed and it switches to SST mode on same port. The base static connector of same dig_port should get connected and will call intel_dp_init_connector()->intel_dp_hdcp_init().

SST conectors are static. They are created exactly once when the driver loads.

Signature · 2 lines
Ville Syrjälä
Intel