From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 22FDB33F590; Mon, 20 Apr 2026 15:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776700251; cv=none; b=SFkgd5AvlK8+86Nt4OV6/P58s9pjI+4Bxe0yuWjrAheg/htHq0C12t+KiLTxsVZNwmxazQsFrB/MZi41+t8+6uDNt3aT4Ji/OkqncOfEGph+kSq6X7vyeMXLE1bhwRYMitF93hA1af3lQd46mk5zCX2OvGA7lyGo1xO1UMCtznw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776700251; c=relaxed/simple; bh=L7SXgTvWUnYLs68t3UxZSswvFZNPInrzqqyi9Iwji3g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IDYIyFHSeUKiiwVqDjr6VPLkcc29aO4aaDk68WrP1Kaxy1c9KxUjUR+A3mn1zaJqhFhFgjCsbCYL4jruamsU3SEbGqkPbbeChIRFyKiNRuuIS1AFKNbNx+RzK2/nxXJHGHkibWYdxROoC6tv2PYhTNvf5vPbOBg1hDcLnFZ9T9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rF+oK7RR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rF+oK7RR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE566C19425; Mon, 20 Apr 2026 15:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776700251; bh=L7SXgTvWUnYLs68t3UxZSswvFZNPInrzqqyi9Iwji3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rF+oK7RRF6d7xFO5A9vgPdSVQgH+6mue4rqaQAjVtDefm58055Kyllmj6Z4cfDYnt TJnFXMoBX8AM9eTxu9S0Dkq+7DWqJONZlPQhD6Jlw6PTjmbgUVjKlzenqDjVD4bNLW 0ZQ62OvCfQfc/Re42iPDD7SB5Z9svtJaj1GCvPH8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Melissa Wen , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Sasha Levin Subject: [PATCH 6.19 072/220] drm/vc4: Release runtime PM reference after binding V3D Date: Mon, 20 Apr 2026 17:40:13 +0200 Message-ID: <20260420153936.630626250@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260420153934.013228280@linuxfoundation.org> References: <20260420153934.013228280@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maíra Canal [ Upstream commit aaefbdde9abdc43699e110679c0e10972a5e1c59 ] The vc4_v3d_bind() function acquires a runtime PM reference via pm_runtime_resume_and_get() to access V3D registers during setup. However, this reference is never released after a successful bind. This prevents the device from ever runtime suspending, since the reference count never reaches zero. Release the runtime PM reference by adding pm_runtime_put_autosuspend() after autosuspend is configured, allowing the device to runtime suspend after the delay. Fixes: 266cff37d7fc ("drm/vc4: v3d: Rework the runtime_pm setup") Reviewed-by: Melissa Wen Link: https://patch.msgid.link/20260330-vc4-misc-fixes-v1-1-92defc940a29@igalia.com Signed-off-by: Maíra Canal Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_v3d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c index 3ffe09bc89d27..d31b906cb8e78 100644 --- a/drivers/gpu/drm/vc4/vc4_v3d.c +++ b/drivers/gpu/drm/vc4/vc4_v3d.c @@ -481,6 +481,7 @@ static int vc4_v3d_bind(struct device *dev, struct device *master, void *data) pm_runtime_use_autosuspend(dev); pm_runtime_set_autosuspend_delay(dev, 40); /* a little over 2 frames. */ + pm_runtime_put_autosuspend(dev); return 0; -- 2.53.0