Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp212782imn; Wed, 3 Aug 2022 00:23:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ri1/cA66xijraR2ok7+4VOsSHyfszuzOojEXI0xJaGXsZ0qKmtmRHtnUrtJ+NGNbH5JJk X-Received: by 2002:a63:5f86:0:b0:41c:f1:f494 with SMTP id t128-20020a635f86000000b0041c00f1f494mr11787720pgb.51.1659511380715; Wed, 03 Aug 2022 00:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659511380; cv=none; d=google.com; s=arc-20160816; b=cFpXfX8BvAh8BQSYBfGA7L5emRK6YbfDD1U+c61qciHN3g+Eawo8ticPA5VhtgF8vw qvLwn2J+T6XUV5FViHInzsgqAw1cYLZqFGcIzYzmB0c6gaCIuy66rS4BZcfv1UhqjS+K K8qqf/MUhXaacYZTBOxrYGkCBPe1cgeyWj0z2Y4BJ/yONFFX0KIgUtBz2JmHNkUyOCjx 8D1sC2Pmj/t8SkRRojZVp+VRTMCzZ/5JimXXFeAcS/pNuDEAdhmgxFWokW0kychCOUnS B0ffY07mja/DKTqDBqnQ/9lQ/BeHaG4U6lcj+fKCGZCWNG9u2415v4GLvMtP2VblW+G7 H4PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=RbTJTh1TxdE5eF06bxjdslOQOySP9UjbwmIJMbi6B6M=; b=p1ohRWWvY8Pqv498LtFkwKIiZnxSptcvF3kCyLZpQkUUmj8dZxn7GBYp5LujbYrYXD ysthknPznRVgjusm3CXoA/k41rfS1/hvoGtKQpOnTzDuJX7oMNeZwZc/t7ImRb0mLArm GFqPlGG8c328GqzGBwJ3Qm+xu8zca3VxAEZumVdHJArEsX3q5M14QB1cE+HqLg3s/0Yb OxqwTFaj6/Jn4vEpo47Aa3gns3L4DqoplTDxksHo1LNQ2tnNX4+ZWqVxpAKRqC6WOb/a tWghep2TUDmBbCkwJFJit+iJVp5xdKRluC7/4M1DM3FdcbI3DRikrHnelLgQNfX+1vrZ L5NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=igb6ThVA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q71-20020a632a4a000000b004199ede8011si17281508pgq.846.2022.08.03.00.22.45; Wed, 03 Aug 2022 00:23:00 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=igb6ThVA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233710AbiHCHQ7 (ORCPT + 99 others); Wed, 3 Aug 2022 03:16:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiHCHQ5 (ORCPT ); Wed, 3 Aug 2022 03:16:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CD4117056 for ; Wed, 3 Aug 2022 00:16:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0B399B8215F for ; Wed, 3 Aug 2022 07:16:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B82EDC433D6; Wed, 3 Aug 2022 07:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659511013; bh=vLpT1MZsnGvUn1qOPyxmvYNsx+EeXpW+oCqfx+YIEOk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=igb6ThVA09YsDkcAu+3znQhVKbO1rUMp/sufMERYOXf+RVo0OV6U3F2jzmjAluqNY gTrviiaNKEUS7lnGqyZnrgKWD59RUgqCJcineeltRMv/OoJJW1D1ZPHtirCnx0i2iJ zyLq4bFrP+kQNOCtj7vcKyan79IqXr2Nr00HViiFi35tk2Q5e+NAkAkiOvd8nXFswS TZSRgezB6O1xVvBddSIpC2lpMZbikcuo3QWn/g9FmNWbCNtcSbJxRQ0cra4BfzWvgx 5FlitMQIxtk8fBnSrIUYWFoE3kotedD5M5maNZorDA8T8pHMAszf4pcsG8t6/PI+6I 3RpGDukOtigRQ== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oJ8cd-000gkI-IW; Wed, 03 Aug 2022 08:16:51 +0100 Date: Wed, 03 Aug 2022 08:16:20 +0100 Message-ID: <87sfmdbxvf.wl-maz@kernel.org> From: Marc Zyngier To: Daniel Walker Cc: Thomas Gleixner , George Cherian , sgoutham@marvell.com, "BOBBY Liu (bobbliu)" , xe-linux-external@cisco.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] genirq: allow selection of number of sparse irqs In-Reply-To: <20220802223747.GX821407@zorba> References: <20220728030420.2279713-1-danielwa@cisco.com> <980a561ed87c5530aab2e2b067074862@kernel.org> <20220729182156.GS821407@zorba> <87wnbuc45y.wl-maz@kernel.org> <20220802223747.GX821407@zorba> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: danielwa@cisco.com, tglx@linutronix.de, george.cherian@marvell.com, sgoutham@marvell.com, bobbliu@cisco.com, xe-linux-external@cisco.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, 02 Aug 2022 23:37:47 +0100, Daniel Walker wrote: > > On Sat, Jul 30, 2022 at 10:59:05AM +0100, Marc Zyngier wrote: > > > > > > Marvell submitted a similar change, but non-selectable, about a > > > month ago. > > > > Which wasn't really acceptable either. > > > > > > > > The limitation prevents Cisco and Marvell hardware from > > > functioning. I don't think we're well versed enough on the generic > > > irq system to implement what your suggesting, even if we did Thomas > > > would not likely accept it. > > > > I don't think you can speak for Thomas here. In my experience of > > working with him, he's in general much more inclined to look at a > > scalable, long term solution than at a point hack. Specially given > > that we already use xarrays for MSIs. > > Your welcome make the attempt yourself, if you believe in it. The thing is, I don't need it, while you apparently do need a change in the kernel. > > > > Your suggestion is more of a long term solution vs. our short term > > > solution. > > > > Exactly. Experience shows that short term hacks are almost always a > > bad idea and result in something that isn't maintainable. > > Thomas introduced the "hack" in c1ee626 in 2011. Yes. And it covers all the systems we care about so far. It is small, fixed in size, and doesn't impose extra requirements on everyone else. Your system changes the requirement, and it is the opportunity to revisit an 11 year old decision. > It's more of a question of if someone has the time an and/or > inclination to make the changes your requesting. No, it is about who has the need. You do, and nobody else does. > Marvell and Cisco only require to increase the size and keep the > status quo, and nothing is wrong with that. It is pretty wrong when it adds unneeded overhead on systems that don't require this, and doesn't scale in the face of existing architectures (let alone future ones). Distributions ship a single kernel image, and would obviously select the largest possible value, just to maximise perceived compatibility requirements. My ask is that you don't inflict this on systems that do not need it. > > > > I'm not wedded to any solution, we just need to relieve > > > the limitation so our hardware starts working. I would imagine other > > > companies have this issue, but I don't know which ones currently. > > > > This architecture has been in the wild for the best part of 10 years, > > in Linux for 8 years, and nobody so far screamed because of this > > perceived limitation. It would help if you described exactly what > > breaks in your system, because just saying "give me more" is not > > exactly helping (there are other limitations in the GICv3 ITS driver > > that may bite you anyway). > > We need more irq lines because we have a lot of devices.. I suppose it's > possible there's some defect in the kernel which eats up or wastes irq lines, > but I don't think so. We have devices which use a lot of irq lines. > > > > I would rather to use an upstream solution verses holding the > > > patches privately. I would suggest if this limitation would not be > > > overcome for 3-4 releases the short term solution should be > > > acceptable over that time frame to be replaced by something else > > > after that. > > > > If you want to have an impact on the features being merged in the > > upstream kernel, a good start would be to take feedback on board. > > We did that.. I updated the patch from Marvell's original to allow it to be > selectable, this was requested by someone on this list. Well, I'm another "someone on the list" asking you to do better. You are perfectly entitled to ignore me, and I'm just as entitled to voice my opposition to your approach. M. -- Without deviation from the norm, progress is not possible.