From patchwork Mon Apr 15 07:08:59 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: 10900155 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 6F6C5922 for ; Mon, 15 Apr 2019 07:09:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5253828812 for ; Mon, 15 Apr 2019 07:09:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 417B92881A; Mon, 15 Apr 2019 07:09:07 +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 B865F28812 for ; Mon, 15 Apr 2019 07:09:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BBCB89187; Mon, 15 Apr 2019 07:09:03 +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-eopbgr140047.outbound.protection.outlook.com [40.107.14.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 14A8789187 for ; Mon, 15 Apr 2019 07:09:01 +0000 (UTC) Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4765.eurprd08.prod.outlook.com (10.255.113.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.19; Mon, 15 Apr 2019 07:08:59 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::6ca6:1d85:8903:90d7]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::6ca6:1d85:8903:90d7%5]) with mapi id 15.20.1792.018; Mon, 15 Apr 2019 07:08:59 +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 v1 0/6] Added scaler support for komeda Thread-Topic: [PATCH v1 0/6] Added scaler support for komeda Thread-Index: AQHU81oYpH+/wXOnzUyxJVIdrsvqig== Date: Mon, 15 Apr 2019 07:08:59 +0000 Message-ID: <20190415070828.24075-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: HK0P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::23) 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: 419f68c3-d648-4de1-b248-08d6c1713b27 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR08MB4765; x-ms-traffictypediagnostic: VE1PR08MB4765: x-ms-exchange-purlcount: 4 nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 000800954F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(136003)(39860400002)(376002)(346002)(199004)(189003)(186003)(14454004)(5024004)(966005)(81156014)(486006)(66066001)(8676002)(26005)(5660300002)(6436002)(1076003)(103116003)(6512007)(36756003)(476003)(2616005)(7736002)(4326008)(81166006)(305945005)(2906002)(6306002)(25786009)(71200400001)(71190400001)(68736007)(86362001)(2201001)(50226002)(102836004)(110136005)(97736004)(386003)(6506007)(55236004)(54906003)(256004)(8936002)(52116002)(106356001)(105586002)(2501003)(6486002)(53936002)(3846002)(478600001)(99286004)(316002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4765; 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: 32TxEZlHe9HD1/lubAktWCEn5WwmyFwtJkdzIAqa5dbSasL3D2RJpRM6QHn+UtjlCMFVQDpK6Ylj+U5Bc3EjQWD/85CTj1lV8ciMNDp2IErlPHCWsr+88VF1Y292hqFPLkJTgUX4hjMYienRhPwVd2JpZKUpQ0aHNNDRUJA50SKAznIJYqpur0g528DwyT05nlnV6k9RHIcMQidrCORSe1Zg7w0jK77Ffp2vcmRqh1fumc0mHGkr5K+fdZWnRBMxL4wki4/1Vl6z3AiboB314BMKINZJWJbJZd4PCkDoGuD1K6XlgQ5QIVS2YoFqPN895vaXAONr511Pc4EuvJpMPX+jKLtVQ4E52nrPBELW/F+2G9K9cDnAJQWUvyzQCHbhs7tBIYgbfGW05lHgKRVesOIrEuqszk3KMIkQPuxrII4= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 419f68c3-d648-4de1-b248-08d6c1713b27 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2019 07:08:59.1199 (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: VE1PR08MB4765 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UP8hFlrMH/lrRBovGhrArt9vyhrcc6QInEge6YqeElE=; b=kNdVTcI8XOGJHqKt9515G7CSfbKGSx8kbopaIeOKHN4NHpds1m5P9YqxXbAcIXbDmGF4fYkustyAf0eTZOrNy9NyxnKnAfIDzBi/iVoN1dcVIWPMAAbfaH+EAQZ86wm2T21v8uE9k2UfBIcexzGxzblCgaZHT/A2L3XhtB897xs= 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 , "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\)" , "james qian wang \(Arm Technology China\)" , "Yiqi Kang \(Arm Technology China\)" , "thomas Sun \(Arm Technology China\)" , "Lowry Li \(Arm Technology China\)" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch series added scaling and image enhancement support for komeda driver. Enabled two different scaling usage: - layer scaling: scaling a input image before composite it with others - write-back scaling: scaling the composition result and write it to memory. This patchset depends on: - https://patchwork.freedesktop.org/series/54449/ - https://patchwork.freedesktop.org/series/54450/ - https://patchwork.freedesktop.org/series/58976/ - https://patchwork.freedesktop.org/series/59000/ James Qian Wang (Arm Technology China) (6): drm/komeda: Attach scaler to drm as private object drm/komeda: Add the initial scaler support for CORE drm/komeda: Implement D71 scaler support drm/komeda: Add writeback scaling support drm/komeda: Add engine clock requirement check for the downscaling drm/komeda: Add image enhancement support .../arm/display/komeda/d71/d71_component.c | 177 +++++++++++++++++- .../gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +- .../gpu/drm/arm/display/komeda/d71/d71_dev.h | 2 + .../gpu/drm/arm/display/komeda/komeda_crtc.c | 67 ++++++- .../gpu/drm/arm/display/komeda/komeda_kms.h | 14 +- .../drm/arm/display/komeda/komeda_pipeline.c | 14 ++ .../drm/arm/display/komeda/komeda_pipeline.h | 33 +++- .../display/komeda/komeda_pipeline_state.c | 164 +++++++++++++++- .../gpu/drm/arm/display/komeda/komeda_plane.c | 77 +++++++- .../arm/display/komeda/komeda_private_obj.c | 49 +++++ .../arm/display/komeda/komeda_wb_connector.c | 2 + 11 files changed, 585 insertions(+), 16 deletions(-)