From patchwork Thu Mar 31 14:37:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12797185 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 2DE3DC433FE for ; Thu, 31 Mar 2022 14:37:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B71C10EEFE; Thu, 31 Mar 2022 14:37:53 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3B6DB10EEE0 for ; Thu, 31 Mar 2022 14:37:51 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BF1AD5C0051; Thu, 31 Mar 2022 10:37:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 31 Mar 2022 10:37:48 -0400 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=fm3; bh=FarpExqdhSGlDvSiIqjonlfl5mX58kv1NNmOS8 exobo=; b=PFjFXCmyDNWGMCANzSCIR4RFtEjQacP7hMc4cR/hoLX5wf+0sbhO8e wfhGH0KtMTDflJjL9jbBo68IIwpi9apR8DwiaGgIvNgWm7wozJ5Yr+b5FdOm9mnd nsOFI5VQkFmHmydOO2JjwanOnCu6Lrw66eIOkk6M3qvHKSuY7eIe2qqqxeSH0F74 x2Rb1nWWWDM/i5uCnvZbCi427+PLmu4Dt4QJGjoBbe4wHL4fR1cD61Hrs+zCww23 qpe49qyeyttgVuGDgjDszqdjwyWnmQqY8cux5C2NQht2JNpb6fB9d0aryo33eMXF gq5XluRhcKeCRwPDxFCYcu5Dp9sLd4Qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; 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:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=FarpEx qdhSGlDvSiIqjonlfl5mX58kv1NNmOS8exobo=; b=BysjH7kmpfEdqZbvQv5tYM 9RXESu5ryYhGTSigNOO1DX0NhG3WNT1SWnMn3Fiqx7gzYetWD/g66wu41Rison1m yoVdcPxLLGH/fMzHvKRfBfLbblt5ThR4hg0kxcrRm5NwKjrWDp60pxkCR1fVO/u8 jy75RunXkeyY4Tnxf8RH28aOIhSUmL1ujQLpysYCe9LX7UL27BgeM1qBM6g/QNd0 3IyZgckz4NdLQhE1pWJBOwlkGjS07DmcIi1CLXFTXg5Z9YHZ0s3fCj3q/RAJTejT nTa5321hc2VsXN1aYS3zshbKtj8/NH7UL2iI3+pELWobFLMaAf46EJ3BQEp6xfRg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeigedgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeetteeltddujefhffdtuefgudffleelleehjeeggeffuddvvdfgvdfhhfelgfet ffenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 31 Mar 2022 10:37:47 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/7] drm/vc4: hvs: Various improvements Date: Thu, 31 Mar 2022 16:37:37 +0200 Message-Id: <20220331143744.777652-1-maxime@cerno.tech> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 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: David Airlie , Daniel Vetter , Maxime Ripard , Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, These patches used to be part of the series: https://lore.kernel.org/all/20220221134155.125447-1-maxime@cerno.tech/ but since the main patch got superseded by another core patch, I've split the cleanup patches out into their own series. Let me know what you think, Maxime Changes from v1: - Used DRM_PLANE_COMMIT_ACTIVE_ONLY to skip atomic_flush Maxime Ripard (7): drm/vc4: kms: Take old state core clock rate into account drm/vc4: hvs: Fix frame count register readout drm/vc4: hvs: Store channel in variable drm/vc4: hvs: Remove dlist setup duplication drm/vc4: hvs: Move the dlist setup to its own function drm/vc4: kms: Ignore atomic_flush if we're disabled drm/vc4: hvs: Use pointer to HVS in HVS_READ and HVS_WRITE macros drivers/gpu/drm/vc4/vc4_crtc.c | 14 ++-- drivers/gpu/drm/vc4/vc4_drv.h | 15 ++-- drivers/gpu/drm/vc4/vc4_hvs.c | 127 ++++++++++++++++++++------------- drivers/gpu/drm/vc4/vc4_kms.c | 13 ++-- drivers/gpu/drm/vc4/vc4_regs.h | 12 +++- 5 files changed, 115 insertions(+), 66 deletions(-) Acked-by: Thomas Zimmermann