Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1012413imm; Sat, 7 Jul 2018 14:16:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcHo4H6ZKZFceNyobtu2dUmhEzpiGtrZa3vKFyw5f3FygqYh8S4TvKqQasMdfDQiU8+9vZT X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr14990765pla.52.1530998169950; Sat, 07 Jul 2018 14:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530998169; cv=none; d=google.com; s=arc-20160816; b=tCYBW/1d/rZxSFwlnXM3gK1RSGQB2HbpkM5gcTl862bZwxQ2Q6APW/5ZfiQ48zYJNO yf2NV6mevIkYyhHCVhwqjOZgY8957aK3mqlMzt/fh81JDy+iFTdcA7KFvoG3qH91AmxF KimnMCVCXoxcRnvwCxckj0/p4RQjMskvcQuUk0B6Dvj0KMYQl/QokNpGOAsx83snt+RH bX5U/e2+RQ0h1WFezhcdkEgA2+ZLTZPPNCgQ6f+9Pf5mpz2Z1NzeXrE742WD+PvJ5Pju t8tjujEno3MnrHH3ZKIV9qfhYX9xJgBeNyG9GFImdbvv20OBwz6NflbuZOO5W4oOFLUi h0bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=RBxx6eAUHQ5UJe8Qp2DWkGBGRrHU4fQGYxtLLcKeKrA=; b=BC20Y2hQRXwoZ0hRpD6KO6Ks5mWkWswJYey3znRfPThsJwVuS9Tu7Xllmb8QgXgLKl f5FeSPwg3jPD1o/zNxr2UmlQ80L2/+DshUXu7V7B+RUQGg/eBuuyr0n+vQl9YtVb0Z6i NeFZ0kgw9tQe4WnkrVWoUNgXCZRXxNFnYl6vOhufXVT9taxPIdk8PyM3y9FuupdBV6Nh PNbUH6xjIqjA15+ZqZf/TYnK2j953uIP7+HOjTibP2W5W8nntF1pw67suBoATRivOByi QmuFL81PF05A4Y6hYQ2QHCcpAszOev8jaG9jgcJCD/uzehXTBPxn9p+65lCUBbvMLONU ZNTw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25-v6si6448748pgh.119.2018.07.07.14.15.55; Sat, 07 Jul 2018 14:16:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932810AbeGGVOE (ORCPT + 99 others); Sat, 7 Jul 2018 17:14:04 -0400 Received: from bmailout1.hostsharing.net ([83.223.95.100]:44213 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932518AbeGGVOD (ORCPT ); Sat, 7 Jul 2018 17:14:03 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id AAB2D300002A0; Sat, 7 Jul 2018 23:14:01 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 789D536A1A; Sat, 7 Jul 2018 23:14:01 +0200 (CEST) Date: Sat, 7 Jul 2018 23:14:01 +0200 From: Lukas Wunner To: Mika Westerberg Cc: linux-kernel@vger.kernel.org, Andreas Noever , Michael Jamet , Yehezkel Bernat , "Rafael J. Wysocki" , Christian Kellner , Mario Limonciello Subject: Re: [PATCH 5/5] thunderbolt: Add support for runtime PM Message-ID: <20180707211401.GA13111@wunner.de> References: <20180618110731.57427-1-mika.westerberg@linux.intel.com> <20180618110731.57427-6-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180618110731.57427-6-mika.westerberg@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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:31PM +0300, Mika Westerberg wrote: > Implement this using standard Linux runtime PM APIs so that when all the > children devices are runtime suspended, the Thunderbolt host controller > PCI device is runtime suspended as well. The ICM firmware then starts > powering down power domains towards RTD3 but it can prevent this if it > detects that there is an active Display Port stream (this is not visible > to the software, though). > > The Thunderbolt host controller will be runtime resumed either when > there is a remote wake event (device is connected or disconnected), or > when there is access from userspace that requires hardware access. IIUC, if there is no xdomain, after 15 s all switch devices as well as the domain device and the NHI will have runtime suspended. The control channel is torn down as well, so you can no longer receive notifications over it. Then how is wakeup of the NHI signalled on hotplug/unplug? Do you get a PME for the NHI device? Because I'm fairly certain that I do not get a PME for the Light Ridge in my MacBook Pro, but I'll test this once more and modify negotiate_os_control() to grant PME control to the OS. Thanks, Lukas