Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp60218pxb; Wed, 30 Mar 2022 23:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuTMIrJcZGTpjG4zSNskbYCHNOcq6H7fKE1/o9lWwpOX7fVupvoIKqAxI/w3ONVko/VigF X-Received: by 2002:a17:906:6a1e:b0:6e0:5c27:a184 with SMTP id qw30-20020a1709066a1e00b006e05c27a184mr3584600ejc.355.1648706685245; Wed, 30 Mar 2022 23:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648706685; cv=none; d=google.com; s=arc-20160816; b=pKX3NnrS+OODsYIQ/X3qQiTHUwtQcGjeTcbv5blAsAjojmn+affPk6C3+QQKYNcuVd 4jpFlDvRiqEVe6SOgWC4vdkzQ7Z9LzrDF4sfu/uj9OIjNAP0IcOAWk1pWrSdhHNI9mrk Z7hL4UGg7Zmh1FxTf3KOnoHj4BNWeWNqz0uxETARJ1/KDvwmu+33pmn+YMlew4AfwsGx UooihnCkM5HbjXY6WHEHkZiq3pllHeAoSlqZa9lwVjsnN0StgZ74YmIgjfvfqny41TdC nn2hLudXChNC+bc14gC8Fmmo4kBjwuoOY0CjQYD46f6ieXc8uB/xsAl6RRkTXVe9kue/ Wfxg== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ru0LipQtsJl9AfHI2E8ja3nugdvZ7bA5mRsG8tmW7dg=; b=JKoIDZ1qdcVWOw9sZL7QXiIOknbnI19MyavaCJMKB4Qm9OF7da8RwjaGTbYJTJ78Sb HR+XAMmYLQTcXHoArKweHzZWhkT7ih0XxfDnUKc2ScOmA6c20yesPn3Kp94do9oLrqb+ XosC13/3FiujbsW2+BAQ2SbP+blsXjfKA9FOCZnv3ccI4likJcPRxcMOmeeBNI4GYy4l c+qjbn8NBmPEcl7B4XtOMcgQIYW52w3/YNKidmcInIGv6qu3M2xxZENyp2WWbYt1I6J2 zHqpibZukq9tjwiWt0Ydr42A2QFAky/2zPaxduXv5JYwtue6hJlsI1lEr9smC0mOZXYq TXYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ft6o+7xJ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ky9-20020a170907778900b006df76385f3esi23652037ejc.990.2022.03.30.23.04.14; Wed, 30 Mar 2022 23:04:45 -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=@infradead.org header.s=bombadil.20210309 header.b=Ft6o+7xJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbiCaFwX (ORCPT + 99 others); Thu, 31 Mar 2022 01:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbiCaFwW (ORCPT ); Thu, 31 Mar 2022 01:52:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5582D8E; Wed, 30 Mar 2022 22:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Ru0LipQtsJl9AfHI2E8ja3nugdvZ7bA5mRsG8tmW7dg=; b=Ft6o+7xJsRLe1NW/RBHGWJCtQZ UoX8wy0H4Yg8xnqsLHENlrzhPK4i+2NXFkeRDWtYasXZQtnFMMyG8efX6hYOz/s2xOj2P1W51BYu3 kFv2PKCOHg2kEOvHnoo/oClWvMuyyl5fSML7EkZuMm1Poy8baW+zUK02UuX8P/YToGwXFJ3DVlcvW j1lf8sfp96CvZbvfA8cQgcFhHs4ehgIxvay7tjWkr1ln/Juh4rWejOy+/dW72UXZXT6QhHCDVI2yP aDztlR6nsWhDRe+7iwGassRXsWxWLLNcfwXn7zpk08FYvpq84ytJnxO0SD9LUi2wBtRzQ1/tGNfOd FK8IfyXw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZnhX-000kZo-SM; Thu, 31 Mar 2022 05:50:31 +0000 Date: Wed, 30 Mar 2022 22:50:31 -0700 From: Christoph Hellwig To: ira.weiny@intel.com Cc: 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: 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: <20220330235920.2800929-4-ira.weiny@intel.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Wed, Mar 30, 2022 at 04:59:13PM -0700, ira.weiny@intel.com wrote: > From: Jonathan Cameron > > 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. > > Each DOE mailbox must support the DOE discovery protocol in addition to > any number of additional protocols. > > Define core PCI functionality to manage a single PCI DOE mailbox at a > defined config space offset. Functionality includes creating, supported > protocol queries, submit tasks to, and destroying the new state objects. > > If interrupts are desired, interrupts vectors should be allocated prior > to asking for irq's when creating a mailbox object. I really don't think this should be built unconditionally and bloat every single kernel built with PCI support.