From patchwork Wed Nov 17 14:50:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 12692922 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDE3DC433F5 for ; Wed, 17 Nov 2021 14:52:59 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9518C61A3D for ; Wed, 17 Nov 2021 14:52:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9518C61A3D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=z0zjlogol8XTNuvKPLNPmmgXbvCOrcpzpeb7Eqt6UOA=; b=1Kfc2ROcTecfE4 8qarKUZAp44wjeqQtrfFvGzaxICQDGCy2n3VqqknUgY4a4peeteP8J4Rkt3aPui5Bmd+1cQ8ossMo 0C6aza5B6SsYVV0Wv057pwei/F1G+AjcobHMKmzejlwgETa7QifJPRFaOeNl5Qx/nwMgoLYliNH0u jYdEsyoKNsAGN+NFJUBWrr16FAHhsWF9y1JgIztzzbroBJRt9Mmd45rSq0duuIJK2UEZOKoJysc7Z G+Eq8vM+3QhzTFAPJB4VJ2kbM/TMtNQzxXD0PESyHWdu9QURSZB7qB/hc7rKxuTHgXpBQhKhqagLM oMR1VdkKynay9dD622AA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnMHO-005EHM-Ch; Wed, 17 Nov 2021 14:51:18 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnMGw-005E61-BF; Wed, 17 Nov 2021 14:50:51 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 84A8758099A; Wed, 17 Nov 2021 09:50:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 17 Nov 2021 09:50:42 -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=N8Os3CMXs4JeHb6BC6GVswjkk2 zShXd0QpBit+CX7W8=; b=Jj0nTVl/ThKcmFPMNbQgp1ei52exmpLqHyeq0Vlb5f J7BPTGiI0E1I5hpn7jmYStFmgK12wkeU5nbpWvKibt/x+1oLoNS59dWFAWMFAej9 b6mt+twUGmqIOY42GPrrEnUP4/gnUtkeqDe5lE5rU+8N2DliAvQYUZmgjnQJ6r7V eO0drrRtlWMrwCt9WYvJxmCfYzScdgEcnTQKNd64NCyyGOarA8arS0BeFu6A42S2 /8p76NyQCxDyR8+gUM5kXNIyofBSRME6iHdk9XR4N0W65u7XcP0KbR3mIJZrgc4V Ttchs4Gw4HCbau5w9dy8fM6CzDBeY30nAzAWJ7EuLDOw== 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=N8Os3C MXs4JeHb6BC6GVswjkk2zShXd0QpBit+CX7W8=; b=PN3sCUz3WSJ18kU4cx/vd2 WIrduIeDKg++umRkJS7reAOfgqmASbm5Ij5i+q7wye/clT8TWmJ8XU0JaVamEWip jDSvNfZdQrFIge+8v2pCwc0v8B3q6TJHUTtLOO0UBfqOTxqWvwC26HLTVrzgH6Pl cDP03RdRv+8TRk0ru7GgqaXW/iq7K1inKH4Cw1TMRovV3fqmEAdg/hDslVNfyi4m 3CLkpa4r+v7yICLo6BsGhvJz+hTVibcLuH7DsJ6zqUKbbvPGXlXSmLoxvIa5Yz2k LJeFWLjOS0RuEVWKRWVCIcbHzqodZJYTRT9IUp5KTVKx0SgnFo4A6SVWbaYsiGxA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrfeeggdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepteeikefgffekgeekledtheduteetjefgkeeuvefhhfetgedugfektdeugeffgfef necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgi himhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Nov 2021 09:50:41 -0500 (EST) From: Maxime Ripard To: Scott Branden , Nicolas Saenz Julienne , Rob Herring , Frank Rowand , Ray Jui , Florian Fainelli , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: linux-rpi-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH 0/5] drm/vc4: Use the firmware to stop the display pipeline Date: Wed, 17 Nov 2021 15:50:35 +0100 Message-Id: <20211117145040.334827-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-20211117_065050_501854_5E6F7EF2 X-CRM114-Status: GOOD ( 10.91 ) 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 Maxime Ripard (5): dt-bindings: display: vc4: Add optional phandle to firmware 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 ARM: dts: rpi: Add the firmware node to vc4 .../bindings/display/brcm,bcm2835-vc4.yaml | 5 ++++ arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 +++ drivers/gpu/drm/vc4/vc4_drv.c | 27 ++++++++++++++++--- drivers/gpu/drm/vc4/vc4_drv.h | 2 ++ include/soc/bcm2835/raspberrypi-firmware.h | 1 + 5 files changed, 35 insertions(+), 4 deletions(-)