From patchwork Tue Jun 18 08:10:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Qian Wang X-Patchwork-Id: 11001179 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD6EC1580 for ; Tue, 18 Jun 2019 08:10:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEECA2870D for ; Tue, 18 Jun 2019 08:10:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC344289A3; Tue, 18 Jun 2019 08:10:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 63C792870D for ; Tue, 18 Jun 2019 08:10:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C19C96E10A; Tue, 18 Jun 2019 08:10:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0617.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::617]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D9C96E10F for ; Tue, 18 Jun 2019 08:10:36 +0000 (UTC) Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB5007.eurprd08.prod.outlook.com (10.255.159.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.13; Tue, 18 Jun 2019 08:10:33 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::206b:5cf6:97e:1358]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::206b:5cf6:97e:1358%7]) with mapi id 15.20.1987.014; Tue, 18 Jun 2019 08:10:33 +0000 From: "james qian wang (Arm Technology China)" To: Liviu Dudau , "airlied@linux.ie" , Brian Starkey , "maarten.lankhorst@linux.intel.com" , "sean@poorly.run" Subject: [PATCH 0/2] drm/komeda: Enable dual-link support Thread-Topic: [PATCH 0/2] drm/komeda: Enable dual-link support Thread-Index: AQHVJa1NqbKKPTtzuUuByLzGLbgDCg== Date: Tue, 18 Jun 2019 08:10:33 +0000 Message-ID: <20190618081013.13638-1-james.qian.wang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK2PR0401CA0002.apcprd04.prod.outlook.com (2603:1096:202:2::12) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4c2a2eb0-9d4d-4d48-5334-08d6f3c46f73 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VE1PR08MB5007; x-ms-traffictypediagnostic: VE1PR08MB5007: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 007271867D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(346002)(39860400002)(376002)(366004)(199004)(189003)(66446008)(66556008)(54906003)(7736002)(2201001)(66066001)(305945005)(68736007)(386003)(103116003)(55236004)(6506007)(110136005)(14454004)(102836004)(52116002)(8936002)(25786009)(53936002)(316002)(2906002)(478600001)(86362001)(4326008)(81166006)(476003)(6436002)(81156014)(186003)(8676002)(6116002)(256004)(50226002)(6512007)(486006)(99286004)(2616005)(26005)(6486002)(73956011)(36756003)(2501003)(3846002)(66946007)(71200400001)(71190400001)(5660300002)(66476007)(1076003)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB5007; H:VE1PR08MB5006.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: omGKtdQMYhsv7CyOVRFvtTH0e0bcQqutSCKBiHxwtDSlR+O2pi0HY/f7tsiBqxtRH07MTP+yhHB24p/M/d0sHHNFHTSYXwVT1o+WH+W/Z8DnA7GbjG4H8clOpQM1EZzZQ8krppJF7bjvDu1bb9lu54HPhFvmtNTrDxc671bBbD8Bx3Fb9U1LuvXbX4SeoFVPojOzJ2CGBO+cPxHlcCRcz6ZGI6+JrJUuQl0dUVSLwsGrQ0Z1IBsMibKFH/YvvqDRgEQIx3RK+zmeOPh4T/PzB/zgxTseTawXXqcMw6Zhdp68Q8Ieq9EyW+/+e/eGOaxXxG/uWbz0filZbR+SeszE3eJ1aRQodeZeTs8UQOMZfi2LhmesCzD6EkRkQg9c17vNFUmwNU8Lm3yQ9Nc96xMk5YzYuhYZ7T/T8U8arYFUn7I= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c2a2eb0-9d4d-4d48-5334-08d6f3c46f73 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2019 08:10:33.4718 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: james.qian.wang@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5007 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vV3rnIsRt5YAypvnkdbPOeNRNuzNgqqrwOPmScx89fw=; b=BQXRxeO3nL/1LMrkrsT392u+8ks5i8Q7mTea3vvotRNsgFlAQXvkLHL/1Kry9oTNH/shxShth/vZtVxGMxu7TyO6rTMNL4wSp61VGGr5AYNizvtqJoTXKt+vsVOviJDB1+tFHWzp1WI9X8O49f2ReyT9vQGkdgu/Nf/T5AEXjBg= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.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: nd , Ayan Halder , "Oscar Zhang \(Arm Technology China\)" , "Tiannan Zhu \(Arm Technology China\)" , "Jonathan Chai \(Arm Technology China\)" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "Julien Yin \(Arm Technology China\)" , "Channing Chen \(Arm Technology China\)" , "james qian wang \(Arm Technology China\)" , "Yiqi Kang \(Arm Technology China\)" , "thomas Sun \(Arm Technology China\)" , "Lowry Li \(Arm Technology China\)" , Ben Davis Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Komeda HW can support dual-link which splits display frame to two halves (left/link0, right/link1) and output them by two output links. Due to the halved pixel rate of each link, the pxlclk of dual-link can be reduced two times compare with single-link. For enabling dual-link: - The DT need to configure two output-links for the pipeline node. - Komeda enable dual-link when both link0 and link1 have been connected. Example of how the pipeline node will look like for dual-link setup pipe0: pipeline@0 { clocks = <&fpgaosc2>; clock-names = "pxclk"; reg = <0>; #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; dp0_pipe0_link0: endpoint@0 { reg = <0>; remote-endpoint = <&dlink_connector_in0>; }; dp0_pipe0_link1: endpoint@1 { reg = <1>; remote-endpoint = <&dlink_connector_in1>; }; }; }; James Qian Wang (Arm Technology China) (2): drm/komeda: Use drm_display_mode "crtc_" prefixed hardware timings drm/komeda: Enable dual-link support .../arm/display/komeda/d71/d71_component.c | 42 +++++---- .../gpu/drm/arm/display/komeda/komeda_crtc.c | 89 +++++++++++++------ .../gpu/drm/arm/display/komeda/komeda_dev.c | 5 +- .../gpu/drm/arm/display/komeda/komeda_drv.c | 8 +- .../gpu/drm/arm/display/komeda/komeda_kms.h | 4 +- .../drm/arm/display/komeda/komeda_pipeline.c | 19 +++- .../drm/arm/display/komeda/komeda_pipeline.h | 6 +- .../display/komeda/komeda_pipeline_state.c | 2 +- 8 files changed, 118 insertions(+), 57 deletions(-) --- 2.17.1