Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp374486imm; Tue, 3 Jul 2018 21:39:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfLibwJWF1Mcu7OZE7iiyIZxzs51AnqifxgkbrB48DWyYTPrrXx8xS0pjIbo7U60+l94Ndg X-Received: by 2002:a65:4783:: with SMTP id e3-v6mr459001pgs.235.1530679173514; Tue, 03 Jul 2018 21:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530679173; cv=none; d=google.com; s=arc-20160816; b=iQKETE71Mg9/R7DO4VKoSBAhaOm1jcB7MRUtPKCf078NUl4gAU8hAvrK3nAyDlj++2 KmSRGQZVgZJisIah6/b/vnS+caKXnkpzvKF+chX//5JBrjRPkQukYvEzAIatkQElQvqS BCfW2kgvkyQimqNHAxLBOcLr6dW8uV9pjUqsu1Jtb1zRn2KPEWHlU3oDdFxF2KhtdDr3 OfAmFsYgOJ2+Uddujlm6RO6L5NFVmiiIFCzBRk4ZsVgVJrF6EA/E6zYMIz57jPh40Plj yNjiUVmGo5g729786CINxa+cpHUq5R+62fwpAFKy3oemhdDluFAWvG9HYvg5NAh9lvG3 88xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=QG9jU9i1BVkTV1eAK7xJCBlkM/ZHdZrKz9uHchC4KR0=; b=AJ1rABbg8AoBYJ35aX5Y4TLSqo4/x5aumm+qVcac1n80dGfxEQSt7OT96u+yBwieII jlP8T2w4/eQqNz1JDUmVtM4RHGSEaPnTBT+1BpkF9mCu8WM25S2P97tULX8MKDeHetAW JUC+rln4bITSaJNk0AzC7iSy0ZH41zA7jufpCMIRdLUWZYhxOOM7UfoCtfJtWOEUopJC kwkZB4Hq+MWsfT4tzS2rEhpgmbGaHpbxdZBJJUScP6wE7Gj1sMAV5GjFBwTUWTslUmhL Go2NJ9ZWyl2K3+jnrJ5GrDEbKF+KxU/lVn9pJflez+d2RkIGU1jJ30XvTYFTCbWLT/mB 64oQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w65-v6si2465950pgb.377.2018.07.03.21.39.18; Tue, 03 Jul 2018 21:39:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932681AbeGDEid (ORCPT + 99 others); Wed, 4 Jul 2018 00:38:33 -0400 Received: from mga09.intel.com ([134.134.136.24]:18552 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932582AbeGDEhb (ORCPT ); Wed, 4 Jul 2018 00:37:31 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 21:37:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,306,1526367600"; d="scan'208";a="68502094" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga004.fm.intel.com with SMTP; 03 Jul 2018 21:37:08 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 04 Jul 2018 07:37:08 +0300 Date: Wed, 4 Jul 2018 07:37:08 +0300 From: Mika Westerberg To: linux-kernel@vger.kernel.org Cc: Andreas Noever , Michael Jamet , Yehezkel Bernat , Lukas Wunner , "Rafael J. Wysocki" , Christian Kellner , Mario Limonciello Subject: Re: [PATCH 0/5] thunderbolt: Add support for runtime PM Message-ID: <20180704043708.GX2534@lahna.fi.intel.com> References: <20180618110731.57427-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180618110731.57427-1-mika.westerberg@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 02:07:26PM +0300, Mika Westerberg wrote: > Hi all, > > In recent PCs such as Lenovo X1 Carbon 6th generation the Thunderbolt > controller is in RTD3 mode (Runtime D3). This is different from the > previous modes because now the controller is present most of the time (it > still will be hot-removed/hot-added during NVM firmware upgrade). Because > of that we need to dynamically power it down whenever possible to save some > power. > > This patch series adds Linux runtime PM support for the Thunderbolt host > controller driver using ICM firmware but it should be generic enough for > future additions to allow similar functionality for the older Apple > hardware as well (even though those system do not support full RTD3, it > still makes it possible for the host controller to go to low power state if > cable is not connected). > > With these patches the driver automatically runtime suspends the host > controller after being idle for 15s. The connected Thunderbolt devices (if > any) need to support RTD3 mode as well. Typically all 3rd generation > devices (Alpine Ridge, Titan Ridge) support this. > > However, while this provides some power savings, there is more work to do > in order to allow powering down the PCIe root port leading to the > Thunderbolt PCIe hierarchy. This work is still in progress. > > Mika Westerberg (5): > thunderbolt: Use 64-bit DMA mask if supported by the platform > thunderbolt: Do not unnecessarily call ICM get route > thunderbolt: No need to take tb->lock in domain suspend/complete > thunderbolt: Use correct ICM commands in system suspend > thunderbolt: Add support for runtime PM All applied to thunderbolt.git/next.