From nobody Tue Sep 29 11:19:26 2026 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C3D324886A for ; Sat, 8 Aug 2026 12:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786191485; cv=none; b=Rjbp9nS9dM05doTiQKcpjGnLfEl6hmFDgruyrS06RBry4Ja9lZImqksaWHibRplG6mLg9/cVmZadsHHwRVKfJCCL8RG81x4gURMQSM2GgjBVoQ3mJxvZJCjCOhvfGFdvPyziXuhooSh7wJWS8ksKPbL+NRqiEDUjFLJkBqL6wwU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786191485; c=relaxed/simple; bh=a+TJaX4ER1FWwzfB7ZX9Vno1hut2/r6rvF0x/WRAjvQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b1YV5R8VNgBJoFK4Kxl0K6W4g4M+Zi4IcuS5GasAOFd86NAB1Xj2QXvF8V+nV1pwvFj5KcgnuhWmEasrIEetqUf6oy7FOewoP58hcqkeAAyhYv0MMvSz1Tb508CgG5azN7kajYkzb7tWuLQvR0yjhBwNK7JBP8shJGVq8XWlW1g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=n10ojE88; arc=none smtp.client-ip=209.85.215.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="n10ojE88" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-c96b08cdd1cso284284a12.0 for ; Sat, 08 Aug 2026 05:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786191484; x=1786796284; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=zCtw9XLhyYld5CLOFuXhhaanDpjQ78I0gCn1Zksv45A=; b=n10ojE88kEoSadyNvpJ4d0IoHzQYgwQDaV6Ob9wXVxo3sOOFEIE3xgGCKRTiugkhfG SMKPHLcg1IZhiVbuy36c8zuBsTbXfyUO2nltCYiPsp4MfiMtZgrCasAviNAXl9l/HvrK 7a41YhIX9I3SZ9SA1pmmPzcixDk/8mJxtxF05ofhVxUjeVPMDZ1T9RhFpWSpfgDsR//v skYmP6fAZ4q3sZe1M53xaqR2iHBE8+0xonsym3j658jrr2C9+cfwgQLPSyATBNi0PrMe gHx19vBC8PjFpEt3RMctYMpb5Fz2dUVix+IChrHwbZ1iqb+ynyfgrh/C6JKAdddwxc12 eFBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786191484; x=1786796284; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zCtw9XLhyYld5CLOFuXhhaanDpjQ78I0gCn1Zksv45A=; b=XRdzaJafwP40BnU5CZiX9bWQL9rLxJ7o5EnyeYDdsx5w6aTkoYrqNrkofS7rK9EndO 0dUNFDiQfltMDlPB2kZ4w3jqJBKh6fvMuYDv8NzsM2SDeX0r4TvZFh9vmtDdErQhvqAN UofeE29Jk4WIIdlsjBWUm5OU8reGPKWisdf0XjKQvopzT09ZnX5r8FuxRQxXlOB0WMeM xpUZ9/CUYrKbdqhrbbcxdJNV7vbp6AGEXc8r05mXVo6qEYgaU1oJcLwB42hrNSnELUhY XCjyoc7Ds+YgIIbbSjIT6NeTxblLOU1mCWpHOLOw0omqXHZoid0Z/UBpIepGl0vr7LNO cyCA== X-Forwarded-Encrypted: i=1; AHgh+RokpK4R5N3P+YxSqr94aHuPGf/mdEtH8TehvrURFhH8FjcIR3sefMnxnoKfRJ/Fl036rAa+2s70UTrCzTY=@vger.kernel.org X-Gm-Message-State: AOJu0YwFRjXIpNXhaA2sY9fayJKoqpIJP1J8BjRWUE6GgUfTu+4pn/wU IL+1fFnCrxjSQ8lVsYIkkM4Ec6l78uFkCFs3etrMW1sLyBcYrV3OXb0R X-Gm-Gg: AR+sD11FKCA3F6cTSfCTnBc57myY69hDfAQ8ssLT4qDuPhjiq3ehs6/1UBzr5O7Mk2J kD5OF48QDd6O/zw8HdNl7DWeUvOtyyYovF4Edq24e1H7W1EQdzLN8Tcuv/oYr0DNlgw/d3VssWo J435sfL+xIdmn8f+JcHlo8TznBR9CD9GnYWFB2mbHLJ+q4ZELzo485baE3LgY0QBGTrx2GepvZA qNPbEiXVFgQVIwceTAHd9l1AJemujb8wUk1b8dRcvJvxtQhkdzn/XNUHoWGiiKiAXhgVzafKhzH TNz1GYA/8rqlU4kI3R0jG03ed/iib94EXZYKybTgp1vECGsPO/ro4duEANAPkQhMNtWbD4Efu8w xofJlQ9WpJ6dk9VT4pUZ42GKY5TZ7LvbPSP+hbHNwphyepr6/5UuAE3FZIDwb5FU3UNChHXYRAS PbXF5AFaowVBQhSCafq7R26IwX9vncW5EEbR7EEkPTWU2i1xnJArk4Xae/AbpVokOr14KW X-Received: by 2002:a05:6a20:914b:b0:3c3:bbe6:95b1 with SMTP id adf61e73a8af0-3cb85eef9d6mr29740341637.24.1786191483645; Sat, 08 Aug 2026 05:18:03 -0700 (PDT) Received: from lgs.. ([101.76.249.46]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cbe8f1b04e9sm1781742a12.12.2026.08.08.05.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Aug 2026 05:18:03 -0700 (PDT) From: Guangshuo Li To: Inki Dae , Seung-Woo Kim , Kyungmin Park , David Airlie , Simona Vetter , Krzysztof Kozlowski , Peter Griffin , Alim Akhtar , Joonyoung Shim , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guangshuo Li , stable@vger.kernel.org Subject: [PATCH] drm/exynos: g2d: fix autosuspend cleanup on probe failure Date: Sat, 8 Aug 2026 20:17:52 +0800 Message-ID: <20260808121752.2819486-1-lgs201920130244@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" g2d_probe() calls pm_runtime_use_autosuspend(), but its failure path does not call the matching pm_runtime_dont_use_autosuspend() before disabling runtime PM. If the autosuspend delay is set to a negative value while autosuspend is enabled, the runtime PM core increments usage_count to prevent runtime suspend. Without calling pm_runtime_dont_use_autosuspend() during cleanup, this reference is not dropped and usage_count remains unbalanced. The documentation for pm_runtime_use_autosuspend() also notes that it is important to undo it with pm_runtime_dont_use_autosuspend() at driver exit time, unless runtime PM was initially enabled with devm_pm_runtime_enable(). Add the missing pm_runtime_dont_use_autosuspend() call to the probe failure path before disabling runtime PM. This issue was found by manual code inspection. Fixes: d7f1642c90ab ("drm/exynos: add G2D driver") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exyn= os/exynos_drm_g2d.c index e92a4d872c41..98a5679258e2 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -1523,6 +1523,7 @@ static int g2d_probe(struct platform_device *pdev) return 0; =20 err_put_clk: + pm_runtime_dont_use_autosuspend(dev); pm_runtime_disable(dev); err_destroy_workqueue: destroy_workqueue(g2d->g2d_workq); --=20 2.43.0