From patchwork Fri Dec 3 13:51:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12694707 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C46BFC433F5 for ; Fri, 3 Dec 2021 13:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=O4IsIeD3crbPV6GsitTkGMkd1zMrrgZeuMMCaJwiTaQ=; b=dpr+VR80LtojT6 7xowjokp2wjHXg1vgS43vrlmqWXNVBB/vBySTZQRjqLiC10ke5jVhprA25AWrP2HLO2btLhokDIBd RhIVvBkHlqrd8ToUteUbfjY0yGj+DHa5L8zwsPe/v7P1BHaLvOrePFpHk4w1Rzsp1ICVQtCNb2u/c SoLCQrmrO3OAtitLNmDz7uOEYmCiCPfW8fda3I8HRSnAdJsXLvxmqLXRyIc2tuhdecbbSGD69T6aL BQnwJCIECU5zLlSdQBH9ZCLhea60hpXBWpQF2g+n57uGmpEQwazgLIuooKMRiKLrMCrpHZm0Cpzwv q9ldjfHbKP1c/I9CzFnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mt8yQ-00G3Z8-O4; Fri, 03 Dec 2021 13:51:40 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mt8yI-00G3W6-S3; Fri, 03 Dec 2021 13:51:32 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 246865800EF; Fri, 3 Dec 2021 08:51:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 03 Dec 2021 08:51:30 -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=DjoRVDOV/7ZOVNAsunjkCECVVG QRaa3dBgHKlisr8g4=; b=bCrIRi0ejN+v0nKHnsPTDofnEsoDWSoAT4CJIeoleY DEnet5/UHKle+HuCZTpbj7Wfa8tfn/NM0Ip/JwuNM/Jb9Lsc/Q2GvvqcFkUkbUsR kptLpjA6Twg/4IW7ZLHRUlkL7P+RZSf3lL6BA0jOA9wDGKk9vMej2t4pINTaj2XP 4RhhlkyDILQ1rWNTsdeOT4awhxFaVv87jKxnJaEqn/xiyWOLO0gFh4FpFkVOh/Ir zu7dMj6aYhE1DiUxihi10uJsA0YrAcRaEjv33B2vocwqCuqfMnJ/qbaB8jszHHcV Nthzo37p113sRexonTxUKimr2QAwLKWsPdViF21I70qQ== 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=DjoRVD OV/7ZOVNAsunjkCECVVGQRaa3dBgHKlisr8g4=; b=DbumxWWtehAYOniObV98F3 AnxH/Qvw31N1W0tzNS6MMTdJgKOgkj7q3eGRTbzXzYHn0Q/VneCZTAHVQcHVRGfo H7od6mWL8E/YMZMTF2N5XUn2NHMD7P4TOEUxwwxGzGV6N8o0Le0H4oTmeAQXvvqy XQsE65SdA84v+Mpjw/+S4xdPVtDfamVAZCszmPPcsiEjnqiVKEZZpfDt4Yh5DUWi aYBfXJj+VFRjpyjSxH3BOykWgfEn5/nae9rCdsNYt7B8Q+fBguHf50HHQ94sSmQm UuAeG50m1Lr4zS9uNQ3e9XrLfk0ALrx6cqGjP9QpSMRe+m7TP9GyHcnizsJVg0vw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrieejgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 Dec 2021 08:51:28 -0500 (EST) From: Maxime Ripard To: Ray Jui , Scott Branden , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Rob Herring , Frank Rowand , Florian Fainelli , Nicolas Saenz Julienne , Daniel Vetter , David Airlie Cc: Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH v2 0/3] drm/vc4: Use the firmware to stop the display pipeline Date: Fri, 3 Dec 2021 14:51:23 +0100 Message-Id: <20211203135126.700165-1-maxime@cerno.tech> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211203_055131_042783_57FFE3C7 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, The VC4 driver has had limited support to disable the HDMI controllers and pixelvalves at boot if the firmware has enabled them. However, this proved to be limited, and a bit unreliable so a new firmware command has been introduced some time ago to make it free all its resources and disable any display output it might have enabled. This series takes advantage of that command to call it once the transition from simplefb to the KMS driver has been done. Let me know what you think, Maxime --- Changes from v2: - Use of_find_compatible_node instead of a phandle - Use devm_rpi_firmware_get Maxime Ripard (3): firmware: raspberrypi: Add RPI_FIRMWARE_NOTIFY_DISPLAY_DONE drm/vc4: Remove conflicting framebuffers before callind bind_all drm/vc4: Notify the firmware when DRM is in charge drivers/gpu/drm/vc4/vc4_drv.c | 27 ++++++++++++++++++---- drivers/gpu/drm/vc4/vc4_drv.h | 2 ++ include/soc/bcm2835/raspberrypi-firmware.h | 1 + 3 files changed, 26 insertions(+), 4 deletions(-)