From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F29B5521884 for ; Fri, 18 Sep 2026 18:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789757798; cv=none; b=rFebRQgJU3r1p1uA5MSvaQBH5ljpjnFus+27siMHmOBkpV0txeSxnt4ds8I3kDWA2CGwNAjfz3aUISP7TiarEI4UEc2xWrlw1vY2nxsuk2ZnE3znO13cIiirGtR3Ucqs2JETszajXWA1SaWsIkPdiSlZ4Z/a5wNwOyZjQp4/qP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789757798; c=relaxed/simple; bh=7esQJ4Nh0+Hw9Gt1F5ZO9/cnjLpUUTi72YzYlZJHVlA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nVUsWAGag/HrHThC7f7ymOaPh60S6UkfRiWg0nhRmSr6IxLevHBdXpz1Po8RBy/b7XFUuxp9fWvS7/nfKnSUj7CqgqNUsc0cUczpHTnfnGC4p4Lvnk6fTY5X45ci9bcdNHp6vJbYGa3Px3OfVg2M6BQJiAtcwhUNC5mFaq0rsBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=i80Cky3W; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="i80Cky3W" 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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