Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp937374lqs; Fri, 14 Jun 2024 09:43:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOBWumvpqkZXozdn+UBvemAJ7Q3sILBArT94ke8wTgHFM2RnLSyeMov0zyupZnYV6C3qiDMvxeaAP1btzQAV+D7wr1vLtRBCqmjOQ4WQ== X-Google-Smtp-Source: AGHT+IFk1VuQ3IFytZQzU3Cq8E73K9nk0znUCRYXCmcBeUJThiKbY+dT9AZWvy9cbSiaRxm+SpwI X-Received: by 2002:a17:903:234e:b0:1f7:2877:9bc9 with SMTP id d9443c01a7336-1f862804b96mr33214815ad.50.1718383396257; Fri, 14 Jun 2024 09:43:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718383396; cv=pass; d=google.com; s=arc-20160816; b=CxUHbNaTHvYBWIoa4nO0h0NDqd6NU1/Um3x1FQqdDac2+eLcEphrv81JjXW855ulqy xDIDxZo7kxpuBtFMY46QxJNFVGX3k80RRWsdmXZyBYVPM0kiv+elahab4RyiQ4ZrrtOO JpXQaHTSdGCbpuv1/s6TUeaEApar6IKNyViwAe9ooo/HUd5ichYNjQUd8l3TllhMpVUD lHut886qzkmiUsLGjR+9rXnqN7zr4NkVdQMBtRxEMIgQiSdbw2RRTpMlBW2ro+R0tIUl /yDhNXZYX8mEhUIlVCu0SsexfIAiUMBZFPHWxNeHbw78pcI6GHOgJNFXNgs5g2aNEQBL GSkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=7RHap13t4I/ZFnjuBDXdSHQl1bIgN5NZ8+jWt6iH8b4=; fh=dB5grHrwzZczAVwPXBdX3Afd/zCEuucJt8TtaFNNFr8=; b=G4leg+uI6WywMDCGL0YuukrwogasheE29LUzIxOl/m8a4+3h4FUuAy1MuXfyb3yEli sh+WIE2BEJOVevjOsqyOxyxXVNSZwqBkUo1FyADm53gtZIEmDpuUTItgavK2HcyzaHTs A/EWFpzKqMW6Mxbp6K3+im6RFZFtcu/dD23dyaaXq9QrJ+yx87UcYCunyJD83n7Smlhm Y3TSpnIx0JgVmkQ3mKvJdEk/ibZM03JCb9qwJmMZQWaN0Uak8fQVHNWOfEgm10/HC5dm Raj5XfQp2YST6aeCbZIMI76J18PrC+T++DifgSQpqq5o+xRdCyaIxW4f3+XxMDjoaInG lApQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="WhAw/cdL"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-215164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ed1055si37908625ad.260.2024.06.14.09.43.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 09:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215164-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=@broadcom.com header.s=google header.b="WhAw/cdL"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-215164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com 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 AA641289827 for ; Fri, 14 Jun 2024 15:38:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8037616C690; Fri, 14 Jun 2024 15:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="WhAw/cdL" Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1967180A78 for ; Fri, 14 Jun 2024 15:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379434; cv=none; b=BJKOruJELD0zZlu2Oz1AFgerbfoyN53eTb6VJyjOrcSylGIP7SUmIXVUSmRtr14mRvmS0VmORRTbSJjXC3Nxdc/Nbxqm+VZtTUNkV25t2mw8z01AOZOax0FzqdZU8mrP0USYKr7GIcc1OxjMft4OWW62CjXnXlu5xooDFBmr5ds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379434; c=relaxed/simple; bh=+r4ozF7l2V6R35MQRPoB62jCVplQSWfIkmhH/WobXrw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=orNn607GYpGYA2WhWqfpm7UbjKiMKvwetGkfWSJcu+4wnnJRuzW0TrvkS/6PJjbukWrelRcQhd7OPfuWIr5UHqTORYa/imyUcchbRwP3MDEqltclEvhtd/3a2yyrUWrCkNVUIL6zkeB0FEOiNR5xsDBht23l6mymaiVVECeStfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=WhAw/cdL; arc=none smtp.client-ip=209.85.210.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6f99c6f6270so1209654a34.3 for ; Fri, 14 Jun 2024 08:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718379430; x=1718984230; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7RHap13t4I/ZFnjuBDXdSHQl1bIgN5NZ8+jWt6iH8b4=; b=WhAw/cdLgTTHXr0axLvch13XmpAGW77kdHO4ZUAhsB/pRrCwUbIc3UKuSVY3jaaEqw 3jxu853gAswiNi9qkQ0WMU3IM1sgo+PnIvrBXJr6z31Q2NryQ2oZsAjfzRf50sHNZ/Fh jJCjZt23Kwj4rolxCDWpINvvTGTjyBClSzfX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718379430; x=1718984230; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7RHap13t4I/ZFnjuBDXdSHQl1bIgN5NZ8+jWt6iH8b4=; b=fPqxS3j59GTRkqvKje4K1ISVC8nL6H/UfOUp9xyKPq6yzw6Mss7tTVX27Say2aN8Xa bg/qCOjw80I4pna+stFTetOmuHhh6KcrGZJK8BOKz/w9ls4vo7GiCwG1FfcHdU6UW7TT 6Arz5Kbbs7V23X2qAUmLIjlL0vX9IyHcnEoAQwwUJolFzhW46dQQ08v3ZJVWkaFqyiBi fMXY+CenqqDMGVRpumPOAeHdMH9jBjDQX/NFgE4hIEdNct216nLHlZ7wQlVFMBCB4GPS Ziz9f9F0qlNO/z8+Daj9n2NKoZfrmmtu2RT+i5dz6a+vCz+auffsnIEDpg+AVNBtzzLW JFtg== X-Forwarded-Encrypted: i=1; AJvYcCVi5w1byoF43XLV9ldUo9MfygUYQHKqW7HHs2Cz4lD5tSvIFnhBr2ytZJjlYeKMOZHf6jSV7yLxfnT06kKiZmBq01OaCSQMeTHB8fdL X-Gm-Message-State: AOJu0Yyfu02SRbocY97tmPbZ3iahafocmGpqvyuXdl8cQ0ntCWISFzmZ T9qzpoesY3m4Jmq2+pBTxUT9xojVxfCfoLAvGabu3Af9DDn8xZ3W45k1Dqoh5hjf048CZenKJcC Wrd/h9BBEyZIq78vjzeTdgEiO3PwXbvtrjJ1uYt0vXPcjye7ph5QuhXtPrO15xqH0edlle3UBhD EhFg6KKmkRYxh4B4SG5GzMZOB2OQ== X-Received: by 2002:a05:6870:b61f:b0:254:a613:1907 with SMTP id 586e51a60fabf-25842b80cfemr2976501fac.56.1718379430171; Fri, 14 Jun 2024 08:37:10 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1718191656-32714-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> <1718191656-32714-2-git-send-email-shivasharan.srikanteshwara@broadcom.com> <20240613134003.00003a38@Huawei.com> In-Reply-To: <20240613134003.00003a38@Huawei.com> From: Sumanesh Samanta Date: Fri, 14 Jun 2024 09:36:58 -0600 Message-ID: Subject: Re: [PATCH 1/2] switch_discovery: Add new module to discover inter switch links between PCI-to-PCI bridges To: Jonathan Cameron Cc: Shivasharan S , linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, sathya.prakash@broadcom.com Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000921ecf061adb6329" --000000000000921ecf061adb6329 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jonathan and others, Thanks for the feedback. > It think the functionality is useful in general. > > Not sure that's an appropriate location though. I'd rather > see something in in each of the USP devices that references > to others they share with. Yes, we did think of using /sys/bus/pci/devices/, but that would of course mean changing the PCIe driver ( as you too noted later), and we were not sure if that would be acceptable to the community. There is also an issue with race condition during discovery, more on that b= elow. > I also don't think we actually care > if these are virtual or real inter switch links (which are hidden > from the host anyway I think?) Yes, correct. The discovery of whether the switches are connected will be different for Virtual Switch and physical Inter switch link, but the sysfs entries will be identical, and applications/consumers need not care. >>We may want a way to discover the bandwidth though. Agreed, that would be a good enhancement, but will need more vendor specific discovery, I think. But that is very useful, I agree and we can take that later once this set of patches are approved > I'm not sure if a bus walk and search is the right way to do this. > > I need to think on this more, but options that occur are: > 1) Do it in the PCI core (so without a driver binding). > /sys/bus/pci/devices/0000:0c:00.0/isl/0000:12:00.0 -> ../../../0000:12= :00.0 > Controversial perhaps because PCIe provides no 'standard' way to disco= ver > this but it it is slim enough, maybe? > > 2) Do it in portdrv as that will currently bind to the USP anyway. > One issue with using the PCI core and/or portdrv is that when those drivers load, they will discover devices one by one, and when a given device tries to find its connected peers, it may not be able to do so, because its peers might not have been discovered yet. We solved that problem by having a "refresh_link" sysfs entry, and when that entry is triggered, we rediscover all the p2p switch links. If we move the code to PCI core/portdev, then we shall probably need a "refresh" under each device node, and when that is triggered, we shall need to discover the links for that device. But still we shall still need to do the bus walk, as we shall still need to find the peer devices and check whether they are connected to the given device. So, basically, what I am saying is, something like this: /sys/bus/pci/devices/0000:0c:00.0/isl/refresh_link /sys/bus/pci/devices/0000:0c:00.0/isl/0000:12:00.0 -> ../../../0000:12:00.0 Will that be acceptable? If so, we shall incorporate that change in the next patch. We shall also incorporate the rest of your feedback. sincerely, Sumanesh On Thu, Jun 13, 2024 at 6:40=E2=80=AFAM Jonathan Cameron wrote: > > On Wed, 12 Jun 2024 04:27:35 -0700 > Shivasharan S wrote: > > > This kernel module discovers the virtual inter-switch P2P links present > > between two PCI-to-PCI bridges that allows an optimal data path for dat= a > > movement. The module creates sysfs entries for upstream PCI-to-PCI > > bridges which supports the inter switch P2P links as below: > > > > Host root bridge > > --------------------------------------- > > | | > > NIC1 --- PCI Switch1 --- Inter-switch link --- PCI Switch2 --- NIC2 > > (af:00.0) (ad:00.0) (8b:00.0) (8d:00.0) > > | | > > GPU1 GPU2 > > (b0:00.0) (8e:00.0) > > SERVER 1 > > > > /sys/kernel/pci_switch_link/virtual_switch_links > > =E2=94=9C=E2=94=80=E2=94=80 0000:8b:00.0 > > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 0000:ad:00.0 -> ../0000:ad:00.0 > > =E2=94=94=E2=94=80=E2=94=80 0000:ad:00.0 > > =E2=94=94=E2=94=80=E2=94=80 0000:8b:00.0 -> ../0000:8b:00.0 > > It think the functionality is useful in general. > > Not sure that's an appropriate location though. I'd rather > see something in in each of the USP devices that references > to others they share with. I also don't think we actually care > if these are virtual or real inter switch links (which are hidden > from the host anyway I think?) The discovery means might be different > in those case (large 'switch' made up of multiple connected smaller > switches). We may want a way to discover the bandwidth though. > > > Needs a formal sysfs doc under > Documentation/ABI/testing/sysfs* (not totally sure where for this > interface, but I think that location will change anyway) > > The comments below are mostly superficial. I need to think a bit > more on how this might fit better with the linux driver model > as I really don't like magic things that cross many devices. > > > > > Signed-off-by: Shivasharan S > > Signed-off-by: Sumanesh Samanta > > --- > > .../driver-api/pci/switch_discovery.rst | 52 +++ > > MAINTAINERS | 13 + > > drivers/pci/switch/Kconfig | 9 + > > drivers/pci/switch/Makefile | 1 + > > drivers/pci/switch/switch_discovery.c | 375 ++++++++++++++++++ > > drivers/pci/switch/switch_discovery.h | 44 ++ > > 6 files changed, 494 insertions(+) > > create mode 100644 Documentation/driver-api/pci/switch_discovery.rst > > create mode 100644 drivers/pci/switch/switch_discovery.c > > create mode 100644 drivers/pci/switch/switch_discovery.h > > > > diff --git a/Documentation/driver-api/pci/switch_discovery.rst b/Docume= ntation/driver-api/pci/switch_discovery.rst > > new file mode 100644 > > index 000000000000..7c1476260e5e > > --- /dev/null > > +++ b/Documentation/driver-api/pci/switch_discovery.rst > > @@ -0,0 +1,52 @@ > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > +Linux PCI Switch discovery module > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +Modern PCI switches support inter switch Peer-to-Peer(P2P) data transf= er > > +without using host resources. For example, Broadcom(PLX) PCIe Switches= have a > > +capability where a single physical switch can be divided up into multi= ple > > +virtual switches at SOD. PCIe switch discovery module detects the virt= ual links > > +between the switches that belong to the same physical switch. > > +This allows user space applications to discover these virtual links th= at belong > > +to the same physical switch and configure optimized data paths. > > + > > +Userspace Interface > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +The module exposes sysfs entries for user space applications like MPI,= NCCL, > > +UCC, RCCL, HCCL, etc to discover the virtual switch links. > > + > > +Consider the below topology > > + > > + Host root bridge > > + --------------------------------------- > > + | | > > + NIC1 --- PCI Switch1 --- Inter-switch link --- PCI Switch2 --- NIC2 > > +(af:00.0) (ad:00.0) (8b:00.0) (8d:00.0= ) > > + | | > > + GPU1 GPU2 > > + (b0:00.0) (8e:00.0) > > + SERVER 1 > > + > > +The simple topology above shows SERVER1, has Switch1 and Switch2 which= are > > +virtual switches that belong to the same physical switch that support > > +Inter switch P2P. > > +Switch1 and Switch2 have a GPU and NIC each connected. > > +The module will detect the virtual P2P link existing between the two s= witches > > +and create the sysfs entries as below. > > + > > +/sys/kernel/pci_switch_link/virtual_switch_links > > +=E2=94=9C=E2=94=80=E2=94=80 0000:8b:00.0 > > +=E2=94=82 =E2=94=94=E2=94=80=E2=94=80 0000:ad:00.0 -> ../0000:ad:00.= 0 > > +=E2=94=94=E2=94=80=E2=94=80 0000:ad:00.0 > > + =E2=94=94=E2=94=80=E2=94=80 0000:8b:00.0 -> ../0000:8b:00.0 > > + > > +The HPC/AI libraries that analyze the topology can decide the optimal = data > > +path like: NIC1->GPU1->GPU2->NIC1 which would have otherwise take a > > +non-optimal path like NIC1->GPU1->GPU2->GPU1->NIC1. > > + > > +Enable P2P DMA to discover virtual links > > +---------------------------------------- > > +The module also enhances :c:func:`pci_p2pdma_distance()` to determine = a virtual > > +link between the upstream PCI-to-PCI bridges of the devices and detect= optimal > > +path for applications using P2P DMA API. > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 823387766a0c..b1bf3533ea6f 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -17359,6 +17359,19 @@ F: Documentation/driver-api/pci/p2pdma.rst > > F: drivers/pci/p2pdma.c > > F: include/linux/pci-p2pdma.h > > > > +PCI SWITCH DISCOVERY > > +M: Shivasharan S > > +M: Sumanesh Samanta > > +L: linux-pci@vger.kernel.org > > +S: Maintained > > +Q: https://patchwork.kernel.org/project/linux-pci/list/ > > +B: https://bugzilla.kernel.org > > +C: irc://irc.oftc.net/linux-pci > > +T: git git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git > > +F: Documentation/driver-api/pci/switch_discovery.rst > > +F: drivers/pci/switch/switch_discovery.c > > +F: drivers/pci/switch/switch_discovery.h > > + > > PCI SUBSYSTEM > > M: Bjorn Helgaas > > L: linux-pci@vger.kernel.org > > diff --git a/drivers/pci/switch/Kconfig b/drivers/pci/switch/Kconfig > > index d370f4ce0492..fb4410153950 100644 > > --- a/drivers/pci/switch/Kconfig > > +++ b/drivers/pci/switch/Kconfig > > @@ -12,4 +12,13 @@ config PCI_SW_SWITCHTEC > > devices. See for m= ore > > information. > > > > +config PCI_SW_DISCOVERY > > + depends on PCI > > + tristate "PCI Switch discovery module" > > + help > > + This kernel module discovers the PCI-to-PCI bridges of PCIe swit= ches > > + and forms the virtual switch links if the bridges belong to the = same > > + Physical switch. The switch links help to identify shorter dista= nces > > + for P2P configurations. > > + > > endmenu > > diff --git a/drivers/pci/switch/Makefile b/drivers/pci/switch/Makefile > > index acd56d3b4a35..a3584b5146af 100644 > > --- a/drivers/pci/switch/Makefile > > +++ b/drivers/pci/switch/Makefile > > @@ -1,2 +1,3 @@ > > # SPDX-License-Identifier: GPL-2.0 > > obj-$(CONFIG_PCI_SW_SWITCHTEC) +=3D switchtec.o > > +obj-$(CONFIG_PCI_SW_DISCOVERY) +=3D switch_discovery.o > > diff --git a/drivers/pci/switch/switch_discovery.c b/drivers/pci/switch= /switch_discovery.c > > new file mode 100644 > > index 000000000000..a427d3885b1f > > --- /dev/null > > +++ b/drivers/pci/switch/switch_discovery.c > > @@ -0,0 +1,375 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * PCI Switch Discovery module > > + * > > + * Copyright (c) 2024 Broadcom Inc. > > + * > > + * Authors: Broadcom Inc. > > + * Sumanesh Samanta > > + * Shivasharan S > > + */ > > + > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > Pick an ordering scheme for headers. Can't remember which PCI uses > but alphabetical is always a good starting point unless there is > a local standard. > > > +#include "switch_discovery.h" > > + > > +static DECLARE_RWSEM(sw_disc_rwlock); > > +static struct kobject *sw_disc_kobj, *sw_link_kobj; > > +static struct kobject *sw_kobj[SWD_MAX_VIRT_SWITCH]; > Why can't this be dynamically sized? Use a list. > > > +static DECLARE_BITMAP(swdata_valid, SWD_MAX_VIRT_SWITCH); > > + > > +static struct switch_data *swdata; > > + > > +static int sw_disc_probe(void); > > +static int sw_disc_create_sysfs_files(void); > > +static bool brcm_sw_is_p2p_supported(struct pci_dev *pdev, char *seria= l_num); > > Can you reorder the code to avoid the need for these forwards definitions= ? > > > + > > +static inline bool sw_disc_is_supported_pdev(struct pci_dev *pdev) > > +{ > > + if ((pdev->vendor =3D=3D PCI_VENDOR_ID_LSI) && > > + ((pdev->device =3D=3D PCI_DEVICE_ID_BRCM_PEX_89000_HLC) || > > + (pdev->device =3D=3D PCI_DEVICE_ID_BRCM_PEX_89000_LLC))) > > + return true; > > + > > + return false; > > +} > > + > > +static ssize_t sw_disc_show(struct kobject *kobj, > > + struct kobj_attribute *attr, > > + char *buf) > > +{ > > + int retval; > > + > > + down_write(&sw_disc_rwlock); > > + retval =3D sw_disc_probe(); > > + if (!retval) { > > + pr_debug("No new switch found\n"); > > + goto exit_success; > > + } > > + > > + retval =3D sw_disc_create_sysfs_files(); > > + if (retval < 0) { > > + pr_err("Failed to create the sysfs entries, retval %d\n", > > + retval); > > + } > > + > > +exit_success: > > + up_write(&sw_disc_rwlock); > > + return sysfs_emit(buf, SWD_SCAN_DONE); > Don't have side effects on a read. Write 1 to the file to scan and when > it is done, return len; > > > +} > > + > > +/* This function probes the PCIe devices for virtual links */ > > I'm not sure if a bus walk and search is the right way to do this. > > I need to think on this more, but options that occur are: > 1) Do it in the PCI core (so without a driver binding). > /sys/bus/pci/devices/0000:0c:00.0/isl/0000:12:00.0 -> ../../../0000:12= :00.0 > Controversial perhaps because PCIe provides no 'standard' way to disco= ver > this but it it is slim enough, maybe? > > 2) Do it in portdrv as that will currently bind to the USP anyway. > > There are other discussions on going on refactoring the pcie portdrv > and this usecase might well fit in there. Doesn't seem very invasive > to add this. > > > +static int sw_disc_probe(void) > > +{ > > + int i, bit; > > + struct pci_dev *pdev =3D NULL; > > + int topology_changed =3D 0; > > + DECLARE_BITMAP(sw_found_map, SWD_MAX_VIRT_SWITCH); > > As above, I'd use a list of found virtual switches then removal > is dropping an entry from middle of that list. > Probe finds what is there and moves things to a new temporary list. > Delete anything left on the old list. > > > + > > + while ((pdev =3D pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != =3D NULL) { > > Not using the port class code? Feels like every switch will if this isn'= t > in a different function? (I've been assuming it is vsec on the USP functi= on) > > > + int sw_found; > > + > > + /* Currently this function only traverses Broadcom > > + * PEX switches and determines the virtual SW links. > > + * Other Switch vendors can add their specific logic > > + * determine the virtual links. > > + */ > > I'd move this comment to the supported query. As you observe, it is > general in principle. > > > + if (!sw_disc_is_supported_pdev(pdev)) > > It's not really about discovering switches. So I'd call it > sw_might_be_virtual_switch() or something like that. > > I'm sure we'll eventually have to handle multiple physical switches > with a real interswitchlink at some point, but that can be addressed > separately. > > > > + continue; > > + > > + sw_found =3D -1; > > int sw_found =3D -1; above > > > + > > + for_each_set_bit(bit, swdata_valid, SWD_MAX_VIRT_SWITCH) = { > > + if (swdata[bit].devfn =3D=3D pdev->devfn && > > + swdata[bit].bus =3D=3D pdev->bus) { > > Can we use an xarray or similar to do this lookup? > > > + sw_found =3D bit; > > + set_bit(sw_found, sw_found_map); > > + break; > > + } > > + } > > + > > + if (sw_found !=3D -1) > > + continue; > > + > > + for (i =3D 0; i < SWD_MAX_VIRT_SWITCH; i++) > > + if (!swdata[i].bus) > > + break; > > + > > + if (i >=3D SWD_MAX_VIRT_SWITCH) { > > + pr_err("Max switch exceeded\n"); > > + break; > > + } > > + > > + sw_found =3D i; > > + > > + if (!brcm_sw_is_p2p_supported(pdev, (char *)&swdata[sw_fo= und].serial_num)) > > + continue; > > + > > + /* Found a new switch which supports P2P */ > > + swdata[sw_found].devfn =3D pdev->devfn; > > + swdata[sw_found].bus =3D pdev->bus; > > + > > + topology_changed =3D 1; > > + set_bit(sw_found, sw_found_map); > > + set_bit(sw_found, swdata_valid); > > + } > > + > > + /* handle device removal */ > > + for_each_clear_bit(bit, sw_found_map, SWD_MAX_VIRT_SWITCH) { > > + if (test_bit(bit, swdata_valid)) { > > + memset(&swdata[bit], 0, sizeof(swdata[i])); > > + clear_bit(bit, swdata_valid); > > + topology_changed =3D 1; > > + } > > + } > > + > > + return topology_changed; > > +} > > + > > +/* Check the various config space registers of the Broadcom PCI device= and > > + * return true if the device supports inter switch P2P. > > + * If P2P is supported, return the device serial number back to > > + * caller. > > + */ > > +bool brcm_sw_is_p2p_supported(struct pci_dev *pdev, char *serial_num) > > +{ > > + int base; > > + u32 cap_data1, cap_data2; > > + u16 vsec; > > + u32 vsec_data; > > + > > + base =3D pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_DSN); > > + if (!base) { > > + pr_debug("Failed to get extended capability bus %x devfn = %x\n", > > + pdev->bus->number, pdev->devfn); > > + return false; > > + } > > I'd just call pci_get_dsn() If it doesn't return 0 the cap is there > and we get the value and just use it. > > > > + > > + vsec =3D pci_find_vsec_capability(pdev, PCI_VENDOR_ID_LSI, 1); > > + if (!vsec) { > > + pr_debug("Failed to get VSEC bus %x devfn %x\n", > > + pdev->bus->number, pdev->devfn); > > + return false; > > + } > > + > > + if (pci_pcie_type(pdev) !=3D PCI_EXP_TYPE_UPSTREAM) > > + return false; > > I'd do this first. Will apply to a lot of matches and this > is much cheaper than finding capabilities. > > > + > > + pci_read_config_dword(pdev, base + 8, &cap_data1); > > + pci_read_config_dword(pdev, base + 4, &cap_data2); > > + > > + pci_read_config_dword(pdev, vsec + 12, &vsec_data); > > Use a define for that vsec offset that gives some indication > of it's purpose in the LSI VSEC. > > > + > > + pr_debug("Found Broadcom device bus 0x%x devfn 0x%x " > > + "Serial Number: 0x%x 0x%x, VSEC 0x%x\n", > > + pdev->bus->number, pdev->devfn, > > + cap_data1, cap_data2, vsec_data); > > + > > + if (!SECURE_PART(cap_data1)) > > + return false; > FIELD_GET() > > > + > > + if (!(P2PMASK(vsec_data) & INTER_SWITCH_LINK)) > > FIELD_GET() for the relevant bits in each. > > > + return false; > > + > > + if (serial_num) > > + snprintf(serial_num, SWD_MAX_CHAR, "%x%x", cap_data1, cap= _data2); > Just use the u64. > > + > > + return true; > > +} > > + > > +static int sw_disc_create_sysfs_files(void) > > +{ > > + int i, j, retval; > > + > > + for (i =3D 0; i < SWD_MAX_VIRT_SWITCH; i++) { > > + if (sw_kobj[i]) { > > + kobject_put(sw_kobj[i]); > > + sw_kobj[i] =3D NULL; > If you are freeing kobjects in a creation path something went wrong. > Don't do this - if it makes sense free them before calling this create fu= nction. > > > + } > > + } > > + > > + if (sw_link_kobj) { > > + kobject_put(sw_link_kobj); > > + sw_link_kobj =3D NULL; > > + } > > + > > + sw_link_kobj =3D kobject_create_and_add(SWD_LINK_DIR_STRING, sw_d= isc_kobj); > > Don't use defines for file names. We want to see them inline as > much more readable! > > > + if (!sw_link_kobj) { > > + pr_err("Failed to create pci link object\n"); > > + return -ENOMEM; > > + } > > + > > + for (i =3D 0; i < SWD_MAX_VIRT_SWITCH; i++) { > > + int segment, bus, device, function; > > + char bdf_i[SWD_MAX_CHAR]; > > No obvious reason why this is the same length as serial numbers? > Use an appropriate define for each. We print the bdf in > various places, maybe there is already a suitable define and if > not perhaps worth adding one. > > > + > > + if (!test_bit(i, swdata_valid)) > > + continue; > > + > > + segment =3D pci_domain_nr(swdata[i].bus); > > + bus =3D swdata[i].bus->number; > > + device =3D pci_ari_enabled(swdata[i].bus) ? > > + 0 : PCI_SLOT(swdata[i].devfn); > > + function =3D pci_ari_enabled(swdata[i].bus) ? > > + swdata[i].devfn : PCI_FUNC(swdata[i].devf= n); > > + sprintf(bdf_i, "%04x:%02x:%02x.%x", > > + segment, bus, device, function); > > + > > + for (j =3D i + 1; j < SWD_MAX_VIRT_SWITCH; j++) { > > + char bdf_j[SWD_MAX_CHAR]; > > + > > + if (!test_bit(j, swdata_valid)) > > + continue; > > + segment =3D pci_domain_nr(swdata[j].bus); > > + bus =3D swdata[j].bus->number; > > + device =3D pci_ari_enabled(swdata[j].bus) ? > > + 0 : PCI_SLOT(swdata[j].devfn); > > + function =3D pci_ari_enabled(swdata[j].bus) ? > > + swdata[j].devfn : PCI_FUNC(swdata= [j].devfn); > > + sprintf(bdf_j, "%04x:%02x:%02x.%x", > > + segment, bus, device, function); > > + > > + if (strcmp(swdata[i].serial_num, swdata[j].serial= _num) =3D=3D 0) { > > + if (!sw_kobj[i]) { > > + sw_kobj[i] =3D kobject_create_and= _add(bdf_i, > > + = sw_link_kobj); > > + if (!sw_kobj[i]) { > > + pr_err("Failed to create = sysfs entry for switch %s\n", > > + bdf_i); > > + } > > + } > > + > > + if (!sw_kobj[j]) { > > + sw_kobj[j] =3D kobject_create_and= _add(bdf_j, > > + = sw_link_kobj); > > + if (!sw_kobj[j]) { > > + pr_err("Failed to create = sysfs entry for switch %s\n", > > + bdf_j); > > + } > > + } > > + > > + retval =3D sysfs_create_link(sw_kobj[i], = sw_kobj[j], bdf_j); > > + if (retval) > > + pr_err("Error creating symlink %s= and %s\n", > > + bdf_i, bdf_j); > > + > > + retval =3D sysfs_create_link(sw_kobj[j], = sw_kobj[i], bdf_i); > > + if (retval) > > + pr_err("Error creating symlink %s= and %s\n", > > + bdf_j, bdf_i); > > + } > > + } > > + } > > + > > + return 0; > > +} > > + > > +/* > > + * Check if the two pci devices have virtual P2P link available. > > + * This function is used by the p2pdma to determine virtual > > + * links between the PCI-to-PCI bridges > > + */ > > +bool sw_disc_check_virtual_link(struct pci_dev *a, > > + struct pci_dev *b) > No need to wrrap line. > > > +{ > > + char serial_num_a[SWD_MAX_CHAR], serial_num_b[SWD_MAX_CHAR]; > > + > > + /* > > + * Check if the PCIe devices support Virtual P2P links > > + */ > > Single line comment > /* Check if the PCIe devices support Virtual P2P links */ > > > + if (!sw_disc_is_supported_pdev(a)) > > + return false; > > + > > + if (!sw_disc_is_supported_pdev(b)) > > + return false; > > + > > + if (brcm_sw_is_p2p_supported(a, serial_num_a) && > > + brcm_sw_is_p2p_supported(b, serial_num_b)) > > + if (!strcmp(serial_num_a, serial_num_b)) > > + return true; > > + > > + return false; > > +} > > +EXPORT_SYMBOL_GPL(sw_disc_check_virtual_link); > > + > > +static struct kobj_attribute sw_disc_attribute =3D > > + __ATTR(SWD_FILE_NAME_STRING, 0444, sw_disc_show, NULL); > > As below. Use string directly for file names, don't hide it behind > a define. > > > + > > +// Create attribute group > Drop comment + if it was here /* */ > > > +static struct attribute *attrs[] =3D { > > + &sw_disc_attribute.attr, > > + NULL, > No comma on NULL terminators as we won't add anything after them. > > > +}; > > + > > +static struct attribute_group attr_group =3D { > > + .attrs =3D attrs, > > +}; > > + > > +static int __init sw_discovery_init(void) > > +{ > > + int i, retval; > > + > > + for (i =3D 0; i < SWD_MAX_VIRT_SWITCH; i++) > > + sw_kobj[i] =3D NULL; > > + > > + // Create "sw_disc" kobject > > Drop any 'obvious' comments. > > > + sw_disc_kobj =3D kobject_create_and_add(SWD_DIR_STRING, kernel_ko= bj); > > + if (!sw_disc_kobj) { > > + pr_err("Failed to create sw_disc_kobj\n"); > > + return -ENOMEM; > > + } > > + > > + retval =3D sysfs_create_group(sw_disc_kobj, &attr_group); > > + if (retval) { > > + pr_err("Cannot register sysfs attribute group\n"); > > + kobject_put(sw_disc_kobj); > return an error. > > + } > > + > > + swdata =3D kzalloc(sizeof(swdata) * SWD_MAX_VIRT_SWITCH, GFP_KERN= EL); > > + if (!swdata) { > > + sysfs_remove_group(sw_disc_kobj, &attr_group); > > + kobject_put(sw_disc_kobj); > return an error. > > + return 0; > > + } > > + > > + pr_info("Loading PCIe switch discovery module, version %s\n", > > + SWITCH_DISC_VERSION); > > + > > + return 0; > > +} > > + > > +static void __exit sw_discovery_exit(void) > > +{ > > + int i; > > + > > + if (!swdata) > I'm fairly sure that if you return an error in failure above (which shoul= dn't > fail anyway) you won't need this protection as for exit() to be called in= it() > must have succeeded and the data must have been allocated. > > > + kfree(swdata); > > + > > + for (i =3D 0; i < SWD_MAX_VIRT_SWITCH; i++) { > > + if (sw_kobj[i]) > > + kobject_put(sw_kobj[i]); > > + } > > + > > + // Remove kobject > > /* Remove kobject */ but that's pretty obvious anyway so better to just d= rop the > comment. > > > > + if (sw_link_kobj) > > + kobject_put(sw_link_kobj); > > + > > + sysfs_remove_group(sw_disc_kobj, &attr_group); > > + kobject_put(sw_disc_kobj); > > +} > > + > > +module_init(sw_discovery_init); > > +module_exit(sw_discovery_exit); > > + > > +MODULE_LICENSE("GPL"); > > +MODULE_AUTHOR("Broadcom Inc."); > > +MODULE_VERSION(SWITCH_DISC_VERSION); > > +MODULE_DESCRIPTION("PCIe Switch Discovery Module"); > > diff --git a/drivers/pci/switch/switch_discovery.h b/drivers/pci/switch= /switch_discovery.h > > new file mode 100644 > > index 000000000000..b84f5d2e29ac > > --- /dev/null > > +++ b/drivers/pci/switch/switch_discovery.h > > @@ -0,0 +1,44 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * PCI Switch Discovery module > > + * > > + * Copyright (c) 2024 Broadcom Inc. > > + * > > + * Authors: Broadcom Inc. > > + * Sumanesh Samanta > > + * Shivasharan S > Why is the header needed? Only seems to be used from one c file. > Move everything down there and drop this file. > > > + */ > > + > > +#ifndef PCI_SWITCH_DISC_H > > +#define PCI_SWITCH_DISC_H > > + > > +#define SWD_MAX_SWITCH 32 > > +#define SWD_MAX_VER_PER_SWITCH 8 > > + > > +#define SWD_MAX_VIRT_SWITCH (SWD_MAX_SWITCH * SWD_MAX_VER_PER_SWITCH) > > +#define SWD_MAX_CHAR 16 > > Name this so it's clearer what it is sizing. > > > +#define SWITCH_DISC_VERSION "0.1.1" > > Whilst there are module versions in the kernel etc, they are meaningless > as we must support backwards compatibility anyway. So don't give > it a version (this is basically ancient legacy no one uses any more) > > > +#define SWD_DIR_STRING "pci_switch_link" > All these better inline. Defines just make yoru code harder to read. > > +#define SWD_LINK_DIR_STRING "virtual_switch_links" > > +#define SWD_SCAN_DONE "done\n" > Definitely inline! > > > + > > +#define SWD_FILE_NAME_STRING refresh_switch_toplogy > Just use the string directly inline. This doesn't belong in > a header. > > + > > +/* Broadcom Vendor Specific definitions */ > > +#define PCI_VENDOR_ID_LSI 0x1000 > > +#define PCI_DEVICE_ID_BRCM_PEX_89000_HLC 0xC030 > > +#define PCI_DEVICE_ID_BRCM_PEX_89000_LLC 0xC034 > > > + > > +#define P2PMASK(x) (((x) & 0x300) >> 8) > > Use FIELD_GET() on the mask alone and make sure it's clear from > naming what register this applies to. > > > +#define SECURE_PART(x) ((x) & 0x8) > > +#define INTER_SWITCH_LINK 0x2 > Give this a name that matches with a register name or smilar. > > > + > > +struct switch_data { > > More specific name needed as this will clash with something at somepoint > in the future > > > + int devfn; > extra space before devfn. > > > + struct pci_bus *bus; > > + char serial_num[SWD_MAX_CHAR]; > > +}; > > + > > +bool sw_disc_check_virtual_link(struct pci_dev *a, struct pci_dev *b); > > + > > +#endif /* PCI_SWITCH_DISC_H */ > --=20 This electronic communication and the information and any files transmitted= =20 with it, or attached to it, are confidential and are intended solely for=20 the use of the individual or entity to whom it is addressed and may contain= =20 information that is confidential, legally privileged, protected by privacy= =20 laws, or otherwise restricted from disclosure to anyone else. If you are=20 not the intended recipient or the person responsible for delivering the=20 e-mail to the intended recipient, you are hereby notified that any use,=20 copying, distributing, dissemination, forwarding, printing, or copying of= =20 this e-mail is strictly prohibited. If you received this e-mail in error,= =20 please return the e-mail to the sender, delete it from your computer, and= =20 destroy any printed copy of it. --000000000000921ecf061adb6329 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0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CprM6rh 7pha --000000000000921ecf061adb6329--