From patchwork Mon Jun 10 10:15:49 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: 10984603 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 F3C8E14E5 for ; Mon, 10 Jun 2019 10:15:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E255928668 for ; Mon, 10 Jun 2019 10:15:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D21C32876E; Mon, 10 Jun 2019 10:15:56 +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 7DD9F28668 for ; Mon, 10 Jun 2019 10:15:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F147890B6; Mon, 10 Jun 2019 10:15:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80048.outbound.protection.outlook.com [40.107.8.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D0EE890B6 for ; Mon, 10 Jun 2019 10:15:52 +0000 (UTC) Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4975.eurprd08.prod.outlook.com (10.255.158.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.13; Mon, 10 Jun 2019 10:15:49 +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.1943.026; Mon, 10 Jun 2019 10:15:49 +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 v2 0/3] drm/komeda: Add layer split support Thread-Topic: [PATCH v2 0/3] drm/komeda: Add layer split support Thread-Index: AQHVH3V5MpmoS19BK0+4wpZnVdW8Dg== Date: Mon, 10 Jun 2019 10:15:49 +0000 Message-ID: <20190610101528.25942-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: HK2PR02CA0140.apcprd02.prod.outlook.com (2603:1096:202:16::24) 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: ecf33004-061c-4004-abf2-08d6ed8c9c17 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:VE1PR08MB4975; x-ms-traffictypediagnostic: VE1PR08MB4975: x-ms-exchange-purlcount: 2 nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 0064B3273C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(136003)(366004)(376002)(346002)(199004)(189003)(3846002)(8676002)(81156014)(316002)(110136005)(103116003)(53936002)(186003)(26005)(81166006)(6436002)(71200400001)(55236004)(68736007)(2501003)(4326008)(6306002)(66946007)(2906002)(478600001)(8936002)(99286004)(25786009)(50226002)(966005)(6512007)(66066001)(305945005)(6506007)(386003)(486006)(5660300002)(54906003)(2201001)(66476007)(66446008)(102836004)(66556008)(64756008)(6116002)(52116002)(7736002)(476003)(6486002)(36756003)(2616005)(86362001)(73956011)(256004)(1076003)(14454004)(71190400001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4975; 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: 4Qihnmqckd7TuLVuWIc/fCD3FIaZ9SNMowHU5ODfyANnWj07mAyPG93iGRgRcFLIPYxR4GHvvHzLjomqsh4+he1szs680kplIkVZG5UKhvV4c1TJF6H6WPhukfipFhuiE29onEXQpI1Ho14iWWXArr0Vp69PSQObsn2R9vMFZD1cXl7snOru82wkUonwOb976m91RWaVNm+HOV7QoQqdGvid71QHu9aD4DwOE+BSR6qbHMx49EQq2Ryb03WZcmwyuug2h2mHA+JTV4y5bgt71DM81bfPN2xhEUjYFUHJBXvtG//rMk48Qx0jsUMqc7wARU8jZLFqVOgTSbxjsj7z83xehN0Qgakf4v5Y2kcsUUGvKvL6aVMusfmCb7z4WaSeS+4C3MtUQ5RycIRnQGLkq/h/8mIC5QK67Nv0GO5q5D0= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecf33004-061c-4004-abf2-08d6ed8c9c17 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2019 10:15:49.3333 (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: VE1PR08MB4975 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=bAl7DjD2PKrxucr7PykQE96DtPiGvt4RIskZTqhJ4qA=; b=V4nZ6bgClRFilG2ZqcU4DYA4k1HKUXWMfvgvQxnpa1AUAo2OrzRPcGga0329KhlS+G8bFUkg2aaQOrFD1gzEXnIwqQytoLuzFQtM6Ie5R9EW8bdys71zDpj5nwFzQN4q5Hobd1NEyE/YR55qLR+NKBNHnNAzDWRK1c3aolvalSM= 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 This patch series add laye split support for komeda. For layer split, a plane state will be split to two data flows and handled by two separated komeda layer input pipelines. komeda supports two types of layer split: - none-scaling split: / layer-left -> \ plane_state compiz-> ... \ layer-right-> / - scaling split: / layer-left -> scaler->\ plane_state merger -> compiz-> ... \ layer-right-> scaler->/ Since merger only supports scaler as input, so for none-scaling split, two layer data flows will be output to compiz directly. for scaling_split, two data flows will be merged by merger firstly, then merger outputs one merged data flow to compiz. This patch series depends on: - https://patchwork.freedesktop.org/series/60767/ - https://patchwork.freedesktop.org/series/60838/ v2: Rebase and addressed Liviu's comments james qian wang (Arm Technology China) (3): drm/komeda: Add component komeda_merger drm/komeda: Add split support for scaler drm/komeda: Add layer split support .../arm/display/komeda/d71/d71_component.c | 121 ++++++- .../gpu/drm/arm/display/komeda/komeda_kms.c | 8 + .../gpu/drm/arm/display/komeda/komeda_kms.h | 22 +- .../drm/arm/display/komeda/komeda_pipeline.c | 26 +- .../drm/arm/display/komeda/komeda_pipeline.h | 49 ++- .../display/komeda/komeda_pipeline_state.c | 318 +++++++++++++++++- .../gpu/drm/arm/display/komeda/komeda_plane.c | 33 +- .../arm/display/komeda/komeda_private_obj.c | 49 +++ .../arm/display/komeda/komeda_wb_connector.c | 2 +- 9 files changed, 600 insertions(+), 28 deletions(-) --- 2.17.1