From patchwork Wed Dec 7 11:53:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 13067034 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 40619C4708E for ; Wed, 7 Dec 2022 11:55:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 923BA10E074; Wed, 7 Dec 2022 11:55:18 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30BA710E040 for ; Wed, 7 Dec 2022 11:55:14 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7AAC65C01D2; Wed, 7 Dec 2022 06:55:12 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 07 Dec 2022 06:55:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1670414112; x=1670500512; bh=pkqMTedPSS 4g+nzqyFmxdSVav2tzofouo+R7SiW8/4M=; b=P+UwZSn5aiBU1K/Ttfcm902bTL d+9t5UAiSHuWKPhOKvc5KYIVzCOm0Ub1Nsp1BggJT4BbwMHh7CQqc5JpsGBDepq0 Dh3sseBs6/aDDxCg0dHRvBULzPjEZ4Q1TkJLn0cpsVy++m3UImuEYlABRR+GbRhI iNQghc93nXfftDv6/ssS917igQRoiqjSv9xo9lakyCijaIA4wpGvVVz4O6Bl4w9/ +cqO6oL43NHFmN2LNtrnKRO0QdYSBGgk5dHcuHKJxLlQ35+RW6j2w7NylPJCvsDT HoBdV7pAKvVHtpbqMXE0HlC243T2SvMueekELx16jWraK60Nu4iIApTEGpfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1670414112; x=1670500512; bh=pkqMTedPSS4g+ nzqyFmxdSVav2tzofouo+R7SiW8/4M=; b=s/ZInIPkvm38R+uHYPXRaeeZCzoyq IRTjeu/m76XxQlIUDuvISzooaUekoG0ILuK9DqJca5KNvCpsOdiSe0gC5SGr9QEf iZA/fMLYZyt5W97kPSxyBCPYsGu7EZVE4YU3/1P7IJxi4dbBKvVNYClOAOXbcNzs DRtPNUHTLv9FhkPX2DXL/syYkLJkRINlscOUTfaOHPV7bKcpJPn2DCe8bEsN9mZg 1oGUnrvNsBqD1Oe2xKazrynD+vqzpFb22HhNTKJj4s+UKYURSQfDyi6WhvO2QRIF JAVAhtv9CoLWYFKCdS+g7t3MMuY0vdpeNAuUeEe7f/sfkzIhk+RtWEzow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudekgdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefugggtgffhfffkvfevofesthejredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeevgfeiffffhfeugedvvdffgfevhfelgfehueeujeeiffejfffgleelvdffgeek keenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Dec 2022 06:55:11 -0500 (EST) Subject: [PATCH 00/15] drm/vc4: Misc fixes and improvements for the HVS and CRTCs MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKd+kGMC/w3LMQqAMAwAwK9IZgNtBkV/U9NgA1olURfx73a84V 5wMRWHuXvB5FHXozbEvgMuqa6CmpuBAlGkMKKdiuVxZLsYd3XGPI1xCnlIAxG0tyQXXCxVLm3We9 u+7wc3Nn/qaAAAAA== From: Maxime Ripard Date: Wed, 07 Dec 2022 12:53:11 +0100 Message-Id: <20221207-rpi-hvs-crtc-misc-v1-0-1f8e0770798b@cerno.tech> To: Emma Anholt , Maxime Ripard , David Airlie , Daniel Vetter , Eric Anholt X-Mailer: b4 0.11.0-dev-8c583 X-Developer-Signature: v=1; a=openpgp-sha256; l=2182; i=maxime@cerno.tech; h=from:subject:message-id; bh=BTg/iRPeaQ5YaDF5kWRxTOApky7KyiymtFgMBBO/Swo=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMkT6laYX33MwsFT4Mtq/K/gi4PWv0dpDLqxXc0aX6Lzv2hW CjZ2lLIwiHExyIopssQImy+JOzXrdScb3zyYOaxMIEMYuDgFYCKr2Bn+2Zyqqn750N8msKhjkd67Av lTYVsNt9ebnP+hzbVui9jpcIb/jo4f5D2N9E/FxZUuyas+eEWT5V2uSA4fv5GA2nLnO5KMAA== X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D 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: Maxime Ripard , Mateusz Kwiatkowski , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Dave Stevenson Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, Here's a collection of patches for the HVS and CRTCs that fix a few issues (with DMA accesses and timings, mostly), and add a few minor features. Let me know what you think, Maxime To: Emma Anholt To: Maxime Ripard To: David Airlie To: Daniel Vetter To: Eric Anholt Cc: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Cc: Dave Stevenson Cc: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard --- Dave Stevenson (12): drm/vc4: hvs: Configure the HVS COB allocations drm/vc4: hvs: Set AXI panic modes drm/vc4: hvs: SCALER_DISPBKGND_AUTOHS is only valid on HVS4 drm/vc4: hvs: Correct interrupt masking bit assignment for HVS5 drm/vc4: hvs: Support zpos on all planes drm/vc4: hvs: Fix colour order for xRGB1555 on HVS5 drm/vc4: hvs: Add DRM 210101010 RGB formats drm/vc4: plane: Allow using 0 as a pixel order value drm/vc4: plane: Omit pixel_order from the hvs_format for hvs5 only formats drm/vc4: plane: Add 3:3:2 and 4:4:4:4 RGB/RGBX/RGBA formats drm/vc4: Add comments for which HVS_PIXEL_ORDER_xxx defines apply drm/vc4: hdmi: Correct interlaced timings again Mateusz Kwiatkowski (2): drm/vc4: crtc: Fix timings for VEC modes drm/vc4: vec: Support progressive modes Maxime Ripard (1): drm/vc4: hvs: Ignore atomic_flush if we're disabled drivers/gpu/drm/vc4/vc4_crtc.c | 71 +++++++++------- drivers/gpu/drm/vc4/vc4_hdmi.c | 5 +- drivers/gpu/drm/vc4/vc4_hvs.c | 175 +++++++++++++++++++++++++++++++--------- drivers/gpu/drm/vc4/vc4_kms.c | 1 + drivers/gpu/drm/vc4/vc4_plane.c | 139 ++++++++++++++++++++++++++++--- drivers/gpu/drm/vc4/vc4_regs.h | 20 ++++- drivers/gpu/drm/vc4/vc4_vec.c | 4 +- 7 files changed, 337 insertions(+), 78 deletions(-) --- base-commit: 99e2d98adc738597abcc5d38b03d0e9858db5c00 change-id: 20221207-rpi-hvs-crtc-misc-d97190d6a622 Best regards,