Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp56257pxh; Thu, 7 Apr 2022 13:51:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8Kt31yD7wRb00IxqwA6E9HSuq8TZs8FZwG/RVoNpAUeKTPLzEOfqRXzj5UQnLE1mbs0QL X-Received: by 2002:a17:90a:195c:b0:1cb:19fc:d2d8 with SMTP id 28-20020a17090a195c00b001cb19fcd2d8mr4289303pjh.188.1649364660950; Thu, 07 Apr 2022 13:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364660; cv=none; d=google.com; s=arc-20160816; b=srOrrLBvX+oCaqHRmHubJcWmUyCLYm0/vExvOlf5M3OhEx6vfT3R2WNZ26Ftol5q9o iLbSoAyiR2Ai+KLkDwk2w/39tvuznb8mPqDCxRUIyORuCTuyoAz3BQILa/1qxLaeGuqg hxCRW0bqCI/+yF0/QxaXHBtsTaYB2Hz197680773hkDvbGPIXzbX3gyApZcX/07QkwhZ Qstqtcl4DyNM1xnblogMGJd8i6NZIpdx7TJnvsnck2Tw1lnNpF50IcGojFIyiMCtkmDJ //LG5lpnUXi0TmDfsQR+hKB/FahdDDbmIcLdnxCMo364WnK+f1C33OTeO4UL8UXz77ZG vgEw== 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=iNQ61EXJBfpsjQ1gAvBmo9S+ODcsL1LsD3b/S0J/bQk=; b=w4qtLPmXy56d9o0Th6IExYYRGHI1lSDInwSMVPvlogODtI7cYFdiABO3kxDPkt0nke CV+q00mHPWQj6QAQNku/oh+fjMarfzE+BpisO+KVawwqoJ5n3SiB+JrvCP+fRvZ3qgRY 9ac/zpNPY17ts8Q/XdSdvs6EzMCfFwkHTRUdrrjqfmVYF74M3jBp7wZlD1z8rSEQaRNf aU79nKUpYWfE1MCn1whEcNOTVAIstudZqWzoKB2slGtqJnMd7yOAX6HUBPs6dn3udWxY QopWwA56hI1Rot78tXpB2k62Y76No6P1ZAyqnBwSWfVkN4wcKc9a61mo2Z5OFUOjaYnp yQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uM+vZOCA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q10-20020a170902eb8a00b001547f38cd5bsi719900plg.30.2022.04.07.13.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:51:00 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uM+vZOCA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 101702773B9; Thu, 7 Apr 2022 12:56:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245547AbiDGQDZ (ORCPT + 99 others); Thu, 7 Apr 2022 12:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiDGQDW (ORCPT ); Thu, 7 Apr 2022 12:03:22 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C161DEA81; Thu, 7 Apr 2022 09:01:21 -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 sin.source.kernel.org (Postfix) with ESMTPS id B4FBECE27EE; Thu, 7 Apr 2022 16:01:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04483C385A5; Thu, 7 Apr 2022 16:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649347278; bh=yAnO4c7MDGXcf6Gal/+bTFrLqSTatoGBMYjleu4Ss1Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=uM+vZOCA5IzJZCsNSrAwwXCQY5jXsP16RBrgP9QPhmPtbO18pA/p6hfvg/57+7Yso eE0k1MYJZtSZua5T9kMskawRJBhAdmofen15mx0p4YcU7F6J2Ate+Uy7U6obPMuizX m2T4u2m5a7B+PYlVK1IyT/nwdjwwzJm/Ct1jIJIHitF6YPgUzeacK00CrIh9nxo3uN PS2NRkLzeDEzDRqIQOvVqUy1vmMTrdaDUO7N50sT1JNQcV4odlcprUkUB7VXqI5lSy WhSDkQAN5baOCzlGDwu+pnIqM8237y8XAV6uijFUXe+9obFohCdduB1rbO6AecohqC /pVOZ+QafMZHw== Date: Thu, 7 Apr 2022 11:01:16 -0500 From: Bjorn Helgaas To: Ira Weiny Cc: Jonathan Cameron , Bjorn Helgaas , Lukas Wunner , Christoph Hellwig , Dan Williams , 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: <20220407160116.GA239672@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Apr 06, 2022 at 02:23:09PM -0700, Ira Weiny wrote: > On Wed, Apr 06, 2022 at 11:11:10AM +0100, Jonathan Cameron wrote: > > 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/ > > :-/ > > I'd forgotten that far back. > > Bjorn? I would still prefer it in drivers/pci because I don't think there's enough value to justify the pcie/ subdirectory. We have ats.c, ecam.c, iov.c, pci-pf-stub.c, and vc.c in drivers/pci even though they're PCIe-specific. Other files in drivers/pci like access.c, pci-acpi.c, pci.c, probe.c, etc also have some PCIe content. Bjorn