Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1372949lqs; Sat, 15 Jun 2024 06:13:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXq5u6pfKYlA0zzELtLsa3gPE1ZTafqZ925S5Kk5CI2kB0zB2I4liFHzf7VOdwAbSG04zy10l6P5NX0RxhjhjIFHuqsu9tkfQ2mLgfKZg== X-Google-Smtp-Source: AGHT+IHY+h+oBV0YD2Y06mS3BB2DQJps0D2fq7Gi0TWtqVN5CYxfAQx2u5h6adYthgQeUI7sRbrn X-Received: by 2002:aa7:9e8b:0:b0:705:d755:69b0 with SMTP id d2e1a72fcca58-705d7556d20mr4893431b3a.6.1718457202775; Sat, 15 Jun 2024 06:13:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718457202; cv=pass; d=google.com; s=arc-20160816; b=yVNzzy+TR+5LY1AUsa1EUUbxUEqfTRpK5o40p/wApoF4EfNMpfWOvN3ey73cAgXhrm maNNUgThx6SDTxAToPnpyC/IX2Fa2xlhYgdk/wmNqVhUmirxjYbymoXjqxgZjrsBXSnS gTZ7EHel7+s3I6cVIv+WMLWoyqr6lp7dTxZepJZ29ZoRX23AMAIpUcDE+pxjMANgDmwA +EsoPXa4oNrlvhhOpK5SD1iBVxVkiwk5HPfk66OEDSk7gq9cPY9d0+sjZvbAHa/M9qao AOlk3QeltZOGYcDWxHTuQExaFLTzeJUgHtMqIJWCKBVfGVgWLVqK9xcg+/MDmFSALHfP seRQ== 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:references:message-id:subject:cc :to:from:date; bh=+oj4lKi2boxx1w9gtXygodN3zJ3Bf15OBX8iKwfOKRg=; fh=Rf0RZDXpnhPX0op0FEhW/g2H03tT31XfJriwIxWfuao=; b=rIkqVbdUi2064fgbrbzriHawU3Dl50naX5jmyC015weTX0x5LqVogyypxkiBN80acB shKWgqUzbcvCZpXmwqpMNSNEsQGgNXK1H89PblzeM3kUuaBVuEJ87KL/X6Q06gwRbWDu vcUGg+h6ASfQ4ZFneexiWiIoSNSsldsPv6tcAwiHJiHsq/v5O96u6o0MxOXFSH5Gousq YJYYmr45YUM4d8H9d7RIPLKddXAZATO/wFyQCT4yAVWfRfszLtYrOmDSCx/RKWq1sSja eOJzuzioE1kaAJFvJnwqNo9lkewNVDAqj/+OQM9MRm5wnXhxmR6dcuVVJBguf/0CtDhj Rv0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-215895-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215895-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310cdc3si5341477a12.328.2024.06.15.06.13.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 06:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215895-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-215895-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215895-linux.lists.archive=gmail.com@vger.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 6033A282EA4 for ; Sat, 15 Jun 2024 13:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D90149644; Sat, 15 Jun 2024 13:13:01 +0000 (UTC) Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) (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 9F52C4962A; Sat, 15 Jun 2024 13:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.78.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718457180; cv=none; b=RQD28cMCaJZBag6248aAIgHCCfKG0TRNth0KNlXuzBOk7CwL/peLFRUxTdf0JvLBcQ+bqmS3+evujMMhcmCcG+ZKkhc2qh/BbzNPry1VPfr4uut9ryoT/8iXszlc7yXG6sGGXxQoXnWxUxpr1lcMb3A1SG3zuxZ5CuLdjhGGSnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718457180; c=relaxed/simple; bh=8R9kwNnyf9yYTmlKTPhrDKd+jZ3FnclJtBhCgCclI3I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G3Trks0n7Ha69rrehcSGq9FjnJOVtj53TLKB2MQ+Epx72iwoDoD1gi1CEWNpAbegs4FZAcu1Mb1LTSmOfZXkygH0yKtgzN+NygMLxSGhKI2AIKZSR3nRIQVFXYPMrWDQCOH+3rQgQzy/P4uMvZLBc5cAUZkpkhkDL3inUkcrhPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=83.223.78.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net 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 TLS RSA CA G1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 4C47D28010885; Sat, 15 Jun 2024 15:12:55 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 36E591DB746; Sat, 15 Jun 2024 15:12:55 +0200 (CEST) Date: Sat, 15 Jun 2024 15:12:55 +0200 From: Lukas Wunner To: Jonathan Cameron Cc: Alistair Francis , bhelgaas@google.com, linux-pci@vger.kernel.org, alex.williamson@redhat.com, christian.koenig@amd.com, kch@nvidia.com, gregkh@linuxfoundation.org, logang@deltatee.com, linux-kernel@vger.kernel.org, chaitanyak@nvidia.com, rdunlap@infradead.org, Alistair Francis Subject: Re: [PATCH v10 3/4] PCI/DOE: Expose the DOE features via sysfs Message-ID: References: <20240522101142.559733-1-alistair.francis@wdc.com> <20240522101142.559733-3-alistair.francis@wdc.com> <20240523122448.0000799f@Huawei.com> 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: <20240523122448.0000799f@Huawei.com> On Thu, May 23, 2024 at 12:24:48PM +0100, Jonathan Cameron wrote: > What happens if multiple DOE which support the same protocol? > (IIRC that's allowed). You probably need to paper over repeat > sysfs attributes and make sure they don't get double freed etc. So I believe this was fixed in v11 but assuming the point here is to allow lspci to display supported protocols without speaking DOE with the device, the way it's implemented now user space cannot discern which mailbox supports which protocol. Or if multiple mailboxes support the same protocol. I'm wondering in how far that limits the usefulness of the feature. sysfs doesn't support nested groups. But we could dynamically create one attribute group per mailbox. Or have one file per mailbox in a common doe_features group, each file containing all the supported protocols. Hm... Thanks, Lukas