File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -204,18 +204,20 @@ bool intel_hdcp2_capable(struct intel_connector *connector)
204
204
struct intel_digital_port * dig_port = intel_attached_dig_port (connector );
205
205
struct drm_i915_private * dev_priv = to_i915 (connector -> base .dev );
206
206
struct intel_hdcp * hdcp = & connector -> hdcp ;
207
- struct intel_gt * gt = dev_priv -> media_gt ;
208
- struct intel_gsc_uc * gsc = & gt -> uc .gsc ;
209
207
bool capable = false;
210
208
211
209
/* I915 support for HDCP2.2 */
212
210
if (!hdcp -> hdcp2_supported )
213
211
return false;
214
212
215
213
/* If MTL+ make sure gsc is loaded and proxy is setup */
216
- if (intel_hdcp_gsc_cs_required (dev_priv ))
217
- if (!intel_uc_fw_is_running (& gsc -> fw ))
214
+ if (intel_hdcp_gsc_cs_required (dev_priv )) {
215
+ struct intel_gt * gt = dev_priv -> media_gt ;
216
+ struct intel_gsc_uc * gsc = gt ? & gt -> uc .gsc : NULL ;
217
+
218
+ if (!gsc || !intel_uc_fw_is_running (& gsc -> fw ))
218
219
return false;
220
+ }
219
221
220
222
/* MEI/GSC interface is solid depending on which is used */
221
223
mutex_lock (& dev_priv -> display .hdcp .comp_mutex );
You can’t perform that action at this time.
0 commit comments