Skip to content

Commit b3ca8a0

Browse files
committed
Merge tag 'drm-intel-fixes-2023-11-23' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
drm/i915 fixes for v6.7-rc3: - Fix race between DP MST connectore registration and setup - Fix GT memory leak on probe error path Signed-off-by: Dave Airlie <[email protected]> From: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 8692160 + 0561794 commit b3ca8a0

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

drivers/gpu/drm/i915/display/intel_dp_mst.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,14 @@ static struct drm_connector *intel_dp_add_mst_connector(struct drm_dp_mst_topolo
11611161
intel_connector->port = port;
11621162
drm_dp_mst_get_port_malloc(port);
11631163

1164+
/*
1165+
* TODO: set the AUX for the actual MST port decompressing the stream.
1166+
* At the moment the driver only supports enabling this globally in the
1167+
* first downstream MST branch, via intel_dp's (root port) AUX.
1168+
*/
1169+
intel_connector->dp.dsc_decompression_aux = &intel_dp->aux;
1170+
intel_dp_mst_read_decompression_port_dsc_caps(intel_dp, intel_connector);
1171+
11641172
connector = &intel_connector->base;
11651173
ret = drm_connector_init(dev, connector, &intel_dp_mst_connector_funcs,
11661174
DRM_MODE_CONNECTOR_DisplayPort);
@@ -1172,14 +1180,6 @@ static struct drm_connector *intel_dp_add_mst_connector(struct drm_dp_mst_topolo
11721180

11731181
drm_connector_helper_add(connector, &intel_dp_mst_connector_helper_funcs);
11741182

1175-
/*
1176-
* TODO: set the AUX for the actual MST port decompressing the stream.
1177-
* At the moment the driver only supports enabling this globally in the
1178-
* first downstream MST branch, via intel_dp's (root port) AUX.
1179-
*/
1180-
intel_connector->dp.dsc_decompression_aux = &intel_dp->aux;
1181-
intel_dp_mst_read_decompression_port_dsc_caps(intel_dp, intel_connector);
1182-
11831183
for_each_pipe(dev_priv, pipe) {
11841184
struct drm_encoder *enc =
11851185
&intel_dp->mst_encoders[pipe]->base.base;

drivers/gpu/drm/i915/gt/intel_gt.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,6 @@ int intel_gt_probe_all(struct drm_i915_private *i915)
982982

983983
err:
984984
i915_probe_error(i915, "Failed to initialize %s! (%d)\n", gtdef->name, ret);
985-
intel_gt_release_all(i915);
986-
987985
return ret;
988986
}
989987

@@ -1002,15 +1000,6 @@ int intel_gt_tiles_init(struct drm_i915_private *i915)
10021000
return 0;
10031001
}
10041002

1005-
void intel_gt_release_all(struct drm_i915_private *i915)
1006-
{
1007-
struct intel_gt *gt;
1008-
unsigned int id;
1009-
1010-
for_each_gt(gt, i915, id)
1011-
i915->gt[id] = NULL;
1012-
}
1013-
10141003
void intel_gt_info_print(const struct intel_gt_info *info,
10151004
struct drm_printer *p)
10161005
{

drivers/gpu/drm/i915/i915_driver.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
782782

783783
ret = i915_driver_mmio_probe(i915);
784784
if (ret < 0)
785-
goto out_tiles_cleanup;
785+
goto out_runtime_pm_put;
786786

787787
ret = i915_driver_hw_probe(i915);
788788
if (ret < 0)
@@ -842,8 +842,6 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
842842
i915_ggtt_driver_late_release(i915);
843843
out_cleanup_mmio:
844844
i915_driver_mmio_release(i915);
845-
out_tiles_cleanup:
846-
intel_gt_release_all(i915);
847845
out_runtime_pm_put:
848846
enable_rpm_wakeref_asserts(&i915->runtime_pm);
849847
i915_driver_late_release(i915);

0 commit comments

Comments
 (0)