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 E77D622541C; Mon, 20 Apr 2026 15:58:53 +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=1776700734; cv=none; b=OeIu4FWt6yvilnpNzBR8h1Oi7Dd+LG3gxYjtI8kaoc09PFpAHdy0lRGIznpCFMimb9h3QCHeuN3meN5Is2SC7TtiZzkr8rj81JjzfOVnsu97pWgF2Wmw1hAOdXlQyduqzr88bAGc1MZi/vdru3LdQ7W55Sb2amlR6395il7wAuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776700734; c=relaxed/simple; bh=VwWW/b7zQGXK8kCvGw1SEvJyhqxQEiHa5ZheBwYENl8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IeoOndbKhQtZaNCupXGr6Ttvt0O/fiZYfv+2It95a3nGN5+SF/XEqvP3UDpm9oPJMjaL4YiunarAT5FxM5yXUGgz8YQSQzNHa1PmLxNGev/bePd6vh7yFx3jMEn68AdAAfADmv+xFrgFgV7G/x7vx1p4k+P7Z4U3htl9Hwm4KAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m5iutAlJ; 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="m5iutAlJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D3C7C19425; Mon, 20 Apr 2026 15:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776700733; bh=VwWW/b7zQGXK8kCvGw1SEvJyhqxQEiHa5ZheBwYENl8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m5iutAlJ60I6g3MrKZ2VYZA4PgfEf5rENqtQTi5Gjf8i0d5SqmtHSBauSZOd96Zet zGa7QnrrTqGNnMcnZTyCIIV1yjEkYpOwNiTf6JEkV5sZ8i/hhFh8AjHiU6Hpj86DOZ ilxT72NhCrG/fvd3+NiZoTvzs0dUaVt3d9WfsWDY= 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.18 065/198] drm/vc4: Release runtime PM reference after binding V3D Date: Mon, 20 Apr 2026 17:40:44 +0200 Message-ID: <20260420153937.953795980@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260420153935.605963767@linuxfoundation.org> References: <20260420153935.605963767@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.18-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 bb09df5000bda..e470412851cc8 100644 --- a/drivers/gpu/drm/vc4/vc4_v3d.c +++ b/drivers/gpu/drm/vc4/vc4_v3d.c @@ -479,6 +479,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