From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 505C458039D; Wed, 9 Sep 2026 14:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788964250; cv=none; b=nZInRtihmtxTJInHQ7v7CEtQpcYYt7H/sFd05OsjVILoqQaFElCf6/oKEQls/G6Pd9kyHmu9Br+y6bijYESH3sBLozHNvuRrAUTsN69WoAE/faEIyIhkgOAQ+/gGQdczSUXCLRrSw8rYIADj6yUhE+AGfDr9bg7Hkf+vCFpyJro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788964250; c=relaxed/simple; bh=56ZtcuoB6vk5O0TVDQGjxTMxx+w7Twzm8U+DKDDb87c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hd6lVnE6iWi/6UC+gNhrJpOLwx4t6BA7DTm1O07Ye4zTpWjNkoee2s0RFxsUtweu0Iar4mos0dS/ryOkExMb/7VxJViZgO5KdFrmS9KrZLfhNPk/obwAWRYdmoWoWGS8OGJIJmy+//RhbKAukw6qJdj/UMqkpruwXiyrkSlKKVE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XLLor9VO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XLLor9VO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB0D71F00A3A; Wed, 9 Sep 2026 14:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788964249; bh=qbRHv+yAT2pcUh1e3bnE84ZPVauZ+AEvdkvnzLsFTP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XLLor9VOABPqYAUynY2GW/tJKerkXGeWi4+WWbxw4+TjgjAcZ+B2djLJ//FiJr4MO tMQiJIwntI2ffa0gW8kQgQbWwCr5sw3VAIkHAe1eGeOo3mtom9iTrkjQvx0q1zv7gR WL3NiVjlnoTbIo9nDXUEjJjl9kFrGVuvVPPhqVKI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Konrad Dybcio , Dmitry Baryshkov , Hungyu Lin , Bryan ODonoghue , Bryan ODonoghue Subject: [PATCH 6.18 320/583] media: qcom: iris: use disable_irq() during power-off Date: Wed, 9 Sep 2026 15:40:05 +0200 Message-ID: <20260909134249.092053129@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260909134237.773280130@linuxfoundation.org> References: <20260909134237.773280130@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-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hungyu Lin commit b9c2215bdedc9c532a7e9d57ec49ee1b6381f863 upstream. The IRQ is registered as a threaded IRQ. Using disable_irq_nosync() in iris_vpu_power_off() does not wait for an already queued threaded IRQ handler to complete before returning. As a result, a threaded IRQ handler may still run after the VPU has been powered down and access hardware registers after power-off. Replace disable_irq_nosync() with disable_irq() so the power-off path waits for any in-flight threaded IRQ handler to complete before returning. Fixes: bb8a95aa038e ("media: iris: implement power management") Cc: stable@vger.kernel.org Suggested-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Hungyu Lin Reviewed-by: Bryan O'Donoghue Signed-off-by: Bryan O'Donoghue Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/qcom/iris/iris_vpu_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/platform/qcom/iris/iris_vpu_common.c +++ b/drivers/media/platform/qcom/iris/iris_vpu_common.c @@ -272,7 +272,7 @@ void iris_vpu_power_off(struct iris_core iris_unset_icc_bw(core); if (!iris_vpu_watchdog(core, core->intr_status)) - disable_irq_nosync(core->irq); + disable_irq(core->irq); } int iris_vpu_power_on_controller(struct iris_core *core)