Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6920762imm; Tue, 28 Aug 2018 03:28:14 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb42CXnLzYp2XsqumLKdy7Sc5fXQ+sTEiVyOrdiqnzyZDiLsN9JfJOe1+o9YNnv3DCod8RE X-Received: by 2002:a63:4c07:: with SMTP id z7-v6mr946330pga.312.1535452094734; Tue, 28 Aug 2018 03:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535452094; cv=none; d=google.com; s=arc-20160816; b=dGPIxKGuPk1RCa43KR3Ie5/RGNy854idQBTamEfNViK7cUb4cy/Fblb4C6/j0Ic4pD UyoEgsjpzErT5DIqVhyG13c+5dfFXVOGUB1C4wjN+zAWLN7y+Tt6aDHtd1/xXjV1jQ3Q rlZ0MpYJAcDVbdwDaM9K279Yn3BlFtR4HLNr0Oz1NrGLpr2EdU0be4XLd/ROXA/02wqV QB24bmoe/yr8dzs2e+MVL5bh9AoDzgwRtZEG1DPOsP7n/0XbaSyor8761QDcN4epAaIi ckysc+lQEfZVcieThlDaIEzMzhXSRTGkZELWND/e7MEyBPj8EEMVk3K39b2qLwyJFF7l VaKg== 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:arc-authentication-results; bh=p3Ri/bs4CR1wNAji28g9k6AfZXFPftgYDK4O/tbnN3I=; b=ExrVSLU5pPEAI35RwSJUDj48orXXojGb1Pl1Sbydv5xTpTnrMS9s7RyKnZSLNEVLE5 s5QNsbWowcOJ93AK30xyT05fKc4flr3ds8NT9HITg67OIMYmtfuQATBqr1+EiqrGLATD b/GHZbSmvw7vgjAccGdkc3eZYnCmN6MIq6KXH45+D1CCgV5PNkj4SZyLxoqGQti50FCO wZrXGYktmR2rCg/iFi/3dA5FC5lO8aXqM1muWnnvLoRhoaj2XEfoVaLjWkMj6+gF7BI9 KNTmJI9BNAkPeg41MypJKZ9iZ/YM1ri9EIeaOdkjDk8EZA3yRpJr/jL5SEiibbd7wOm3 WNBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cadence.com header.s=selector1 header.b=YVDcSnHd; 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 y1-v6si673598pgo.644.2018.08.28.03.27.59; Tue, 28 Aug 2018 03:28:14 -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=selector1 header.b=YVDcSnHd; 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 S1727556AbeH1ORW (ORCPT + 99 others); Tue, 28 Aug 2018 10:17:22 -0400 Received: from mail-eopbgr690087.outbound.protection.outlook.com ([40.107.69.87]:19755 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727099AbeH1ORV (ORCPT ); Tue, 28 Aug 2018 10:17:21 -0400 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=p3Ri/bs4CR1wNAji28g9k6AfZXFPftgYDK4O/tbnN3I=; b=YVDcSnHdgt7XWjPqxHrK7HCiCCIYFSaO3sLnDBz0X9jyuW5UnFGOvhLDURmjsbpGZO9K6EWMmKdINPSlPTGUThFkVb9lqTR5UKrFNJW7hSfqamkvgmpRbwpCRWFti+wOWICGQzvqJm4y5OpIsnYJcfyi0421f3Kdp73FonOnDfk= Received: from DM5PR07CA0042.namprd07.prod.outlook.com (2603:10b6:3:16::28) by CY1PR07MB2166.namprd07.prod.outlook.com (2a01:111:e400:59d7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Tue, 28 Aug 2018 10:26:01 +0000 Received: from BY2NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::207) by DM5PR07CA0042.outlook.office365.com (2603:10b6:3:16::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.13 via Frontend Transport; Tue, 28 Aug 2018 10:26:01 +0000 Authentication-Results: spf=softfail (sender IP is 158.140.1.28) smtp.mailfrom=cadence.com; ideasonboard.com; dkim=none (message not signed) header.d=none;ideasonboard.com; dmarc=fail action=none header.from=cadence.com; 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 BY2NAM05FT044.mail.protection.outlook.com (10.152.100.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1122.2 via Frontend Transport; Tue, 28 Aug 2018 10:26:00 +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 w7SAPsBX018582 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 28 Aug 2018 03:26:00 -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, 28 Aug 2018 12:26:00 +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, 28 Aug 2018 12:26:00 +0200 Received: from lvloginb.cadence.com (localhost [127.0.0.1]) by lvloginb.cadence.com (8.14.4/8.14.4) with ESMTP id w7SAPlvY004062; Tue, 28 Aug 2018 11:25:47 +0100 Received: (from dkos@localhost) by lvloginb.cadence.com (8.14.4/8.14.4/Submit) id w7SAPkX4004047; Tue, 28 Aug 2018 11:25:46 +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?= , Damian Kos , Quentin Schulz , , , , , CC: , , , , Subject: [PATCH v3 2/5] drm/dp: fix link probing for devices supporting DP 1.4+ Date: Tue, 28 Aug 2018 11:24:45 +0100 Message-ID: <1535451894-2518-3-git-send-email-dkos@cadence.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1535451894-2518-1-git-send-email-dkos@cadence.com> References: <1535451894-2518-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)(39860400002)(376002)(396003)(136003)(2980300002)(189003)(199004)(36092001)(50226002)(87636003)(7636002)(305945005)(48376002)(26005)(186003)(478600001)(36756003)(50466002)(356003)(26826003)(8676002)(51416003)(76176011)(47776003)(7416002)(246002)(5660300001)(2201001)(8936002)(86362001)(336012)(2906002)(426003)(54906003)(110136005)(446003)(11346002)(16586007)(106466001)(42186006)(107886003)(316002)(2616005)(126002)(105596002)(476003)(486006)(4326008)(921003)(21314002)(2101003)(83996005)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2166;H:sjmaillnx1.cadence.com;FPR:;SPF:SoftFail;LANG:en;PTR:corp.cadence.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM05FT044;1:XDcYQLAcprWPOa1FWq1hwm+d/+DmpeS+Isgoz/K+1pPcNyJirjPlFULsmYWYxV2yuuG0B9C2VvXlegBd6Whg6MlgNkq6ltKpeV1XVnvc+msLrbWPnd1i54i0qphd3CDE X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 07dd5b13-f7fe-41fa-dcf1-08d60cd0a6aa X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060);SRVR:CY1PR07MB2166; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2166;3:/DUZ6R+p0flBxMkESRRSoCmjyOexqosOpsvFHt3Kh5EkctW0yPlyuxBSjDGps5tr6Nb46h3AjZ8CPTWLGsnprtgLURUobOX1Pu/KXyyOjBZl5z3KgGqkK31vAMeMf7LzVGDIamrka2CfqhHQStwx6KDhe3jiKjPBzsyyHyTBhgf+5CE1h28lTmh7B+r3UQL7XPr+r346yDFS3Q+EM1IvrQ//S7FTiCbyrUrHN14wwHI2CGwyCYP1q1bGi7GGAoZ2h7oRYZeQC2FMNuULI7Q2/qY18wvxhtDNGXTGbMhvXXPOI5JsSvgXHSTWWBrWE5A//nPRxygzutC87rggXoSx2Q==;25:Ils1tfDdaZvyqwkia1L3g4DUBcLAlQ12KTX/UFkPxi5vEhmNDTBEsPK04CvTKWHTyFjEx/1RaP1WuxUyiDMkxDQZrlL2S9yL8uAl5r9S8Q1CeHcrm//e35oHwnXdo+aROa5RUzEUDKzG0SQDZhBfbhVX8uA8a8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M71EQc50CwVtZxP7p4K+LgyBYYK86E/Iut/n4+bxkpm9XLB1dJH3WlRzsa8qAqxVRQ9OzXIJovWl/ipJIykjRxLAqg7730CqIUCm7dC+m7gQ3ySnMF49hhk+XGgoug/vxS/v6Nh7v/plcy/3nxgt6+4kxD9W98QZIr00OyaNPFI8ZiIisqC22DVVUgWkslFR46lfU6DiuySPvMXHGPIrC3cuD11szBWMCXWLz2KgrwWbho/T/q16KcfNIkHku X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72806322054110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93003095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699016);SRVR:CY1PR07MB2166;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2166; X-Forefront-PRVS: 077884B8B5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2166;23:J/YlOxWQkBwf2/3xnn7+fpkhCC4T65Q94NX54Wi0i?= =?us-ascii?Q?xnHfkAKw7jI94jAorZPhMjh8wD7or5qjaleYVRlqQ7ASInA6zhlMIblFdkXt?= =?us-ascii?Q?rov+cKheG58xvi+uGAQ9sQvXIO1/Y172x8exE8XLQRC/SfVKSadOh0yKeXnS?= =?us-ascii?Q?WhQmMaHEuxW4kywoos4Wy7W5WC5iA4sv/b4rTqbxTSLJ7zpHxJa0XyJhVwfn?= =?us-ascii?Q?WrlP5hWlnzeeAGgh3T8+x6I6DGJDRThoQxk4plnswH+LXaSmakRJMeEhxbHG?= =?us-ascii?Q?bbzcQYZ2XdBeWFJ6SOLDR5AJu3itE7TmkISnABziZQ3R++vlv5v31vjiqUwk?= =?us-ascii?Q?w1Zm2aKCI5It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ckfR8VBQ=;7:tWeVlez+jSC/JXWSvxBHrJ7S1FvMbUwrg2MQkuk7pSKihk0oyb8EQcb04QxqFF8nOndTIcLhXhwSp56urVCi3zqdTX0Rj6fDJbjp0qaO0A7doOfoWgtLAdvHL+13eLN+mxGTSBM0RI54NiNPWECN9fuiigHDOw2Y6DQnvQYKgBDynHm+bgW+C3P2yK09PeWTHLy3J7U3JeKar/xjKXvCZcEQaA6uItYT4c922eTlq5ZhJr4eeHCzLD7Homifk52r SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2166;20:ytXc64FSYUI4rGc4EuWlI2faTkMbM9zLwEDQVAgCayaPM+GvblCP02d12eq025DL5+u1cDbkUhgHEcedgIgYQ6fKZIKzuXDpEiinf5vCSJz4qbdoZhjkCo9vG+7Cfr1+kcgDWsjehX9igUIh7Vno95k1e5zunGpLjRFipS+65BEHojBW1K5syaitcnx+xoKxMDUWfg8En2xxrKh+R/4ZkilC+JALmkCSHmnzaFwhJU1ApBDkXS+YoqyR2uGFGUow X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2018 10:26:00.7356 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07dd5b13-f7fe-41fa-dcf1-08d60cd0a6aa 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: CY1PR07MB2166 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_RCVR_CAPA_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_RCVR_CAPA_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: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 30 +++++++++++++++++++++++++++++- include/drm/drm_dp_helper.h | 2 +- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 8c6b9fd89f8a..4b5bf6ee7fa7 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_RCVR_CAPA_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_RCVR_CAPA_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_RCVR_CAPA_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; diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 698082a02b97..06a478679781 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -125,7 +125,7 @@ #define DP_TRAINING_AUX_RD_INTERVAL 0x00e /* XXX 1.2? */ # define DP_TRAINING_AUX_RD_MASK 0x7F /* DP 1.3 */ -# define DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT (1 << 7) /* DP 1.3 */ +# define DP_EXTENDED_RCVR_CAPA_FIELD_PRESENT BIT(7) /* 1.3 */ #define DP_ADAPTER_CAP 0x00f /* 1.2 */ # define DP_FORCE_LOAD_SENSE_CAP (1 << 0) -- 2.17.1