Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp590016lqo; Fri, 10 May 2024 08:46:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHgzbAfSMoQWUbkR58j93gHs3Du4ruhXMSpSPp2mvY1NM+ZTjtrOXsyIbXEc2FinjlbnY7KMwPnGOkuBTG8+HTq8UxonvhwQPhfex28Q== X-Google-Smtp-Source: AGHT+IHuCEFADLVU4LEV1Vx6hjSQwdHiIJ9MCqduNtFS9ajLkjKvu2FG8PVMRRAadMS3LDZgeElE X-Received: by 2002:a17:90a:b38e:b0:2b5:6f9b:a7b with SMTP id 98e67ed59e1d1-2b6cc759192mr2829428a91.15.1715355981384; Fri, 10 May 2024 08:46:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715355981; cv=pass; d=google.com; s=arc-20160816; b=SM97OWNEPWYhgxefK45Zibjt/y8gvEi+a+OEHCQSluWTsKBrDpVTtqTwK1cNNrARyr IkVGI056H699N4H+E9mZ/0lofZQ1yZoPyzOWYs2X9V/U/mxzbNzCB0xlrP7p7xmbi5DV l5vVr2Uupm79/Latf5Rfz2IPDKLU0GL2jXjh1HQrQpHnVAeu+3j3Hx5cpTkRGr2o8wxK mxBcKMMch1TEy1b263DkeK71lGgOMMdsKLLdyBX23Z1d4nDe6LdB3dr52NzulM/VR8Vx LvoZdtOdjtvNUZFpPEyHipaQG/xsNyxu9dbqdfwEHPOKG6XuF829XxxBUWTb9pY/HBA2 hslg== 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=dWpeN9v4LQPHTvNkYUfPGosFaeM74t16OD1N/lIzMnI=; fh=xNvw0vsDYG3U3mKuOtwJJdEX9ycnC8yaokcWqsx6V28=; b=T+xCcLW0VrlokrMSEewSeoOdx+HsxVG9GGTVd29JBCwWRxEtqsOhH0Z1KtO8eAht6B KjC/B9afBSXI3fByFTHXSX1KFR8CTJ5p2swSRCc3n+kK68rJwuN7sfvFH224jQ6TT0Uq ltsLfeE8gQMqTfCn1yPGK4NxJR6L7EiUkbGrKGaLgEaMYUnD09vZni9UmyKKMQEodnD8 B34ilYz6sDub1mxPkS0mogCq79LofCZk+01Gkyw45CLkkEWmze0nwjnc+vPo7wvDE1Xa n9WfZnjDIRbwzpmkC7HjYL80vdcHstl2meuqCwyvqiNJPvd2uIpFBAz/1Kwkos3Q7INM fTaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=U3Fg7Cp3; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-175975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b671589b7csi4212175a91.151.2024.05.10.08.46.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 08:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175975-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; dkim=pass header.i=@chromium.org header.s=google header.b=U3Fg7Cp3; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-175975-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 01901281D63 for ; Fri, 10 May 2024 15:44:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A3DA171679; Fri, 10 May 2024 15:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="U3Fg7Cp3" Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (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 416EB171657 for ; Fri, 10 May 2024 15:44:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715355865; cv=none; b=h7OeybKhjaMW0O6BshR9LMmI4qu3vPctbf/490ZPSUq+aXnBpuivykSXyVNPRXeLgnsV3Uo1I4Y0yQHEbMxiMQ/NV8Jtj/IFaIEq4HrzE43kzqJ8c4oQWT2TuvUpCd22lQ8/Z6pG3+r4YUM4OzrU8EbBqwdUC0bIJosHOkHqdoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715355865; c=relaxed/simple; bh=PSbCck90XzR29/LcPaIDYs4i+apiq99iORTmH6bbfXY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mRL85RLBqDL9M8UTCVIfkv6KJm8+qrdkCYc8YR7wCYFtfM5VZyArAfFWpHuEGZMrm5TWtcWl2seee6DHPUk5sr9z7ijSI6Uvpw6i/Fz1zx+DLFJm/QdyubNUU1dm0CszkgoyrtS3kg+AiZ1yzWlbdRFcuudJAb3BAFPkytt0LJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=U3Fg7Cp3; arc=none smtp.client-ip=209.85.217.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-vs1-f49.google.com with SMTP id ada2fe7eead31-47f03844ea3so786735137.0 for ; Fri, 10 May 2024 08:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715355863; x=1715960663; 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=dWpeN9v4LQPHTvNkYUfPGosFaeM74t16OD1N/lIzMnI=; b=U3Fg7Cp3tizK/cFVxa1OK70Y9i4pbogfLzzi5/jbq6rzgj1kFe8AB86kfBpA9l8Ppb keBDwI/mxu+pzFSeegcmDKeMeQ9xsIPjZrJ2Rs9U28lwCBwRmmkwjXdJofDzKqXZB96G UCICInTzwHvA8Gb55meNU+5E2cdtBoioIup1A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715355863; x=1715960663; 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=dWpeN9v4LQPHTvNkYUfPGosFaeM74t16OD1N/lIzMnI=; b=bPP8Vewd6lqUYleSrTCcu+fIAOTJrWSG5zyT+jJ0JYOsIBxYyYzXxD1/1A42K8NfGc 4P196+EvMJeritqRSqCWKmZvd5/VVykQsfpsba2SnKO0yk6oTstBKhZGVfneuEpzBPUt rCPiG1YC/BwceDuBuYESi5iBinjyvKq2c8EAQt/0DkwpAWDm7ZwBL3y+tsyfslmAc54T 0FxiTmGeYc1YIsLw8KYdEBwIuoW1fnqNNSFuuN6NXE05N/g1fRH+/T1Okqtv7saHgfhd ELmUw/aIghnKhhIu2LCfYP3/GyJoYVMMzE6h7BSS0MiF5EQBq1CXem4Bx95P1RMZvyU3 aqvA== X-Forwarded-Encrypted: i=1; AJvYcCUQVgvGBAfz6VC31d+ZtxriUBKkNL75JQJto58GJFTH9tU6cEs7vcrBtf/argRxXzrFOQeGYkoeFmnfgdhk13EWh8eVPxR2yp95YDB3 X-Gm-Message-State: AOJu0YyNlcYBNj6eixNHZDsBXL+F6G/37ndszi6k3cJ1YpxSPkMLURz+ /n5/jO4/hHxiWFzrK0+9tJRCeqTMPjU8qnupJpt+EUOta5QgUuEmwpzXZip2bGtRZI5UPz3LATZ xBwFVLPKswyNj2rDIjwgpIa4TYlXzffBEIK54 X-Received: by 2002:a05:6102:1610:b0:47f:1ad0:2b12 with SMTP id ada2fe7eead31-48077e4426emr3624858137.22.1715355863240; Fri, 10 May 2024 08:44:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240419044945.GR112498@black.fi.intel.com> <7d68a112-0f48-46bf-9f6d-d99b88828761@amd.com> <20240423053312.GY112498@black.fi.intel.com> <7197b2ce-f815-48a1-a78e-9e139de796b7@amd.com> <20240424085608.GE112498@black.fi.intel.com> <20240510052616.GC4162345@black.fi.intel.com> In-Reply-To: <20240510052616.GC4162345@black.fi.intel.com> From: Esther Shimanovich Date: Fri, 10 May 2024 11:44:12 -0400 Message-ID: Subject: Re: [PATCH v4] PCI: Relabel JHL6540 on Lenovo X1 Carbon 7,8 To: Mika Westerberg Cc: Lukas Wunner , Mario Limonciello , Dmitry Torokhov , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Rajat Jain Content-Type: text/plain; charset="UTF-8" Thank you Lukas and Mika! This is very useful and helpful! I am setting up two alternative builds with both of your suggested approaches and will test on devices once I get back into the office, hopefully around next week. > + /* > + * Any integrated Thunderbolt 3/4 PCIe root ports from Intel > + * before Alder Lake do not have the above device property so we > + * use their PCI IDs instead. All these are tunneled. This list > + * is not expected to grow. > + */ > + if (pdev->vendor == PCI_VENDOR_ID_INTEL) { > + switch (pdev->device) { > + /* Ice Lake Thunderbolt 3 PCIe Root Ports */ > + case 0x8a1d: > + case 0x8a1f: > + case 0x8a21: > + case 0x8a23: > + /* Tiger Lake-LP Thunderbolt 4 PCIe Root Ports */ > + case 0x9a23: > + case 0x9a25: > + case 0x9a27: > + case 0x9a29: > + /* Tiger Lake-H Thunderbolt 4 PCIe Root Ports */ > + case 0x9a2b: > + case 0x9a2d: > + case 0x9a2f: > + case 0x9a31: > + return true; > + } > + } > + Something I noticed is that the list of root ports you have there does not include [8086:02b4] or [8086:9db4], the Comet Lake and Whiskey/Cannon Point root ports that I saw on the laptops I tested on. Those laptops do not have the usb4-host-interface property. This makes me think that the patch won't work as is. Then I queried for up all the root ports on all of our devices that are confirmed to be affected by this bug. Here they are as a reference: Cannon Point (6 devices in our lab with different combos of these root ports) 9db8 #1 9dbc #5 9dbe: #7 9dbf #8 9db0 #9 9db4 #13 Comet Lake (7 devices in our lab with different combos of these root ports) 02b8 #1 02bc #5 02b0 #9 06b0 #9 (one device had this variation of #9) 02b4 #13 Tiger Lake (1 device in our lab) a0bf #8 (the root port's device id is different from all the ones on your list) After first trying your fix as-is, I can vary the list to add all these root port devices to see if that has an effect. It seems like this list might have to be longer than it currently is though.