From patchwork Mon Mar 25 07:13:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10868057 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 6F63B18FD for ; Mon, 25 Mar 2019 07:14:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5558D2924E for ; Mon, 25 Mar 2019 07:14:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4088D2924F; Mon, 25 Mar 2019 07:14:06 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42B052924B for ; Mon, 25 Mar 2019 07:14:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729813AbfCYHOD (ORCPT ); Mon, 25 Mar 2019 03:14:03 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59684 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729792AbfCYHOC (ORCPT ); Mon, 25 Mar 2019 03:14:02 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190325071401euoutp0213891a6390d283f5b0fdc951d89a9bd0~PIjzjHk350790207902euoutp02R; Mon, 25 Mar 2019 07:14:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190325071401euoutp0213891a6390d283f5b0fdc951d89a9bd0~PIjzjHk350790207902euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553498041; bh=ga2SLg3yv9wsqZ8MVIaXNymZsZ9/UV+lZIuI9VL5Rsg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=bxT0p3MdnwOVqQK3RdT8Iw1Mj2PiRc1Sr/dJ0jcu7961iLbtHU4l2GY7ktfUg5slW Fprtt44Gm8E81joqpDlbyMC6ywsQ9jK6GSdJHCu8UkUZKP8T2gHovlHyyUdvpnMDFJ 0pSbsmVts2OBTONsgnuyQu/kfsOqBgp4rtFZem5E= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190325071400eucas1p2fc51f1a93537497d73be44f048a08701~PIjzLrU573045430454eucas1p24; Mon, 25 Mar 2019 07:14:00 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id A3.6E.04298.8BF789C5; Mon, 25 Mar 2019 07:14:00 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190325071400eucas1p1f80832bb0feba9bd11187aecf1ae61c7~PIjyjULGq2091220912eucas1p1e; Mon, 25 Mar 2019 07:14:00 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-c6-5c987fb88e95 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A0.29.04140.8BF789C5; Mon, 25 Mar 2019 07:14:00 +0000 (GMT) Received: from AMDC3748.DIGITAL.local ([106.120.51.74]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0POW003QHUR43P00@eusync3.samsung.com>; Mon, 25 Mar 2019 07:14:00 +0000 (GMT) From: Andrzej Hajda To: Inki Dae Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v3 RESEND 17/24] drm/exynos: add plane update/disable callbacks for planes Date: Mon, 25 Mar 2019 08:13:42 +0100 Message-id: <20190325071349.22600-18-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190325071349.22600-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWy7djP87o76mfEGGzcoGNxa905VouNM9az Wlz5+p7NYtL9CSwW589vYLeYcX4fk8XaI3fZHdg9Nq3qZPO4332cyaNvyypGj8+b5AJYorhs UlJzMstSi/TtErgyNr9+yFJwmrPiZPsP1gbGiRxdjJwcEgImEn3fpzF1MXJxCAmsYJRYs/4O M4TzmVHi44IzrDBVnQe3s0MkljFK3Oh/ywKSEBL4zyix6EM+iM0moCnxd/NNNhBbREBZYtW+ drAGZoHfjBLTl29jB0kIC8RIrJ3+C6yZRUBVYuadp8wgNq+ApcS8F28YIbbJS6zecAAszgkU /3/6EthJEgJ/WSXmvt/LAlHkInHx+h2o82QkLk/uhorXS9xf0QLV0MEosXXDTmaIhLXE4eMX wRqYBfgkJm2bDhTnAIrzSnS0CUGUeEgcuPcPGhg9jBI3Z79imsAosYCRYRWjeGppcW56arFh Xmq5XnFibnFpXrpecn7uJkZghJ3+d/zTDsavl5IOMQpwMCrx8L7YOT1GiDWxrLgy9xCjBAez kgjvE9EZMUK8KYmVValF+fFFpTmpxYcYpTlYlMR5qxkeRAsJpCeWpGanphakFsFkmTg4pRoY Vy5eVsii/MxfzvH2I9GYBVPqT7B5C23YqyTp5fvuh9NiE2VRn38XZkeqOpRqSDFcqH/FvtJ4 /QT9A9dMDeZ02uRumsyzgWN9vaCGaMLWjDmd2Qlu148avZfVLd762X+fsXDfW7nbZou6d4ae v+Abcd5q64X/Zy56ZGvePv5j3o17TpFrp1sZKLEUZyQaajEXFScCALcxIFesAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmluLIzCtJLcpLzFFi42I5/e/4Vd0d9TNiDDau47O4te4cq8XGGetZ La58fc9mMen+BBaL8+c3sFvMOL+PyWLtkbvsDuwem1Z1snnc7z7O5NG3ZRWjx+dNcgEsUVw2 Kak5mWWpRfp2CVwZm18/ZCk4zVlxsv0HawPjRI4uRk4OCQETic6D29m7GLk4hASWMEpsu3iX DcJpZJL4umIJO0gVm4CmxN/NN9lAbBEBZYlV+9rBOpgFfjNKfJ7xlRkkISwQI9Ey/RpYA4uA qsTMO0/B4rwClhLzXrxhhFgnL7F6wwGwOCdQ/P/pS2C2kICFxN5ljewTGHkWMDKsYhRJLS3O Tc8tNtIrTswtLs1L10vOz93ECAyabcd+btnB2PUu+BCjAAejEg+vw57pMUKsiWXFlbmHGCU4 mJVEeJ+IzogR4k1JrKxKLcqPLyrNSS0+xCjNwaIkznveoDJKSCA9sSQ1OzW1ILUIJsvEwSnV wGhjvV7zERNPgs7KLQv/RFc/2Ds/8ZobO6/J89Kl94V1rVovV4bVKwmXP9ux6MoF6fU/yn7K RhTo7y+cd/vA99lZ19v9NuQ+vTlJvPvSjkNfdmewCLP63pNYvVJFfdcGhoWRGrFlf8zDd/g7 575UvLmtoWGWy7bi2fezessb7235vdyEZwfPyUAlluKMREMt5qLiRABOE+byFgIAAA== X-CMS-MailID: 20190325071400eucas1p1f80832bb0feba9bd11187aecf1ae61c7 CMS-TYPE: 201P X-CMS-RootMailID: 20190325071400eucas1p1f80832bb0feba9bd11187aecf1ae61c7 References: <20190325071349.22600-1-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Display controllers in Exynos beside native planes/windows can use external planes provided by other IPs - GSCALER, FIMD, VPP. To add support to them we will need plane specific callbacks. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 6643db865500..5d06e796dc80 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -76,6 +76,12 @@ to_exynos_plane_state(struct drm_plane_state *state) #define EXYNOS_DRM_PLANE_CAP_PIX_BLEND (1 << 4) #define EXYNOS_DRM_PLANE_CAP_WIN_BLEND (1 << 5) +struct exynos_drm_plane; +struct exynos_drm_plane_ops { + void (*update_plane)(struct exynos_drm_plane *plane); + void (*disable_plane)(struct exynos_drm_plane *plane); +}; + /* * Exynos drm common overlay structure. * @@ -89,6 +95,7 @@ to_exynos_plane_state(struct drm_plane_state *state) struct exynos_drm_plane { struct drm_plane base; + const struct exynos_drm_plane_ops *ops; unsigned int index; unsigned int capabilities; };