Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5758546iog; Thu, 23 Jun 2022 04:57:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1stJ5xk+DUFm4OWOx685Hgj1mYA2Eq4YHGR0O7Ioeam3YDNI0Egzii0ESLNbwVkDfWztRIE X-Received: by 2002:aa7:d709:0:b0:435:6ae6:5fb8 with SMTP id t9-20020aa7d709000000b004356ae65fb8mr10402087edq.161.1655985437461; Thu, 23 Jun 2022 04:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655985437; cv=none; d=google.com; s=arc-20160816; b=Enu/rjZ7k5Yb/GJAiBj9PhvcNnQ9hqJc+1sXx8dOe/YW32id54XjCwhbsrfS6/OHkW FcNWfxvWPjAQVbsZJ96xSDtvQlPNWO9qk704cUAJbKuvsJGWSuNHDSS/rNF/Qs3pfuo5 M9GWqHeihxh/aUzfnZlW1hZiKKCN6rVYyFMAZazwb6rUVoocmQoNpSviEBtoU+3xK1UV rW8nIQ0J3ZulA0//McSPLwdSkMxPKJ5QBisZAAZoTga60eguoXyLidv/OQUbuc79fxkd /gx0EpYligt8g2aR4pxxjYmjgUdPlcbg6oI2rxG0UNrJFxYnzx0dSLGTCZYOQJUW6EVO J5dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=VrMdU0HjFrKmZSdp3vZG0loKAn0PwZ8282KXjR1u1bs=; b=Ijpv+11s/e3T+QIJcZe2r4K0h3ZYygHgdQyCMAvJFZoZbGdD7TGfl7B2Nd8nq7hXnE 441vqFaUWNJRh/h+qGMHV5VDCIZaDPs01Rl4v2dVjMkHw4kQA+E/emVKwTWAh75M+tmk 3hdxOxWvIyJ5gBKHurQt4m+me7huM6eQVgCGXbgQj9wbys8jHU7P8wgI1v+I7X0jfB97 NkGyqIayTTgrZLPgg6jWeG4XlALxAbSjJ8VTGDfsHqgDEb0dO7/gfJex1o22F1ojifWY C9SUtgQzoBTv9XGxJeT0iJjxrieDoe4cCBW0eogx14IP2NvKn8s1eXcxARCyTYHMe4yH NVFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a05640240c800b0042ddbcb9abasi23906900edb.586.2022.06.23.04.56.50; Thu, 23 Jun 2022 04:57:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbiFWLSY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Jun 2022 07:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231246AbiFWLSU (ORCPT ); Thu, 23 Jun 2022 07:18:20 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF9AC64F6 for ; Thu, 23 Jun 2022 04:18:18 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-135-F5csG3KMMyCOZzSfmLQ2PA-1; Thu, 23 Jun 2022 12:18:15 +0100 X-MC-Unique: F5csG3KMMyCOZzSfmLQ2PA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Thu, 23 Jun 2022 12:18:14 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.036; Thu, 23 Jun 2022 12:18:14 +0100 From: David Laight To: 'George Cherian' , "linux-kernel@vger.kernel.org" CC: "sgoutham@marvell.com" , "tglx@linutronix.de" Subject: RE: [PATCH] genirq: Increase the number of interrupters Thread-Topic: [PATCH] genirq: Increase the number of interrupters Thread-Index: AQHYhrze4USA0Oy8jUywbP1lQPnHp61c1/2A Date: Thu, 23 Jun 2022 11:18:14 +0000 Message-ID: <7974b4d7782b4f8682547389d4f294f8@AcuMS.aculab.com> References: <20220623031541.1716745-1-george.cherian@marvell.com> In-Reply-To: <20220623031541.1716745-1-george.cherian@marvell.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: George Cherian > Sent: 23 June 2022 04:16 > > Currently the maximum number of interrupters is capped at 8260 (64 + > 8196) in most of the architectures were CONFIG_SPARSE_IRQ is selected. > This upper limit is not sufficient for couple of existing SoC's from > Marvell. > For eg: Octeon TX2 series of processors support a maximum of 32K > interrupters. > > Bump up the upper limit from 8196 to 65536. This seems to add 7kB of static data to the kernel just on the off chance that some sparse interrupt numbers are large. David > > Signed-off-by: George Cherian > --- > kernel/irq/internals.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h > index f09c60393e559..9bb42757d4afc 100644 > --- a/kernel/irq/internals.h > +++ b/kernel/irq/internals.h > @@ -12,7 +12,7 @@ > #include > > #ifdef CONFIG_SPARSE_IRQ > -# define IRQ_BITMAP_BITS (NR_IRQS + 8196) > +# define IRQ_BITMAP_BITS (NR_IRQS + 65536) > #else > # define IRQ_BITMAP_BITS NR_IRQS > #endif > -- > 2.25.1 - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)