Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9095824pxu; Mon, 28 Dec 2020 06:32:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC+MBc9IX6IONWkm0C1KhW1GxhXIEqxTGDnkxBKSoD4sNEaBRfODR7ek5iSy538u9NkZUx X-Received: by 2002:a17:906:edd2:: with SMTP id sb18mr43058642ejb.114.1609165929690; Mon, 28 Dec 2020 06:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165929; cv=none; d=google.com; s=arc-20160816; b=IMU65WF8wjCZNDH61AekVvuGRZc8tW8GJ1hE/VR0Q6A8KZwe7ZrNnZIFLmfNLWQlNy T+gA7EwCiAJf40nDf02ZbI+2ZkPJt1EVLzAwKbo96kVEgD9W4d5GjxI+138QPjYlCTFR hGrhiYodEzY317M16nzriJb6pgPwqiz3GHwRTjEzVr93FdMH7ezfky9sDQttsDTO72WT gqYJHPn1IumXurKwpX8M0obX6Lyvf4lgefxJesvLSgT3ETcXxoeIxHUczwy0BfbYVSoZ KBRjjbDF8AM9TXIYBj/nbZZGyKuK93JKe6Dlp5GqdyBe8RHIFtsOnNvZ+Tc3pHP3MOz6 Qf/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dhEXYVXZR7uqptXfFx0eXuLYGVAY1KpEvdzcv5yj7KA=; b=zBKAV5K5jm8fZmuG+tnlDp6qK8Ol0wpmOOYza2NjBiJxt9NYd73rjyGkh1OoIbmfMz itRJnfruvQKMKpNdtSaVqKtU+o/KgNR5Dwal2smQcBk+s9aIjyi5tBFy57eUcXyRVMpg YyelfASDAaUzvoei3oV2TwywN7MTyptwPp4wQSV/ZrKBZoBeU5mJfwD15RhwG089Hva7 eBnKiQwD0sbkiXbkYnQ5/zPH+JKwSF03w+X1T2csO1gM0a4u7mOGnAMls0bOqNsGmJlH Sa0tVxwNbEucWwoNNzDZXCKBzF8Q78q2y3NDwkJ6eV7UviS2jwFzPo1pRnmbqiCc4EFa u9lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QXmFvsur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si18334592ejn.15.2020.12.28.06.31.46; Mon, 28 Dec 2020 06:32:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QXmFvsur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503437AbgL1O3q (ORCPT + 99 others); Mon, 28 Dec 2020 09:29:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:37592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503355AbgL1O3g (ORCPT ); Mon, 28 Dec 2020 09:29:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7CA22221F0; Mon, 28 Dec 2020 14:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165736; bh=R92SEvHeLAvXYKXb3dh4dW6TqVPMF1IA50HX4skct8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QXmFvsurzHkuHxV9joR9eYQAt94H7/aZvMrcHNZAn4Uti+xDIv0KgUYGilHoKZmgE w7arEeIzjec0CfciZ1wZysC8UVUYItHWAzYqoaJBkR92fjWP5OEpYqUYGO4XJ+iMjm JmWZCZAf6PsC6bjHph0Db1KfqWVf4K7FfvvH1nNE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kris Karas , Oleg Vasilev , Alex Deucher Subject: [PATCH 5.10 636/717] drm/amdgpu: only set DP subconnector type on DP and eDP connectors Date: Mon, 28 Dec 2020 13:50:34 +0100 Message-Id: <20201228125051.394410135@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Deucher commit 05211e7fbbf042dd7f51155ebe64eb2ecacb25cb upstream. Fixes a crash in drm_object_property_set_value() because the property is not set for internal DP ports that connect to a bridge chips (e.g., DP to VGA or DP to LVDS). Bug: https://bugzilla.kernel.org/show_bug.cgi?id=210739 Fixes: 65bf2cf95d3ade ("drm/amdgpu: utilize subconnector property for DP through atombios") Tested-By: Kris Karas Cc: Oleg Vasilev Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org # 5.10.x Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c @@ -1414,10 +1414,12 @@ out: pm_runtime_put_autosuspend(connector->dev->dev); } - drm_dp_set_subconnector_property(&amdgpu_connector->base, - ret, - amdgpu_dig_connector->dpcd, - amdgpu_dig_connector->downstream_ports); + if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort || + connector->connector_type == DRM_MODE_CONNECTOR_eDP) + drm_dp_set_subconnector_property(&amdgpu_connector->base, + ret, + amdgpu_dig_connector->dpcd, + amdgpu_dig_connector->downstream_ports); return ret; }