From patchwork Wed Dec 15 09:51:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12696222 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 25DAAC433FE for ; Wed, 15 Dec 2021 09:53:10 +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=fj48KswYuv/C94VuZSO22KZ4LDBKb7WL0UZYp5aBq6M=; b=g8PIPkeAU/ML47 +wh08B6yYnJ+4hTpr6HDEFRE74OT08sfhbMuDvjTxObFvytNhaYbF9jfvANKukjsOlxIeRUDAtJqP AzwvAlyaBH5CCQ/g4XN1e+qmdt4R9HzIRG0Xx17MuYxsQgohLBKuIjJ0yxpzJJswO0ZzBwddUETUF dYCr5EGfMe6lQPYu/IafHF3gDi6+XOFVJbxcbtYIbejx99CT0UOr2LpucI/6SM8JbnwncFINp1jMZ StlyEx3Ui3n3dacRFGGscyjqMm07mO82GFUZqDUaEMeEJZYixs/xEVwWqyP/Wqa1KZcaM6J7mr4FE i8P9v9Ntk3qqfqY/tQfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxQwg-00HaK6-LW; Wed, 15 Dec 2021 09:51:34 +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 1mxQwX-00HaCm-Gu; Wed, 15 Dec 2021 09:51:27 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id C64435801D3; Wed, 15 Dec 2021 04:51:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 15 Dec 2021 04:51:19 -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=LoABpmPSCAnztFtCTgeHnKeUKn dp7F1ja6+WusHM+uI=; b=GRct1MA7qksaPNnl8yeAofhKQIT49KaQfTB440let0 f5sBuXZiS6rCOTFwlURtjwfxcVpXGw3dUFWB0uUQK/qvWuZ8htZR7jnHHWTSBmar uOlGk+ChmPxAYO65i8w2hbtIcR7ldFvyvEq1puVtPhS+heSc1I9abhethLLmtAbr A21zDgctBgzdgMmyyOP7ENOND3nZmfQI3bBlIKh/Tt0zU+lv9GwT85knDlTLPu8d +5pFjyEQ4ZWx8orJpk6DtkjrWbIOWFovv4VovYh1D2+Qe9qSi1qpJ3jqWcmNrUag sJojmaaJY/kxLkJ6IfEqTCO8b0nNf6oLAaK4FBEtXRmA== 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=LoABpm PSCAnztFtCTgeHnKeUKndp7F1ja6+WusHM+uI=; b=D9T/mdgD5R/+e7RBwM9Wv8 ZIo/oxqps8gW2DtXpTUCYycxXlvJfaxj9rOlfEt2pGh2GXQ+1ONSJvsVq2Nc77G9 BIkEWnE5bM6mKa49/Ez2Jvw5hUZWVOpSp0qGM5kcIN5iiGjJSMFmLNPNx8i5s9a2 vUBjQ7qLbeD8JDhdl2tzuA8hwJgXholq28qv1ld8uzF73+FIux/pR1KI+pmyK50n /8DuKmTBP7vCV42DAQP7OVHDDk0qxS41vhgozPHFl2zNKLfiNGiXHzac+Jp+zyJJ /+4E5KsEYJoyBpn0pd9+1z+a5kZulemxSUj1gpsPpa/QCtyWSfj8c4hk0pvNUDCQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrledvgddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Dec 2021 04:51:18 -0500 (EST) From: Maxime Ripard To: Florian Fainelli , Ray Jui , Nicolas Saenz Julienne , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Scott Branden , Rob Herring , Frank Rowand Cc: bcm-kernel-feedback-list@broadcom.com, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH RESEND v4 v5 0/4] drm/vc4: Use the firmware to stop the display pipeline Date: Wed, 15 Dec 2021 10:51:13 +0100 Message-Id: <20211215095117.176435-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-20211215_015125_657588_857E2A23 X-CRM114-Status: UNSURE ( 9.41 ) 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 v4: - Don't register v3d with nomodeset Changes from v3: - Support nomodeset 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 (4): firmware: raspberrypi: Add RPI_FIRMWARE_NOTIFY_DISPLAY_DONE drm/vc4: Support nomodeset 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 | 33 +++++++++++++++++++--- include/soc/bcm2835/raspberrypi-firmware.h | 1 + 2 files changed, 30 insertions(+), 4 deletions(-)