Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1109131pxb; Wed, 6 Apr 2022 08:57:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGn4RYO8BJNf8Wvl5ey8q1ChjVfxyc+pP1mj7ebh5drX5Fu0qLk72sK2Fe1j/kjgVhtmNv X-Received: by 2002:a17:902:ea04:b0:154:54f0:172b with SMTP id s4-20020a170902ea0400b0015454f0172bmr9164261plg.149.1649260624714; Wed, 06 Apr 2022 08:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649260624; cv=none; d=google.com; s=arc-20160816; b=ibDiIuwOWiWRFmLSMuP625fUPGJGDHas1IF6cDrcMVIrlCeKb7mNokEnvHEvmWiLp8 2uufCcW8oPMvqDNsKBGx4jDnuhNCgCQptKV07xtIwVEuVgZjPIJlFUVx/6tjSU8EWdfq gp05bZrt8vLlkeeOrKPjMLDZlDbwFT4993FaFv5pCb5HCmrOfcdKQhnfJBueOWYOPDEo tF1RunvovVrkLuhfPh97Xl9HpKcFaKlevnyC9BcgPGg5Q0MUAAdek7TtPIWZI1Hlz1Si FrcI8/6JyfmbsnglN4pOWJ5In4vgkmb8S+TbuBRQ7+8UFOSb0CdIGueofmXR8wnujNae sfXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=oEoyHFs9iR3PkxjH8NyHJkBCnHvxgDdSAOBBJfnO1VI=; b=XSH38i4OkiLHLQ1U+pMRrDfHEw80SpCQcAiLemvdEDLSHMYJ3hXr03ppDl5F3lCLGA TxQd+FbBeOQyWEcTv+2KN1eNTwukys3QJARCArJjdbO3q0Czpru7iWJHxvwkCHIUlwuQ yaaOV4aIMYlMZKg4Jw5jeOyDA6zSVrQV8KHDjlyW8wJVdoXxHuO/bo6GCXw0RC3Rhtse 8HQmb9RRu8PrI68i2AJEEq9jSmGrBVMZZQwwZlSYM65r8/LVv/x3WGMBweEXd3HFvS/a 6l04jyB1DskBXdMBwA+iM8zat0lr91Cgc1QUgWP79kBxr46ewi99UihmEGOmhBaad1AP MZzg== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f62-20020a623841000000b004fa3a8e007asi14962610pfa.305.2022.04.06.08.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:57:04 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DC2441AB9DA; Wed, 6 Apr 2022 07:19:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234735AbiDFOVV (ORCPT + 99 others); Wed, 6 Apr 2022 10:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234614AbiDFOVJ (ORCPT ); Wed, 6 Apr 2022 10:21:09 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF6493479AB; Wed, 6 Apr 2022 03:27:06 -0700 (PDT) Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KYKvz0p6rz686vL; Wed, 6 Apr 2022 18:08:15 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Apr 2022 12:11:12 +0200 Received: from localhost (10.202.226.41) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Apr 2022 11:11:11 +0100 Date: Wed, 6 Apr 2022 11:11:10 +0100 From: Jonathan Cameron To: Ira Weiny CC: Lukas Wunner , Christoph Hellwig , "Dan Williams" , Bjorn Helgaas , Alison Schofield , Vishal Verma , Ben Widawsky , , , Subject: Re: [PATCH V7 03/10] PCI: Create PCI library functions in support of DOE mailboxes. Message-ID: <20220406111110.00000e72@Huawei.com> In-Reply-To: References: <20220330235920.2800929-1-ira.weiny@intel.com> <20220330235920.2800929-4-ira.weiny@intel.com> <20220402144845.GA7822@wunner.de> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.41] X-ClientProxiedBy: lhreml720-chm.china.huawei.com (10.201.108.71) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected 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 Tue, 5 Apr 2022 16:22:11 -0700 Ira Weiny wrote: > On Sat, Apr 02, 2022 at 04:48:45PM +0200, Lukas Wunner wrote: > > 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 for letting me know about this direction. I was unaware of this. We had this in the pcie directory, but Bjorn asked us to move it to the pci directory as there isn't anything specific to PCIe about DOE. You could implement it on pci-x (maybe 2.0?) I think even though it's in the PCIe specification. https://lore.kernel.org/linux-pci/20210413194927.GA2241331@bjorn-Precision-5520/ Thanks, Jonathan > > I'll move the file no problem, thanks, > Ira > > > > > Thanks, > > > > Lukas