Received: by 2002:a05:6504:5087:b0:1e5:d399:13c4 with SMTP id i7csp2150ltq; Mon, 3 Oct 2022 23:00:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RWY4pW42W15Kywlav8TvwYxVBKE9zMdanbfK3eZWX4utLrce/reJqgOjVJ8+08/vhckgg X-Received: by 2002:a63:1718:0:b0:447:9ff3:66c0 with SMTP id x24-20020a631718000000b004479ff366c0mr12271822pgl.521.1664863211788; Mon, 03 Oct 2022 23:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664863211; cv=none; d=google.com; s=arc-20160816; b=EcI3D1PrWphOQmbhijL3RmPzy3431KK3qso8OkTKSPOyQFKTkUjVIhgtZX1MeFtugO fpvd4CV4UTdQm+rcSOzx0QzOMOdTJG+CQ2dOb6YE6L8QsRfRfHwRZ2V9aDrPNTd4KRb4 VcLNv0CJs9SKfCdK7qyXNCcqlXRWTJWFo67jPJD8tgkRuhrHHs+BRK3hTNpN35TdrbW7 D1OZOl7ROeHGpLmsIy+gt+GccJVxjzQ3cd9SWmBy6ebw07REGZ2NcJ+HJ+YLYwm3lPD/ 5MosNoR97jkASW5ToDd0nrpPo5uwqWtrBuffN6MuHamSI8dMkIb+ta2jAkNOiFlKJDOq KyGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T7ZejGb+YP7DaX58qn6T7w5+npZK9x8KHdECcDJhvqk=; b=rPqZT4+v+oPfsDWjKGn612/ViMT+RkJAT3xQlV5H/c2RGfI12MxOcl7VEJ0EcUVhnM nVsPz4TlWNmMcdQdvr7h3Va4RWlMZaw70H3cHJsiJnJ4wnU2/jKAsJwWpdnE2Q3AJSt8 IwEFAFnYlvWid0FDreTxMRT+klgQq5zAtl837IalDj4jZTwfhwW6w/v8OOowMs/+z8sV 7ETT52547sjYUM3w0FR4fHilhCfNY8zSqp85OSF7m04TsJ7i9koOaCvnJ9oqUe6uZKRs bymcVZbL5tXOXm6OihWT49oWJodmJjDJt0D4k9LWM2R7MPoG2Fm6aC7A7pMXJY7wGPRb JI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E1AMY3Gh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a62e412000000b0053b1ce9b9efsi4752414pfh.263.2022.10.03.22.59.46; Mon, 03 Oct 2022 23:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E1AMY3Gh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229505AbiJDFD4 (ORCPT + 99 others); Tue, 4 Oct 2022 01:03:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiJDFDy (ORCPT ); Tue, 4 Oct 2022 01:03:54 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AD3D1F62F; Mon, 3 Oct 2022 22:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664859833; x=1696395833; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kviKUqiT8pBeVsCDEFp0UnRDN3zB0t0iniuXt9pOE1s=; b=E1AMY3Gh75iUL+th6zFD5rhkXVRkWBAVRabzwzAK24uJFvxnvWS5odpQ OmJyOHfeMHfxJJD/XzKs4GqXgqQdu1oHpMIBwtPbywGpgK5/2hGRyODWF 6GG5UssX/K4ZgURyP4M0t7SSbIoc00JUXEUJ3gxO1utv40YSsONPh6zPA hPSjAVm9ZAxgAmcBGbgv6g+jvO8FxeTBJr75s3T5Bq1NvLofEA35VKiS3 rFAfZalUL76Nlp2RGQvJdolzkwkPgU+1642Q8QsoXT1dUJMQGKu0GWXCj 6aF9rLg9uILhzpV+jjsBwnDSq/DS9Rxh7fH/e6P7fvQMaahkpfIpU9/lF g==; X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="302807976" X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="302807976" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2022 22:03:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="626054280" X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="626054280" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 03 Oct 2022 22:03:51 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id F3CE8D0; Tue, 4 Oct 2022 08:04:10 +0300 (EEST) Date: Tue, 4 Oct 2022 08:04:10 +0300 From: Mika Westerberg To: Mario Limonciello Cc: "open list:THUNDERBOLT DRIVER" , linux-kernel@vger.kernel.org, Sanju.Mehta@amd.com Subject: Re: [RFC 1/3] thunderbolt: Allow XHCI device links to enter runtime pm Message-ID: References: <20221004041225.1462336-1-mario.limonciello@amd.com> <20221004041225.1462336-2-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004041225.1462336-2-mario.limonciello@amd.com> X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mario, On Mon, Oct 03, 2022 at 11:12:23PM -0500, Mario Limonciello wrote: > Both on Intel's and AMD's USB4 designs it's important that the device > link to the XHCI controller used for tunneling is able to go into D3 > for appropriate low power consumption features as well as for system > suspend states such as s0i3. > > Historically this is accomplished by adding to a hardcoded list in the > XHCI driver, but this requires a change for every single platform. > > We have a very good proxy that it's safe to do this since the firmware > has indicated the device link needs to be made. So opt all XHCI > controllers with these device links into runtime PM. This is good idea. However, it misses the fact that we have FW CM as well in Intel integrated TBT platforms (ICL, TGL and ADL) and with those you don't have the device link (I think ADL has it for both, though) so we would still need to keep the list in xHCI.