From patchwork Tue May 21 09:34:35 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: 10953229 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 8481B924 for ; Tue, 21 May 2019 09:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 726592893B for ; Tue, 21 May 2019 09:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62BC4289C0; Tue, 21 May 2019 09:34:43 +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 0806A2893B for ; Tue, 21 May 2019 09:34:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F0878926D; Tue, 21 May 2019 09:34:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130075.outbound.protection.outlook.com [40.107.13.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id B08DA8926D for ; Tue, 21 May 2019 09:34:39 +0000 (UTC) Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB5134.eurprd08.prod.outlook.com (20.179.30.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Tue, 21 May 2019 09:34:35 +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; Tue, 21 May 2019 09:34:35 +0000 From: "james qian wang (Arm Technology China)" To: Liviu Dudau , "airlied@linux.ie" , Brian Starkey , "maarten.lankhorst@linux.intel.com" , "sean@poorly.run" , "ezequiel@collabora.com" , "uma.shankar@intel.com" Subject: [PATCH 0/4] drm/komeda: Enable layer/plane color mgmt Thread-Topic: [PATCH 0/4] drm/komeda: Enable layer/plane color mgmt Thread-Index: AQHVD7hnGE4Sag0zPkevUVALb5b04Q== Date: Tue, 21 May 2019 09:34:35 +0000 Message-ID: <20190521093411.26609-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: HK0PR03CA0002.apcprd03.prod.outlook.com (2603:1096:203:2e::14) 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: d47c10ad-90c8-4443-4356-08d6ddcf8970 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:VE1PR08MB5134; x-ms-traffictypediagnostic: VE1PR08MB5134: x-ms-exchange-purlcount: 2 nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-forefront-prvs: 0044C17179 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(346002)(376002)(366004)(396003)(199004)(189003)(54906003)(486006)(68736007)(110136005)(4326008)(103116003)(2501003)(66446008)(64756008)(66066001)(73956011)(66946007)(50226002)(66556008)(66476007)(36756003)(8676002)(2906002)(81156014)(25786009)(8936002)(186003)(26005)(81166006)(476003)(86362001)(3846002)(99286004)(256004)(478600001)(52116002)(6306002)(5660300002)(2616005)(6116002)(305945005)(7736002)(53936002)(6512007)(2201001)(71190400001)(6486002)(316002)(6436002)(71200400001)(55236004)(14454004)(1076003)(6506007)(102836004)(966005)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB5134; 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: wXfdHbEJwM9qOlU2PZWOD07Wac9LnOrUFq5xXPHX0AIveR/D32NIs+dYQMwfLePLyG/nQaxv7YP0RLw/Sc3CyD7rvtbrieMnwmsBt5Ssi2uwxi5znMMzf9JEOpzjuzRjUTHf91pGNjUzV0slr0iwH0vIUC4euH4Wbhh9EUh9jZAnn6w8E5nsHzVz29YDa1d/MNCLDAdBgFIw0ykIYRa+cKeyZz7hnkTjqtUvWo/5h7fHunz9kb7BM3puZf9VElC2ytl+vGbd6wgYvX/GLR5VX/q+34oAmOuZDc9obhSalClNhsFnMCrdyfCw9ZUJ6pRzx6fhCGL6Amf9/u7V+rj+jQOFm6yqPpuxlTnHB3Yha2A6FCK63J0tJ/4mZWD0RVcqrWnIMGvVsmf9mv/XYSig2EUqPAaefe7ZXiMJFD9uBpw= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: d47c10ad-90c8-4443-4356-08d6ddcf8970 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2019 09:34:35.7086 (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: VE1PR08MB5134 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=HaGaJUFxCrYbmmLXLSebmjWLmVN2jJwQT4ta/UEH/RY=; b=RdtbMpQ513K3REpL9MuVudJBfvNcA/vBRJu2whnOV+j/f48NjV1X/qXBm4jmLmAVpMNRF8gXc34eVbSLSQDZ3p6oOnMiHif45V7+isLvNBtOtrZ2SHTpuOGYU0gZ0xQZHj1TrQsVIXb8EDg/8DymmzEgJMaaRAT37mfl+xeiBOM= 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 enabled layer/plane color management for komeda driver This patch series depends on: - https://patchwork.freedesktop.org/series/30876/ - https://patchwork.freedesktop.org/series/60856/ James Qian Wang (Arm Technology China) (4): drm/komeda: Introduce komeda_coeffs_table/manager drm/komeda: Introduce komeda_color_manager/state drm: Increase DRM_OBJECT_MAX_PROPERTY to 32 drm/komeda: Enable Layer color management for komeda drivers/gpu/drm/arm/display/komeda/Makefile | 1 + .../arm/display/komeda/d71/d71_component.c | 64 +++++++++ .../gpu/drm/arm/display/komeda/d71/d71_dev.c | 5 +- .../gpu/drm/arm/display/komeda/d71/d71_dev.h | 2 + .../drm/arm/display/komeda/komeda_coeffs.c | 119 +++++++++++++++++ .../drm/arm/display/komeda/komeda_coeffs.h | 74 ++++++++++ .../arm/display/komeda/komeda_color_mgmt.c | 126 ++++++++++++++++++ .../arm/display/komeda/komeda_color_mgmt.h | 32 ++++- .../drm/arm/display/komeda/komeda_pipeline.h | 4 +- .../display/komeda/komeda_pipeline_state.c | 51 ++++++- .../gpu/drm/arm/display/komeda/komeda_plane.c | 12 ++ .../arm/display/komeda/komeda_private_obj.c | 4 + include/drm/drm_mode_object.h | 2 +- 13 files changed, 488 insertions(+), 8 deletions(-) create mode 100644 drivers/gpu/drm/arm/display/komeda/komeda_coeffs.c create mode 100644 drivers/gpu/drm/arm/display/komeda/komeda_coeffs.h --- 2.17.1