Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp557537rdb; Thu, 8 Feb 2024 13:57:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhg8LQ18ffUUSwrJfnm5CXWHkBm75WUmS5yMlAUGaEnnOG1ZRbRAJ6Yzw/xEAbSx23Mz82 X-Received: by 2002:a05:6a00:10c9:b0:6db:cf4c:d836 with SMTP id d9-20020a056a0010c900b006dbcf4cd836mr6987pfu.4.1707429465444; Thu, 08 Feb 2024 13:57:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707429465; cv=pass; d=google.com; s=arc-20160816; b=WJ0OtOjpvJ4rwec3jLtZu12UBJQZhDEPVTTJOH6odlVWS/oFnnV9h6hf5vVa5GCZzT s3katfAKUBH6RMp6sk71pLCtz6zD14eBVSywjLvZI5f/rYDJhRKMazmT86Q8WZSwONeK hYlooeSwwod4ZOYlrS2MiRJ1lB3jhKvwcrylWuGRL+2LHiejhYx11ZmwkCCw8p3a1GHC z1JOTEe9SXweCAODl0BQJKW6+o9px4BGXGHtoZ1mJtnv/sGP1H/mIEvEe6GHS3cQYJVr 53Hq+I8Vpie/8yIHxzVFZctw7rU5faDrnGjfkQTpt1biB4P9S3ya8yBzl8kWMSjozGMP UTlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=hhfM8CLquJztNqutNMUc3R1b5zCCzljPFgUyVWvVKZc=; fh=zYcMt5yymBKx+yFK3lIO2BX6CNbTuxAWouYfNquMiG4=; b=pwB6gdYohzTjPlF1X//AoYAq3nWqJ1ozFx+G0SzSRFYySWNquHk9tOvj7+SufGGFH3 ooo+TLAzhqH+dQtVBKwUZq4swVfntVv+QV7Rv6VJK+zVg51N7nj13o7PdKAOxIUqcndn R50P1PQ3UPgcsRwwUTFKmc7NxBAjP25+hjTKWOiNcizrRPmKt6I8qRdPCEr83/dLUL6v zZMPZrV6bf6w1cnj6QvgO1TmgV70u4zjtC2tfOmUpQiB2pMiUVVIWri2uVe6a+KYjYlG zJjS0boQ8O21ioNubdAPQIvMykcNc4YkTlcmgGMRBkoQ2Wyk6BUqCHboefrwVnNSODkV LP9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZGctrAou; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUUOPeMrdk4XQ4of8QzFG06f6NVN3ZCXwHg8CY31lGPqOFXnAeM/yL9KJw0LEZst39mOXctB9NWu7zcW/Pp4e8EvJqhvVdyvSoZeVm2sg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e12-20020aa798cc000000b006e073a8eea2si362416pfm.153.2024.02.08.13.57.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:57:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZGctrAou; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D5B7628A8AF for ; Thu, 8 Feb 2024 21:57:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DDD34F5FA; Thu, 8 Feb 2024 21:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZGctrAou" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABB3E4F885; Thu, 8 Feb 2024 21:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429457; cv=none; b=nhRC52xEhp5orzJfc/dBqv9fxCthgtAzrCxdLaXHSHGTRhNSolNT6TdgQ4TGLYQDd8S8un8tYzfp7wmpUyWiktl4F+1vF/wu5Ubv5e+/xsr7YuEqg+5j2Ey+HHdhPjU7uNLPq55RKyUHZzHDfHDuFmhDftz1XoMboYU1Nn1ARqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429457; c=relaxed/simple; bh=HftUjZe8zdQu5bvekNzog4DkTT2SHRvwYBgyzTRkxJU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=GoTGNByGWHWWKxsLvXnzMf3ulam9MUBnutTC5aHW+wT4pikdgC+ezWNrhb7yJuj3pYZ0FrBqudYngSZnucfsndHLP3x1HnhNXBPZPSnh8DvK9eqh6+GA6QNgSsSAOp//F8ioIdAomg0R+/okkCAc87pWpK2bzdNy6DG8gqgrQuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZGctrAou; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06B6AC433C7; Thu, 8 Feb 2024 21:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707429457; bh=HftUjZe8zdQu5bvekNzog4DkTT2SHRvwYBgyzTRkxJU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZGctrAou9JG5M6V0CymnRb6LFCt+WhxzPzRqTPws3CNX7O+wxt+yiZjjeMbZ9ucRk smf5RObRDnHLuE8IpypO9vYQ/zt+l+VLdFzSpJ0OvY8/juyydBFnZ/1AVS+ieSKTn3 AU7C3GrhKSu6d5pftC0Hqc7Fm5k8AslMIXS767+nH1CQ/JHje+Fq6lrwWkb6XJAIcS IHH7toapd2SYFlD/I2QOZ+GYD6mCgCeY5N5c39i78cnhuHufYEtmMdkD5mLUyG1GFM 4yOnCnqPfcuOs7GJSz/nFVrLSfPEqXFhWp7m3UO1MPS6PS8Rjm6ALsYem/1ZJ7T25W 9lo3puM0VveVw== Date: Thu, 8 Feb 2024 15:57:35 -0600 From: Bjorn Helgaas To: Alexey Kardashevskiy Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Jonathan Cameron , Lukas Wunner Subject: Re: [PATCH kernel 1/4] pci/doe: Define protocol types and make those public Message-ID: <20240208215735.GA974931@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201060228.3070928-2-aik@amd.com> On Thu, Feb 01, 2024 at 05:02:25PM +1100, Alexey Kardashevskiy wrote: > Already public pci_doe() takes a protocol type argument. > PCIe 6.0 defines three, define them in a header for use with pci_doe(). > > Signed-off-by: Alexey Kardashevskiy > --- > include/linux/pci-doe.h | 4 ++++ > drivers/pci/doe.c | 2 -- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/include/linux/pci-doe.h b/include/linux/pci-doe.h > index 1f14aed4354b..5c33f7dc978b 100644 > --- a/include/linux/pci-doe.h > +++ b/include/linux/pci-doe.h > @@ -13,6 +13,10 @@ > #ifndef LINUX_PCI_DOE_H > #define LINUX_PCI_DOE_H > > +#define PCI_DOE_PROTOCOL_DISCOVERY 0 > +#define PCI_DOE_PROTOCOL_CMA_SPDM 1 > +#define PCI_DOE_PROTOCOL_SECURED_CMA_SPDM 2 So far these are only needed inside drivers/pci/. I don't want to expose them to the rest of the kernel via include/linux/pci-doe.h until they're needed elsewhere. > struct pci_doe_mb; > > struct pci_doe_mb *pci_find_doe_mailbox(struct pci_dev *pdev, u16 vendor, > diff --git a/drivers/pci/doe.c b/drivers/pci/doe.c > index e3aab5edaf70..61f0531d2b1d 100644 > --- a/drivers/pci/doe.c > +++ b/drivers/pci/doe.c > @@ -22,8 +22,6 @@ > > #include "pci.h" > > -#define PCI_DOE_PROTOCOL_DISCOVERY 0 > - > /* Timeout of 1 second from 6.30.2 Operation, PCI Spec r6.0 */ > #define PCI_DOE_TIMEOUT HZ > #define PCI_DOE_POLL_INTERVAL (PCI_DOE_TIMEOUT / 128) > -- > 2.41.0 >