Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp195269rwb; Fri, 4 Aug 2023 11:08:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEd6F6xt7BtU3nQQUfWTnWBLlMQNaACH5Q9T3itR50ZAVGTo1yvUmWbgKZ+veAwzwQ/921o X-Received: by 2002:aca:1a08:0:b0:3a3:dc0e:4d0f with SMTP id a8-20020aca1a08000000b003a3dc0e4d0fmr2988128oia.22.1691172516648; Fri, 04 Aug 2023 11:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691172516; cv=none; d=google.com; s=arc-20160816; b=sjQZd6S5YgwutGEzZqgXH+c4Qb2Sm2PmhgHdF2+cJFpO+QKlTVsW0O9nMP49DHmS4U NtoHgaWcvjzr6h0Sqh8Uk8rbo0k4+fgkhXLGGcieXavebjEw/fatTSUOxWoB6JpPOr8k eEClzNYNx5rT49xOKpqjd6Ah02Omv9yupKB2akuUFHEYBhMr30Ww+7efQavsd29XhU3u jbg0kzzHVHBFenJgQ6maWeN0NT1/yfDxaLUTW4505JkVu2XipvtxXBrTSQK4DO9ZojEk A6yqIW8f4/XdAf3/AnX8bNf1KdEGlcBr1p8VK9tdLYkkgIAYJKFMqtnh340Dr2M0lT6t bWuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1Y2WH1ataksnJAdrJJihNSBlNKZJ078UyQeWYSs82nI=; fh=MCpRJ0JWt/39UtklwRh6z4DRyiB/kNpGIMPjCL/nUdI=; b=QQ9b7mJwLdu+rcPglUL8PcLTXkYye2xJO6eKl/miIHrvRikZpqGSm/vZs4qE2RMZp1 ES2Dpn9tBc6erqNTMjdSmu5SAAF4xlSA98Bc7LLBKuAxX7NGpI+pz8G1WeOqwo1ySbGt pX08USHAwYO53uVDbLhC8vnxBctIs3Tf7546se1JavElvEwcQL+Nj5/PqF9pQWUcCfGe Lyhd1m9P7M+HAqecNS9vQJwceOtwAT43PtAeKJd/zsfROhqhpaa2S00AzEV0wwgLpKml Oyc4z2yLJrOB3Jes3QIom0+cw73Eb8hK8WFCk65lIjsFHnRl7pvTYfFOYEHgizmdUOP0 1h+A== 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: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 q124-20020a634382000000b0055c51cc6265si2055854pga.551.2023.08.04.11.08.16; Fri, 04 Aug 2023 11:08:36 -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; 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 S231739AbjHDQFx (ORCPT + 99 others); Fri, 4 Aug 2023 12:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjHDQFw (ORCPT ); Fri, 4 Aug 2023 12:05:52 -0400 Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [IPv6:2a01:4f8:150:2161:1:b009:f23e:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBF9649D4; Fri, 4 Aug 2023 09:05:44 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id E1DCD100D5863; Fri, 4 Aug 2023 18:05:42 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 97DCB6BE62; Fri, 4 Aug 2023 18:05:42 +0200 (CEST) Date: Fri, 4 Aug 2023 18:05:42 +0200 From: Lukas Wunner To: Alistair Francis Cc: Jonathan Cameron , Greg KH , bhelgaas@google.com, linux-pci@vger.kernel.org, alex.williamson@redhat.com, christian.koenig@amd.com, kch@nvidia.com, logang@deltatee.com, linux-kernel@vger.kernel.org, Alistair Francis Subject: Re: [PATCH v2] PCI/DOE: Expose the DOE protocols via sysfs Message-ID: <20230804160542.GA19120@wunner.de> References: <20230801121824.174556-1-alistair.francis@wdc.com> <2023080152-disobey-widen-65a4@gregkh> <20230801170739.000048cb@Huawei.com> <20230802225248.GA19409@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 Fri, Aug 04, 2023 at 11:17:59AM -0400, Alistair Francis wrote: > On Wed, Aug 2, 2023 at 6:52???PM Lukas Wunner wrote: > > I kind of like the approach of exposing a list which can be grep'ed, > > even though it may go against the rule of having just one datum per > > attribute. I'd prefer a representation that's human-readable though, > > e.g. "0001:01" for CMA-SPDM. > > Yeah, it's my preferred method as well, but it's not going to be > accepted upstream How about procfs instead of sysfs? No "single datum per file" rule over there. PCI content goes into /proc/bus/pci/. Already used by lspci to access config space. Thanks, Lukas