Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1714764ybl; Thu, 5 Dec 2019 06:01:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwWMt2w3tTVzACB3YF4+/nfjeBN+C8AoPs7vQKCHHAIj0bP21cn5rib8GJXGcnNGjghQcBn X-Received: by 2002:a9d:4789:: with SMTP id b9mr6854778otf.110.1575554481138; Thu, 05 Dec 2019 06:01:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575554481; cv=pass; d=google.com; s=arc-20160816; b=rhguGg4v578f4+bryBC27Ro5B88WaVoyN7KUn/GYoInbi/pEdrcTCq9d2EkGubNRPi rKI0qVe00o+binvNCu4x+qUWD3o37Yn4OJGKWnCjGEgt20KcdW7ymvUV5fgr7hn/87NG Pn+xIuwFi/WTTLY30tmF0eF1RJkKu4YLwuccDmeivEnNsgLE0I7RXlhnbWnVgS6MaG4g I3DNY82vL49GaSqVQw4iI6KdHxY/ZXgzKOYkq/KbFQhghjtGL50FfD30jWghuHbyCUH4 nOSLVN9Dui07JoX0WZUl6veygUEd8CyxD2ns0Pd93Ns+Og6dwB5PC7ieSUAD3oJh44Ip ozEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=iPSgCF0bDbaGGuDXPkgPrDC/dx5gll6gGJoDCKKUmSE=; b=Scx9XGEj8yCZ54T66Z0bAExQunRIHlZJ5/ZkFBdmvhbRqwDBQ7DVYNs7gCk78zPZIC h5wsJhsgkLbQQBT80UYmHj9jS7cR1hs934mdCY4my2xQH0uomDm2cs9/aWOiqSCNbpSG CUsMKQeXirTJDDWE3HJJMegqbhIjFVpvQnc+XcKsD2LPpvR1FRYLqAaYWgjbp6c6sstc rYWQoYYM9XpchRSoC8bFtu+ppGftZxR6UJSmGfuIbVuyYLotesQvp1XjNq4l5Yp2OauE rO4pAOdstEym/I8E7a1fgeDSYsUZ1nslVD0OsUVwNGdExnIlsVJnucjEjGtngJQWPkG9 801A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=xfXtG3R0; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si4724835oti.325.2019.12.05.06.01.05; Thu, 05 Dec 2019 06:01:21 -0800 (PST) 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=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=xfXtG3R0; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729290AbfLEN72 (ORCPT + 99 others); Thu, 5 Dec 2019 08:59:28 -0500 Received: from mail-dm6nam12on2048.outbound.protection.outlook.com ([40.107.243.48]:6269 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729099AbfLEN71 (ORCPT ); Thu, 5 Dec 2019 08:59:27 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Njv3+xiXeyO6oiHiyu6fKoksYYBCRZmH9j5YYlP/cLbi5jBJVQl1XhRuprsAM21LWNKNgn0CIsl64ubo7BPidYJLO/Pbdm4l3Kg5USYqVboJdTPECJqS7lLtVxwmWQVKlL+/OMeGz5JHLC95+5KRDOOFDTesMftLeyTwD/xQ+by76OEemFpXqKpjkgnmB5Ufyh3fJBtUXLDE/u9coNvGWOZAPPPsUisl8vUu5UwbrEx9Qyy2v+ZHCa9XBeV8B7r7NHX73bCHqyTZjaKoL8mrg8crk/OruaUqxRvZZi3wbtAMNdqmzyWyEIzJYXZAtgSgOf8TpIDypTQv+vAPLEsx9Q== 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=iPSgCF0bDbaGGuDXPkgPrDC/dx5gll6gGJoDCKKUmSE=; b=TWNr6rMgpgdlDcFKvNYRch8M8tuuMs1LORv23Mk+8ysPlPLnhfIin6sH/dftA1rM2ouYnk5/vV+qOaYyJlQpvAntg993FYvsLZ22orGPMgzbW0nIfG7W1ykpA5S4pBn8VUKYvEW08hSFPfEIJwnk7IMm5AB487KoCA0R7elMEBXBx/8BYhYWV13LbpBx07O1ZK3iudbqixoDOAn656FPve8jJK3vgvowrdpuCTgmaBnz2KqRbhCUyNys/sapq7Ov5x5N5t9vJli8YYRYvSA2wMexu2JHiJa4Yfs1dIuuPwS0/mk2pnmZ/gNSCHsSM2YipQd15Zh+E/THubWIvRAlGQ== 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 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=iPSgCF0bDbaGGuDXPkgPrDC/dx5gll6gGJoDCKKUmSE=; b=xfXtG3R05pImyRFkhgDLpByCS4vAWuQTm4BJAl0w+ay9BZJVw0mjcfY+PYmCn+DE0FrVMGMVg5S89nIgabadgBGZlDMpi9kCNDWZWsJMprbbYvsJwWSMi5v3eiDcZ0r0nHOlu0Hag6dlmqKayKLY+DpM2p9mbZ88Ve1tB9c2Eks= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rodrigo.Siqueira@amd.com; Received: from MW2PR12MB2524.namprd12.prod.outlook.com (52.132.180.155) by MW2PR12MB2412.namprd12.prod.outlook.com (52.132.180.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.20; Thu, 5 Dec 2019 13:59:24 +0000 Received: from MW2PR12MB2524.namprd12.prod.outlook.com ([fe80::3d1f:4c20:e980:6e69]) by MW2PR12MB2524.namprd12.prod.outlook.com ([fe80::3d1f:4c20:e980:6e69%5]) with mapi id 15.20.2495.014; Thu, 5 Dec 2019 13:59:23 +0000 From: Rodrigo Siqueira To: =dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org Cc: Abdoulaye Berthe , Harry Wentland , Leo Li , Jani Nikula , Manasi Navare , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Nikola Cornij Subject: [PATCH] drm: Add FEC registers for LT-tunable repeaters Date: Thu, 5 Dec 2019 08:58:56 -0500 Message-Id: <20191205135856.232784-1-Rodrigo.Siqueira@amd.com> X-Mailer: git-send-email 2.24.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YTBPR01CA0001.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::14) To MW2PR12MB2524.namprd12.prod.outlook.com (2603:10b6:907:9::27) MIME-Version: 1.0 X-Mailer: git-send-email 2.24.0 X-Originating-IP: [165.204.55.250] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5a46d220-c8d3-4674-4103-08d7798b5528 X-MS-TrafficTypeDiagnostic: MW2PR12MB2412:|MW2PR12MB2412: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:254; X-Forefront-PRVS: 02426D11FE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(346002)(136003)(366004)(39860400002)(189003)(199004)(25786009)(66946007)(305945005)(6666004)(99286004)(66556008)(66476007)(1076003)(2906002)(5660300002)(316002)(2870700001)(54906003)(36756003)(50466002)(81156014)(26005)(8936002)(8676002)(2616005)(86362001)(6506007)(81166006)(186003)(14454004)(4326008)(6512007)(50226002)(478600001)(6486002)(52116002)(23676004);DIR:OUT;SFP:1101;SCL:1;SRVR:MW2PR12MB2412;H:MW2PR12MB2524.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OETMpivXujzxzoLTq5YY7zPUurG+stNSdZID4eY2hq/x/AqMytPgbGC9VhbHy+WDY3hNAHUojexL+Idu/tCVeZUYPZFMWX2zXrYRrFCxxtQFy1Yqo7fVmxLsP6bnJv4fEN9vSoihsMuKydsNTfa4DArZZbmVHK+MqEb6R9OR1Y3s/vevCvHM4EvYbq0eNxIHiQoVFW/I+scr1Jm3/j2zYgOD3QPLnvoIgrub2psRxCNaL1lF8TsRK7MEMmnJMSYFRWbkqd0BGPKz8cGlOOqLJi8Hvup6aErw6kzFQ3YDyidwkQqF7Q4e8opxPf77z1KXrg8OkbpVUMKCvBst8iB2ssOalomkK1EhPgdbq0gcWLR5+Ufo6WOxevodzVAI2bZAVsTOgdEWidMcbLyA3lbNgIZVlIOLNGHYMeRElk7XFfvriLgP9ElwH0oJpX6wAU/Z X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a46d220-c8d3-4674-4103-08d7798b5528 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2019 13:59:23.5129 (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: p00bcORxNLVkpIcCplJ6YugNtsqr+RSwBT6e/DoF2QLAcUt0ER7AOUC+UJJp3NQvnWV6MbBGd9BrTaGM/hcpFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2412 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FEC is supported since DP 1.4, and it was expanded for LT-tunable in DP 1.4a. This commit adds the address registers for FEC_ERROR_COUNT_PHY_REPEATER1 and FEC_CAPABILITY_PHY_REPEATER1. Cc: Abdoulaye Berthe Cc: Harry Wentland Cc: Leo Li Cc: Jani Nikula Cc: Manasi Navare Cc: Ville Syrjälä Signed-off-by: Abdoulaye Berthe Signed-off-by: Rodrigo Siqueira --- include/drm/drm_dp_helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 51ecb5112ef8..b2057009aabc 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -1042,6 +1042,8 @@ #define DP_SYMBOL_ERROR_COUNT_LANE2_PHY_REPEATER1 0xf0039 /* 1.3 */ #define DP_SYMBOL_ERROR_COUNT_LANE3_PHY_REPEATER1 0xf003b /* 1.3 */ #define DP_FEC_STATUS_PHY_REPEATER1 0xf0290 /* 1.4 */ +#define DP_FEC_ERROR_COUNT_PHY_REPEATER1 0xf0291 /* 1.4 */ +#define DP_FEC_CAPABILITY_PHY_REPEATER1 0xf0294 /* 1.4a */ /* Repeater modes */ #define DP_PHY_REPEATER_MODE_TRANSPARENT 0x55 /* 1.3 */ -- 2.24.0