From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD329C2BBCA for ; Wed, 16 Dec 2020 08:56:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5582620735 for ; Wed, 16 Dec 2020 08:56:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5582620735 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F17A089ED3; Wed, 16 Dec 2020 08:55:49 +0000 (UTC) Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id BB3DD6E3EE for ; Tue, 15 Dec 2020 15:42:50 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id 8E725435; Tue, 15 Dec 2020 10:42:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 15 Dec 2020 10:42:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm1; bh=Lg4neL9ZugxBQTIbWDnPbthuy6 QqWV/ujkN+uYSF8c8=; b=TIUbd120C6l5c8cYza9HsWQiHsYkKhJNtFNAuN99zG ccJDPeVAKQdW3WfX5GM4Bs9P91zAe0xKnlNTcCAiSXNDy5QIcyeQP0mjIICue/aR gGcp5QaAcC6Kazn8VTGP16GDbCTXWFtfPrwq17YXL38fj0MVO+0DsXLmldruWlAb /SuUIQN+V5c76ph6lBicluNGNhQubPQ7LuXE4v5bivNYg/WWvCxt6qpb9P+lFnz5 TixhXeRlEqdhHCczXbqmcHVUBZLv+KfBa7DpbEjLPZ5x4T/xvlR/pO6Nv2r5kTpo zpzlJFUdz58yKyHNw5clw2Rwkiwvjqx6etecHg/V6/Ig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Lg4neL 9ZugxBQTIbWDnPbthuy6QqWV/ujkN+uYSF8c8=; b=FbOxE7C72IGaOc2mCZm74N fKfmLL3dHoF9Sn+visx5keJUkuQ0SkQlMzf12g6ke4lkfQYsw9igzjtU1f8v5AWY heAzWPwBbZZJY5jdaVG4DIu7FMzz9gsUvmmi9oVVyzuA58G29/ItTJmXNsSObMDx MZnAuuy1JJaTkeV8M4E0Lu1xRZm8Z1F9d++kXO4xERls6TbREH7lguAwQ93UAUBv c3zs4pHhvkEL73mCSdTjeoiUpw+R/e6vIViZ9+imVax+XH8KdVEWmK3TKQv1tV/o X2vZmY267ioZEsqvtRFJ0+5AUTpItIR5Sh8svM5dJxY6pfU/pa+2lznBpOZ99+Zw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeltddgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetieekgfffkeegkeeltdehudetteejgfekueevhffhteegudfgkedtueegfffg feenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 53C7E108005C; Tue, 15 Dec 2020 10:42:45 -0500 (EST) From: Maxime Ripard To: Eric Anholt , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Daniel Vetter , David Airlie Subject: [PATCH v7 0/9] drm/vc4: hdmi: Support the 10/12 bit output Date: Tue, 15 Dec 2020 16:42:34 +0100 Message-Id: <20201215154243.540115-1-maxime@cerno.tech> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 16 Dec 2020 08:55:47 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Stevenson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, Here's some patches to enable the HDR output in the RPi4/BCM2711 HDMI controller. Let me know what you think, Maxime Changes from v6: - Addressed the issues pointed out by Dave - Rebased on current drm-misc-next Changes from v5: - Fixed the connector->state access in the connector state reset - Added the tags from Thomas and Dave Changes from v4: - Added the tags from Thomas - Fixed an issue with the clock doubling - Changed a comment to match the code being introduced Changes from v3: - Don't dereference the connector->state pointer if kzalloc failed Changes from v2: - Rebased on current drm-misc-next - Fixed a bug that was dropping the refresh rate when the bpc count was increased Changes from v1: - Added the coccinelle script to the first patch - Fixed the pixel_rate ramp up Maxime Ripard (9): drm/vc4: hvs: Align the HVS atomic hooks to the new API drm/vc4: Pass the atomic state to encoder hooks drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check drm/vc4: hdmi: Don't access the connector state in reset if kmalloc fails drm/vc4: hdmi: Create a custom connector state drm/vc4: hdmi: Store pixel frequency in the connector state drm/vc4: hdmi: Use the connector state pixel rate for the PHY drm/vc4: hdmi: Limit the BCM2711 to the max without scrambling drm/vc4: hdmi: Enable 10/12 bpc output drivers/gpu/drm/vc4/vc4_crtc.c | 24 ++--- drivers/gpu/drm/vc4/vc4_drv.h | 19 ++-- drivers/gpu/drm/vc4/vc4_hdmi.c | 155 +++++++++++++++++++++++++--- drivers/gpu/drm/vc4/vc4_hdmi.h | 23 +++-- drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 8 +- drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 9 ++ drivers/gpu/drm/vc4/vc4_hvs.c | 18 ++-- drivers/gpu/drm/vc4/vc4_txp.c | 10 +- 8 files changed, 208 insertions(+), 58 deletions(-) -- 2.29.2 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel