From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F5BAC77B7A for ; Tue, 30 May 2023 12:23:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjE3MXI (ORCPT ); Tue, 30 May 2023 08:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjE3MW4 (ORCPT ); Tue, 30 May 2023 08:22:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7524CF3 for ; Tue, 30 May 2023 05:22:29 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685449348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9jRbNquC92eIg+iZLP2C7Zs044JQXYMxXw9YcsxZzd8=; b=M1TWmt4FMVc7RuToeXRQx53Zybb+l+HiWAxepdoKrOpph8CMkDy41b/jUSxAT9TOJSBf0Y KaW009XO8rKLfCgrzSW27xb+yJYn+OK21TTaCxaZrNSjrYZ5/yDE3qLP5oGp7DToLVbdCa P7WZrxdEOD4HxrLW3oJ1k5czheai0paQWAq97wegJjXbJbRAbXCLdqC/u9+Mapd5G4K+k8 J6Kid+26lI+G2NShyQpLV85mYX+bMk+bdU1S17XscmE2wJUWWJoJJ1yZBHWee3kpg3UghP pZkyla0pdtQ2lLyHSHWwiIWHEVVLBbwxo9dZHZNhTi72trF1OPMIPofE/6Jw2w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685449348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9jRbNquC92eIg+iZLP2C7Zs044JQXYMxXw9YcsxZzd8=; b=Dk9sTfY4fdMLb1d+9pxmukaH3f3wadP1H7JA4ktOaML5HhLtBu3IDJjLCVSTK/zAkHB8cz BM5akaATTxsRLBBg== To: Huacai Chen Cc: Marc Zyngier , Huacai Chen , Bjorn Helgaas , linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Xuefeng Li , Jiaxun Yang Subject: Re: [PATCH 1/2] genirq/msi, platform-msi: Adjust return value of msi_domain_prepare_irqs() In-Reply-To: References: <20230527054633.704916-1-chenhuacai@loongson.cn> <20230527054633.704916-2-chenhuacai@loongson.cn> <87pm6llvm6.ffs@tglx> <86fs7gdhid.wl-maz@kernel.org> <87ilcblc72.ffs@tglx> <878rd6lwlh.ffs@tglx> Date: Tue, 30 May 2023 14:22:27 +0200 Message-ID: <877csqj9fg.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30 2023 at 16:34, Huacai Chen wrote: > On Tue, May 30, 2023 at 4:19=E2=80=AFAM Thomas Gleixner wrote: >> Now take that number and divide it by the number of devices on the bus >> and you get at least a sensible limit which does not immediately cause >> vector exhaustion. >> >> That limit might be suboptimal if there are lots of other devices on >> that bus which just require one or two vectors, but that's something >> which can be optimized via a generic command line option or even a sysfs >> mechanism. > Hmm, if we still use the command line, then we still have some similar > drawbacks. Only for optimization. Without the optimization the limit might end up being overbroad, but it definitely prevents vector exhaustion. For quite some cases this might be even the proper limit which does not need any further tweaking. Thanks, tglx