From patchwork Mon Dec 13 09:25:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12695848 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 41F13C433F5 for ; Mon, 13 Dec 2021 09:27:36 +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=saGWx9ORMEp5FVQ8Wwq7EJu2t2AjMC4ImZbQB0EedjM=; b=ph6onXSEpogVue gIizgIkcLuL7f8B0EqEzoaoO7hoLyhyJCGWdSWY8LdBn6csaJ7ioVlljDZlXBR7V76KezAi5//l/c Zt459IfBjevSgv2FAVaHKzZzpXUk7TctrAKFvji3shyc5JU9Zd5LBBG1bIBYNKl0viL1XQsEoiuYm kqLDnrHfXP4QWGHju46dgaRzu4wmRqiZU5VEuWy2wKJFYHhFAObnwQ7cQ3vR336xIFXA1xzE4Gbl/ A1uVfI8zXI3B9K6Hz0oP7EZEG0YiW6ygS0GNHySkwUZZ6OlM68RS/IO86ftbOWTgpz8hs0ENt1ijA nBZ/JEH/oSWNjXAIDdcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwhaN-008cMm-Kg; Mon, 13 Dec 2021 09:25:34 +0000 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwha7-008cJ8-3b; Mon, 13 Dec 2021 09:25:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 2C8942B00187; Mon, 13 Dec 2021 04:25:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 13 Dec 2021 04:25:09 -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=vtqTvPdpGGHBDDENeO/HqO6ZP5 7aMLW8mJz0rtT3JSI=; b=YU3soc3lJ2bRLLp8h41vY/9WsIVAgzOA4rJjUn7r90 TQCbzgw3JLNxTGK+XjcymzSIrIOktxsiKFJIKYCThER/jb/0i5iT2ojL12iIeQHw u3wxvwtc7dM/LPzamk944vDVpn5no/K7fjzqnmvo3N+Xj/wPrAGL8xbAiIZTTU3Y Zshku5sL9uHAbATd1iwKV76J8j/hU6Q+JhrpE7AhVIVA/7xqtgcay4t1YUo3UEd/ eGdgzQDKfGpz2mOOYzVrUPNbDsDhrlu6kRrtjWH4AI0hJ+hdGsILA9+Rg1ngO501 xDnoC1VWo/ITA4Wk6SBgEyYP0OzbvKIKi1s140PY/DfQ== 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=vtqTvP dpGGHBDDENeO/HqO6ZP57aMLW8mJz0rtT3JSI=; b=MfHDnDSvCGzcUADdSBTFVr TyQH3CHH/4euP0ww6GM2OHo/fMAdT4EkbKv+CUFUessCFEI4iSNWxOKeXUxzbuNd Bpn8jEOr1hn4X4MaJbr9My/6j0fjHAHFHGGN0k9/x7C2wlmihDgDSxGBizqed+SA kOMcMA3B6VZN4QAscGBAb+16yj5w6J0bsgfQDjfy8WpOc1h8KEgL49aMpf00DF7w kYm+hv7HvxTYwUa/3TiJr0Cf7MuUAR7jD2+8MjDTHYC9ETmfs/zctmBkgOIqH8Cv i8jS6CbNKVy08ZEsTcLrEMflzot/h5vXSd/SNnaj9HgE2WV/BNpDo/78c8x42IDA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrkeekgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Dec 2021 04:25:05 -0500 (EST) From: Maxime Ripard To: Ray Jui , Florian Fainelli , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Scott Branden , Rob Herring , Frank Rowand , Daniel Vetter , David Airlie , Nicolas Saenz Julienne Cc: Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , linux-rpi-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH v3 0/3] drm/vc4: Use the firmware to stop the display pipeline Date: Mon, 13 Dec 2021 10:25:00 +0100 Message-Id: <20211213092503.57379-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-20211213_012515_221647_6FA703DF X-CRM114-Status: UNSURE ( 9.82 ) 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: - Switch back to rpi_firmware_get / rpi_firmware_put - Moved the rpi_firmware pointer to a local variable Changes from v1: - 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 | 30 +++++++++++++++++++--- include/soc/bcm2835/raspberrypi-firmware.h | 1 + 2 files changed, 27 insertions(+), 4 deletions(-)