Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp537149rdb; Thu, 5 Oct 2023 13:20:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUxpFT1EBEgDDfQjUn4JOSs+ZmcOUgbn2PW2ZKXpACtZ/GCTTkGNbQvIXtjY4lgJr/VhjB X-Received: by 2002:a17:902:d48e:b0:1c6:11ca:8861 with SMTP id c14-20020a170902d48e00b001c611ca8861mr3611900plg.21.1696537233860; Thu, 05 Oct 2023 13:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696537233; cv=none; d=google.com; s=arc-20160816; b=pSCSxJJrGvkU+Sl0eFHitav4sqLf8bvOwF6Yo6j0YP5IF73deC51i6lrCkzdykKtPk V3ABc5MLDHz1ERn4NqqJ7u5GC+w48TaUP2/YxRyUS+6Gv3gV2uFBhfic6iGxwPBXVO7H dYjEPGWC5+bfgo+nAE0ld+hM3e/KzEctezqId43m4A66vMUKX7FWPQcza4UEBOOFWo/A LVzIyhy+2JHwOAmjuXKB9fqnOoz84bXMY/x4ual0AhlkD+aKRXb3T1ESpghF+4Iy+Kai XYECrYCVUETw1vbxlTOOgmCtmiBzMH4sxnvz0xJ7p3iyV/3iXqZS0d1kYZ1DCUfpKh5Y uYDg== 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=HTNJd+9XnARzFQ2XZK7hW5OG3YV1vXK8S13avvL0O6w=; fh=1sfIl+GtejlyZDkKOo4f1iHTY1bbrvaqi+T3opPXnDM=; b=QZJ8XBEKzUjQtM4s2aDHmh8fIH7VgxUVV6LtHxghcXriCtCNWcSg1wjVsd0eI2Z7sK 8AqYThuG72AuNvT35FToGAJ68M+q1amjYGy6qfwE9ieo3AForw1MfpPmezNT+YED+KDm 4rofFC8Rz6ZoDRtkaB731Fd+un75O/7uunE0Pjqu/dNpGGC3eFtDnTYenLeQ5StCulyf y33k3+XoyrvsS9j7o0HE/gHBLy+53kvAidgtMdvkYS6xPq9H3j+iMNMJC5PouNqD/+L8 tDtiuKTOhCNo02EP0g0u47UK1KpaGkaldwR8DjZ0JKibS7tI3rpEJSmqv8AgCFCtt5eE NBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nwuiqRaa; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u8-20020a1709026e0800b001c60de17b5esi2135036plk.118.2023.10.05.13.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 13:20:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nwuiqRaa; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8C8828600C45; Thu, 5 Oct 2023 13:20:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230254AbjJEUUM (ORCPT + 99 others); Thu, 5 Oct 2023 16:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjJEUUL (ORCPT ); Thu, 5 Oct 2023 16:20:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DCC093; Thu, 5 Oct 2023 13:20:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 913ACC433C8; Thu, 5 Oct 2023 20:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696537210; bh=zUYsds6wD0EANgOm8ilvedCIxPE85jI0zhv344IWr04=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=nwuiqRaaI6WTdRN2MgBeAa9eIDYD5Bxe4ZQ4OxGb98g28Jr48Jzno9yy7wJIiQjxj gzw9J0oDlJlnhD+UlSYbHTSLjDhdYf+aFBsMi5tOPgZJPCiS3Qj1IKJ6sgq57pqyPX vrRJLvHdOwXE7ST968KMUYMuBTP84el+Jn12uDDpEoDV/klwmOdEvIIV4AlCMbN8im JVnGstVbJSoiFiC3yEZ+37AHV2b9O1PeR3lWWCBdyyhckMYgzDJcLWoyUzSBJCf0fv m4VK6hqgXUYj0/GMpuqn6zdYeBh9Do/jsMpOxXFj3r41RBF6WmqKhQ+jq6X1s+83O7 h4McHeqlAmiRQ== Date: Thu, 5 Oct 2023 15:20:09 -0500 From: Bjorn Helgaas To: Lukas Wunner Cc: David Howells , David Woodhouse , Herbert Xu , "David S. Miller" , Alex Williamson , linux-pci@vger.kernel.org, linux-cxl@vger.kernel.org, linux-coco@lists.linux.dev, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, kvm@vger.kernel.org, Jonathan Cameron , linuxarm@huawei.com, David Box , Dan Williams , Dave Jiang , "Li, Ming" , Zhi Wang , Alistair Francis , Wilfred Mallawa , Alexey Kardashevskiy , Tom Lendacky , Sean Christopherson , Alexander Graf Subject: Re: [PATCH 11/12] PCI/CMA: Expose in sysfs whether devices are authenticated Message-ID: <20231005202009.GA790383@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <821682573e57e0384162f365652171e5ee1e6611.1695921657.git.lukas@wunner.de> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 13:20:13 -0700 (PDT) On Thu, Sep 28, 2023 at 07:32:41PM +0200, Lukas Wunner wrote: > The PCI core has just been amended to authenticate CMA-capable devices > on enumeration and store the result in an "authenticated" bit in struct > pci_dev->spdm_state. > drivers/pci/cma-sysfs.c | 73 +++++++++++++++++++++++++ Not really sure it's worth splitting this into cma.c, cma-sysfs.c, cma-x509.c. They're all tiny and ping-ponging between files is a bit of a hassle: 151 drivers/pci/cma.c 73 drivers/pci/cma-sysfs.c 119 drivers/pci/cma-x509.c Bjorn