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 1350653A7; Fri, 6 Dec 2024 15:01:20 +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=1733497281; cv=none; b=TqT5SPS2Yl4pYM0VehUhOhoWUP87VFa0JA9ISU3fiN/DDn20UsRIPvnXYu7f41PzOjhylabHv/yXQvB6za12uvvDEwZrAwSIOgUQdydffmxy+VheAGgD/CZkYHkeyfnQUoXrYh7ygi2bL6rPvYNT+EUKjqtKY6eBSzlxop4ylB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733497281; c=relaxed/simple; bh=IWps/lBvmwFgH8hUqECEPReZajlH7q41Wb+bowFwbXo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y+5sx75aR/Sa/q2Bi1nj/bQhSGZBn8BQMDnj6ATVPO71XqtFyz57q0HCtAjgU+SKV6cEQ2CLXErOgo26Z2eqBjYdVgroWRV2MDOEBFBkufVB6Z71hhjUaehH/liu10ChKdbEAERI0meTBtxdx0yB9K1eOtJ52VHDCKNUs6xVjok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XGr4Fobo; 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="XGr4Fobo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A99FC4CEE0; Fri, 6 Dec 2024 15:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733497280; bh=IWps/lBvmwFgH8hUqECEPReZajlH7q41Wb+bowFwbXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XGr4Fobo71Em5otvicY1L4iZaNCBh4jq/8yWV5uFnA4ckbDPqfjzoZ3ZMDyZDCNXv yumM7hlCDfI316FUfF/P8FnlMOkofwf2q+lp+557f8ROe7qffvJuVdhUYvoSu/96Pg eY32p2Wq73bpxxhfeJJzfZd8tQMXahIp+Z4Z4WGc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dmitry Baryshkov , Jinjie Ruan , Rob Clark , Sasha Levin Subject: [PATCH 6.6 215/676] drm/msm/adreno: Use IRQF_NO_AUTOEN flag in request_irq() Date: Fri, 6 Dec 2024 15:30:34 +0100 Message-ID: <20241206143701.739075787@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241206143653.344873888@linuxfoundation.org> References: <20241206143653.344873888@linuxfoundation.org> User-Agent: quilt/0.67 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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jinjie Ruan [ Upstream commit 394679f322649d06fea3c646ba65f5a0887f52c3 ] disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable when request IRQ. Fixes: 4b565ca5a2cb ("drm/msm: Add A6XX device support") Reviewed-by: Dmitry Baryshkov Signed-off-by: Jinjie Ruan Patchwork: https://patchwork.freedesktop.org/patch/614075/ Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c index 7923129363b0a..c9edaa6d76369 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c @@ -1432,15 +1432,13 @@ static int a6xx_gmu_get_irq(struct a6xx_gmu *gmu, struct platform_device *pdev, irq = platform_get_irq_byname(pdev, name); - ret = request_irq(irq, handler, IRQF_TRIGGER_HIGH, name, gmu); + ret = request_irq(irq, handler, IRQF_TRIGGER_HIGH | IRQF_NO_AUTOEN, name, gmu); if (ret) { DRM_DEV_ERROR(&pdev->dev, "Unable to get interrupt %s %d\n", name, ret); return ret; } - disable_irq(irq); - return irq; } -- 2.43.0