Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3510231pxb; Mon, 4 Apr 2022 19:19:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys/uR3gjIT1cka9Ymj6ngvs+p1cH/N0QFOAzGwwRma5E0D5XMjnhul+O01TSgFsGHWRsAA X-Received: by 2002:a17:90b:33d0:b0:1ca:ba71:88ed with SMTP id lk16-20020a17090b33d000b001caba7188edmr1356950pjb.229.1649125147248; Mon, 04 Apr 2022 19:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649125147; cv=none; d=google.com; s=arc-20160816; b=uSp2lj5FlR8scXMebA79FjzCh9pRz08StfWLyf6bAgLyYEEhBFhf2ddj+G5P9cUZOQ GnziE015ObhZVfupZka/cJDIc7t2ogN8AduzvmrP3nB3TubZgDnLCPba7CN/ildJWX/5 5iEJXkXj7BCd3C84k/Gnu5+UrJ2gYBsnJVQncXhLy6haJWC5YnvxNsWgSWN46vdTd8q/ ldX0BzF/V6lUjMmTHfXK16EDQXWaW2himII0UDgzpPQE25YHqTlGhyYVEbJf5rDLi4VY nRNQIbxt2Z9IkLuLVnvDD9awg+Z/i6WcHHJJK4fCz5+G/AqMPt+XFKpGMir8fFsJ51BA BTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zAS4MDgvbYow+mtH7wYurJAvRHr/A99xFYmx8PVX60w=; b=uxnEV/822F2fcECbxDC058XTCr+gKhZ6n1NPX2VTkihW4GOc1hqpxhUIMhvRpmb5LV 8+WqFLmk/lHmG2vLGhDz45wXVAOayayTd2OwP+TaeVDV/So12pG2s6IdYlwgs60/pO+v 2W13N7tpoNindOHUwVcRX0Egm1ZQ7Gk524UpDmf5Ss0vX9NMh5fLnr4kF3jy+aHHqKel BUfLULuIRp59Vfy5Ltv/Ea/zZ6rtxfTkrMl1ufKZAt67vdaQxCAEgmHfGokcZUBA24NA OZU5lP+YHPj4q07+lLXtGN5PHWFn2LyND8n8rAsQzSqEXEHV0qsJMUVl7F/u57FveotY C1Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k10-20020a170902ce0a00b00153c3f96abesi11227672plg.137.2022.04.04.19.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:19:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA8602993EB; Mon, 4 Apr 2022 17:40:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356858AbiDBOus (ORCPT + 99 others); Sat, 2 Apr 2022 10:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356843AbiDBOuq (ORCPT ); Sat, 2 Apr 2022 10:50:46 -0400 Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [IPv6:2a01:4f8:150:2161:1:b009:f23e:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B5013CD8; Sat, 2 Apr 2022 07:48:53 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 5AB8D100E2006; Sat, 2 Apr 2022 16:48:45 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 3965C4E024; Sat, 2 Apr 2022 16:48:45 +0200 (CEST) Date: Sat, 2 Apr 2022 16:48:45 +0200 From: Lukas Wunner To: Ira Weiny Cc: Christoph Hellwig , Dan Williams , Bjorn Helgaas , Jonathan Cameron , Alison Schofield , Vishal Verma , Ben Widawsky , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH V7 03/10] PCI: Create PCI library functions in support of DOE mailboxes. Message-ID: <20220402144845.GA7822@wunner.de> References: <20220330235920.2800929-1-ira.weiny@intel.com> <20220330235920.2800929-4-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Mar 31, 2022 at 08:19:56AM -0700, Ira Weiny wrote: > On Wed, Mar 30, 2022 at 10:50:31PM -0700, Christoph Hellwig wrote: > > On Wed, Mar 30, 2022 at 04:59:13PM -0700, ira.weiny@intel.com wrote: > > > Introduced in a PCI v6.0[1], DOE provides a config space based mailbox > > > with standard protocol discovery. Each mailbox is accessed through a > > > DOE Extended Capability. > > > > I really don't think this should be built unconditionally and bloat > > every single kernel built with PCI support. > > I can add a Kconfig. Ideally, that config option should live in the pcie/ subdirectory, i.e. in drivers/pci/pcie/Kconfig, alongside drivers/pci/pcie/doe.c, as we try to consolidate PCIe-specific features there and reserve core code in drivers/pci/*.c for functionality that also applies to Conventional PCI. Thanks, Lukas