Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp44454otr; Tue, 2 Aug 2022 15:45:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Hx+f/Lh8LAVMhMBIsZ9QQmof+Ztdmg8kUgKioxhJgoYrk2hIyavV2LY6FNotIvSiupvXO X-Received: by 2002:a17:906:9bdd:b0:730:5b04:7298 with SMTP id de29-20020a1709069bdd00b007305b047298mr12489730ejc.180.1659480306701; Tue, 02 Aug 2022 15:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659480306; cv=none; d=google.com; s=arc-20160816; b=eJxWhFJhD/uFtFdNREc7Q4e4vcxUGqEVPZMtcTX0CXkoObi9n3QWCBUyWp4iyEIR6P dB15/baZ2fqznBzsaVV1k7mnszLMraUSAlMmhQOsa0bQXWTmlsX+SNPwqINxrih+Ouk3 dqcnqRlOm3T0v+YqzMgpBlbpJeTTEcu8UH8Iqq8dX6zAaeoJk79khVf5+XyMK0QW8aIQ 3P+N2vCZy0F12yu3F/zGN0MnliuwqQ5Fm2NOzNaHuyQOv5r3rQcgaQhibshwImvdURmt tMFfK2ebtbskYUMHEOLajVs8jmU0/V5ewhRbJ8oFQOUx8uTjXnAbK7+avzMSpuQ9WgyY 4NQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=d2GHIEai1LNjWNCtg9lbQgcXnnHsK7PD/kSxcdmnxwY=; b=Csc9JbvfjD1hr1PIzzO7r2zXD8SQRYlQZfkd7y1JPhs6Qg7SfRXCFNqdsZSC87YpbE DmAz1nuDWTvaJZNPlZyshyHUNXisuo4BpCErjds6N+HDybQ/iyGNqXwRYR+a85CxapjO AsJYHGBIs7lSvKvAMTYYzNnzQvfSDtZe0yOUdj2tMpMXFOGvy78sL5eLihCPTcIxFyGL RjAEn8y6oCZ1+gztJDoMSJ6CF3Iel0b+o+yc6MoElDxe4teHSCpclxD5G1PbQXkP/SVh UomJ6UcgTNX8GPq6k106XHPXLJVi2fQWFMvzcFcx+2NCz6NTyolPY5BnI0U0MxuIuVNQ UCOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b="T/0olTYM"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd42-20020a1709076e2a00b00730a1c48503si2911524ejc.967.2022.08.02.15.44.42; Tue, 02 Aug 2022 15:45:06 -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=@cisco.com header.s=iport header.b="T/0olTYM"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236347AbiHBWh6 (ORCPT + 99 others); Tue, 2 Aug 2022 18:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235175AbiHBWhw (ORCPT ); Tue, 2 Aug 2022 18:37:52 -0400 Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C7D217AA1 for ; Tue, 2 Aug 2022 15:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2671; q=dns/txt; s=iport; t=1659479871; x=1660689471; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pKOnt7OBLC0Sl5DxaQljA8KzE5uazBS88utyntub/94=; b=T/0olTYMBocamuzarv239CBUCc348lWE6wE5vSXDGzHs6JU7CkaBRvWS gBPbP3gTk94gvsqpbjnyzhU7kcpRbrzh6/v41vcLWRg0xK/OnUiZ8yhOq b/l3g1sXZqLIs4eGiFmU3Cjugm90xYmTLJo4u6JbMi1fsmhGcvfPC7Rkc 8=; X-IronPort-AV: E=Sophos;i="5.91,230,1647302400"; d="scan'208";a="782774020" Received: from rcdn-core-2.cisco.com ([173.37.93.153]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 02 Aug 2022 22:37:50 +0000 Received: from zorba (sjc-vpn6-436.cisco.com [10.21.121.180]) by rcdn-core-2.cisco.com (8.15.2/8.15.2) with ESMTPS id 272Mblld013996 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 2 Aug 2022 22:37:49 GMT Date: Tue, 2 Aug 2022 15:37:47 -0700 From: Daniel Walker To: Marc Zyngier 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 Message-ID: <20220802223747.GX821407@zorba> References: <20220728030420.2279713-1-danielwa@cisco.com> <980a561ed87c5530aab2e2b067074862@kernel.org> <20220729182156.GS821407@zorba> <87wnbuc45y.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wnbuc45y.wl-maz@kernel.org> X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.21.121.180, sjc-vpn6-436.cisco.com X-Outbound-Node: rcdn-core-2.cisco.com X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,USER_IN_DEF_DKIM_WL 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 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. > > 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. It's more of a question of if someone has the time an and/or inclination to make the changes your requesting. Marvell and Cisco only require to increase the size and keep the status quo, and nothing is wrong with that. > > 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. Daniel