From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 DB346442B08 for ; Tue, 4 Aug 2026 10:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785838204; cv=none; b=tlBQad/m0RYgZR06keYEoriplSNyDzvgrrLtY4vyrKX3vzuNdqEVVNTHF8XoYZBpmrCx14BEMOxRwgKQunNpgwmvat+Q163l/H1oByzIRJNtO33XpvjDHTxtmNJP1ektp0bciX4tvP5c2A73ozdz3KkLXLk4Nbee2VxzY2497Wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785838204; c=relaxed/simple; bh=4PEo6ltYK2sqYwCSiPvreVKFxzAiD3FX1R2hrd+AH3U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aTn8HXgLSgS7THskQ6hOCOZXldftvJhajwF1YkTWmsIwH3w/gPRj0JR7u1hqt0YsknD62xNjg73+U0N8ySGn64B5QT2kNublQnIf/jpq8B4Y95+5Xmn0BO5mRve/ktqv5bgB7YQ3Xa/vKAjlOwh7OzEWBBWORyM8IgbLyg0W7EI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=LI6crjvx; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="LI6crjvx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1785838195; bh=4PEo6ltYK2sqYwCSiPvreVKFxzAiD3FX1R2hrd+AH3U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LI6crjvxTIltXjO90Pi3swewEMUtJJDKDw3R8nLTyiv8QKuJEsGxAtjNXf7W0Ng/b eVoqQKyA/9mmeC6YmyNcmS/6K3q1eckeWg+Qg6sZ/Hup8/7dlxmqw+jL9tD/KphWjO 9zZkL7uFUuAGyfEZuBM3BspDpL8kAgmZwkRRbiBlzVKchPclkBQN2FLulawJEP1fTq XMPD7tbYwcuNZ35KC4PG4gfkElPmxojvBXPrdxz4xbDBfGpQW8pvDwwsjvAe97qObG WHwZfUmLR83luC9l26xW7Z09wujM9d5kZ6ngXi977bqETCR0pU4NkSTfyupFSjSphL HWp+Wdy+MPIbQ== Received: from fedora-21.home (unknown [100.64.0.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbrezillon) by bali.collaboradmins.com (Postfix) with ESMTPSA id EA9EF17E0896; Tue, 04 Aug 2026 12:09:54 +0200 (CEST) From: Boris Brezillon Date: Tue, 04 Aug 2026 12:09:40 +0200 Subject: [PATCH 01/12] drm/panthor: Disable reset work before unplug Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260804-panthor-unplug-fixes-v1-1-abbbd2d41b13@collabora.com> References: <20260804-panthor-unplug-fixes-v1-0-abbbd2d41b13@collabora.com> In-Reply-To: <20260804-panthor-unplug-fixes-v1-0-abbbd2d41b13@collabora.com> To: Steven Price , Liviu Dudau Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Boris Brezillon X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785838194; l=848; i=boris.brezillon@collabora.com; s=20260429; h=from:subject:message-id; bh=4PEo6ltYK2sqYwCSiPvreVKFxzAiD3FX1R2hrd+AH3U=; b=8nNhBu4EHMzZ3AIzEC7YY7+Renks/fLDZZHuV5IlF3GxaRIRd4+Rs9owJzfBztP6OsgygCZcd IqjEJSwOLaFBKx1bP5/qno68gaT8MggcBBVFTRqcxbhS3LZKkx4bYkE X-Developer-Key: i=boris.brezillon@collabora.com; a=ed25519; pk=eN+ORdOgQY7d5U+0kA8h5bf67XdD8bhKbjD/TCHexSY= Make sure we're not interrupted by resets while we're unplugging. Signed-off-by: Boris Brezillon --- drivers/gpu/drm/panthor/panthor_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panthor/panthor_device.c b/drivers/gpu/drm/panthor/panthor_device.c index 0b25abebb803..e7f5744bc1e3 100644 --- a/drivers/gpu/drm/panthor/panthor_device.c +++ b/drivers/gpu/drm/panthor/panthor_device.c @@ -86,6 +86,9 @@ void panthor_device_unplug(struct panthor_device *ptdev) */ drm_dev_unplug(&ptdev->base); + /* Make sure we're not interrupted by resets while we're unplugging. */ + disable_work_sync(&ptdev->reset.work); + /* We do the rest of the unplug with the unplug lock released, * future callers will wait on ptdev->unplug.done anyway. */ -- 2.55.0