Received: by 10.223.185.116 with SMTP id b49csp475335wrg; Wed, 21 Feb 2018 01:24:29 -0800 (PST) X-Google-Smtp-Source: AH8x2262PCmYX3KF2S4FtfS9pzcDXXgv/qP8Yl0xK13uXEGaUtv+v+amLodxCVi4F3BlQT8o3hwh X-Received: by 10.99.104.73 with SMTP id d70mr2176187pgc.107.1519205069247; Wed, 21 Feb 2018 01:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519205069; cv=none; d=google.com; s=arc-20160816; b=hR1okd4cG8IWbFdQQh30Mn3ZP2c0lN/Hty227yfhpbs23xkwMuMDwqO41izQfL5v8n T0qajA5CX4PRO4hUqxjdnbNwKsoUmHkwKlGjCjfJ6qaVpnDVTte5KC8YvYmHSW0bQCW8 1/jABmDb8VhKaNrhjYE9kRALyl8ZihPEQvjrb8PLg5my9tqVoJz06wepDhKc8FsO+IxG YuRyzG9KV0MBgOOr4Oas+ooYZam2jUUKCe921ETX7IznUoblLTfqrIaf9mAPmpCrTbyH olcRwX6J72ODv2wGhqBtYiTdbdDxOxpMSb3mRyYQSaSmYIvQO/n+duyVLGnADmeiyH8q 4g1w== 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:arc-authentication-results; bh=mtI/c2jhlfrA6DCYq3H3SwapVwaAYS3XwUEHCsd4ezM=; b=tugvB2fz+YfT6QcksPveBf8i0E3N8OJ/YYCy1zP7UhcY2BOi0Oav8s99mZWrhCCZLn H5EQ1Sw4sgi+Y+cvLqkgacRAHekdu2peMoxLfzb6pYqpTDiVEKhqLahVeI/YB+NOqJYy 3Gt3mzV0VqhfulPZ5rm0KLWYL3FvCyBVB30MloBS9xVLC/Svjqa3nQ9vAid8BFsnH11C d0E4m7jEk2SW5BzSK3KCSoMp0vHRyLynhkbAGEyMayqNm0b+ma3Wotx3tdZE2lMSsDCF yUdACXfKNYG4ORyHAdlKgnZJg7uaa1LpkDYZmuVpOdRi4peK09nqyGeTcVBKr5HyW+u9 sbnw== 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 h11si1153655pgf.720.2018.02.21.01.24.15; Wed, 21 Feb 2018 01:24:29 -0800 (PST) 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 S932257AbeBUJXE (ORCPT + 99 others); Wed, 21 Feb 2018 04:23:04 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:49350 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932069AbeBUJXB (ORCPT ); Wed, 21 Feb 2018 04:23:01 -0500 Received: from [192.168.0.3] (unknown [95.91.244.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 6166C2012BA053; Wed, 21 Feb 2018 10:22:58 +0100 (CET) Subject: Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360 To: Mario Limonciello , Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, it+linux-input@molgen.mpg.de, linux@leemhuis.info References: <5a74e1a7-2083-c6b2-f51a-f44908ac8bc4@molgen.mpg.de> <20180130175017.72inurhk5l7tcvae@dtor-ws> <20180130180736.ehucqywbz7zdl4v7@dtor-ws> <609c1f35df7346da8ac1d12c35e04cf7@ausx13mpc120.AMER.DELL.COM> <33355407b8d74575bab0c36e442141ea@ausx13mpc120.AMER.DELL.COM> From: Paul Menzel Message-ID: <9e83b8b4-7ea5-d286-a559-66e000df7da1@molgen.mpg.de> Date: Wed, 21 Feb 2018 10:22:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <33355407b8d74575bab0c36e442141ea@ausx13mpc120.AMER.DELL.COM> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Mario, Thank you for your reply. Am 15.02.2018 um 16:22 schrieb Mario.Limonciello@dell.com: >> -----Original Message----- >> From: Paul Menzel [mailto:pmenzel+linux-input@molgen.mpg.de] >> Sent: Thursday, February 15, 2018 2:26 AM >> To: Limonciello, Mario ; Dmitry Torokhov >> >> Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; it+linux- >> input@molgen.mpg.de; linux@leemhuis.info >> Subject: Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360 >> On 02/14/18 18:11, Mario.Limonciello@dell.com wrote: >>> >>> >>>> -----Original Message----- >>>> From: Paul Menzel [mailto:pmenzel+linux-input@molgen.mpg.de] >>>> Sent: Wednesday, February 14, 2018 10:41 AM >>>> To: Dmitry Torokhov >>>> Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; it+linux- >>>> input@molgen.mpg.de; Limonciello, Mario ; >>>> Thorsten Leemhuis >>>> Subject: Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360 >> >>>> On 01/30/18 19:07, Dmitry Torokhov wrote: >>>>> On Tue, Jan 30, 2018 at 09:52:45AM -0800, Dmitry Torokhov wrote: >>>> >>>>>> On Tue, Jan 30, 2018 at 06:36:34PM +0100, Paul Menzel wrote: >>>> >>>>>>> I do not know, when it started, but with Linux 4.14-rc8 and 4.15, >>>>>>> benchmarking suspend and resume time with `sleepgraph.py` [1][2], there is a >>>>>>> regression, that i8042 AUX port [serio1] suspend takes a second on Dell XPS >>>>>>> 13 9360 and TUXEDO Book 1406. >>>>>> >>>>>> It would be really helpful to know when the regression started. >>>>> >>>>> So the reason it takes longer is because the touchpad does not want to >>>>> talk to us for some reason and we wait until commands time out: >>>>> >>>>> [ 94.591636] calling serio1+ @ 2299, parent: i8042 >>>>> [ 94.794292] psmouse serio1: Failed to disable mouse on isa0060/serio1 >>>>> [ 95.593303] call serio1+ returned 0 after 974280 usecs >>>>> >>>>> but it is not clear why it happens, I do not think we changed anything >>>>> in that path for a while, so it might be some other change affecting >>>>> things indirectly. I'm afraid you'll have to narrow the scope, and >>>>> ideally bisect. >>> >>> Please keep in mind the XPS 9360 has a touchpad that can operate in I2C >>> or PS2 modes. It's connected to both buses and with the right initialization >>> sequence will come up in I2C mode. >>> >>> Assuming Paul M. has compiled and used hid-multitouch and i2c-hid the >>> touchpad should be operating in I2C mode. >>> >>> When this happens I expect that the touchpad shouldn't be responding >>> to PS2 commands. >>> >>> As a debugging tactic, you may consider to unload psmouse before >>> suspend and still see the touchpad operational. >> >> Thank you! Unloading *psmouse* with `sudo modprobe -r psmouse` indeed >> worked on the Dell XPS 13 9360, that means, the cursor is still functioning. >> >>>> Thank you for your replies. First of all, it looks like *only* the Dell >>>> system is effected as I was unable to reproduce it on the TUXEDO Book >>>> 1406. I have to verify that by finding old log files. >>> >>> Does this other laptop you are drawing a comparison to also have a >>> touchpad that can operate in multiple modes? >>> >>> To make an accurate comparison you should determine what mode it's in. >> >> Yeah, removing the module *psmouse*, the cursor didn’t work there >> anymore. I was really sure, that I saw that problem once on the TUXEDO >> device too, but must have been mistaken, that’s why I corrected it. >> Sorry for the misunderstanding. >> >> So, why does *psmouse* get loaded on the Dell XPS 13 9360 since at least >> Linux 4.13? Or where the modules added causing the touchpad to operate >> in I2C mode, which causes PS2 to stop to work? > > It was like that before this laptop even launched to the market. > It's been like that since way before 4.13. I want to say maybe 3.13ish is when > I2C mode would come up instead. Indeed, analyzing the behavior on the current 8th generation Dell XPS 13 93*7*0 with the shipped Ubuntu with Linux 4.4.0-112-generic, the same delay is visible. > The order of events goes something like this: > 1) Touchpad is initially in PS2 mode > 2) psmouse loads > 3) It reports that it may be supportable by a different bus > 4) The sequence to switch to I2C mode happens > 5) i2c-hid and hid-multitouch get loaded > 6) psmouse is no longer functional > > Dmitry is there a way that we can connect the two events? When i2c-hid finds > the touchpad notify psmouse to unload or at least stop trying to access it to prevent > the problem Paul is talking about with suspend? That would be great. Please tell me, if there is a bug tracker, where this issue should reported to to track it. Kind regards, Paul