Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4961724yba; Mon, 13 May 2019 02:57:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyl4uydWSmXyF4bWFUqkqcECzaehrxVD3OWFkG5vQ1foT1FBXE/3CHdzyS3gwOYS6b2chcP X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10mr21024378plb.74.1557741457039; Mon, 13 May 2019 02:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557741457; cv=none; d=google.com; s=arc-20160816; b=VBLn5mXXJzK/jcOm2sOKTosAMb5ZYzeJkcynZJZTatK9bfGrcuhDi/zWtTQA8B5Ucq cd5FcWJ2xZAEs6+7fChZkcy720mFOcplWxlE4D0E6q9NIZTlWxZrwVMp4XGftlD+Wxo+ YmSPLBozaoPsZGphABIhTDnMoXBjgsu+fxpho/C108QwOwzF0BjZg+/6HTd2QSwQjObu ODJ2PbcfrF4mBXPbLhc3Y7X7UpwSPK7Jd/DHSm/hQIACwLBzG+0jTJB/wWAkElJmWM9Q 1W3LEDISkMueXjhv23raz7hw9NMvtoTcPZMnbX8lrvNTXY9+h1xy/qiZz1jxjFttVsIz OPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=OIf8haTF2Bfq6KgXaHObQw+4UkgBzPMbJonVONG6w/E=; b=CNsPQ7DcZEThpWuBUFVnPX3Zk5msh3t+p0yUfYrteoWpVEgG9LcHsXGqAMQJuDv3DQ YQ1Mah+R1fzPcQg6O2KaKofkPOIKLx7NPfztHBnx3t8iD/wIaJWJ1afU4qwuxVgNkOM5 wInG8d+BTT5Nu5mpJSWNNg79OU+2UI+vYWqCZtM9ChheRp2bSw8ULCu38w3P785/G3Bu laOmrXy1AoaB/Z/0GNJoZqFAv+edeFfcjmxP0YbIBsomc7nTrYhgw3bs0GZIfnp4IYjO r4iJVlcA5OMr+0gBJh9dI1vO803L4Fcv9SAnX6+MrIRDM9Cmo1o5l9g2OeNbqDKNYOtz Xo7g== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az4si7514plb.291.2019.05.13.02.57.21; Mon, 13 May 2019 02:57:37 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728249AbfEMIli (ORCPT + 99 others); Mon, 13 May 2019 04:41:38 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:34604 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727926AbfEMIlh (ORCPT ); Mon, 13 May 2019 04:41:37 -0400 Received: by mail-ed1-f65.google.com with SMTP id p27so16416728eda.1 for ; Mon, 13 May 2019 01:41:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OIf8haTF2Bfq6KgXaHObQw+4UkgBzPMbJonVONG6w/E=; b=evybXtEmw+/FOsncHfbBm+SJ4lOlghT+NvwFpLLmaHB2uBVsv4dVyNEsgxVgoirevJ dc5MEzqb4sUIvu/xWM/sQUr/NpVUasFDftBQb9bCqbTN6zuFHhrlVRbapfSkz3HRNqaW 7Fdf3xwcLzz2A7jPQwZBTI5ExTBOiQPVUCltFHKQbSJffF06Vs5dPwgME8TctRhdxrl8 eC/U4kqVtrym7rHCNZ8BvyojtXIVlqufeQhaX+iGwjK6gXFfKpsWJT0zz7HYSywH8Zqh ZQFdJUd/B8Ig8/M8laH7bntm5/5T+QTlvp1xyQzj5tVoD0QGAM1OWh9DKa6U3Q+rQbQu XdyA== X-Gm-Message-State: APjAAAVsXmqlPG3ROQaZFCa5yh5V2d8WAy6l05EM2atL5wRq5ygSeQPx 7p+CNJs8h1QAs6HjVgSNUSOXjLg/ZXw= X-Received: by 2002:a17:906:948:: with SMTP id j8mr20805880ejd.240.1557736895160; Mon, 13 May 2019 01:41:35 -0700 (PDT) Received: from shalem.localdomain (84-106-84-65.cable.dynamic.v4.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id k57sm3588343ede.17.2019.05.13.01.41.34 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 01:41:34 -0700 (PDT) Subject: Re: [PATCH] ACPI / LPSS: Don't skip late system PM ops for hibernate on BYT/CHT To: "Robert R. Howell" , "Rafael J. Wysocki" Cc: Kai-Heng Feng , "rjw@rjwysocki.net" , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" 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> <4fb5fc2e-e5af-6732-0228-8c73beed1afb@redhat.com> <1bb008bd-ae0d-d351-ef0c-303e23b0eca5@redhat.com> From: Hans de Goede Message-ID: <8e5b82ce-4120-4d81-fd8c-26a16cfe3381@redhat.com> Date: Mon, 13 May 2019 10:41:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robert, On 09-05-19 20:09, Robert R. Howell wrote: > Hi Hans > > On 5/9/19 2:50 AM, Hans de Goede wrote: > >> >> Hi, >> >> On 09-05-19 06:24, Robert R. Howell wrote: >>> On 4/30/19 8:39 AM, Hans de Goede wrote: >>>> > >>>> >>>> I've just tried to reproduce the "Error i2c_dw_xfer call while suspended" error >>>> on suspend/resume on my own T100TA and I could not reproduce this. >>>> >>>> Can you try without the BT keyboard paired and waking up from suspend using the >>>> tablet part's power-button ? >>>> >>>> Also do you still have the scripts to rmmod some modules before suspend ? >>>> >>> >>> The T100TA keyboard is actually a hardwired connection rather than Bluetooth but I >>> did physically disconnect the keyboard, and also unpaired all the actual Bluetooth >>> devices (such as the mouse) and then powered down the T100TA bluetooth adapter. >>> When I suspend, then resume using the tablet power button, I still get the >>> i2c_dw_xfererror error during the resume.  But whatever causes this error isn't fatal, >>> in the sense that after resume the sound and other i2c functions do still work OK. >>> >>> While I always get this i2c_dw_xfer error on resume from suspend or hibernation on the T100TA, >>> I also have a T100TAM and curiously, it NEVER shows that error -- although all the >>> other suspend and hibernate behavior seems similar.  I'm not sure if the following could >>> be the difference, but the T100TA uses an i2c connected ATML1000 touchscreen controller >>> while the T100TAM uses an i2c connected SIS0817 touchscreen controller.  Other than that >>> the hardware seems almost identical. >> >> I've been testing on an actual T100TA, with the ATML1000 touchscreen controller. >> >> Maybe it is a difference in BIOS version, my T100TA is running the latest BIOS, what >> is the output of: >> >> cat /sys/class/dmi/id/bios_version /sys/class/dmi/id/bios_date >> > On the T100TA which shows the i2c_dw_xfer error the above cat reports: > T100TA.307 > 05/09/2014 > > while the T100TA which does NOT show the i2c_dw_xfer error reports: > T100TAM.205 > 07/25/2014 >> >> Also do you perhaps have a microsd card inserted?  (I'm trying to figure out the >> different between our setups so that I can hopefully reproduce the issue myself). >> > I do have a microsd card inserted in both the T100TA and the T100TAM. Ah, ok I already suspected that and I think that is the difference between our 2 setups. I will try to reproduce the suspend/resume problem again with a microsd card inserted and mounted. >>> Regarding scripts, while I do still need a systemd hibernate script which removes the >>> brcmfmac and the hci_uart (bluetooth related) drivers, I've found that I no longer need >>> any script for suspend. >> >> Ok, so you are not doing any rmmod-s on suspend, right? >> > Correct -- I am NOT using a script and am not doing any explicit rmmod's on suspend, just on hibernate. >> Regards, >> >> Hans > > All my previous tests were done using a 5.1.0-rc5, 5.1.0-rc3, or earlier kernel. > But I just compiled the released 5.1.0 kernel and the behavior has changed for the T100TA, > resulting in a different i2c error and a call trace. (I still continue to NOT see any > suspend/resume errors on the T100TAM.) This is expected we changed / improved the code generating the: "i2c_designware 80860F41:00: Transfer while suspended" Warning to include a trace, so that we know which code initiated the transfer, which, as more or less expected, is the ACPI subsystem, like some power_on (_PS0) or off (_PS3) method. > Note that for all the tests described in this message I'm applying your patch > regarding .poweroff_noirq and .restore_noirq, and I'm applying my own patch removing the > DPM_FLAG_SMART_SUSPEND flag. I haven't yet tried to explore varying those patches > for the 5.1.0 release as I did for the earlier rc's, as described in previous messages. Hmm, for future testing please leave out the patch removing the DPM_FLAG_SMART_SUSPEND flag. Usually when asking you to test something we assume you are using a pristine kernel. What does that patch attempt to fix and what happens during suspend/resume without it ? Regards, Hans