Received: by 10.192.245.15 with SMTP id i15csp1155593imn; Sun, 11 Mar 2018 05:44:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELvhlCTfKqeiS9VJrYefMSJZ+9IRlYHTBhoxXPSoE6zlikk1WIxr5pVzvltCGHbh/UFQV735 X-Received: by 2002:a17:902:52a6:: with SMTP id a35-v6mr4915401pli.179.1520772278757; Sun, 11 Mar 2018 05:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520772278; cv=none; d=google.com; s=arc-20160816; b=VON8jKNDh26GbVI+/nzCan6xqHELNnOAvrKLEachlwS3Zg9FjVMjCyH6uyFaMPbiOh nKHp3oOkmHUFCmDk/z7fMLsD9A0Nmq/PI1/vLqga2b+93onwvOxZ/7e2x3kCMS0ErP0L +2AS+iQbng70N8nlcQzroOHBiRr7gymEp/Q+4mWX/63EE8CfAq4L0umO5AMxU2CpjodV Tttv6Riz547n8mUffe0ok1N8iILCvBPXBXOP4pn/raxyEsOolFcEJ9L89VJIozMLaOSW V2Qg6jv1IPWZ+xmMhSExiG8nfcubfS4YoHpztacm0S/GzvLlLaNU87cI8mRMnYXyXRbX FqiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ax/3O9jyOpFWzEU9ZMMqzbhsc5vKXRrzHXJQ7XaRIuQ=; b=BtEuOiUierJqTsUJ/WGmRkTNBIEH/cukX3LH9bxQ92hQcsbQu1KqPIxF4ptHI9zPxW 5dMi7M1z8SKaNXtxMyg97RmlwdUWs8BvfY53gwTClGplFQa8NgXdmIx3BeYMfbKtF4CX efDNbwQoAfJ1va5zsZzCcfDFi8p4rgMAqNaQMbUOuUvRDthReoxABnSjVXxl1VyG+dLM lhAhXyLPKQrGgI6TNBOn2gNAJw21pDOh7QIGygeyMt3akPtXh8yWoBnKzL+fvUv+9DTO 3HGCDXFszlwLXhukIhYjmwCt2r7dMbVy5jJxDN8Yqms450ppvTyCFDV7AznH5YsSsv0b BMwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=adrp/Vdu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si4185371pfg.333.2018.03.11.05.44.24; Sun, 11 Mar 2018 05:44:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=adrp/Vdu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932249AbeCKMnL (ORCPT + 99 others); Sun, 11 Mar 2018 08:43:11 -0400 Received: from mail-vk0-f46.google.com ([209.85.213.46]:36598 "EHLO mail-vk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932132AbeCKMnJ (ORCPT ); Sun, 11 Mar 2018 08:43:09 -0400 Received: by mail-vk0-f46.google.com with SMTP id q7so4682651vkh.3; Sun, 11 Mar 2018 05:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ax/3O9jyOpFWzEU9ZMMqzbhsc5vKXRrzHXJQ7XaRIuQ=; b=adrp/Vdu4cu4zhXB3L4BHOfdPnMNtqJD9Wxct0iT9K5DDXQRF0BEOn/V65niNFRyex 3mjI79TakUzFjozCI/XcmB/CiihmCl2ORI8jF7gUYu35OYTv8vc8TXL0Ssv25KmBm+vW l2HHljZXnhC8sCBcn1mwH8JbcgLC5QW8Ji980rUJi1AfHGoRhlb+Ojae6nbAkugI8aIg gJKRX3Z6ZtvfQjcJsdbJJGBRDigHHV+YJ0+dwBGsvccFBXJ7tQesH6KbSs8kzpioLOUh IhDhHe+CjzTKXNv2HwKE57FRZd77YstVGQ7j3E5JO+dALO5Qg/LW25H7fvLY6ujSCZMb NlEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ax/3O9jyOpFWzEU9ZMMqzbhsc5vKXRrzHXJQ7XaRIuQ=; b=nzqXInCP/AjUBR0G/PuQXQ9QBoo0DQRXPldFHLbGryh/2DWacXhXS0HvKzrjZHf+eO gEeIJtvjSIyiLyxi8V2De95u1HR5laS4qcrNHU/T0+2VrvR6IHzULtEZ5UOZi6mv3iLX 8ZyIw+hET1N/JIolCea1QGH8ZxhmBCJAziOY8YGbnyjpVOK08TDRIgSxwlwDHiVkMn8m jj2R7aRVZehj8wE8L9pEBhcAm+XCstYkWqSiDCYeYe5kmRiazsNsEE+hdxoByKXMR7Mw p7ilo88EDOofOFVULlb7O92Z/cPYDRW1zcjQAyu+rLfJeXR0YGUspR1yCvyYtD1SZi9Y cO9w== X-Gm-Message-State: AElRT7Hezp0bMb7YSzCS+83ismwp59+0ysa+J9j2IRnbyJq9sz/2EI/a Qy3Y11EqKfuOVgVIpOKbFADMEoymXAqcKizZqfc= X-Received: by 10.31.150.208 with SMTP id y199mr2968209vkd.150.1520772188562; Sun, 11 Mar 2018 05:43:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.49.66 with HTTP; Sun, 11 Mar 2018 05:43:08 -0700 (PDT) In-Reply-To: <20180311103423.GA18467@amd> References: <20180303092417.GA30917@amd> <20180303204512.GA9259@amd> <20180310131605.GA28296@amd> <20180311103423.GA18467@amd> From: Andrew Worsley Date: Sun, 11 Mar 2018 23:43:08 +1100 Message-ID: Subject: Re: 4.16-rc3 fails to resume on MacBookPro10,1 - To: Pavel Machek Cc: "Rafael J. Wysocki" , kernel list , Linux-pm mailing list , "Rafael J. Wysocki" , Len Brown , 844788@bugs.debian.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11 March 2018 at 21:34, Pavel Machek wrote: > Hi! > .... >> >> Ok - all the test modes work but a full s2ram hangs (never comes back) >> and obviously the resume full save to disk fails. >> >> I attach the following files: >> >> echo reboot > /sys/power/disk >> echo disk > /sys/power/state >> Then saved dmesg to file dmesg-reboot-disk-ok.txt > > So with "reboot" mode, hibernation works as expected, you just have to > power down machine manually? .... Sorry no all the test modes immediately start back with the restore faultlessly. There is no time to power off the machine once it is suspended. The hibernate command from the other modes fails as before. I tried running the hibernate command with shutdown and reboot setting in /sys/power/disk and the power turns off by itself after 10 or so seconds in all those modes and the subsequent boot up will resume up to the hang in the usual place: do_idle() / cpu_start_entry()/start_secondary()/ secondary_startup_64() state. > >> I tried to add some debug to hibernation_restore() but saw nothing. >> Not sure if I doing this correctly but I believe the last know dmesg >> entry is from swsusp_read() in kernel/power/swap.c >> but then I should see something in hibernation_restore() but as the >> console might not work or something I can't be sure.... >> >> Further directions appreciated > > You may want to try without thunderbolt support / talk to thunderbolt > people: > > pciehp seems to have bad problems, too. > > I'd suggest debugging with s2ram (as it is less tricky) and removing > all modules you don't really need. > > Good luck, > Pavel .... ThanksI tried removing the thunderbolt module - the pciehp doesn't seem to be loaded or is called something else. The thunderbolt module sometimes complains loudly when remove but made no difference. Thanks for your suggestions I will try the s2ram but it seems to be stuck badly - no interrupts or messages - black screen so it doesn't seem so easy to make progress. I am more tempted to add printk()s to the hibernate but I feat there is a tricky point where it calls routines to suspend console .... Funny it hibernates and resumes so well in the 3.16 kernel... Andrew