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 3B12A192581; Tue, 10 Sep 2024 10:19:39 +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=1725963579; cv=none; b=NuSwE8/sLEmgja1iMpgrRMkT3VNOVOZa6VZvYFEUrUY9FgXnx5xmbMUbg0hR7hX6kMb9POzHtGZC939mk1DlLQExKwc2KndzuBOjepZshz+Qi3ZWfoL347jasHOg3m23kBJjcQbsxeqSxVgfU54fOBw6BkteTGdMJopGoW13CjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725963579; c=relaxed/simple; bh=hDumZNeO2yMMYpVKlDRvzdzLw9YWsHMdOhfyiG+77Fo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AiN2khXmAWKR8MjsYqDGTpX6v0+Fh68w7HyTR94oCXB6iEtG0W6nLeoPGRqo5R+URzl70pNbLcZ8VVBhQ03+rIFwoZ51r3hZXHTyU5E97GTDlRy0VuUj12+T6s09RdlmC/w8Uuw/lDefnV4sTAQ9oLhpVcHIKQoPv31e8CT6RR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cpc7HQYs; 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="cpc7HQYs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8FC9C4CEC3; Tue, 10 Sep 2024 10:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725963579; bh=hDumZNeO2yMMYpVKlDRvzdzLw9YWsHMdOhfyiG+77Fo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cpc7HQYsWG47Qbkj64nxIUeu/FmRuDARJF1T6/XrKoyfX4Clo25oQsUXNDhqFe2ek nhWOjRZN2zxq2gRNW0KeqpeXFCoYOlaQYlJOadLH9QPULdvBktEguuBnHrf0WNgZSw MPoyfy0K6Gdcv5fHJo5Q4t5xB5QLIJ3x3j2CcGsk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Pali=20Roh=C3=A1r?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Thomas Gleixner , Andrew Lunn , Sasha Levin Subject: [PATCH 5.15 105/214] irqchip/armada-370-xp: Do not allow mapping IRQ 0 and 1 Date: Tue, 10 Sep 2024 11:32:07 +0200 Message-ID: <20240910092603.096919146@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240910092558.714365667@linuxfoundation.org> References: <20240910092558.714365667@linuxfoundation.org> User-Agent: quilt/0.67 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pali Rohár [ Upstream commit 3cef738208e5c3cb7084e208caf9bbf684f24feb ] IRQs 0 (IPI) and 1 (MSI) are handled internally by this driver, generic_handle_domain_irq() is never called for these IRQs. Disallow mapping these IRQs. [ Marek: changed commit message ] Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Signed-off-by: Thomas Gleixner Reviewed-by: Andrew Lunn Signed-off-by: Sasha Levin --- drivers/irqchip/irq-armada-370-xp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 01709c61e364..3fa6bd70684b 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -546,6 +546,10 @@ static struct irq_chip armada_370_xp_irq_chip = { static int armada_370_xp_mpic_irq_map(struct irq_domain *h, unsigned int virq, irq_hw_number_t hw) { + /* IRQs 0 and 1 cannot be mapped, they are handled internally */ + if (hw <= 1) + return -EINVAL; + armada_370_xp_irq_mask(irq_get_irq_data(virq)); if (!is_percpu_irq(hw)) writel(hw, per_cpu_int_base + -- 2.43.0