From patchwork Mon Dec 24 09:15:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Qian Wang X-Patchwork-Id: 10742117 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 EBB3514DE for ; Mon, 24 Dec 2018 09:15:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC82C28F9E for ; Mon, 24 Dec 2018 09:15:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9E0828FA6; Mon, 24 Dec 2018 09:15:34 +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 4FF3528F9E for ; Mon, 24 Dec 2018 09:15:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B78686E53F; Mon, 24 Dec 2018 09:15:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70072.outbound.protection.outlook.com [40.107.7.72]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC7BB6E53F for ; Mon, 24 Dec 2018 09:15:29 +0000 (UTC) Received: from AM3PR08MB0611.eurprd08.prod.outlook.com (10.163.188.149) by AM3PR08MB0642.eurprd08.prod.outlook.com (10.163.188.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.17; Mon, 24 Dec 2018 09:15:26 +0000 Received: from AM3PR08MB0611.eurprd08.prod.outlook.com ([fe80::3c73:534c:9c6e:352d]) by AM3PR08MB0611.eurprd08.prod.outlook.com ([fe80::3c73:534c:9c6e:352d%2]) with mapi id 15.20.1446.026; Mon, 24 Dec 2018 09:15:26 +0000 From: "james qian wang (Arm Technology China)" To: Liviu Dudau Subject: [PATCH 0/5] Implement komeda DRM-Plane Thread-Topic: [PATCH 0/5] Implement komeda DRM-Plane Thread-Index: AQHUm2k1MmNoXX7k+kuxoOsYqPacVw== Date: Mon, 24 Dec 2018 09:15:26 +0000 Message-ID: <20181224091450.2643-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: SY2PR01CA0039.ausprd01.prod.outlook.com (2603:10c6:1:15::27) To AM3PR08MB0611.eurprd08.prod.outlook.com (2a01:111:e400:c408::21) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM3PR08MB0642; 6:cKC1tLAJzmnxwVs8ammQqbzkQ6RMc1w9+xJYfngfQkBKiBGFkZnUePaJ8XBrV5Ftghu207rTiMPhX3seyfMnwqAbl8hXCbqhRi1sYX36bEAdyCL3c8c8cohMYo8eelJR1654QCnfVpwLLeplFbzTXzhGq7dBqDs5VRd1PcFseqqF1eLy8StMG5JdunDaV3OIq6Lc1UHzeiCAe31wSWdJL3NIfudWOtItX2/y2cX7JdEnceC7Cfod3vB0wq4RwMq51k6mE692tInvG3SNE8LOe8dmJ6qVhU9RMjLq4UUwjpEvnc+LF8MkGTtERTjeS8NlY5TjUJYQHuH1/R5TIPmdbDEMeDNVQGbASnU6z7Wu5PUamfQPLnC0Shc0FMUDLhwkz9OjGUlF2XrfjR1l1i4hArcfkTzMDxukxy1yBOg4rzkhzIR5Nl6IwomhSPOiyZsTLMiX3PS2xw7S2PfuWylAEg==; 5:BlFvJKnEr31cg6SSQhH+mWqmIFn0BiR2foxTk5pVLMvuVpzNYNPo6YyYsB/KEi7W2VyNn8cvOV4m4n7k4rNNlRgzWCTIpcZHEwHRKUiNeOqHSwq3ojX4Lzk6evMlbK1FHbNkVX+6wUrnliPU8BZrb2hqhW9JwN1wy51gdbrjur8=; 7:sErohpwQV+geqUUfyLwr3mXJzN62J1Z6ca/hJvvsnfTz1IttR44EvKFvuf/4KBfblgVn4t93PzvBXvRtFpMkqz1kxBQ4mA3qs+qgUkHB3Nbv9Oj2enlE51Yueq5MtyRD0TmGj3uMtKQ5AUV6VyC7DQ== x-ms-office365-filtering-correlation-id: 81573811-4c8a-42af-4c59-08d669805743 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM3PR08MB0642; x-ms-traffictypediagnostic: AM3PR08MB0642: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM3PR08MB0642; BCL:0; PCL:0; RULEID:; SRVR:AM3PR08MB0642; x-forefront-prvs: 0896BFCE6C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(396003)(366004)(346002)(39850400004)(199004)(189003)(486006)(6486002)(103116003)(305945005)(316002)(5660300001)(6862004)(6436002)(476003)(54906003)(37006003)(2616005)(8676002)(2906002)(81166006)(8936002)(81156014)(3846002)(6116002)(68736007)(7736002)(4326008)(25786009)(6512007)(53936002)(99286004)(14454004)(478600001)(6636002)(106356001)(105586002)(102836004)(36756003)(186003)(26005)(97736004)(256004)(55236004)(6506007)(386003)(66066001)(86362001)(71190400001)(71200400001)(1076003)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR08MB0642; H:AM3PR08MB0611.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: AtjlyS/Iq+4W0V5ighCeqeqiIzZqNlh5smEoy8mE8qWLD2sxOFKFyfBSBe0YFJsLbGLStlXm6Hzt/lozi+f0NqKIgrp0CM2zkQHaqxZG364zeQmzbvJ/i98kke8NTt/Juw8rgUvYbKVlWfxfnviScum12b/ubG7PB2MrJ2wiy3IF8vXYgSj0eO6Jg9RqeaEfqJRCHhid8LMvbBfLkoZAukbXxhP3rdgT7N9B/egw44v+zsuaSlEZQ0YgcfFqzcdiYmtjXwE9ceuz5Ku4qBWoEdVFul+Yvd3RU2W53bSWJSDyEduay4Owqn3RvkADQ8qK spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81573811-4c8a-42af-4c59-08d669805743 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Dec 2018 09:15:26.7047 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR08MB0642 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 , "Tiannan Zhu \(Arm Technology China\)" , "airlied@linux.ie" , "Jonathan Chai \(Arm Technology China\)" , Alexandru-Cosmin Gheorghe , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "Julien Yin \(Arm Technology China\)" , "yamada.masahiro@socionext.com" , "james qian wang \(Arm Technology China\)" , "malidp@foss.arm.com" , "Yiqi Kang \(Arm Technology China\)" , "maxime.ripard@bootlin.com" , "thomas Sun \(Arm Technology China\)" , "Jin Gao \(Arm Technology China\)" , "Lowry Li \(Arm Technology China\)" , "sean@poorly.run" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is the 3rd patchset for the komeda driver. This patchset implemented plane/plane_helper functions for DRM-Plane. per the komeda driver design, A DRM-plane maps to komeda layer input pipeline, so the plane->atomic_check will build a layer input pipeline according to the plane_state. and with this build function the plane_state will be covert to komeda private component states to represent the real HW configuration. Beside that also added some basic functions for operating the komeda private object. James (Qian) Wang (5): drm: Add drm_atomic_get_old/new_private_obj_state drm/komeda: Add komeda_pipeline/component_get_state_and_set_user drm/arm/komeda: Initialize komeda component as drm private object drm/komeda: Add komeda_build_layer_data_flow drm/komeda: Add komeda_plane/plane_helper_funcs drivers/gpu/drm/arm/display/komeda/Makefile | 1 + .../drm/arm/display/komeda/komeda_pipeline.c | 2 + .../drm/arm/display/komeda/komeda_pipeline.h | 31 ++ .../display/komeda/komeda_pipeline_state.c | 408 ++++++++++++++++++ .../gpu/drm/arm/display/komeda/komeda_plane.c | 129 ++++++ .../arm/display/komeda/komeda_private_obj.c | 200 ++++++++- drivers/gpu/drm/drm_atomic.c | 45 +- include/drm/drm_atomic.h | 6 + 8 files changed, 819 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c