Skip to content

Commit

Permalink
drm/radeon: don't probe MST on hw we don't support it on
Browse files Browse the repository at this point in the history
If you do radeon.mst=1 on a gpu without mst hw, and then
plug some mst hw it will oops instead of falling back.

So check we have DCE5 at least before proceeding.

Signed-off-by: Dave Airlie <[email protected]>
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
airlied authored and ChristianKoenigAMD committed Jun 18, 2015
1 parent 3bc980b commit 7f017e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/radeon/radeon_dp_mst.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,17 @@ int
radeon_dp_mst_probe(struct radeon_connector *radeon_connector)
{
struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv;
struct drm_device *dev = radeon_connector->base.dev;
struct radeon_device *rdev = dev->dev_private;
int ret;
u8 msg[1];

if (!radeon_mst)
return 0;

if (!ASIC_IS_DCE5(rdev))
return 0;

if (dig_connector->dpcd[DP_DPCD_REV] < 0x12)
return 0;

Expand Down

0 comments on commit 7f017e5

Please sign in to comment.