From patchwork Thu Aug 22 22:46:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira Jordao X-Patchwork-Id: 11110209 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5D09D174A for ; Thu, 22 Aug 2019 22:46:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4426A21655 for ; Thu, 22 Aug 2019 22:46:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4426A21655 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 100356E562; Thu, 22 Aug 2019 22:46:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730066.outbound.protection.outlook.com [40.107.73.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A1276E3F5; Thu, 22 Aug 2019 22:46:14 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q+WCkYwC+a0Ifb/H1jOvU3uaR/cqAOB6yPH1wNMZzMhEMM7L/6iLIcTlR1pUfy0YIhfcRl/m7yqrtFlblLFA8O0Esf5h4EJg6nDfrk0I8I0FjNM/EY55OzDsSoZPM93eaRIMNgfOPFQYdWHj2fpMEqqls3ZsB3+SgVd63KpN6PXvFeNxytC47lyUAf4Rwpfi0t8aSs5CE0tyJ2vn3yVV4Df2aiiWM//6BW5WAoBBTh+AKG2mdZtb22bIw4WY6dyTIE0VyrE/AvI/mTEmJeYkOMobpbPLJ1efWXKXtz1Wxt8ywoeRUFujdrPikaUE5NlEazcy7NdgucFs/S5dbWQl3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UuiI1r2ywb4+E5QM5RXO+OIZFPu9fLI3FSIWXnUrrw0=; b=l9ZfgH2bLkAb4ALZt4sD4kzK+s/RLdImJRz4q8ZkY80cDGSQhQ9QSzO8ub8VNoFsmYSF7zo3hr00Epw/TOrhoXTsNNq+JPZ7QSQEM7WK/2Y/sqY329q//1PyB2+qv0uFYzcyqCHn4WGkdCrVt+oWBVkoPTooB0X8ywdqrp7+01EmsbRE8W6Ht7ZQ+93AuIueMMQ/A+pciU2lnh8sAPWgHZm8EZ3Iwl0dF8dSmYYE+vamrxEVAvQ4NhYVJBuM3qDts8C+xB0+eMV17XPZPI8xA1VBgXmkCbaL5O6HU9Pj8D8YPRlTFsMKFcj4/82GA92wXq1n5o+iXyANUJQ+50nUtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none Received: from CY4PR1201MB0086.namprd12.prod.outlook.com (10.172.75.146) by CY4PR1201MB2548.namprd12.prod.outlook.com (10.172.120.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Thu, 22 Aug 2019 22:46:12 +0000 Received: from CY4PR1201MB0086.namprd12.prod.outlook.com ([fe80::1dca:a430:30e9:2335]) by CY4PR1201MB0086.namprd12.prod.outlook.com ([fe80::1dca:a430:30e9:2335%5]) with mapi id 15.20.2178.020; Thu, 22 Aug 2019 22:46:12 +0000 From: "Siqueira, Rodrigo" To: "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" Subject: [PATCH] drm: Add LTTPR defines for DP 1.4 Thread-Topic: [PATCH] drm: Add LTTPR defines for DP 1.4 Thread-Index: AQHVWTtlZ/MqugNHyEyjQDzi8fC43Q== Date: Thu, 22 Aug 2019 22:46:12 +0000 Message-ID: <20190822224607.m73g3a2a23zww644@outlook.office365.com> Accept-Language: en-CA, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-clientproxiedby: YTXPR0101CA0017.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00::30) To CY4PR1201MB0086.namprd12.prod.outlook.com (2603:10b6:910:17::18) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.55.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a53b2154-4eef-46da-35b3-08d72752884f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(49563074)(7193020); SRVR:CY4PR1201MB2548; x-ms-traffictypediagnostic: CY4PR1201MB2548: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:549; x-forefront-prvs: 01371B902F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(396003)(136003)(346002)(39860400002)(199004)(189003)(14454004)(2501003)(1076003)(86362001)(316002)(99936001)(54906003)(71200400001)(7736002)(26005)(71190400001)(2906002)(5660300002)(305945005)(110136005)(3846002)(6116002)(102836004)(66066001)(478600001)(4326008)(66946007)(486006)(386003)(53936002)(66446008)(81166006)(8676002)(9686003)(6512007)(8936002)(476003)(186003)(52116002)(6436002)(66616009)(99286004)(450100002)(6486002)(14444005)(66476007)(66556008)(64756008)(6506007)(81156014)(25786009)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1201MB2548; H:CY4PR1201MB0086.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: fJn07iYjXLyxIoOz1A3r1UGpb4pnwCnx75N/snFSHa28Rhf35ZqZ+bcP2QjAUeWGKh3V/b1KljhGmSjsJd9De8s9OLrv9Ma6a0+nhKoKThdKcKjyWgR02P0NwL2f1BKLFZh8Gw/BKffFTpjAnTNh+qadzMThsfLAR+Bs4henA5TO78xGlIBATy1qpn9kU99mWFJAM5MlTSlkNM6dyMeLBipaoV9bAXhu0prMGhgydkd6n19JtVEqx6iDNv5I1P5BoqpQmTw95akBML4V2UV+5lxIvuGFo5IzsuUEUgi31Xcv4HwzNIa5+/+sN21xMT3qfFq0FaOrDI5GoeyJE+Mi/EChzECp3j6vs1cfcnYcMXlfjzH5qa9owy7UptlvZEcIIZIltRGRNbZPNQKgM6ojQR9gaEhm4U/EPEsQlqSIyM0= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a53b2154-4eef-46da-35b3-08d72752884f X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2019 22:46:12.5457 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lvb/W1bbjt57WPH8c08z81xKvtp5wWadCMtrdXhiYRfvESbShuWOFAXkj/MZ50miI7OQI6Gm1jRYEKEvBW6+dw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB2548 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UuiI1r2ywb4+E5QM5RXO+OIZFPu9fLI3FSIWXnUrrw0=; b=vg7Vlj/C0roWQoAahxMHnG/mmjUx8mHXrCCUasmcLL7qDdTAPlo9e/SHs9UsK+YRBuOTw2SxGPWIv0qYiBO4DMuYav3r65dKuWXLdk1FlVkPmegnM2j26qi+sE3hUg1waUKSWIspYjekvAi7Hx0ZnwgHfHEUK7xFvyRKkvTbMMo= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rodrigo.Siqueira@amd.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Li, Sun peng \(Leo\)" , "Berthe, Abdoulaye" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" DP 1.4 specification defines Link Training Tunable PHY Repeater (LTTPR) which is required to add support for systems with Thunderbolt or other repeater devices. Cc: Abdoulaye Berthe Cc: Harry Wentland Cc: Leo Li Signed-off-by: Rodrigo Siqueira Signed-off-by: Abdoulaye Berthe --- include/drm/drm_dp_helper.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 8364502f92cf..8336d960da7f 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -134,6 +134,32 @@ #define DP_SUPPORTED_LINK_RATES 0x010 /* eDP 1.4 */ # define DP_MAX_SUPPORTED_RATES 8 /* 16-bit little-endian */ +/** Link Training (LT)-tunable Physical Repeaters - DP 1.4 **/ +#define DP_LTTPR_REV 0xf0000 +#define DP_LTTPR_MAX_LINK_RATE 0xf0001 +#define DP_LTTPR_REPEATER_CNT 0xf0002 +#define DP_LTTPR_REPEATER_MODE 0xf0003 +#define DP_LTTPR_MAX_LANE_CNT 0xf0004 +#define DP_LTTPR_EXTENDED_WAIT_TIMEOUT 0xf0005 +#define DP_LTTPR_TRAINING_PATTERN_SET_REPEATER1 0xf0010 +#define DP_LTTPR_TRAINING_LANE0_SET_REPEATER1 0xf0011 +#define DP_LTTPR_TRAINING_LANE1_SET_REPEATER1 0xf0012 +#define DP_LTTPR_TRAINING_LANE2_SET_REPEATER1 0xf0013 +#define DP_LTTPR_TRAINING_LANE3_SET_REPEATER1 0xf0014 +#define DP_LTTPR_TRAINING_AUX_RD_INTERVAL_REPEATER1 0xf0020 +#define DP_LTTPR_TRANSMITTER_CAPABILITY_REPEATER1 0xf0021 +#define DP_LTTPR_LANE0_1_STATUS_REPEATER1 0xf0030 +#define DP_LTTPR_LANE2_3_STATUS_REPEATER1 0xf0031 +#define DP_LTTPR_LANE_ALIGN_STATUS_UPDATED_REPEATER1 0xf0032 +#define DP_LTTPR_ADJUST_REQUEST_LANE0_1_REPEATER1 0xf0033 +#define DP_LTTPR_ADJUST_REQUEST_LANE2_3_REPEATER1 0xf0034 +#define DP_LTTPR_SYMBOL_ERROR_COUNT_LANE0_REPEATER1 0xf0035 +#define DP_LTTPR_SYMBOL_ERROR_COUNT_LANE1_REPEATER1 0xf0037 +#define DP_LTTPR_SYMBOL_ERROR_COUNT_LANE2_REPEATER1 0xf0039 +#define DP_LTTPR_SYMBOL_ERROR_COUNT_LANE3_REPEATER1 0xf003b +#define DP_REPEATER_CONFIGURATION_AND_STATUS_OFFSET 0x50 +#define DP_LTTPR_FEC_STATUS_REPEATER1 0xf0290 + /* Multiple stream transport */ #define DP_FAUX_CAP 0x020 /* 1.2 */ # define DP_FAUX_CAP_1 (1 << 0)