From patchwork Mon Dec 13 16:26:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12695939 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 D3D60C433EF for ; Mon, 13 Dec 2021 16:28:20 +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=kGIQN2Fpb+6BB+taMRcE1OZdE0NH6DJLYgkIc7F62nA=; b=ot8wEqzIbzpII0 bpPRvytuXwKUmVe+I1wTcfMdmgI/tNwHcQ3k/J77ky9YXqKeNo/sWcKdidO4ys/mAG84jWo8oJpI4 rn5BjLm71ZoRAZG++6n+h4/u9GkIyUXsR+BeCcsRIKKNYd10D9scWNxYKFuERrGtd/+o6yHWYBfNG 8StmmJTY4hJes7PTZVkBRNOaoGxDsNC96GXr8CK+V9Km79iR2hwUkGNmCaxWlc14S1e0UJ8rMX8G5 7CJwi3fXgXNK1d5H9Gj/BhwbsyxqZ+HbczuuxG4JyDxE6hfowLQ9CXOMwuBzOUjxPkh0UZ+z4tR65 sTfqYyBm66/ZCZcJbumA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwo9z-00AZyn-EF; Mon, 13 Dec 2021 16:26:43 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwo9u-00AZww-4i; Mon, 13 Dec 2021 16:26:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 646B75801BD; Mon, 13 Dec 2021 11:26:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 13 Dec 2021 11:26:37 -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=5vdEa6qIK+Pl4PDMRRW/BnIuTi qM1tXz1szVmprOufQ=; b=E4Rm6TPv+/gWTMBHDKeQaB+qamWwV91QnxxbT3myib ZhhxS6fygzykWcCDIeOivfKGgPuzdze8sLZxZ1TefAIBbUsR1uYz0e7fBZO6dT/f wOFc+Xd+hnRyuYovVCwfqQOjkpcTb43iEA+6C6m1drvyMS44L+waIsvzlMaefNqZ hcifneCwx//cLOI+QuZK5KvjRMOPakqrled7PwKXcvuqO0zsQ+1O6Mzg51nUZW/6 8lCG3YamNPeLO1VYpdIveQHU6RV+Z04fYgx1rTnVK2Wwy+riyA5pujGjv1rEvdh2 paQ6ZoGeXit7UhXaAhYifSrBzPLsg0IuQukEVDyoAn5g== 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=5vdEa6 qIK+Pl4PDMRRW/BnIuTiqM1tXz1szVmprOufQ=; b=dol1zxjFi6MhlAIVTL5YA2 NqF98qazN5XBkyNHtADyMd+vv/vTuEGIa3WCg0ZJmBDhCJuRKxjeSze7MEeOrstc 9Up/pGle/FEUk2+DsYI++tAka5ZnxK4qwCRpHcS3G6Zxh6ep7Z0L370QEXQIhQZc fLaAdmTu5NljblnbB7Bi5DE9t49xLUZzYpy2QK4aOPqGMSNqF+9Az1ACWvsyKMDY zmsjEg/oBWSvz53v0Rm+id7O7qbVNvXR6GloyxtAesTzg1eQOqWUiwChfSG9d9KZ Vz8EKOW/seGf0mkO4M6l7SlRn5Y30gvf502BbCIgauHpuAjcPbvn7c2rySN/w/0Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrkeekgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Dec 2021 11:26:36 -0500 (EST) From: Maxime Ripard To: Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Daniel Vetter , David Airlie , Florian Fainelli , Scott Branden , Nicolas Saenz Julienne , Rob Herring , Frank Rowand , Ray Jui Cc: Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH RESEND v4 v4 0/4] drm/vc4: Use the firmware to stop the display pipeline Date: Mon, 13 Dec 2021 17:26:31 +0100 Message-Id: <20211213162635.252582-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_082638_290490_7C8B635D X-CRM114-Status: UNSURE ( 8.99 ) 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 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 | 50 ++++++++++++++++++---- include/soc/bcm2835/raspberrypi-firmware.h | 1 + 2 files changed, 42 insertions(+), 9 deletions(-)