Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp961432imm; Tue, 3 Jul 2018 03:07:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI9VhfF2SybXX+ipBtdwddtPmqVQ9jF4jn1YU/K+WZSsjA2xwWOk6Ovmw+67/syrmysXoDp X-Received: by 2002:a65:5686:: with SMTP id v6-v6mr25055162pgs.141.1530612456695; Tue, 03 Jul 2018 03:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530612456; cv=none; d=google.com; s=arc-20160816; b=ufv00MuhlgOoprE/Bx3fV7Z1x7Sv7RrHRUYbC2f8P0skBDioFZiPdqQMqAHtyNCp4D L+0ThWHQYFBcXF/+jMDfz1hVUw+/DLV5PalfnljULkWUJRbLfc5veltiF89PKqV5HoNR LQdsSWLWcYfeUMK/QQO+esvWvvEFEpFJyjq1FsH5Rxxjg6SzQdF+juQ1fDvaCpvePthp fW+ki3VH7+Z4WpqGkK3ePmwPVweC9aF8jm76geH76fWrOEwG7N59NTnuzDNot0/J8b/x Lvvj33DbtZ8Ku7hvpLflhmnE9a5hybUw2MNjhyXuQXa/QT0bkrLA0Su9kA74bOz+JSxO TVfA== 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=lYrpp2zmUqnDQGCFyoPn6ockHrlDO0MVzHtau67Q890=; b=YmO3plyoKHZNZJuAAZqgBVfkZv9z3v7d/vE95tYGbSz9da0awhpm6YwvWYTTSmvum5 O8dmMwEf7kyPt9gkjqxOfWkdZwTepOv/8nG2Jm2wZ6ZsBEI5tvGdxRNT6bMa2SxRutFk 4oXf+e4aanoHT0GCg1/L0ah0YSs+hSdNYhs7OnZD0g6xZU7uOAohz5NHyY+ovNICLwLe Ubk8u9Glco9trRjQy7q8VwDB0c9M+4/EFGCbjC0VLjD96ZNyXi/mf0H/njkRYz5q3WLh H7K3GayfgBdRJQtnNQCNUrMKBrQVQyjJsAuvo1OEamY/1+GCd8DoUXhKkYlP98bs5VTr unDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cadence.com header.s=selector1 header.b=BjQhoX82; 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 91-v6si788661ple.308.2018.07.03.03.07.22; Tue, 03 Jul 2018 03:07:36 -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=BjQhoX82; 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 S933982AbeGCKGH (ORCPT + 99 others); Tue, 3 Jul 2018 06:06:07 -0400 Received: from mail-eopbgr720081.outbound.protection.outlook.com ([40.107.72.81]:48748 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754469AbeGCKDW (ORCPT ); Tue, 3 Jul 2018 06:03:22 -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=lYrpp2zmUqnDQGCFyoPn6ockHrlDO0MVzHtau67Q890=; b=BjQhoX82nh5HUiyxi/6pf+ZbaNhz+N6Av4NzO7VLip5On9z7yMBoV9/1B49lw5vGwmPe3JndU4s3cGkNVmf5IEV5uPmA9rRDrmpe8Br7hDBaxdVct19frQH7wdDGNfpHlS6yHJLavmtMhQUHJ0P2lWyGWVYYKC/T6F0v9GwbFpU= Received: from SN4PR0701CA0016.namprd07.prod.outlook.com (2603:10b6:803:28::26) by BY2PR07MB2295.namprd07.prod.outlook.com (2a01:111:e400:c50d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.18; Tue, 3 Jul 2018 10:03:20 +0000 Received: from BY2NAM05FT011.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::209) by SN4PR0701CA0016.outlook.office365.com (2603:10b6:803:28::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.906.23 via Frontend Transport; Tue, 3 Jul 2018 10:03:19 +0000 Authentication-Results: spf=softfail (sender IP is 158.140.1.28) smtp.mailfrom=cadence.com; linux.intel.com; dkim=none (message not signed) header.d=none;linux.intel.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 BY2NAM05FT011.mail.protection.outlook.com (10.152.100.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.930.2 via Frontend Transport; Tue, 3 Jul 2018 10:03:19 +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 w63A3GAS024705 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 3 Jul 2018 03:03:18 -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, 3 Jul 2018 12:03:32 +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, 3 Jul 2018 12:03:32 +0200 Received: from lvloginb.cadence.com (localhost [127.0.0.1]) by lvloginb.cadence.com (8.14.4/8.14.4) with ESMTP id w63A3F42029301; Tue, 3 Jul 2018 11:03:15 +0100 Received: (from dkos@localhost) by lvloginb.cadence.com (8.14.4/8.14.4/Submit) id w63A3FWO029293; Tue, 3 Jul 2018 11:03:15 +0100 From: Damian Kos To: David Airlie , Rob Herring , "Mark Rutland" , Gustavo Padovan , Maarten Lankhorst , Sean Paul , Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Damian Kos , , , , , CC: , , , "Quentin Schulz" Subject: [PATCH 04/12] drm/dp: fix training interval formula for DP 1.3+ Date: Tue, 3 Jul 2018 11:02:15 +0100 Message-ID: <1530612152-27555-5-git-send-email-dkos@cadence.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1530612152-27555-1-git-send-email-dkos@cadence.com> References: <1530612152-27555-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)(136003)(396003)(346002)(376002)(2980300002)(3190300001)(36092001)(199004)(189003)(5660300001)(106466001)(105596002)(50226002)(47776003)(4326008)(7416002)(26826003)(478600001)(87636003)(336012)(36756003)(2906002)(14444005)(356003)(186003)(305945005)(7636002)(48376002)(50466002)(446003)(11346002)(426003)(486006)(2616005)(110136005)(76176011)(26005)(86362001)(42186006)(246002)(54906003)(51416003)(2201001)(316002)(8936002)(126002)(476003)(8676002)(16586007)(921003)(21314002)(83996005)(2101003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB2295;H:sjmaillnx1.cadence.com;FPR:;SPF:SoftFail;LANG:en;PTR:corp.cadence.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM05FT011;1:wLDfj8OHy2A1d0QGnKcJPYILFlStkgaSxtjashSsDdEkJr629WL7ufMgIrn5YS5QXhR8eC9NkVJrx7xjrsFegIyKWsTLklD6d6T5UfoUC8ZDxEoBjqcGKSzyiKW2aHz9 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 53fe9ef7-4065-46cd-f803-08d5e0cc3449 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:BY2PR07MB2295; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2295;3:o/xpRoQLXM4oOkmbwNAW/v1AHNwfRG7Q2qZ+d4ttOtxpJ6QJsOYNl22209RQknj91K66vbVk22C/Lk20ktuWYmPjd9c1GeT8jmR0K2pBRz2Bi3u0a8AFQy+M8vUmP4J/Uw30HDlvvLqtUP3o5yYVGUeazIaUZ7jAC3YPZMwkJDkgmXTI1slcPTKh0+mU90plf60UHNJ/MD8wA6785nR3wZhx4OWpNZtWUZ/dFYZUUoifGg5yNDxSXSq/a9nZsg40HClwkhSm5S0ghZV+xGM+aLTqK7hSZl0MjmMgjNtUegRZ9KEShtnFZoNfozC2gLVVUq695nMtwBEhz3hQy9miFJrzrj5N1OR5ldK4LPmfkCA=;25:TbR1vEzKjbq/Pkqt8zPLEMtairoOC8HeRMWQ4w7KGFoyMdveA60EbNF+6W/3HlvPMfcIdKQxvc5MjuOXIInoPEpwYKc4xWX6OMSRj+ldi8QOy44Kv8M38lh1SkPDlWLx/7It7Q0g4HthBCdzjkpY78TeGMTsWBq4An0g7yOT4eoTwJKiCO7Gl59aY4COgDDLr2kHVvB4bpYnOJkhIDwURghmx8mAVVhEjCjKb0f1XFe9K5p6DWyecoioY2zjdb17shNVKHOazfhnnSONQ21cgDQhyTvN11gpmQ5ux3swfAl4Hxf2m53AxgnK3hzFqdliEVyKSfrNERF4xPKpSR97pg== X-MS-TrafficTypeDiagnostic: BY2PR07MB2295: X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2295;31:ofZnDbpCtRM0HEP9rQFezgEkbz18Fg+m6rNG+8YG9XSAElrEpG/CsW53ApWt799bZ+fM6TyKWFPhRUS6isgutrTHTJMoUkKCgYG8rDQ4oCJF+45NLWXqjKS8tnZUXDd8QO9yaVw0E4dB3u5Ld9E25D0ukBvyKsincx1ifab5VBI/dY/b378a97e5ND0dnq3btChmiDk5SKvLERBIfdy0QvFPw/EySBJYxVsDjVODwDA=;20:H/vK8nxiXpmumypn0DoWDXCmDhnI8bNJxszH1c6z7UqJQaI6bkDhqkCMDRet8jAT5EYA2oxv0OClM3WIHevHw1bJcMHE7XOEKO75UfDzSQXn6WjDFtsIJROzgD+s479yoacoedr2Yg6k6mTiT24cYfQ0PxC4T8xQIjhwMDND0EcrSBLrobABsMK9yayBb7gohzi+OhB7nZVwLMN+FOt/b+GCwwuCSoUyLUDiyDjOWsn/PEjU7kbRW8Jes3trDytLn2Dtu71837+Rmq9GbDa7nTaUdgGd6yd6jg9JNfLOtOLpwWhyPO6XdVzZN+YHoXwzwa0AEQNcFc1U6YD7SI+EKyo1KbE9G9Gy9UwShPd0oDKSBHgLVENlsjNGXITmdvsRnGa8p8nPEa3Qns5KinJB+4S2jvcNTJQJD6sqEOBIHAkJBAwyXzvXK8/DDlbC1IXyfJetEiYLT9Xsjq5mdsyvO3GPWBdFIJRzQo0wXqszJ7bjZwTJfgVyLBv8V9dgtawt 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)(3231254)(944501410)(52105095)(93006095)(93003095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:BY2PR07MB2295;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB2295; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2295;4:S2yRKcZrDgRLVaN+5uMORNK2i6Alm69T6A49690aXCvHgw0ER5YibMKMwJx1Nyo+1TQFR1/gIl7h+Mj+N110QO70LrR6kJ8tFLNDKjGkLWtGe6c1hS9Alzl/d/VjnTRUoJLDVUkj7n1KkmHu36vH2sHNwCYUmtP5JovsTLzwkolMTgDDkgMiIhYJZz4l8Jz89mHd1vf0HfetZ1eCrm8a88/FoYpkQXAcCgL6ZihpV8iLrz03xA7gJzx7QF6ZeGhkTln6jUHMKLS5Ht0hJy93ywbX56ae9Lok0K4hkKVNELjGaDRKZqsTv0wStIYRTF/2hsqCSI9sr4IulhvazdEiTw== X-Forefront-PRVS: 0722981D2A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB2295;23:p+a5G4QdQOV00cWFBOgADWj3Ks7JgRL9abdbY4XdB?= =?us-ascii?Q?F/DqiO/phGuwGnipsK36rJ4lQPYqChXcXK7vRIrKoGkysYx8+KQh1A/tSaiH?= =?us-ascii?Q?ZR1WdX5O7Vd4rVSo11Aaje7yLwN9RzjZEh/Wo3Mamfk0g6/CqX8jdJiP0xCw?= =?us-ascii?Q?HNNUhLLbXtlFJzFBOL8IkvLiWllyUeXZW4gncRYYI36IUw0AYNm8vX5VP+2x?= =?us-ascii?Q?igwPDPlL7TZWLqQxHoQO6GbycbuAPaDvDo7ZO6JFv5K14isnoygmicnKABFb?= =?us-ascii?Q?2VjL3pDdjYWXUAUc+F3dRDIfRttpOWK8eb5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KOw9AAooB5Vk99y0N9t18wT6DtmySJzM73Lum/cuGd7AG/u2TDC8OGZSdNHoarHo5KO96XvWQvJREk1S+mBp++SOmXhNOQY8/V6k=;24:uQI4yyMOCdvGPNdhBGhN5SIkHkYo+dvl66ES3MhvCDIo3FB7qQvJTYRnpfmExgWwaraPTGghTSWBcvJ8t0sWb4Pi7S170r3+Wp419sP3/c0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB2295;7:fWokVq0A9kiPJsOgQqf/D4WdZGGOKfc9eYZxBo1KFqvtEq5dqpmduP5+31IlVBg2yjZu4Q7TLyUKhdo1NR68ctW6fdRM3vE1uDsxBEW/xU5Deqni5YzutViG0o5RxzgoSjy3ZdXf9v4ieLot5hhW/a5zo7AuOOGw5BmIThl0bPC1haZ8kR3Y3E+mCucm7aqVYv/wxVUdPqmVQ1pF7aYghukV+HNeU84BUPKE3JibqJTk0d+Tn2Cl6ob+KAVkN47m;20:wImM04Lkixxr56wTmX8/WXUNr0TMPAZRxPRwwk7+aQJIXNtMfCWW1LLpCXAepezhrtbyFtGP4nvGj0sCy6ikTuygouMiCcyaThLSgvoz2p/IQA2s3IZ+Cccv0AuYYE2dy5xM7xWMO3+OLBt65kwqFEHc86qvEMsq2nLwJWtu31ILG4tT1BaI7Kmw5VFkUcYJAYqdUxmXmFHLis1ANYeN20g4/gj6nRDN4G+YmihJSCx9QsRHknbMaS7P/zG77+Ra X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 10:03:19.6443 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 53fe9ef7-4065-46cd-f803-08d5e0cc3449 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: BY2PR07MB2295 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quentin Schulz In DP standard v1.2, DP_TRAINING_AUX_RD_INTERVAL DPCD "register" only has 0x0 to 0x4 values that are valid, the rest is reserved. In DP standard v1.3+, DP_TRAINING_AUX_RD_INTERVAL DPCD "register" has the same 0x0 to 0x4 valid values but there is an additional bit (bit 7) that specifies if there is an Extended Receiver Capability field or not. Thus, the formula for getting the training interval is now broken on DP 1.3+. Let's add a mask for the training interval and a define for the Extended Receiver Capability field presence. Signed-off-by: Quentin Schulz Signed-off-by: Damian Kos --- drivers/gpu/drm/drm_dp_helper.c | 14 ++++++++++---- include/drm/drm_dp_helper.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index ca2f469..7f5d568 100644 --- a/drivers/gpu/drm/drm_dp_helper.c +++ b/drivers/gpu/drm/drm_dp_helper.c @@ -149,18 +149,24 @@ void drm_dp_set_adjust_request_pre_emphasis(u8 link_status[DP_LINK_STATUS_SIZE], EXPORT_SYMBOL(drm_dp_set_adjust_request_pre_emphasis); void drm_dp_link_train_clock_recovery_delay(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) { - if (dpcd[DP_TRAINING_AUX_RD_INTERVAL] == 0) + unsigned int training_interval = dpcd[DP_TRAINING_AUX_RD_INTERVAL] & + DP_TRAINING_AUX_RD_INTERVAL_MASK; + + if (training_interval == 0) udelay(100); else - mdelay(dpcd[DP_TRAINING_AUX_RD_INTERVAL] * 4); + mdelay(training_interval * 4); } EXPORT_SYMBOL(drm_dp_link_train_clock_recovery_delay); void drm_dp_link_train_channel_eq_delay(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) { - if (dpcd[DP_TRAINING_AUX_RD_INTERVAL] == 0) + unsigned int training_interval = dpcd[DP_TRAINING_AUX_RD_INTERVAL] & + DP_TRAINING_AUX_RD_INTERVAL_MASK; + + if (training_interval == 0) udelay(400); else - mdelay(dpcd[DP_TRAINING_AUX_RD_INTERVAL] * 4); + mdelay(training_interval * 4); } EXPORT_SYMBOL(drm_dp_link_train_channel_eq_delay); diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 6e64b2a..bd593df 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -119,6 +119,8 @@ # define DP_DPCD_DISPLAY_CONTROL_CAPABLE (1 << 3) /* edp v1.2 or higher */ #define DP_TRAINING_AUX_RD_INTERVAL 0x00e /* XXX 1.2? */ +# define DP_TRAINING_AUX_RD_INTERVAL_MASK GENMASK(6, 0) +# 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) -- 1.7.1