Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp617291oof; Tue, 25 Sep 2018 02:18:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xrzLZKHLEDXt+dqx5zZ0LD5uHNnoGi41QU3H/4SP22X6TPxugITYIQCsfz7UFaySWrKo7 X-Received: by 2002:a17:902:566:: with SMTP id 93-v6mr179556plf.184.1537867108519; Tue, 25 Sep 2018 02:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537867108; cv=none; d=google.com; s=arc-20160816; b=FGa3KtkK5WpnJLepAhqaWcrHJahIIUeFhDwfAzgs2d/xldCiFOyHxpHY5z4dM128Zk 8fi10wxXkuA28bqpZ+T7EOntlOV12u4zQnbDxJlX3AWNN6CfwKjUAkREifaSUTB0HbJj vTwOgmXv1xs6dS9DeU+oCi4TX+f+KvAbdfdWvqezm0G/cHP1Hpk+M0q9aW20Cd2rmz7+ dkB9Y8+WD/TUjU1dk7w1uwR2vLzBsvKK5Q9MJB2HMlEU/YYbAdDinZEbf0zKZPyzCGOr Y7DRzy8oV6VkI/UUVEyF7N+SFTboz4QBVGWiHMWdsHBpzB66h0Ef8252PYdPoRUgVEmT H4+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature; bh=9hF5p61lXEPYmzPaaQrAx83Ryau8Ft71kqnNwJGlB18=; b=tfPvzXT4ZfXOC1Bzwib7q3r8/FCOgreXgzrNvf5TiRBlEp3R50Hq/0myokRDcEoNr2 E4QuBZKfVKLHsj2a2l3IJIn+OrTgpND72E+8JDHVlI9WeVsAyCpQaSBoP3iJGgSnzJRz jCqol6hroJQeCo0UryhzktfvqNByeCtnIJTPBqYTlEa4VJTANa1IA4stVFztktASAqUW Sj3qVSL0sW2N3z4REOWBCCTpZbfcAVafgqBmYlM70VwVNYROSZ/p9szXLTnUV0eiDRwJ fB3Bn9eq9OW+kSrh3wWyN+JKq8L3XRGaiy+nRqe5ODibxA/uNXo3dc2g3P04rY/Gtvr5 GDfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cadence.com header.s=proofpoint header.b=q96yJwxj; dkim=pass header.i=@cadence.com header.s=selector1 header.b=VwpeGKjG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cadence.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14-v6si2172937pll.228.2018.09.25.02.18.13; Tue, 25 Sep 2018 02:18:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cadence.com header.s=proofpoint header.b=q96yJwxj; dkim=pass header.i=@cadence.com header.s=selector1 header.b=VwpeGKjG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cadence.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbeIYPW5 (ORCPT + 99 others); Tue, 25 Sep 2018 11:22:57 -0400 Received: from mx0a-0014ca01.pphosted.com ([208.84.65.235]:49244 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729015AbeIYPWz (ORCPT ); Tue, 25 Sep 2018 11:22:55 -0400 Received: from pps.filterd (m0042385.ppops.net [127.0.0.1]) by mx0a-0014ca01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8P9Bd5W019834; Tue, 25 Sep 2018 02:15:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=9hF5p61lXEPYmzPaaQrAx83Ryau8Ft71kqnNwJGlB18=; b=q96yJwxjQjx59SVuWVgzxkU+WpesnERDQB3tRIKSXcqe4Q9pvLTrUs7Ex1rxV1PcCkYD 3oO8+8MKDBRtqY6wC8Pm8Ic5kbhDVxIVtaXyRDfjEdzZk0qp4N6nxJkPbMou4pztVUxM l9lr3GpTsO2KhjSioOEeKqqw6Mfc/fw9ZyliDSN8GvyulUQzr0HkvsVEM86Z6uoWK2XZ cugKgMI9Xe2Ea2TIbRaeg6CRLlHrZwI7CYVo1fjQjJLAYOslRXyCcLSuOY9D4pRFG0Au D3OUUyUfp2N4Io6PjndMG2xl0d35Fi4HzxKpr6U/xl1EZO3d3TwAfpFoyVvi6WQi1kLM jg== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=dkos@cadence.com Received: from nam04-sn1-obe.outbound.protection.outlook.com (mail-sn1nam04lp0083.outbound.protection.outlook.com [216.32.180.83]) by mx0a-0014ca01.pphosted.com with ESMTP id 2mnj9vkfkg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 25 Sep 2018 02:15:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9hF5p61lXEPYmzPaaQrAx83Ryau8Ft71kqnNwJGlB18=; b=VwpeGKjGQFVkWeFH5u1gUE0z1L0AnZIdWK/Cgju1qlYn5XZbxToVJ43Te9CYdy1T8gglwD5rJowUCPyd+WgP3MkbCE77ArKBV0vkW0c/R1xopsYOWwTr7WZoxoFdvtdRK+hONAmIVVhXppm9Nw28LP3L6AmITKw8fBOGz357dsc= Received: from SN4PR0701CA0017.namprd07.prod.outlook.com (2603:10b6:803:28::27) by DM5PR07MB2955.namprd07.prod.outlook.com (2603:10b6:3:a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Tue, 25 Sep 2018 09:15:30 +0000 Received: from CO1NAM05FT033.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by SN4PR0701CA0017.outlook.office365.com (2603:10b6:803:28::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1164.22 via Frontend Transport; Tue, 25 Sep 2018 09:15:30 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 158.140.1.28 as permitted sender) Received: from sjmaillnx1.cadence.com (158.140.1.28) by CO1NAM05FT033.mail.protection.outlook.com (10.152.96.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.1185.5 via Frontend Transport; Tue, 25 Sep 2018 09:15:29 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx1.cadence.com (8.14.4/8.14.4) with ESMTP id w8P9FPqU028604 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 25 Sep 2018 02:15:27 -0700 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 25 Sep 2018 11:15:11 +0200 Received: from lvloginb.cadence.com (10.165.177.11) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 25 Sep 2018 11:15:11 +0200 Received: from lvloginb.cadence.com (localhost [127.0.0.1]) by lvloginb.cadence.com (8.14.4/8.14.4) with ESMTP id w8P9F393007728; Tue, 25 Sep 2018 10:15:03 +0100 Received: (from dkos@localhost) by lvloginb.cadence.com (8.14.4/8.14.4/Submit) id w8P9F3YD007727; Tue, 25 Sep 2018 10:15:03 +0100 From: Damian Kos To: David Airlie , Rob Herring , "Mark Rutland" , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Gustavo Padovan , Maarten Lankhorst , Sean Paul , Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Quentin Schulz , Damian Kos , , , , , CC: , , , , , , Subject: [PATCH v5 2/5] drm/dp: fix link probing for devices supporting DP 1.4+ Date: Tue, 25 Sep 2018 10:13:32 +0100 Message-ID: <1537866837-4408-3-git-send-email-dkos@cadence.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1537866837-4408-1-git-send-email-dkos@cadence.com> References: <1537866837-4408-1-git-send-email-dkos@cadence.com> MIME-Version: 1.0 Content-Type: text/plain X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:158.140.1.28;IPV:CAL;SCL:-1;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(376002)(346002)(396003)(136003)(2980300002)(36092001)(199004)(189003)(446003)(246002)(305945005)(486006)(7636002)(8676002)(7416002)(4326008)(11346002)(106466001)(105596002)(126002)(86362001)(54906003)(14444005)(42186006)(110136005)(356003)(8936002)(186003)(6666003)(5660300001)(2201001)(2906002)(50226002)(16586007)(316002)(36756003)(26005)(48376002)(336012)(51416003)(478600001)(47776003)(87636003)(2616005)(476003)(50466002)(26826003)(76176011)(426003)(921003)(2101003)(83996005)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2955;H:sjmaillnx1.cadence.com;FPR:;SPF:SoftFail;LANG:en;PTR:corp.cadence.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT033;1:RfJroJquqK/VIEO08QGl1GnVOfw1E0flTNg4C9+Oc+rGolJUlyYg5oEDgppn31PRm0aVpBc1TiKM2+G47WOCP367G4KHW9QHfYq8pHg3NAiljXHl/vLZT3u1Va6ZFaxQ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90f40c23-c819-4e05-3b42-08d622c7705c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060);SRVR:DM5PR07MB2955; X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2955;3:fO0slzrP9jtXTehiaDR8I1TLJ5dIw9sMGumvHa93zv2+lZg6aUC+fAChsrEhnTZ7g4fEJTVBggmfYpnqa94x+x2udj0syl4iPGTD7HWecZlqt1gtSsWiytMj/cI5q9UywjD3x6iSqjSyHVjCi3ibg3eG0yXu3PAiXGsFNzD4OusA1O5k2SNp4FieQ7iW67B2wzPYJzqY6kfFEk8Qa7GIbA41X/JKN3ALzv7oI7tGGwohwEZleARj4gLRehMAGmVh0gd8IYWqA+ueFlOotaPB4E+5PQ77A3BmuATc35tPG/KkOC+oUtAo1LS4Tzq/asHn+j8UTj/oPshvhysiK2Hs3JbRm4g2L0qM6IzZ0RFEUrU=;25:8sOnKUnlSeswt6CMhNuQWxNK51WxQ0psjVs33hJq98/efGo0mcYHH+Gl+yAmHZrkTzkPVeAWExYQcEjEWg1VY/EsVkxPjePWjRwa0Y1j6cb6nFrvzjx5CTJ8UA1p8ih3io4TBFj4gVc/e9BFjYMVUIJMMzTs5jzVaCzAzrUETF4+mQGRkaI5BYeD8dX3N0MCHYGXWuTInlENZ3BrXSavWXkIx3U3JOQPqudISd8YI2iTAffvF4SVNbGwT4S8Mb2D9fP18WwHjltlQ2pMpLIoXute6Cuy00MVDeTC0yY24O/flIek1t6uoF0aiYVfOAmwpK5ajailoHURuxDeXqnv0w== X-MS-TrafficTypeDiagnostic: DM5PR07MB2955: X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2955;31:J0pBADHCGMWYbCek2o5vajZpbF6APETdErDtZ73oolNuaQ8d06dSPLKDVtn578o44rcPOfEleXgJez8p4vc98WC06UGIeOAQ7U2w8sZJ5A09iOhGulseFJfG4vMiOHs0LDeBlK3yVhXmhgNxyUlkypotf2EqufnacXF5lBKcwdhef2zHluTMlDHhnMzq/X0iEuQyVXakWopnxSyVJK2fESk7sWbaydRgcNUhHA9IQAQ=;20:VtnKnekoSdkfK5DLeL8IZUjfEQ5DHZmkRcDgq/GMNWZMOrmqlixY3S3CGjxh0z1Hq7T/RTMtYl3tU0TB6nyh9U6arQEL9dXdNXrcgJBNxNq7wwMfP2qEVVzczDt/SXQA+iP7zLGQdVKpgSjpnf0X0eG0idEusxcmeTinfbPKH3tdBzHID0x1WVQ5MbBjCQ89hY+xIBr8ZR0o9ixsOOigZ13Z8DZrVWqX3MhIVVmpAJEQ16VeSli+WF2FVpwwLZTYdpjhYBSnuJv2DLNibc4uWN/T73nokEtI0YISF/ya05+CanY+cxake+MAUNn7vDamf11WZLE3ud9nnYicd99fP700mhYVDszhjVj0BaasNxAG2er4LEXa7YPpZ/15e86vLLBxvwLTS41EzH2BxuZOpAZHbmIDgSr1C/WNkEUGdI8owUgcqO7R4sRbp0fhnvy0+t+d34NoAEWJisZrJHGSOWCehcf4fSX69O807ie4HH0DaY3zWscZk8sfm51YH0Zp X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(58145275503218)(72806322054110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3231355)(944501410)(52105095)(3002001)(10201501046)(149066)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699051);SRVR:DM5PR07MB2955;BCL:0;PCL:0;RULEID:;SRVR:DM5PR07MB2955; X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2955;4:5KrKE94hmlKkWGbcBOK9W6s8zrDdy4x2bAJIXm6ivIiR2xArUS2WEeCdl/O1Li/dcuaXs6urBUxusnBjUG/mMgEEZh4VmbeTNQyn2o3+6wd5ulZIjGxJvxr+qe89kXzGUrYJDqImsfRgRSf6Lbo5pejw1iBgfLeqa0iAkhZw70QtWswVcRrSG6kOrWL2Om+4WKWjTx3dfczXOuKiHeP+rh898zVX1h7cZF03QvUxbGUwMfjR5PbouQetIvlp4xzsPDYDnruwneDq3Mm0GtVCnEnWd5YhObfhZkGsQIZNIQ2nkqVqqFQoOg5yEqhy/GgMOdcpZy9PLSQgnJKyvgFlv+xwYTQByxv2bZX06xA2jxM= X-Forefront-PRVS: 08062C429B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR07MB2955;23:ZJ3QKaNWTfW4ki3unhU8XqkMjFiG119HD+npZO0Yh?= =?us-ascii?Q?+1Jksn7HeFcgHn5inYBsm/+WMXpJHhXBhsuVONaI6MQ88io+2UHeLfFs17+e?= =?us-ascii?Q?nubB/t0EN7a4TlNMWRAhGZJdNlY3REizE9KnDQmQEMkfxZf7aG4QjZk1ypBa?= =?us-ascii?Q?LxlCmgszWqRXC74yxob7186WJjiDXCQS4FfUK3Va6apkOuOp8DOmhgzHUesq?= =?us-ascii?Q?DsjphW1z08H5SKsYwR+61CKHWmCrdzZZEYmE85a3diPoFB7fiPl1wa9JypRV?= =?us-ascii?Q?Mc1HEWi9USnXQXS/4ilaHzrabi4TVE5SZJry2ltOZxuYr7t4d5e3XWKQhZt5?= =?us-ascii?Q?q/OY9dLeIAYqg9y4dvo/C3BXjo7GK+O4IvJJv0rWwr26DBBWRXgr8/xKsbs4?= =?us-ascii?Q?hkoHi6DzyT4MRNgbKX70qjCBHYPpPZHgx8yOE5vWSB75e4L5UxC17VicFiWs?= =?us-ascii?Q?NvI7czdPYvi2Vi54g9Hut9FTNMkjiEWeogc9HF4gr+hRMP469tNVXfDRYUxi?= =?us-ascii?Q?9x7QOPu/wWv9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ZXaMRc9mwFy1LEyZ2p5o7X0wjuOtDz8SAg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2955;20:u8vG2efz9DDA5CGac/jABLY91jEYgVzsDt5NuORsCnrcCfeRvAn1rpJC7P4+Nm0ZSdmwqxo6cGSUsXB8HlHJSKSyJlpQr6al3aixmfh9ng+nX94iRYq4NOSehfBvZ12yPrrQOeDC33H718fEeLcNiqUTUJ0wQ7ZWOOkEI73GMzzfj8NcikbQJKkLsO/r3Jxef8tp6qOVYwk8oYVrJGi2BQDRPAWKK6X1WomBcLvqoXXM+f8jS04W075WTF82Yw4V X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 09:15:29.2651 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 90f40c23-c819-4e05-3b42-08d622c7705c X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9;Ip=[158.140.1.28];Helo=[sjmaillnx1.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2955 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 a:mx-sanjose2.Cadence.COM a:mx-sanjose4.Cadence.COM a:mx-sanjose5.Cadence.COM include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-25_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=787 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250096 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quentin Schulz DP 1.4 introduced a DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit in DP_TRAINING_AUX_RD_INTERVAL register. If set, DPCD registers from DP_DPCD_REV to DP_ADAPTER_CAP should be retrieved starting from DP_DPCD_REV_EXTENDED. All registers are copied except DP_DPCD_REV, DP_MAX_LINK_RATE and DP_DOWNSTREAMPORT_PRESENT which represent the "true capabilities" of DPRX device. Original DP_DPCD_REV, DP_MAX_LINK_RATE and DP_DOWNSTREAMPORT_PRESENT might falsely return lower capabilities to "avoid interoperability issues with some of the existing DP Source devices that malfunction when they discover the higher capabilities within those three registers.". Before DP 1.4, DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit was reserved and read 0 so it's safe to check against it even if DP revision is <1.4 Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 8c6b9fd89f8a..735ebde5c2f0 100644 --- a/drivers/gpu/drm/drm_dp_helper.c +++ b/drivers/gpu/drm/drm_dp_helper.c @@ -370,10 +370,38 @@ int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link) { u8 values[3]; int err; + unsigned int addr; memset(link, 0, sizeof(*link)); - err = drm_dp_dpcd_read(aux, DP_DPCD_REV, values, sizeof(values)); + /* + * DP 1.4 introduced a DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit in + * DP_TRAINING_AUX_RD_INTERVAL register. If set, DPCD registers from + * DP_DPCD_REV to DP_ADAPTER_CAP should be retrieved starting from + * DP_DPCD_REV_EXTENDED. All registers are copied except DP_DPCD_REV, + * DP_MAX_LINK_RATE and DP_DOWNSTREAMPORT_PRESENT which represent the + * "true capabilities" of DPRX device. + * + * Original DP_DPCD_REV, DP_MAX_LINK_RATE and DP_DOWNSTREAMPORT_PRESENT + * might falsely return lower capabilities to "avoid interoperability + * issues with some of the existing DP Source devices that malfunction + * when they discover the higher capabilities within those three + * registers.". + * + * Before DP 1.4, DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT bit was reserved + * and read 0 so it's safe to check against it even if DP revision is + * <1.4 + */ + err = drm_dp_dpcd_readb(aux, DP_TRAINING_AUX_RD_INTERVAL, values); + if (err < 0) + return err; + + if (values[0] & DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT) + addr = DP_DP13_DPCD_REV; + else + addr = DP_DPCD_REV; + + err = drm_dp_dpcd_read(aux, addr, values, sizeof(values)); if (err < 0) return err; -- 2.17.1