Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp393511yba; Wed, 24 Apr 2019 03:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzGn3RJutrjKnVbvTThaSZZeoiEaTFkISqwVpLemb8gPRMSyq1+NiwYbMAixJ11aMEJctR X-Received: by 2002:a17:902:da4:: with SMTP id 33mr29726385plv.20.1556100628778; Wed, 24 Apr 2019 03:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556100628; cv=none; d=google.com; s=arc-20160816; b=kRHE8WHfESQFaq2TJrGhdJgSa1dbmDEyawKeg8jTljoKgfV78lTxqwSHeuc0jK+tjB L4verVuYEEO8FjJjoYg+lnDXA1qmQIQsmLQr3uFiW9mVSZloh1bsJoqyk/zNKFlvfvmc tHldKwUysOfRQhC9w+McbW5INWQZ5mcMNfIbXvmOoSj0ZAcw4e/DViPhuIerFP+8sO+c yefUniohmbSjWsmNYUhk/YJ38SsQceHpfqXhAj6ctYL0psB9MDmB0UHEY9RRLtzfPdsa zi46SThfwP+o4l8AbyJJP2yLpyqRxj8z6QCa5K2hHupwe9nn4jJzAq4uq/rn5nyr+Q6w TZcg== 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 :in-reply-to:references:mime-version; bh=qlz/jTFbB35TazHt6RURpEdEs+qLpXbIqgsneSLwibs=; b=0OXPNhxGwUwsTJr78wqnX/KA59Jj6ZbgQILTHnrJ25zla/goDCg8e/ddC1taYrAIKm 0IDUnjt/Wq9vp2rP5rEbAtZ/+bDBnQf5wQFezAjERnya+a8Z/d+aBpwHzJ8mFx2gC+LY 9Zlc4wF/NouYUcvkJIlW6E04W8JfCiOnAKkVn7r8pNzEBh95Dvqp0c7SuB2exFyo/zKO MRZBpY2xBL0uNOkgQFpyU4eXCjbrxkQCtmVZIF5YQXq1IGwCnzzguL/J1X8Sb9kDrgaT /sKLVqWAq/ur5vFLiKJaRuSb7zAdxUt9HCk5vgod3C1D9B3f3OVtCeW2k4spf85G80/B s53w== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si4663062pgi.496.2019.04.24.03.10.12; Wed, 24 Apr 2019 03:10:28 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730105AbfDXHUm (ORCPT + 99 others); Wed, 24 Apr 2019 03:20:42 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:45440 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728904AbfDXHUm (ORCPT ); Wed, 24 Apr 2019 03:20:42 -0400 Received: by mail-oi1-f196.google.com with SMTP id y84so13416959oia.12; Wed, 24 Apr 2019 00:20:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qlz/jTFbB35TazHt6RURpEdEs+qLpXbIqgsneSLwibs=; b=VwO+toLqNpbRqXu3VtCvM+P3dwS4HB0jO3h69CZ2Ij5tQ15A+i4mBHewjSaxLPuP2S if3wJr5tj/7mPt3GujufjYZBB1u7g/DSn5Q/FP97AXFrpPDsOyY3W4PTzeNLvHUCjNMo aBh1Q3vFrUZJgJ6C0DZh1OXL1emw4sGx3Zmh1TpDZg2NRv0xkNGRmMwAse0mqVkCFwsj 13LYJJ65sG5S+I0P0Gj/y2nGKLG/NvyE37BnvBs49vIIB9+sgVn0+J9IoNBRI5camlU+ xuN8AE4NaGZU5eQCKKk9gCfhArE5UojfOCyT+IT3WXUupFsmoIUQePu76IAjNVOoZiEX J47Q== X-Gm-Message-State: APjAAAVU5tJpM7k1x56R4zFtib354605cppO7ZqznYaBfPeTyCA/nwhi qjghOR0IziE5+AyO0935ES9AFm0d8IYCeClFUfI= X-Received: by 2002:aca:6c47:: with SMTP id h68mr4966666oic.57.1556090441401; Wed, 24 Apr 2019 00:20:41 -0700 (PDT) MIME-Version: 1.0 References: <20190403054352.30120-1-kai.heng.feng@canonical.com> <0a770539-dfe9-2eb6-a90a-82f065a23a3f@uwyo.edu> <37aee883-1253-adad-82b4-4a578cc72825@uwyo.edu> <144b56d4-54e6-bccd-4652-22303bcd9168@uwyo.edu> In-Reply-To: <144b56d4-54e6-bccd-4652-22303bcd9168@uwyo.edu> From: "Rafael J. Wysocki" Date: Wed, 24 Apr 2019 09:20:28 +0200 Message-ID: Subject: Re: [PATCH] ACPI / LPSS: Don't skip late system PM ops for hibernate on BYT/CHT To: "Robert R. Howell" Cc: "Rafael J. Wysocki" , Hans de Goede , Kai-Heng Feng , "rjw@rjwysocki.net" , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.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 Tue, Apr 23, 2019 at 10:03 PM Robert R. Howell wrote: > > On 4/23/19 2:07 AM, Rafael J. Wysocki wrote: > > > > On Sat, Apr 20, 2019 at 12:44 AM Robert R. Howell wrote: > >> > >> On 4/18/19 5:42 AM, Hans de Goede wrote: > >> > >>>> On 4/8/19 2:16 AM, Hans de Goede wrote:> > >>>>> > >>>>> Hmm, interesting so you have hibernation working on a T100TA > >>>>> (with 5.0 + 02e45646d53b reverted), right ? > >>>>> > >> > >> > >> I've managed to find a way around the i2c_designware timeout issues > >> on the T100TA's. The key is to NOT set DPM_FLAG_SMART_SUSPEND, > >> which was added in the 02e45646d53b commit. > >> > >> To test that I've started with a 5.1-rc5 kernel, applied your recent patch > >> to acpi_lpss.c, then apply the following patch of mine, removing > >> DPM_FLAG_SMART_SUSPEND. (For the T100 hardware I need to apply some > >> other patches as well but those are not related to the i2c-designware or > >> acpi issues addressed here.) > >> > >> On a resume from hibernation I still see one error: > >> "i2c_designware 80860F41:00: Error i2c_dw_xfer called while suspended" > >> but I no longer get the i2c_designware timeouts, and audio does now work > >> after the resume. > >> > >> Removing DPM_FLAG_SMART_SUSPEND may not be what you want for other > >> hardware, but perhaps this will give you a clue as to what is going > >> wrong with hibernate/resume on the T100TA's. > > > > What if you drop DPM_FLAG_LEAVE_SUSPENDED alone instead? > > > > I did try dropping just DPM_FLAG_LEAVE_SUSPENDED, dropping just > DPM_FLAG_SMART_SUSPEND, and dropping both flags. When I just drop > DPM_FLAG_LEAVE_SUSPENDED I still get the i2c_designware timeouts > after the resume. If I drop just DPM_FLAG_SMART_SUSPEND or drop both, > then the timeouts go away. OK, thanks! Is non-hibernation system suspend affected too?