Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 057BFC4361B for ; Thu, 10 Dec 2020 23:53:25 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3FE6820735 for ; Thu, 10 Dec 2020 23:53:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FE6820735 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CsW2V1ylwzDqyl for ; Fri, 11 Dec 2020 10:53:22 +1100 (AEDT) Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CsW0r0pC4zDqkD for ; Fri, 11 Dec 2020 10:51:56 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ellerman.id.au header.i=@ellerman.id.au header.a=rsa-sha256 header.s=201909 header.b=A5WoxWxE; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4CsW0q1crLz9sWQ; Fri, 11 Dec 2020 10:51:54 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1607644315; bh=WAgITyjWKw1UWUBXllHBE79F8v9rjQ5BdATmk/bD830=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=A5WoxWxEnhqAuD/k900pcC/iNJ8t+hnddiQSYI+MajxW7Z9WZ0/eGzl6EuSoo1D1P 0FCscP56e5FTh/bTXWpUM5Pje7PEmbg7BIKYHqb/4tpt86v8ECUXLAHU7tXKcQTBMl +QK1Zr1zbFFci/md5bvDxvAj5bT5eP5/F21HWtjHkd3z6keNTp8DZ+1iPJ68Cix7cM T8MySadvmnvsnyKpN6oi5Uk0jIrH/qYhCE3QdIWzuQ3qoMAhdugOL9AtFcF4B0YOAP T2nRgwLvH/8HL/JcwkeNmJ0IlJoH4AhZSUJX4NP5aQ2v1DzSnNh1Tw9vzVn8xUhTGh LALA9D8IjMkSA== From: Michael Ellerman To: =?utf-8?Q?C=C3=A9dric?= Le Goater , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 07/13] powerpc: Increase NR_IRQS range to support more KVM guests In-Reply-To: <20201210171450.1933725-8-clg@kaod.org> References: <20201210171450.1933725-1-clg@kaod.org> <20201210171450.1933725-8-clg@kaod.org> Date: Fri, 11 Dec 2020 10:51:51 +1100 Message-ID: <87czzhrzhk.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kurz , =?utf-8?Q?C=C3=A9dric?= Le Goater Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" C=C3=A9dric Le Goater writes: > PowerNV systems can handle up to 4K guests and 1M interrupt numbers > per chip. Increase the range of allowed interrupts to support a larger > number of guests. > > Reviewed-by: Greg Kurz > Signed-off-by: C=C3=A9dric Le Goater > --- > arch/powerpc/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 5181872f9452..c250fbd430d1 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -66,7 +66,7 @@ config NEED_PER_CPU_PAGE_FIRST_CHUNK >=20=20 > config NR_IRQS > int "Number of virtual interrupt numbers" > - range 32 32768 > + range 32 1048576 > default "512" > help > This defines the number of virtual interrupt numbers the kernel We should really do what other arches do, and size this appropriately based on the config, rather than asking users to guess what size they need. But I guess I'll take this for now, and we can do something fancier later. cheers