Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1176025ybm; Sat, 30 May 2020 00:49:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7hc8m9RPbpboTrpx9VKX3aRF+wL0WGhHEAdpToB3jSCFNaPFMpQTXuI1zJH0kBdr9NKUd X-Received: by 2002:a05:6402:4d5:: with SMTP id n21mr11704270edw.49.1590824941277; Sat, 30 May 2020 00:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590824941; cv=none; d=google.com; s=arc-20160816; b=KrEjNQpwG1h5YBCIs4Vy+adakq56/Y644OjF7UdYUNS8m3xXibiMOByEHY37zSRt8e bal7mJt9KCt2ioEY6n7aMcBjSFPwLeZWroupnWzNjg732PiD4R6ZSl2hM5wGsu68KMCI N4/f5uNhPGdCbwvKh3GGA/VNB8um0W19GBwVz9WhpPvbY8itHU8QNBefSXB7o4D/bjcR o/f/gBOE6RU+2GyBBMRirrgSVwxyNQBs8NJ5rRQTJVhBu4w97P1t9uxpXybOuuaSY4lI hg6ejEC0NDjuCE92BLJEUkvYhgIZkpUi6RtAg2hhTDhtp74PoK/Cj4c4/P/Ew67cP5Ja L4aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=VqQFf+1apqdqZC0eDjqR50IEX9xc6WT1Y3V8/V8cFAw=; b=X0oiRSbkruwXIJdmTzjMwW2jIzk3SXJnDfMvDHI8ZYotgxvjL9WhQyBW2DqWFVvR+W sj6fQBdoUYdw4iJ0qEnE2HXMZXy85J+aVS+Gol/WSqqWAyUi4Xsxa5TzX0ADzWsZrKXU xwUx7jset4PGO5a5MYIvLp7yAKoSQ2A7PGatmZtD5caV0ViN6wMi3cXy6YLi0BACaVR2 kNl4n5jlbGk0jk7P7mizDcKmWjvppNSPkUZi9gn5PYMWu4iv+zr14JYuwQIZeeRBM/81 3VniRqK50+rQHLC6HJe/8htXwJjgc0jXKcZr+y9xHqBmesX9ZN7cXqJ4BRHTC1oiVdKw GkAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si7173501edc.238.2020.05.30.00.48.38; Sat, 30 May 2020 00:49:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729009AbgE3Hqv (ORCPT + 99 others); Sat, 30 May 2020 03:46:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728982AbgE3Hqt (ORCPT ); Sat, 30 May 2020 03:46:49 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C91F2C03E969; Sat, 30 May 2020 00:46:49 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jewCb-0001tR-SN; Sat, 30 May 2020 09:46:45 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 64D6E1C04DD; Sat, 30 May 2020 09:46:39 +0200 (CEST) Date: Sat, 30 May 2020 07:46:39 -0000 From: "tip-bot2 for Wesley W. Terpstra" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/sifive-plic: Remove incorrect requirement about number of irq contexts Cc: Atish Patra , "Wesley W. Terpstra" , Marc Zyngier , Palmer Dabbelt , x86 , LKML In-Reply-To: <20200512172636.96299-1-atish.patra@wdc.com> References: <20200512172636.96299-1-atish.patra@wdc.com> MIME-Version: 1.0 Message-ID: <159082479927.17951.3725006513982997123.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: 82f2202ddc97490994fad0dbfec04a014fa5163d Gitweb: https://git.kernel.org/tip/82f2202ddc97490994fad0dbfec04a014fa5163d Author: Wesley W. Terpstra AuthorDate: Tue, 12 May 2020 10:26:36 -07:00 Committer: Marc Zyngier CommitterDate: Mon, 18 May 2020 10:28:30 +01:00 irqchip/sifive-plic: Remove incorrect requirement about number of irq contexts A PLIC may not be connected to all the cores. In that case, nr_contexts may be less than num_possible_cpus. This requirement is only valid a single PLIC is the only interrupt controller for the whole system. Signed-off-by: Atish Patra Signed-off-by: "Wesley W. Terpstra" Signed-off-by: Marc Zyngier Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt Link: https://lore.kernel.org/r/20200512172636.96299-1-atish.patra@wdc.com [Atish: Modified the commit text] --- drivers/irqchip/irq-sifive-plic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index d0a71fe..822e074 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -301,8 +301,6 @@ static int __init plic_init(struct device_node *node, nr_contexts = of_irq_count(node); if (WARN_ON(!nr_contexts)) goto out_iounmap; - if (WARN_ON(nr_contexts < num_possible_cpus())) - goto out_iounmap; error = -ENOMEM; priv->irqdomain = irq_domain_add_linear(node, nr_irqs + 1,