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 612D61A680D; Mon, 23 Mar 2026 13:55:40 +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=1774274140; cv=none; b=l3k2HPg2u1UG6oEteQVHY0997vf1ZMvQXp7NpAKU8HMymIg9y4ifJiU7JqCEjsh7Lz0ndOVQiCEMYQ8wR6ev1xUfHZa1U/tFGFWqxF+4EUWs1xyYFyjNGuPQ+DKuecP2SUrJcaL6ebxb6W8ihLW3KxEgN0xyP2N9avpKOnHaxuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774274140; c=relaxed/simple; bh=tW5rJjv3sFUiw7fw4wcAZxBXNvyYiQzxmPpe3LWSE/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QTTh3kGmJzKYUOBhClQ0Mk45tCQqbZYgHLkj1HjudpZQsTrQpfTms1agL1A1N0yR8XvF2xmlbvXam7sDpblDQs9Aj/P8vIdiOdwYBGx0mTtYJpTWE7o/+zn0D8R0dtxj8RPoMTt/PWbrncUKKr06Vmd3nVaTtjeU/OXKG28/O9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yjr8GgK+; 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="yjr8GgK+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D58BFC4CEF7; Mon, 23 Mar 2026 13:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774274140; bh=tW5rJjv3sFUiw7fw4wcAZxBXNvyYiQzxmPpe3LWSE/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yjr8GgK+qnQJTxgJtKdlOrfxh6ruSrX5Dbmc84tLIFV2diwCh+oO6TgiDBAdpvnBR CkBHWtp9ZXrBoeYsuNmpQ+arOVzcfOEbbdVCe+/xpCMKVSWNwb4sOuxNWq2DY6HtkH CjkusmM6WQYA13UqlJvyQQvx+QGXcZajFDFc3DgM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alessio Belle , Matt Coster Subject: [PATCH 6.19 080/220] drm/imagination: Fix deadlock in soft reset sequence Date: Mon, 23 Mar 2026 14:44:17 +0100 Message-ID: <20260323134507.126627235@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323134504.575022936@linuxfoundation.org> References: <20260323134504.575022936@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alessio Belle commit a55c2a5c8d680156495b7b1e2a9f5a3e313ba524 upstream. The soft reset sequence is currently executed from the threaded IRQ handler, hence it cannot call disable_irq() which internally waits for IRQ handlers, i.e. itself, to complete. Use disable_irq_nosync() during a soft reset instead. Fixes: cc1aeedb98ad ("drm/imagination: Implement firmware infrastructure and META FW support") Cc: stable@vger.kernel.org Signed-off-by: Alessio Belle Reviewed-by: Matt Coster Link: https://patch.msgid.link/20260309-fix-soft-reset-v1-1-121113be554f@imgtec.com Signed-off-by: Matt Coster Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/imagination/pvr_power.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/imagination/pvr_power.c +++ b/drivers/gpu/drm/imagination/pvr_power.c @@ -510,7 +510,16 @@ pvr_power_reset(struct pvr_device *pvr_d } /* Disable IRQs for the duration of the reset. */ - disable_irq(pvr_dev->irq); + if (hard_reset) { + disable_irq(pvr_dev->irq); + } else { + /* + * Soft reset is triggered as a response to a FW command to the Host and is + * processed from the threaded IRQ handler. This code cannot (nor needs to) + * wait for any IRQ processing to complete. + */ + disable_irq_nosync(pvr_dev->irq); + } do { if (hard_reset) {