From patchwork Sun May 26 21:18:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 10961891 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 61F60912 for ; Sun, 26 May 2019 21:18:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E55628A61 for ; Sun, 26 May 2019 21:18:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4205228A99; Sun, 26 May 2019 21:18:54 +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 572E428A61 for ; Sun, 26 May 2019 21:18:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE639895B5; Sun, 26 May 2019 21:18:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-oln040092070012.outbound.protection.outlook.com [40.92.70.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1925D895B5 for ; Sun, 26 May 2019 21:18:49 +0000 (UTC) Received: from VE1EUR03FT043.eop-EUR03.prod.protection.outlook.com (10.152.18.56) by VE1EUR03HT173.eop-EUR03.prod.protection.outlook.com (10.152.19.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16; Sun, 26 May 2019 21:18:46 +0000 Received: from VI1PR03MB4206.eurprd03.prod.outlook.com (10.152.18.55) by VE1EUR03FT043.mail.protection.outlook.com (10.152.19.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16 via Frontend Transport; Sun, 26 May 2019 21:18:46 +0000 Received: from VI1PR03MB4206.eurprd03.prod.outlook.com ([fe80::883e:1bd6:cd36:5fb0]) by VI1PR03MB4206.eurprd03.prod.outlook.com ([fe80::883e:1bd6:cd36:5fb0%4]) with mapi id 15.20.1922.021; Sun, 26 May 2019 21:18:46 +0000 From: Jonas Karlman To: "a.hajda@samsung.com" , "Laurent.pinchart@ideasonboard.com" Subject: [PATCH 0/4] drm/bridge: dw-hdmi: Add support for HDR metadata Thread-Topic: [PATCH 0/4] drm/bridge: dw-hdmi: Add support for HDR metadata Thread-Index: AQHVFAiaQjT/HgX19UmwJWGXQ9hJLA== Date: Sun, 26 May 2019 21:18:46 +0000 Message-ID: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::14) To VI1PR03MB4206.eurprd03.prod.outlook.com (2603:10a6:803:51::23) x-incomingtopheadermarker: OriginalChecksum:79BA76E179A41E8010C690CE41FB37BF4D738EC631F3885DEB54BF2DEFDEF101; UpperCasedChecksum:2F9A0D3F638AD527A90A65420103E9544D32B1E2324656B5852FDEF2687ACCD9; SizeAsReceived:7897; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [gDiwXeLjQZWi2jFHnRO1p1AkD+uCRGEn] x-microsoft-original-message-id: <20190526211823.31739-1-jonas@kwiboo.se> x-ms-publictraffictype: Email x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:VE1EUR03HT173; x-ms-traffictypediagnostic: VE1EUR03HT173: x-ms-exchange-purlcount: 1 x-microsoft-antispam-message-info: ySOKTNi/kQ5CAYx4/JSJgcwZM7rCQw/IuCBFENhMXnh8K4P+/mF/vVGm0TiEjxGAvRrKjebQo5uQWpep820PwlfAJGOXO4gA/1K7TU89Exa6inY5wkt6CUyCs0iY6F1M3fO1RBnr1OJzMyyPiwG5OM49fxguu3wlN1o8hEew5VwAm6x2PR5QSzwEHe1q7wa2 MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 13c5775b-deca-48c1-7e05-08d6e21fbd12 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2019 21:18:46.7440 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR03HT173 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: "jernej.skrabec@siol.net" , "narmstrong@baylibre.com" , "maxime.ripard@bootlin.com" , "khilman@baylibre.com" , Jonas Karlman , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "wens@csie.org" , "zhengyang@rock-chips.com" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add support for HDR metadata using the hdr_output_metadata connector property, configure Dynamic Range and Mastering InfoFrame accordingly. A drm_infoframe flag is added to dw_hdmi_plat_data that platform drivers can use to signal when Dynamic Range and Mastering infoframes is supported. This flag is needed because Amlogic GXBB and GXL report same DW-HDMI version, and only GXL support DRM InfoFrame. The first patch add functionality to configure DRM InfoFrame based on the hdr_output_metadata connector property. The remaining patches sets the drm_infoframe flag on some SoCs supporting Dynamic Range and Mastering InfoFrame. Note that this was based on top of drm-misc-next and Neil Armstrong's "drm/meson: Add support for HDMI2.0 YUV420 4k60" series at [1] [1] https://patchwork.freedesktop.org/series/58725/#rev2 Jonas Karlman (4): drm/bridge: dw-hdmi: Add Dynamic Range and Mastering InfoFrame support drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399 drm/meson: Enable DRM InfoFrame support on GXL, GXM and G12A drm/sun4i: Enable DRM InfoFrame support on H6 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 109 ++++++++++++++++++++ drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 37 +++++++ drivers/gpu/drm/meson/meson_dw_hdmi.c | 5 + drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 + drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 2 + drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 1 + include/drm/bridge/dw_hdmi.h | 1 + 7 files changed, 157 insertions(+) Tested-by: Jernej Skrabec