Commit 7f017e56 authored by Dave Airlie's avatar Dave Airlie Committed by Christian König

drm/radeon: don't probe MST on hw we don't support it on

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: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 3bc980bf
...@@ -663,12 +663,17 @@ int ...@@ -663,12 +663,17 @@ int
radeon_dp_mst_probe(struct radeon_connector *radeon_connector) radeon_dp_mst_probe(struct radeon_connector *radeon_connector)
{ {
struct radeon_connector_atom_dig *dig_connector = radeon_connector->con_priv; 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; int ret;
u8 msg[1]; u8 msg[1];
if (!radeon_mst) if (!radeon_mst)
return 0; return 0;
if (!ASIC_IS_DCE5(rdev))
return 0;
if (dig_connector->dpcd[DP_DPCD_REV] < 0x12) if (dig_connector->dpcd[DP_DPCD_REV] < 0x12)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment