Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp139081lqo; Thu, 16 May 2024 01:30:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbeVviTpFMnQLQG1fCVCIwMO3bTcKBpdlUHgcaaU3EzwmK53mV7wokVSO1UaCwB1lVX+9cLDLBfDq9fWPlVtvLhtb74oNhkQT2RLfh1A== X-Google-Smtp-Source: AGHT+IEcGhsNZQfzh+lLqVX1xp5heF4lPptOAbot1BwBQvgP7fIP6g+z9b480bVvkYj5zGWjIpM/ X-Received: by 2002:a17:906:97c8:b0:a5a:a2b6:ba8b with SMTP id a640c23a62f3a-a5aa2b6bf6fmr318701266b.0.1715848231334; Thu, 16 May 2024 01:30:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715848231; cv=pass; d=google.com; s=arc-20160816; b=t3AaCgyka1Km8RsQgipm1QsGA25l8jSpOfr4luSKKR50+xKb8esSqjyuse66RyRnB1 4maKd2q0dNcfWE3aCh+AVzbArk68avFoj02S7VlhzkAeob1T/oOiL6lTKVHXvggjiYma QAaND2gJNmZB18rh/IMnM9V7Gl3wPYHnG4cSYgsnI5jvcZxEz6arOjiHGkQJoQz8w57E 7zTqTdkq9E9SkvpH9fY+V3eYjxOUq7h2sdTbMHBGiUDryFtG25nMMYRlOUKHeeO5RyVN kMXcOoM3GheZwDcSetcls6xCFl/fgsV8b6+1QG8w5iLwTLdstpF3pZ+eEQxvMPtTzifo gDLg== 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:dkim-signature; bh=mvHqv6RjrhKh29sVXo3nYu2rOpENFICCpvKIv2x7H4U=; fh=tQdhqwjaEp5I3KOApAl25Ngl7ZiwCpw/obPjYmK6ANQ=; b=ux8BQstJaTgvpgC90Z4xCqkYO00qOcKQ7YGSh/L2UFNUxB2EOXQORwfTpjgN3P6uU2 JLjd3D02K+YgYKShGgBPap22mQt/rFOPy/AAp6icCvV09Y7+jUgcLkSfGo1PqBVQwdnJ xUcRUa3mp7+2y1PUVz29fQjEE0pco3ota9FvKFbBM8Paddyl120nFR8eFBWQA7s+0n+J dPUThnr1z/KTLWssSD9lvIfqO7kP9AthqaMjj1eYfHM4/nK4j7NEHsfhV5oeA6n6hp+j wrRaFOzCuGGd6t9QnAdH03RbMljKLo2WZPBNLkiggu3HhfFT/cMJaFjoLG3KjuFpO+TJ FqxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ILDkwUsg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a8d3088a7si229480966b.365.2024.05.16.01.30.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:30:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ILDkwUsg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180768-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180768-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 08F481F227F0 for ; Thu, 16 May 2024 08:30:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAB161350EC; Thu, 16 May 2024 08:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ILDkwUsg" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 B065E2EAF7; Thu, 16 May 2024 08:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848223; cv=none; b=H97cJgwJcIxma2Bs+gbvxSeeG5DDUS5hhHewqrQvFmrI7owUkqQr0o99qgYyQpZ2qimUlf5ywkYYoU7v3F+wogVuW0I2N+E4kcwLM2VZZ6s4YqmUtGwgqgloCMUxwq/IA7xEfxIKKT8gtw6Ufw+uKMpASGwniwJ3CuKWG7xEKuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715848223; c=relaxed/simple; bh=Q2bR+FaZIzy1J8U4W6MYcfPYvM1EMTA/mliTZkjLgC8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iUY6sv23YbNtoXS9hr60mSj8nElrdBYzUKVRSvRntKJslyB7SvlEf5+2XjsH7DTDmlv3oCN3clC6vD4mPSxUJSze4/fGzhTQ4Ml7XMkF+boH7OY1xTLiUT8wsp/qHEOFkPvffyYtt0oPNCOeTfcjsug9zRRu2TY0SA327i/dIVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ILDkwUsg; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715848222; x=1747384222; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Q2bR+FaZIzy1J8U4W6MYcfPYvM1EMTA/mliTZkjLgC8=; b=ILDkwUsgv7VGVFlO5ucTXxapzTvKkM5n8dZbb6Wns5d+UCIXEFDyvLdW 7xU3sW1Qft7TioBd9L+rOJynRpvamnY2SW9RCsfZZutIDrEONO13C1SFN eQy7e0Xej6xqYH15b3ff2ND/10pNTI9msGpDz8vQTnR3xClDrmcIc/xnq /4qnYJxFRVu2dkajuJnHsFSQ5F+SFQnC4s3DiuGo0vWnlyo0aioTYY7eB pyajLxjJmkvd9XvVy4P3+hqo57EGHKFLV3mYXs5oJiuZgrI+t+4SKTGBG lT29P/R+2WwJO7ZYTaKFYF+VwEhEEld256lXO8bUqAbM6ZfcOF3XE4zu/ A==; X-CSE-ConnectionGUID: 7neuDPOwSxukbmHQccPwFA== X-CSE-MsgGUID: wh+MWzzvQ1i8lJGjztNfRQ== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="12053209" X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="12053209" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2024 01:30:21 -0700 X-CSE-ConnectionGUID: es8fKLq6Tpyk5CUcyrL8lg== X-CSE-MsgGUID: gGdZ9HIwQfiT2Hm3bTFxiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="36083736" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa003.jf.intel.com with ESMTP; 16 May 2024 01:30:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id DCEC997D; Thu, 16 May 2024 11:30:17 +0300 (EEST) Date: Thu, 16 May 2024 11:30:17 +0300 From: Mika Westerberg To: Lukas Wunner Cc: Esther Shimanovich , Mario Limonciello , 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: <20240516083017.GA1421138@black.fi.intel.com> References: <20240510052616.GC4162345@black.fi.intel.com> <20240511043832.GD4162345@black.fi.intel.com> <20240511054323.GE4162345@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=utf-8 Content-Disposition: inline In-Reply-To: Hi, On Wed, May 15, 2024 at 10:35:22PM +0200, Lukas Wunner wrote: > On Wed, May 15, 2024 at 02:53:54PM -0400, Esther Shimanovich wrote: > > On Wed, May 8, 2024 at 1:23???AM Lukas Wunner wrote: > > > On Wed, May 01, 2024 at 06:23:28PM -0400, Esther Shimanovich wrote: > > > > On Sat, Apr 27, 2024 at 3:17AM Lukas Wunner wrote: > > > > That is correct, when the user-visible issue occurs, no driver is > > > > bound to the NHI and XHCI. The discrete JHL chip is not permitted to > > > > attach to the external-facing root port because of the security > > > > policy, so the NHI and XHCI are not seen by the computer. > > > > > > Could you rework your patch to only rectify the NHI's and XHCI's > > > device properties and leave the bridges untouched? > > > > So I tried a build with that patch, but it never reached the > > tb_pci_fixup function > > That means that for some reason, the PCI devices are not associated with > the Thunderbolt ports. Could you add this to the command line: > > thunderbolt.dyndbg ignore_loglevel log_buf_len=10M > > and this to your kernel config: > > CONFIG_DYNAMIC_DEBUG=y > > You should see "... is associated with ..." messages in dmesg. > This did work for Mika during his testing with recent Thunderbolt chips. > I amended the patches after his testing but wouldn't expect that to > cause issues. > > @Mika, would you mind re-testing if you've got cycles to spare? Sure, I'll try this today and update.