Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2802139lqt; Tue, 23 Apr 2024 01:53:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiVhezwnveV7phw1S2CGFbx35j1GXoKQl89UdY5kTFKRxIdo7ddqNoxGOAIqBhsBBaUCUufW91SoL4whnyHO3whCwkI8l/kWsiqIZPTA== X-Google-Smtp-Source: AGHT+IHUKdjBf7QUEbgMzHHPDtaYFO+hAMywQZrm5JDe0rRt+wS0/vjmbRfYKxXh0uSLrds2A7A1 X-Received: by 2002:a9d:6219:0:b0:6eb:c6c6:49ac with SMTP id g25-20020a9d6219000000b006ebc6c649acmr14825920otj.31.1713862381412; Tue, 23 Apr 2024 01:53:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713862381; cv=pass; d=google.com; s=arc-20160816; b=tBC2RXyzo3ZWVrH68/pGBu3g16h8tab11EmhlQoVZW6I3IljoBYrv03Q9wf6zS5fTV +JH+wrGUkez2XTfSlJrPZ7p1KOum93GNtSNr/b957y8zSGIcOPeI+mO7pf8kNSlgOYiB Okz4l2v1QJC6m87vpzzozlanNToYQ3ZwcgnbwyDIVfGEvUwIoYGczgEDhQ2/vzILQBtA xPE3shEI7Dq7Htvaww05BrSvVIsaUsG3oS8r1k1xpfm7+njwHefLV1Yil0/P+W0h5Fa5 u0JA70dcpuTVjzJm5iWb1MNSXRZrzMNca7ZFU/LAHOsE2rH4y3RIrbdWX8kaFR++rciu eWhA== 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=AstJjEzVt1+/inHyLU7yka7E/V1ZUA49Sw+AbDUoelA=; fh=jQR2l/M+CyzyAwdmXVyWx3T6jMo9yAsFrZ2yOFwfhEg=; b=B13vi8Qkpt82M3GOeKAgLcCZgXygrlLh2A6sPWCcFgU9Eozz/7cdTsUtc4VBWXqz/f h2T+RX0pY43uD9HSiP8u9BtV3vs6S7T/l3O1Z2NMAX9+GL0GvuyhUf7vLQc/flhBBOwy V+dO0+YBzJUXkqeEQY3Yn1SNPbOjaNOLoJ4GlgB0/k33x1/sC5/0zTfSSUi51RPeReO8 ODc1UWIBn5U2jKynzDoirzbM4TL+4wfJklaURc9hjd2tFnmUOn0An7VeNaG9taC4EIH9 8GCXN+rgL5JpoOlmKvr6W7LuLAwaMWUvcaATI4jTHb+5hM4OZHWEtbSGgt0wetImrnMi u6Lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-154685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154685-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id dr25-20020a056a020fd900b005f7bd3b84f8si7448094pgb.643.2024.04.23.01.53.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 01:53:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-154685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154685-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F94CB23BC5 for ; Tue, 23 Apr 2024 08:31:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 463CC535DB; Tue, 23 Apr 2024 08:31:38 +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 2BA3C79D3; Tue, 23 Apr 2024 08:31:34 +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=1713861097; cv=none; b=Of95e05QGBC9O2Vi3Jpk+2nObBgS+a4r0Bk/Xa7yYWv6ivumcA1ulD6kCnkrcuurycENiP88G9aLnbzA91+KR972FK2Y+Z5O9RyylZrY/hzcVWc0IZRllNJoXLIa2kbIPFJWESpCCGEZ6Ahw8e3dsqwuAleiR304oXWHVVzMzSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713861097; c=relaxed/simple; bh=8x0r0T5MB8m4NAc+KSUCSNVRU7J7wJFu67VI65GGPd8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QBCZzp2COg5WGNcWFjjKgQ47qm4MdPCN80Aw7ocS8QgCP2kCuTGH/hQ/w+aA5XbjS22mOlZU9eKEGpJjprnPRfPywYM7SOtTTxElqZwLvgCheNluxyUoa4gKAuIGB6owDaXn18j6nxfbwLJEgapZQnwgQ56aiKeMtn9yZ1vpYJg= 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 [83.223.95.28]) (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 D411C28141EB1; Tue, 23 Apr 2024 10:31:30 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id CDA7B4C5F0; Tue, 23 Apr 2024 10:31:30 +0200 (CEST) Date: Tue, 23 Apr 2024 10:31:30 +0200 From: Lukas Wunner To: Mika Westerberg Cc: Mario Limonciello , Esther Shimanovich , Dmitry Torokhov , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Rajat Jain Subject: Re: [PATCH v4] PCI: Relabel JHL6540 on Lenovo X1 Carbon 7,8 Message-ID: References: <03926c6c-43dc-4ec4-b5a0-eae57c17f507@amd.com> <20240123061820.GL2543524@black.fi.intel.com> <20240416050353.GI112498@black.fi.intel.com> <20240419044945.GR112498@black.fi.intel.com> <7d68a112-0f48-46bf-9f6d-d99b88828761@amd.com> <20240423053312.GY112498@black.fi.intel.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: <20240423053312.GY112498@black.fi.intel.com> On Tue, Apr 23, 2024 at 08:33:12AM +0300, Mika Westerberg wrote: > I think what you are looking for is that anything behind a PCIe tunnel > should not have this applied. IIRC the AMD GPU or some code there were > going to add identification of "virtual" links to the bandwidth > calculation functionality. I guess I could resurrect my correlation patch: https://lore.kernel.org/all/f53ea40a7487e145aa1a62c347cef1814072e140.1536517047.git.lukas@wunner.de/ The last time I forward-ported it was for v5.13. I still have that code running on my development machine. The problem is that it only allows lookup from tb_port to pci_dev. I'd have to add a pointer to struct pci_dev to allow lookups in the inverse direction. Though I think we have such PCI companion devices for CXL as well, so such a pointer could be useful in general. I'm knee-deep in PCI device authentication code but could probably dedicate a weekend to the correlation patch if there's interest? Once we have correlation, we can expose more precise bandwidth for virtual PCI links in sysfs. Thanks, Lukas