From patchwork Mon May 20 10:44:34 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: 10950825 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 742F476 for ; Mon, 20 May 2019 10:44:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59FDD287C0 for ; Mon, 20 May 2019 10:44:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46E6E287C2; Mon, 20 May 2019 10:44:41 +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 961D7287C0 for ; Mon, 20 May 2019 10:44:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8AD298911D; Mon, 20 May 2019 10:44:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on0627.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::627]) by gabe.freedesktop.org (Postfix) with ESMTPS id 835788911D for ; Mon, 20 May 2019 10:44:37 +0000 (UTC) Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4767.eurprd08.prod.outlook.com (10.255.113.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Mon, 20 May 2019 10:44:34 +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.1900.020; Mon, 20 May 2019 10:44:34 +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/3] drm/komeda: Add layer split support Thread-Topic: [PATCH 0/3] drm/komeda: Add layer split support Thread-Index: AQHVDvkDtOK3o4B/4UaUGSTqkjSQfg== Date: Mon, 20 May 2019 10:44:34 +0000 Message-ID: <20190520104411.6092-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: HK0PR03CA0057.apcprd03.prod.outlook.com (2603:1096:203:52::21) 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: 9f663c2d-3d67-48f3-0238-08d6dd1025c0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR08MB4767; x-ms-traffictypediagnostic: VE1PR08MB4767: x-ms-exchange-purlcount: 2 nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 004395A01C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(396003)(366004)(346002)(376002)(199004)(189003)(66476007)(81156014)(316002)(68736007)(476003)(81166006)(8936002)(53936002)(66066001)(256004)(8676002)(55236004)(4326008)(110136005)(52116002)(386003)(6506007)(14454004)(2906002)(73956011)(66556008)(64756008)(6116002)(3846002)(71190400001)(54906003)(50226002)(102836004)(71200400001)(66946007)(99286004)(486006)(6486002)(36756003)(186003)(25786009)(66446008)(5660300002)(7736002)(2616005)(6512007)(103116003)(1076003)(6436002)(305945005)(86362001)(2201001)(2501003)(478600001)(26005)(6306002)(966005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4767; 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: /fD8r90wiCNa9av2x53sWMyD2VJd1k04M9C7dAHM8HUlrvpnTpH4/9+FBHs3cH5r/1MQ7p/piEKisRBez7NyyT9kC4cpBy2MR/YuctxMDS7yubGk8HGQddrjHWAl59uLMBrFZwKMpdcw4+9R4ZmQOn664RhpOrOPM9OcgUQh7jsYWU9Dvv3QqnvR7p6YlTJYTnWMDJ8CGum/Og9SXhVSZRs5hWMvqptc0VFfOdw+6ll6omc5mv9RHhNsSi8XLAfTsAi3C/yIaCsjzBRqcXOoTse4VWkYzDL+R6rJRPY94o/iFCM9tK12uhiIC1nOKNs99c6VSlgrjDnU4U54jIUM9tSUUDF8JqsrZoWNOcFlYOKjfxivUoGksAw7dj0pKsfqtzFFUgM/wuS/O1nVwCYpKb+IXL4Qe8e73TE9+EGFtoE= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f663c2d-3d67-48f3-0238-08d6dd1025c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2019 10:44:34.7136 (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-Transport-CrossTenantHeadersStamped: VE1PR08MB4767 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=8VvXcfuTQRrLIHnhLaFP4e3YQmqf87JBYLKxNXczcqA=; b=CQFaKgimWW/htVmdh992QnI9DsJ7WlqNlnIsVoa9bErC5rccbdr2Q94+1mPDNE4B7mM5tR1QtY7f0UtMACpZ5Ihi23D99Jxjhgh4mHI+YUDvAUvbbn/gjt+MlcyUoy/f+owOPBndo3ePsF7yQGv9pS9+twqwW7uf257Q+qA8OSw= 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/ 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 | 321 +++++++++++++++++- .../gpu/drm/arm/display/komeda/komeda_plane.c | 32 +- .../arm/display/komeda/komeda_private_obj.c | 49 +++ .../arm/display/komeda/komeda_wb_connector.c | 2 +- 9 files changed, 602 insertions(+), 28 deletions(-)