Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2143753imm; Thu, 20 Sep 2018 08:24:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYytgXvKiwK0s00uTt3ARKe0CSS6srC2UMQ5+sTOJ1rwz6pDSMEvmwWacdXBcettjgc4Iuk X-Received: by 2002:a17:902:8681:: with SMTP id g1-v6mr39281740plo.302.1537457057776; Thu, 20 Sep 2018 08:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537457057; cv=none; d=google.com; s=arc-20160816; b=X2dILpD54WVDmmqBzaUoSPYyCy0KF8C63pN4pC1o+QbxX1YJJp/vUf+wgwFDdEQ4oA McleMLf7ZquLu9djxWMP7fAf5vt9/QNu+cb1zr3lyyzVXJ9WAGvRwg09VQp/3IpK5gr0 Khp5nupdeHTWF9wB/W2t+ORVhC0fo9m+C48h9RqhlEeOQDgFOcOhuiBKxAgMvZiBF4Pf sx7F2yeQEW7/HNctbr1BZcves7Q3dAErTnGsy0zjftr+f09S1Ud5CaAoKdpSaSB50QfU uZwH2Bmf2YumGvJ6bSwMjnUDcwAv5rAa7OgaVSIxaT7L8eWg1/i9fgfXGvt0ymKFyN3K jChA== 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=KIOcTR6zmI2JPU/1xe6h9lIP0JnnB8jnVM/H9k21c+9L7f1fou9UAWnKJ1UDnUAuSt /jX3jo7Dzy3ElRvG9tKWZRCehbctTjesiZriVkQcgTB02Gd0WVKze2AHW1wbbuf13DGm GHNfr6KlTlcSeR41zpWDPEF0cDXyoCIC5nKWvyzfvkGLDomxDL+CwXrmZevjGQ3Zrtc9 1kHKJXHSWsPPGdHSfju77UM5VO1i18hFkHfMdte3acGaRa3iEDcNlkuTf4b8wbhm6Eq3 daZgEswQkE6HTCAslgZLtWIcPbo6aoQMqNZNiFTs17MnvJZhv+j6Spxe4Vag/w04t9g5 hxCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cadence.com header.s=proofpoint header.b=mysC1px7; dkim=pass header.i=@cadence.com header.s=selector1 header.b=LeSNkeYz; 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 k63-v6si5467258pge.142.2018.09.20.08.24.02; Thu, 20 Sep 2018 08:24:17 -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=mysC1px7; dkim=pass header.i=@cadence.com header.s=selector1 header.b=LeSNkeYz; 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 S2387549AbeITVFo (ORCPT + 99 others); Thu, 20 Sep 2018 17:05:44 -0400 Received: from mx0a-0014ca01.pphosted.com ([208.84.65.235]:49016 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731946AbeITVFo (ORCPT ); Thu, 20 Sep 2018 17:05:44 -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 w8KEqCih025328; Thu, 20 Sep 2018 07:56:03 -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=mysC1px7F+QeJvjIERNHMM+nWlLoS02Ewv95Nb/CXJXqYu/a2EBlPe7R82Ne21N5MTxB g5uQLSkNH1q6kRUCKsaGysF4+GVWhlICSwp6Y4+oQc5xPNv7OJJOgGDtnlr2tXV7mIgG XCMIpp2Bvx1KluIpBfepgR5/VAtoCx6D25MQYkA1KfOVmhvEiOqda1sHBih0d4668C/G 0xK9p+qZ8uLe2zk2hRv6La8G09Rpd8B9JMuOCa4fHjA/KxVzp0Ek/0HqVRKivc+gGM7j 99IPyji+foc4kBBRdhSM6kIqtyvJEnRViZ6Cnrp6RKqfxLQqtEUK+KuHLx2sKWrNA7Vy /w== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=dkos@cadence.com Received: from nam03-co1-obe.outbound.protection.outlook.com (mail-co1nam03lp0024.outbound.protection.outlook.com [216.32.181.24]) by mx0a-0014ca01.pphosted.com with ESMTP id 2mm4h1a6tg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 20 Sep 2018 07:56:03 -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=LeSNkeYzG1wtPIgNgjs2GDbroqsElAOrU9QDFxrQipwswM1dfqU7S8JZ2s0wvcXuwe5PjTfkqV6O8n3mUiYXpeSwdYsuE4qOiVpxGsVZbjiK/rKaDqAmL7+LxUF6qg8dd0dzAlnl4XBpB+WVspJ4106U/J0iGCCKLj6xfewozzU= Received: from DM5PR07CA0025.namprd07.prod.outlook.com (2603:10b6:3:16::11) by BN4PR07MB2164.namprd07.prod.outlook.com (2a01:111:e400:59c6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Thu, 20 Sep 2018 14:56:00 +0000 Received: from CO1NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by DM5PR07CA0025.outlook.office365.com (2603:10b6:3:16::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1143.15 via Frontend Transport; Thu, 20 Sep 2018 14:56:00 +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 CO1NAM05FT044.mail.protection.outlook.com (10.152.96.158) 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; Thu, 20 Sep 2018 14:55:59 +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 w8KEtsWP002306 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 20 Sep 2018 07:55:58 -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; Thu, 20 Sep 2018 16:55:46 +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; Thu, 20 Sep 2018 16:55:46 +0200 Received: from lvloginb.cadence.com (localhost [127.0.0.1]) by lvloginb.cadence.com (8.14.4/8.14.4) with ESMTP id w8KEtbrt021886; Thu, 20 Sep 2018 15:55:37 +0100 Received: (from dkos@localhost) by lvloginb.cadence.com (8.14.4/8.14.4/Submit) id w8KEtatN021860; Thu, 20 Sep 2018 15:55:36 +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?= , , , , , CC: , , , , , , , , Quentin Schulz Subject: [PATCH v4 2/5] drm/dp: fix link probing for devices supporting DP 1.4+ Date: Thu, 20 Sep 2018 15:54:37 +0100 Message-ID: <1537455288-20223-3-git-send-email-dkos@cadence.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1537455288-20223-1-git-send-email-dkos@cadence.com> References: <1537455288-20223-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)(346002)(396003)(136003)(39860400002)(376002)(2980300002)(189003)(199004)(36092001)(8936002)(478600001)(48376002)(50466002)(5660300001)(4326008)(76176011)(11346002)(87636003)(51416003)(36756003)(26826003)(305945005)(50226002)(426003)(2906002)(14444005)(356003)(110136005)(316002)(54906003)(8676002)(476003)(26005)(246002)(186003)(336012)(446003)(47776003)(7636002)(42186006)(2201001)(486006)(16586007)(105596002)(2616005)(106466001)(86362001)(7416002)(126002)(921003)(2101003)(1121003)(83996005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN4PR07MB2164;H:sjmaillnx1.cadence.com;FPR:;SPF:SoftFail;LANG:en;PTR:corp.cadence.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT044;1:zdmQfY4Ip+BRaJwd8xMF1FpCEe0+5o6U0WjvYsFYajkjohVu7jyc3MFpa400ADpkhkJFnlImYkA8D08qJZdkhq9LcpTZtRHEIw5XWEUNMZEneA043wfz4Rz/imNJBlv/ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d6028355-1685-43ce-7d16-08d61f092db2 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060);SRVR:BN4PR07MB2164; X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2164;3:WSHxIMipnWEG3cTqv4HPawESkuQfjeA6moIWyJw/m1WncVMYjG8UnywQi//gJZgLw1gg09CYRf9iZ2CmKN1LAgzNdz9o6NI5sZeg69sdJPHOTAuKJSKGLxe9SlpWxQa5yHPlvpJuHC7vCmRfzie+8hoyHjpg1ZOuA1u82HriG95zl/pfj8p9OFC4G10R9OBYM7ayHeQPeo/Enfi7IQwiveCgcMme0NMDhRJOyC74bg6uJTL2vSjQJVovFUjC4+SgqqpMcaLgXA3VKoUVzVEvJXC4ZCR0Acho31WkPk00GSTqMYHZuhNdzgAMxrqChIyRtFlIkaniNKOTL7/7+D+yQtNG87Sn3eC+T3TMhix86c8=;25:u1EWhVaCpyaHq392bCawaPdyd2Y6mHjsiPd5tFBicJa5HlV/wd0N3uk0CbHPqPWtJFkldcn+75hsSJdrfPohFvAH22j5TgzoXJ+NgWXzD12BwJs9w8ssheYN6Gte1JcnMrpOHwlzK63tIelGth+pU1t6j5esRtj0BmcRWOePf/qbTPoWYjJq5Y7M39u4oGa79BlAnUmirKp6KLsL8cmhnvnR6bXIaBGjQ2IJPuHKQmwEojDDbOt6gl9YGELab9QiNw/T0zEYXNqnITZqqaZ/zTZ/7EajDhgaTN/fc5M2jAZ1+F67iQGpluQKSrF/ERr/p/LYr/sWjgOJQuqhWV1GXA== X-MS-TrafficTypeDiagnostic: BN4PR07MB2164: X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2164;31:4vsjN8uNlsBPRu3lVrlyGMUokueAl4WE0rXdyAdfP1c1/y7vfd7zc0yty8nHNlui7JsGohTIJ/Z1PBS6YvJzEImOjLUy6aEz/JvAel+qHR/5G61i3VyorXH1ibnjcE+IHnkBDZf+A9/Z3DZlUWTaQ/KB0G4GsXjANgZ3GMQ2BF7vrQsVdx/fwgnZVS458QbA12iGmWFiF8W3y5CTgxaYvx1yHuAsIkNE1waB2VXpfE4=;20:pOFlPFt0+3g9WMPAUBl3VKSqfmpcDG5W6IbgqIy4kdFJbl8F+H1pddd4foY45+j6UVzrYXr9eTPifbOc1bfVRrDK4OgVovk1neQ4zpORyJpHprvQcsekqBDYnkWYJTnsKYPgMgM0nGyfQ/BG7Z6HeuCSAzQW/nwLK2ozyI4g/zNzetPibvX0EGDO4U3vud+k3iBRQ9B8GDmo+/20QzpSjDc8ZEzVaYzwFl3zI6sWdMv9pkcLrNo2jdztUQGBSld/AVJNLQFL+d1P3vLHlslyA+AUDcEEehjAJ1KCHDTFQJfSFY1/mazQ+G4ygaQxSyaMxFr/vO+5W68Cju+gVgVAyQsX+Lh7wNwC4WamEod92bxnhx38xuPNep7YFO7JtAKMwIEMpP2auTeLxiYh+RxCw1IVOGM4h8coZXFQeBAo2c9SEqJ9cUvQRWIlCnDYV4Yx3VlRAoqoXtrj63u3Fwo4VsoAvFZMlRCvqZzxTfKgouYFEjEdqKyJPWEm/bEzKlP1 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)(5005006)(8121501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93003095)(10201501046)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:BN4PR07MB2164;BCL:0;PCL:0;RULEID:;SRVR:BN4PR07MB2164; X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2164;4:fn9+elFWqPhlyv4Ea9XE4wul9sWbem8QPKmV4qlHprawmz8379hAjeXkNrv4jRzCm5CmuLdfys8jV2OJBSwWI41fkKV7fQl1Yv9OF1P0FVYr3iv9XvWtAD1AGUbFrcObjYvRxKUERPZ8+48dPAa8egrEjXjdAef27zrTeO86cGHXe9z0XfGPygjNtuVCcP5FVS1GuX4Cirv47PxrFs/78w9wiEur5+MTRpvozSw26Z230rZJb59NT5aihmNaE72dHElAGp6oMofDUFIniP7ha8F/FE/LTl66tbpDlZ5jiJw2FZB5X+2wyJqZHnV7nbCI203s2zwryzNpSFm3VtaP0+IT0+HHN8WkRDcE9vOZjDA= X-Forefront-PRVS: 0801F2E62B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN4PR07MB2164;23:gOp0iy8AQksT9j9Olui8/17wdGp/ZVizsSXkzZcIT?= =?us-ascii?Q?2sj+270qNTrUk4NHK/Fbd/a6esnp9JK6gtLWlSCErhGc0Pj9L4TxFemlWVc4?= =?us-ascii?Q?sh59mMhfjSZYRITXKmqZfsen4u0o5oNduwWf83VHXgyKwwdkMZW4qARftxoc?= =?us-ascii?Q?RS0tHPl/g+arKSV5J2Ps1CsfIH4Psw7G1B3FH6v56ZFFQfBdhXeSS2z56qZv?= =?us-ascii?Q?+0TYpBghwCnd0pvaB5Bc8OyUVyGCnqU+4Pxz+MfiqYfY+wqXYfZGO6vKGT6Z?= =?us-ascii?Q?MdZN0bbu+gNpDHhljYgTupgWdBCFgAtrUvIQiUZOF7lo9cz6wZeBA0zzf5Mg?= =?us-ascii?Q?mWZjUAiKwLghcAfuKWQSFcFg84F1tO96YEyc5afe/wKh6wi1WiMF2+aI1/kU?= =?us-ascii?Q?9SUSkNyt+TQQezXs+OSvWHeC6NqaNwQaZZZpVqcvi5aXQ7mjSDxU028QpdS3?= =?us-ascii?Q?ZagslCdO8pQk9QMhCl482hEw6tIgRT6c85RmZSWOd151JReVGj34IVwQPFc2?= =?us-ascii?Q?3mWKUW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nVchI4cYCe4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2164;20:QP//x+817kG1ELR7SgztvQ9yGxh/Z9MjI4tAwZOkJau43Ky/AAXplHmfEyJkA1Hq+pumTxAAJg1CRhyvk06FZYfPKvtjjbgK51PFiivJV71gPc0yqzvibOgoJcEnMujXUc0LaNnm11t5Zql+bKYQQn/VsGs+nC+9p/r6Q/yac9WiRx4NM+hJdaJmpewIig7gVlrLmk3im9Z68wCQENFv7flCH23x2tTypy/rRYZTHxBsQabKb3CLyjZ+9k5OD21S X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2018 14:55:59.5405 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d6028355-1685-43ce-7d16-08d61f092db2 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: BN4PR07MB2164 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-20_09:,, 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=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=786 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809200147 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