From patchwork Thu Dec 5 08:35:37 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: 11274347 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 76EA5109A for ; Thu, 5 Dec 2019 08:35:52 +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 5D93D24249 for ; Thu, 5 Dec 2019 08:35:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D93D24249 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.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 2D6446F5D1; Thu, 5 Dec 2019 08:35:51 +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-eopbgr140083.outbound.protection.outlook.com [40.107.14.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5797E6F5D1 for ; Thu, 5 Dec 2019 08:35:49 +0000 (UTC) Received: from DB6PR0801CA0048.eurprd08.prod.outlook.com (2603:10a6:4:2b::16) by DB7PR08MB3259.eurprd08.prod.outlook.com (2603:10a6:5:1f::21) 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 08:35:46 +0000 Received: from DB5EUR03FT009.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::201) by DB6PR0801CA0048.outlook.office365.com (2603:10a6:4:2b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.13 via Frontend Transport; Thu, 5 Dec 2019 08:35:46 +0000 Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT009.mail.protection.outlook.com (10.152.20.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18 via Frontend Transport; Thu, 5 Dec 2019 08:35:45 +0000 Received: ("Tessian outbound 5574dd7ffaa4:v37"); Thu, 05 Dec 2019 08:35:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ea84697a14331f00 X-CR-MTA-TID: 64aa7808 Received: from ae5c1a33a848.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 06CA67F3-662C-4EE0-977A-0F5187108D0D.1; Thu, 05 Dec 2019 08:35:40 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ae5c1a33a848.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 05 Dec 2019 08:35:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FAZYEjOFA692MRBN82kEyT24M0AKvgxAqEPWPGkOmyJ6vPyI66e+cfP4dKIKDbx1d2Yell2NxsiAiwE6Ajl3vmmlZUL7y6t4kyGKlgSFXLvTKkPXEdHhAi5oWApTmMEuYAqC7B5WaxujMRluPoI4sG94ozmD6apiKRRHzpDQgeiHh1OGzHYJnOw5UdFPrj/GXibMojQ9+/Uz0DjfngiRxyMgH+qMyd+3smFLwbdmnFcBRnIU++HKDqKx6Uo1j2RwptYKqKQ/0O3d+N0YtGSDHmWj9pRDOk3fBxxgHTIZt7N+L/gtUzaDhyS0gegwc/qoPaj97Us1Mw0vLp7wRciOwQ== 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=tQkcOiJ1zh/q5YY5FqAhKqjxh02a7M7mSd82rVg0QMw=; b=iW4KWaCF3WAQxlsdKyZH42kqTAQli2yXH8CJDsLawA4RwUy/Q03Yic+GOfKz9lvohpUN9gtDWe4MxM+Nf5hX97cbLV2EA6Z/K7/jKg38DKNoWXb3FVxdFRjPZo9Qr7Qg80YkewcTqeqLS2CCDAl/IZyq7NggyefhG5TPF4Hgd+Qr0f8E5BQC6d+zWKDyysj5Ojl3Pmw+0CK7dTqRxPC/f+KjungH8k1bzGIkwioohY8IqJJmMBlvu6ciilQK0Mc98g3TbTdZIMnRpq7N5Apfbfz6SUDgOfQlRz0LcteTglldRIpFa1J1bma2R0+M60CFGRC4huuPU+rWl4b85URKzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by AM0SPR01MB0047.eurprd08.prod.outlook.com (20.179.32.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.12; Thu, 5 Dec 2019 08:35:38 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::f984:b0c7:bce9:144e]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::f984:b0c7:bce9:144e%2]) with mapi id 15.20.2495.014; Thu, 5 Dec 2019 08:35:38 +0000 From: "james qian wang (Arm Technology China)" To: Mihail Atanassov Subject: [PATCH v5 0/5] arm/komeda: Add side_by_side support Thread-Topic: [PATCH v5 0/5] arm/komeda: Add side_by_side support Thread-Index: AQHVq0b4+ZN5ApmJ1kuuVJmeDKJyTw== Date: Thu, 5 Dec 2019 08:35:37 +0000 Message-ID: <20191205083436.11060-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: HK0PR03CA0105.apcprd03.prod.outlook.com (2603:1096:203:b0::21) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ce0f394d-fb94-4d63-6dcf-08d7795e1f9c X-MS-TrafficTypeDiagnostic: AM0SPR01MB0047:|AM0SPR01MB0047:|DB7PR08MB3259: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:8273;OLM:8273; x-forefront-prvs: 02426D11FE X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(376002)(366004)(39860400002)(136003)(396003)(346002)(199004)(189003)(8676002)(5660300002)(71190400001)(71200400001)(7736002)(305945005)(2906002)(86362001)(316002)(36756003)(103116003)(81156014)(50226002)(1076003)(81166006)(8936002)(6862004)(6636002)(4326008)(99286004)(478600001)(2616005)(186003)(102836004)(25786009)(52116002)(14454004)(55236004)(26005)(6512007)(54906003)(66946007)(66476007)(6116002)(66556008)(64756008)(6506007)(66446008)(3846002)(6486002)(37006003)(6436002)(14444005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0SPR01MB0047; 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-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 0wz8ifd2vnifS6eq5RDhbkXsuxJWUY3ph1tak+QTCqCiv1aw953JcurHm2h7bhlPNtkvKsPwj4X6ueCi6kspcWcaam9RCN/39nfZldEk++OZs5oT1Rp4nMvHxDkifb3t/sgSqKSoqmbDIkztYYtMuxdiwU01EmUS1kno1XqCh1SOz0NbGvfRpKZfBwWA7ZV4YirFhOeJOQQruprPrnbM4duQIyZc5v01AnsMeHrCrrRRSbC7JUkHN0orDz/AJCCualdzzXoUiwwHJ1x2X5BGA7xEAfQf35NlX94RaaCR5s+oAS9twlD/6procc6qhE+x9hju6KhONctgdeNvdESaTwUscKPn4YVM17gN8+EMDzLL0Wk74WUhPoryFCJCGPbZCVEC6NUCH7/fbesaBi76CHpic/5TGin3ycLY5+S+mZgS+gYVI25HQ2wDcZ4SFSmP MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0SPR01MB0047 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT009.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(396003)(136003)(346002)(189003)(199004)(8676002)(8746002)(8936002)(81156014)(50226002)(81166006)(478600001)(102836004)(6512007)(14454004)(26826003)(6862004)(4326008)(14444005)(6506007)(186003)(6636002)(103116003)(26005)(99286004)(22756006)(316002)(6486002)(37006003)(36756003)(54906003)(23756003)(305945005)(76130400001)(2616005)(2906002)(3846002)(6116002)(356004)(336012)(86362001)(70206006)(70586007)(25786009)(1076003)(50466002)(5660300002)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB3259; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 1c5b52d7-e494-4384-a566-08d7795e1aaa NoDisclaimer: True X-Forefront-PRVS: 02426D11FE X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0FxlwM8ZHRksZf8mA7YbRwSRrmUXVVYLyirr4yRTSGMIUqMcLhUZwjvSc2DIJvh0VUv3Ctkib0KdC2UxtbFL4Wz8eV/Xt+HCGM5Pa4/Bq7zYXmPVEU2G0wzdC0t7lu0SOZNfPR1rQN1UJerHoEfCZ5kIL+pbXb727d/234IqdKwvtz6aybv8OghwYM6nucHCaI9BWdnX+rSuzS/GBphkh114PHAjK/nO8C660NEJeK1IOGToFMZRYwrh2gOqULZXlPQAW6BbLlxgJMWXrRXSCU3qY5sC/2jaOljc3UVVE7YIFissChI1JwVer5EX/mEJanfQzGIyRho2MhhPAmWorKWLw5ws7ic6KjKqD5tUGWIYFY8ECQjqnWOgglU5wAXaEp1+tPWm220TomfDbbm9mGz9U1UX+6ncIXCXx86QjUqijjGffsq8tLSLs2Eh3qNy X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2019 08:35:45.9886 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce0f394d-fb94-4d63-6dcf-08d7795e1f9c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3259 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=tQkcOiJ1zh/q5YY5FqAhKqjxh02a7M7mSd82rVg0QMw=; b=vo7cDWEggnJ+h0Ahm787C1Fb2lKqliPgrTqa5YTBFgDBBQfRKaBREUqqfkYSWsaYeLRcPQzQ/AqFrk55pefaFnoQZoak5wOsqClrpuFkASffAju+G+Kg55k3WzurNWQOkoE006mnNHoxJ799lR3zwUxg2HTwKWpkjssUtYHMrLI= 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=tQkcOiJ1zh/q5YY5FqAhKqjxh02a7M7mSd82rVg0QMw=; b=vo7cDWEggnJ+h0Ahm787C1Fb2lKqliPgrTqa5YTBFgDBBQfRKaBREUqqfkYSWsaYeLRcPQzQ/AqFrk55pefaFnoQZoak5wOsqClrpuFkASffAju+G+Kg55k3WzurNWQOkoE006mnNHoxJ799lR3zwUxg2HTwKWpkjssUtYHMrLI= X-Mailman-Original-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.freedesktop.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.freedesktop.org; dmarc=bestguesspass action=none header.from=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 , "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\)" , "Thomas Sun \(Arm Technology China\)" , "Lowry Li \(Arm Technology China\)" , Ben Davis Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi: All Komeda HW (two pipelines) can work on side by side mode, which splits the internal display processing to two halves (LEFT/RIGHT) and handle them by two pipelines separately and simultaneously. And since one single pipeline only handles the half display frame, so the main engine clock requirement can also be halved. The data flow of side_by_side as blow: slave.layer0 ->\ /-> slave.wb_layer -> mem.fb.right_part ... -> slave.compiz -> slave.layer3 ->/ \-> slave.improcessor-> \ /-> output-link0 master.layer0 ->\ /-> master.improcessor ->\-> output-link1 ... -> master.compiz -> master.layer3 ->/ \-> master.wb_layer -> mem.fb.left_part v3: Rebase v5: Drop the patch: Expose side_by_side by sysfs/config_id james qian wang (Arm Technology China) (5): drm/komeda: Add side by side assembling drm/komeda: Add side by side plane_state split drm/komeda: Build side by side display output pipeline drm/komeda: Add side by side support for writeback drm/komeda: Update writeback signal for side_by_side .../arm/display/komeda/d71/d71_component.c | 4 + .../gpu/drm/arm/display/komeda/komeda_crtc.c | 54 ++-- .../gpu/drm/arm/display/komeda/komeda_dev.c | 4 + .../gpu/drm/arm/display/komeda/komeda_dev.h | 9 + .../gpu/drm/arm/display/komeda/komeda_kms.h | 8 + .../drm/arm/display/komeda/komeda_pipeline.c | 50 +++- .../drm/arm/display/komeda/komeda_pipeline.h | 39 ++- .../display/komeda/komeda_pipeline_state.c | 277 +++++++++++++++++- .../gpu/drm/arm/display/komeda/komeda_plane.c | 7 +- .../arm/display/komeda/komeda_wb_connector.c | 11 +- 10 files changed, 419 insertions(+), 44 deletions(-)