Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2612691rwr; Fri, 28 Apr 2023 12:59:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yMdpxPoq/VlnnKZ+1oWVHNW7BauC3Mn/QmXVElNNv1PsAjqt2d4TfMx3otvqlcdvAn44Z X-Received: by 2002:a05:6a20:a5a6:b0:f2:5b9f:fe61 with SMTP id bc38-20020a056a20a5a600b000f25b9ffe61mr7163521pzb.34.1682711981963; Fri, 28 Apr 2023 12:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682711981; cv=none; d=google.com; s=arc-20160816; b=ZZ3CrqCRlow+tTtrA81sF6ZXKfc5jf+2ijsR+BwmJAgIn6zGwAFmBXbeK/6wAW/LU3 i5w7bgXmg6hc9Lgm1thS3RnRFj1/D4xNz08pgF+DyS4fnAI5AcPx9a90Qr0qrmNt/MGX A5zkhxtbeC/lAidC2BRviynxk7tNJMFHXxi69/8mf+qHHL0qw+S1jhwW8u6dfOFdFCAr 2C0by7ugGqGGFCoLN+/twTdlYTWSEqoIOiwlhU8WwfP2wuxWQ3nfnji8n54GIHPP+MTP vAoNikC9d9tJ5oU5TSvoBlbd9BZqF3rBz70bV3d6RqOJZVtUQfSvez0QC8lefdqf1pzM I3Vw== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=8jHIWRDzXVzwINmHY3J+R6JOlIn9kOmFGuKDUHcAIm4=; b=xISdsnhe385x8D76tKSEylNQ2A18UkKTW2oU5CQ8OJLyJeDlU0vpjUbkB5ZuHTD7sK BGWAdmPaLxBGs7InyAOQ8TK0nGmoHtTUDEvfbkquW7po5stCLG26MhhYXs6npeJdrkei SrwukzCWCwMVv7oblXu2UeorkBZpRfaxZWX1/WJet+Vl0IyvcV7QcQ25yyHmKqE1m7sT 7RTOmP/ztzKdfx6v/dLARszg88d7ettYyRJPDE0PLDnqYgWNBrwOtjBiHfqNTBCKEqAw BMS0gekwCBjKSG92GkfIwopzXpH5MX3bMx8I+nPFZT13Uo4yTYMZt/wXcocPY8w7T7Q1 jnaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a94kRAkN; 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 u184-20020a6385c1000000b00524fcd54553si15679253pgd.485.2023.04.28.12.59.30; Fri, 28 Apr 2023 12:59:41 -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=a94kRAkN; 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 S229882AbjD1T61 (ORCPT + 99 others); Fri, 28 Apr 2023 15:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjD1T60 (ORCPT ); Fri, 28 Apr 2023 15:58:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E0231FD0; Fri, 28 Apr 2023 12:58:25 -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 dfw.source.kernel.org (Postfix) with ESMTPS id CA64E61760; Fri, 28 Apr 2023 19:58:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAF95C433D2; Fri, 28 Apr 2023 19:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682711904; bh=8pYoJFiMr4SpXHY2GmG9BWIEDeQ9cKWvIu6rc2hQ1p4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=a94kRAkNkgbPZQsVDkYAkVlj9drg+zycuiz10S/7Avh/0YAJEmOuNCBWfSkoYI9m3 Gt05YbiorasWILDkRuksrYZeuuBKh3XGUxOjPcQJstlRntL2YNUksb6lBkHwvC1vzW 6nZ1ElQXctRXJrVEDTkRMXpjtuUOHOY9Og1eJ0E5yMwzPAJ8LKO10hKspBRywBd+zV twJSworsnlvtYjjT2aBG6l7L/uv32VtuLnN5yydX0ihZYBXmM5lzPofWPRkdaqqw68 6x534tKZMJyJvsA9WX89F9p+QiTsm/QpXL6I8I+lzpBVcIvdKW8zJ1+xy9y+3d67JU 56We72rnpHcug== Date: Fri, 28 Apr 2023 14:58:22 -0500 From: Bjorn Helgaas To: korantwork@gmail.com Cc: nirmal.patel@linux.intel.com, kbusch@kernel.org, jonathan.derrick@linux.dev, lpieralisi@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Xinghui Li Subject: Re: [PATCH v5] PCI: vmd: Add the module param to adjust MSI mode Message-ID: <20230428195822.GA361074@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428184036.GA298937@bhelgaas> X-Spam-Status: No, score=-7.3 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,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 On Fri, Apr 28, 2023 at 01:40:36PM -0500, Bjorn Helgaas wrote: > On Thu, Apr 20, 2023 at 03:09:14PM +0800, korantwork@gmail.com wrote: > > From: Xinghui Li > What if you made boolean parameters like these: > > no_msi_remap > > If the VMD supports it, disable VMD MSI-X remapping. This > improves interrupt performance because child device interrupts > avoid the VMD MSI-X domain interrupt handler. > > msi_remap > > Remap child MSI-X interrupts into VMD MSI-X interrupts. This > limits the number of MSI-X vectors available to the whole child > device domain to the number of VMD MSI-X interrupts. I guess having two parameters that affect the same feature is also confusing. Maybe just "msi_remap=0" or "msi_remap=1" or something? I think what makes "disable_msi_bypass=0" hard is that "MSI bypass" by itself is a negative feature (the positive activity is MSI remapping), and disabling bypass gets us back to the positive "MSI remapping" situation, and "disable_msi_bypass=0" negates that again, so we're back to ... uh ... let's see ... we are not disabling the bypass of MSI remapping, so I guess MSI remapping would be *enabled*? Is that right? Bjorn