From mboxrd@z Thu Jan 1 00:00:00 1970 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 DFB83C982D7 for ; Fri, 18 Sep 2026 18:56:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To: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:List-Owner; bh=ZFWn+9tZx2ZRpTC2S3B/gHsd+oomsNLU+dwzo6AFhds=; b=r3EJoF8do6+QuWcix9VLCkoNuX r0HqXgyCYNRFH7R4wpuzqyPJMlcTTo5VI5wtx+lZCf3F/k4EBuKfhCBb8eQsRsJ9724e7zxWMUyzp E5wEjnnodyCDwmsk4GehVWR8agArWseYGHdMTPu6qILs+yLAkDjQW/bfOstOQsDLq4PCQ6FInswLj sWPYekTgXNzIuTVBNAwkNsZdg/oTvolwiA3SdHA5FgTYfk34cl2q3H7vlv9vSAdES92NLaoFHHNZ4 O+kGNmc4eC1e0kvPJ3GhvRf1nur5rP0NDlT4rzK7xQmpC7gM3OLeIyZG9197vfcSK7pDIlV1BUGQc nV39ZrBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7dl1-0000000FMKm-3I5M; Fri, 18 Sep 2026 18:56:23 +0000 Received: from fanzine2.igalia.com ([213.97.179.56]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7dkx-0000000FMJr-0Kls; Fri, 18 Sep 2026 18:56:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:From:Reply-To; bh=ZFWn+9tZx2ZRpTC2S3B/gHsd+oomsNLU+dwzo6AFhds=; b=i80Cky3WkfZSf5211WmFavqThS OEmSRTkW060bX5M/YPaBslCf2KBAiuxzS5uCUMxYpDJS521PGYbblTu7mMKJSN3c3P2gJkuRYnYbu b59nh3gqFwlQWHiugds9HQCrHb7aeZV8ODeU8Ordt5KLcMcPhOqiYbq/mhRyzU1UA2fi6vj5MeEdL NcgowkDRVdK1QPP3RLtboJrJQDIrenCBbM6RRVaOueobd5ehqG7KyAxfPOZFfmWLiSVB7gIRrjXpd j+l3YumA6aiVo7QHyWPYSf3/dV8HzfHlsNmv3Ygwi/BL5neG5Y7VD2+iQnx1+uuvZnTzS558UAFWK LWtzy5Fw==; Received: from [179.105.94.163] (helo=prince) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1x7dka-0045KV-Ba; Fri, 18 Sep 2026 20:55:57 +0200 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Maxime Ripard , Dave Stevenson , Raspberry Pi Kernel Maintenance , Stefan Wahren , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , =?UTF-8?q?Ma=C3=ADra=20Canal?= Cc: kernel-dev@igalia.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski Subject: Re: [PATCH v2 0/4] drm/vc4: Reset the V3D block through the reset controller Date: Fri, 18 Sep 2026 15:55:09 -0300 Message-ID: <178975770640.2754751.4760048743026029481.b4-ty@igalia.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260915-vc4-reset-control-v2-0-cb3a25b07822@igalia.com> References: <20260915-vc4-reset-control-v2-0-cb3a25b07822@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260918_115621_086793_FB7037BC X-CRM114-Status: UNSURE ( 8.76 ) 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 On Tue, 15 Sep 2026 17:51:23 -0300, Maíra Canal wrote: > vc4_reset() recovers a hung GPU by dropping the runtime PM usage count to > zero so that the V3D power domain goes down, and then taking it again. > Forcing the count to zero only works if the driver knows exactly how many > references it holds, which is why vc4 unconventionaly wraps every > pm_runtime_get_sync() call in a private refcount and mutex, making the > code cumbersome. > > [...] Applied, thanks! [1/4] drm/vc4: Drop the undocumented brcm,vc4-v3d compatible commit: fb825a46e7982460bd620f5e6a71924c647f4280 [2/4] dt-bindings: display: bcm2835-v3d: Add an optional reset line commit: 6ab4aad3481903ac3743513517c290a3ebd39232 [3/4] drm/vc4: Use the reset controller to recover from a GPU hang commit: b4448823f151d0b4a3f3f4c5622c6ade51422c4e [4/4] ARM: dts: bcm2835: Add the V3D reset line commit: 3afbeb6b99ddbe082a238a659b7e7a7239f49e0e Best regards, - Maíra