All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <deathsimple@vodafone.de>
To: Dave Airlie <airlied@gmail.com>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/radeon: don't probe MST on hw we don't support it on
Date: Thu, 18 Jun 2015 09:39:10 +0200	[thread overview]
Message-ID: <5582759E.3060503@vodafone.de> (raw)
In-Reply-To: <1434601758-31326-1-git-send-email-airlied@gmail.com>

On 18.06.2015 06:29, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> 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 <airlied@redhat.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

BTW: Since Alex is on vacation I'm managing drm-fixes for Radeon/Amdgpu 
for a while.

Should I add that patch to my pull request on Friday or do you wan to 
add it directly?

Regards,
Christian.

> ---
>   drivers/gpu/drm/radeon/radeon_dp_mst.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c
> index 2b98ed3..257b10be 100644
> --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c
> +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c
> @@ -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;
>   

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2015-06-18  7:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18  4:29 [PATCH] drm/radeon: don't probe MST on hw we don't support it on Dave Airlie
2015-06-18  7:39 ` Christian König [this message]
2015-06-18  8:31   ` Dave Airlie
2015-06-18 13:12     ` Christian König
2015-06-19  1:58       ` Dave Airlie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5582759E.3060503@vodafone.de \
    --to=deathsimple@vodafone.de \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.