Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3306170yba; Tue, 23 Apr 2019 01:10:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8Han7oGKKjdMb+Nbotic4U1qJPlcCCUNFouJcmhZvczMVyaP3TlBfxfoecsDg/9G7EVHx X-Received: by 2002:a05:6a00:11:: with SMTP id h17mr25168121pfk.232.1556007038376; Tue, 23 Apr 2019 01:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556007038; cv=none; d=google.com; s=arc-20160816; b=1KClCUCBHZzB2A6XAAO1PNom8/Cg4qE9w+lz5jdKay3F1egzhG3Pytu+E8Eppgkt2S cAqqYfKdG5BgyH4DZHGc6J7ZGpxBUQK1VoizmAttCMsYvAfCwgaTTPo5MlPo95TbFQZv kJWFjyXU/2GxGf5Ypx5G6yxzIwwnY2hRmoyZtoAtnDXF/tDkqiX5dlRLUro6Ooa894Rx /exGjvMzLjS0rB0jk+zN/d/kciXfrnmDu1kCPm533K30CMkqc4weuoyG3q7PGI5P0wrN S+CEoUpKr6Srm7kj4YEZdEMguQ0BbPiNTUsm4ajPMql1J8MV8LLi+FQFx0zNYH111/xh M4Mw== 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=ACYuZFm53+zM/QdTlUn6BcSxreTpWAn7/bi9ZqwcX0c=; b=qzx5N/ITJgz2LdX1XMAKoWaIGNcEpt/AznaFQ0zTMuvHVvxdwXWa9D2BZxvWLOXaPz fROPUtaAug5Zn/C6dt9D47wIAtzmgYJ2X4gwWXuTYXS3Q0BPgv0flsPMRwYJ8nUSg3p2 v0XHkjD1wyURXGGqsoRtVcXGlZ9cazz8N5ImBmEWYzNOSTxRBMoKX2s3oF7ak1kE25a4 NywKfB0bpP5XUERKV7N8JldUTQcTCIRKhJzy6j3S7s6phcOTJBjA0cFG3mc3u7GAYqAQ Jw0qjACLhf/Wi5fboR/AQi9qp6h1Tw21y3UnUUsEdNj1WAcAFKN/Gi93zMO5q7lzOPZf aU9g== 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 1si4618185pln.91.2019.04.23.01.10.23; Tue, 23 Apr 2019 01:10: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; 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 S1726873AbfDWIH5 (ORCPT + 99 others); Tue, 23 Apr 2019 04:07:57 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33826 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfDWIH4 (ORCPT ); Tue, 23 Apr 2019 04:07:56 -0400 Received: by mail-oi1-f196.google.com with SMTP id v10so10579732oib.1; Tue, 23 Apr 2019 01:07:55 -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=ACYuZFm53+zM/QdTlUn6BcSxreTpWAn7/bi9ZqwcX0c=; b=B1RVCC4YtLEEn/atVdjrs6BYNR1nshXs8ABLwWXXoyk/e8pymxGbp/wQfRwSAP8xQR 1zFaKsSVkxb/0YHcWspmYWnOcBguxppOWloROnf5dt2gDEHLEAD3xsRLoaOIeyA17JEa WYOoKx151Lzc8IdALrECgzoatVh2Hz8krKyL0N+BenECSY9a3Ka6ggD7WYnOQCO4wLps 76OrMCwXEJl75ion2JGW3RihT0sDtU5AGtawbueAt6KumgCZS5PxNmGRaGjve/D8g5nw u3PVCB8x3ejrwWrsWH9roY32FQssay6pmepGZ2D/+4ySjwTOgoAxMH/N5csdIB6cGf2N 76Lg== X-Gm-Message-State: APjAAAWy/qhx7agsr6QpnLHqE+vuBg3KEWs/Shj2cqQU8Z9kq/TouK/6 vCgbK/oCdQ2bi8AGbwHaxktVD99VH/nBJlP4U6I= X-Received: by 2002:aca:b841:: with SMTP id i62mr961321oif.103.1556006875241; Tue, 23 Apr 2019 01:07:55 -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> In-Reply-To: <37aee883-1253-adad-82b4-4a578cc72825@uwyo.edu> From: "Rafael J. Wysocki" Date: Tue, 23 Apr 2019 10:07:40 +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: 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 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 ? > >>> > > > Still since my patch is regressing things for you I will try to > > take a look at this and see if I can reproduce and come up with > > a fix. But this is not going to be a high priority thing for me to > > work on. > > > > In the mean time I've gone ahead and submitted my version of the > > fix for the problem Kai-Heng was seeing, since that does not seem > > to make your problem worse; and it will be good to get that problem > > fixed. > > > > Regards, > > > > Hans > > > > 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?