From patchwork Fri Apr 21 16:11:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9693525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B68986038D for ; Fri, 21 Apr 2017 18:56:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9E4A28470 for ; Fri, 21 Apr 2017 18:56:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E5282865C; Fri, 21 Apr 2017 18:56:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AC9A28470 for ; Fri, 21 Apr 2017 18:56:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424277AbdDUS4N (ORCPT ); Fri, 21 Apr 2017 14:56:13 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:35151 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424156AbdDUS4L (ORCPT ); Fri, 21 Apr 2017 14:56:11 -0400 Received: by mail-oi0-f42.google.com with SMTP id j201so107799888oih.2 for ; Fri, 21 Apr 2017 11:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=NmMpQIebQcX82vRlwpF6iKUD/Xdt3GFrSySWkLzaJpE=; b=ngMhvZu8pAgU2zIYbEDBpPf2fhYeO9KAT+DPl/CL3/RKiVg5FMVj7YLFU3SinonYCi rJU8NNG0Cv95KpAa0Paiq3JVv37pQgA8PiQM7CWzKMlo219ZFlbGhbIn/QVua6C0e6s9 /FEfH+9jwBJleuc3nXzdmErXUztUpMTG+5i+yOwG02hpE1caz/H4V9umXnOl/jUFvW6P Mhy5DRVMzShe5/V6hHkvdHef5m/d8LRfqx1hwupmcwxdbFygCmFtKYbMPmLHq47C2DXn hBDwOmoC950/oNeWDfjPjsS237s1TEfrhnstUJzOwAafXYd00l8OzJCavQQTA9lO/QSJ nSGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=NmMpQIebQcX82vRlwpF6iKUD/Xdt3GFrSySWkLzaJpE=; b=pe5CC4rzxNtAzvTip76Gr/amcVeXqrhcYpmbSKlcfBwz8LKugBJ2vvRtax5XyitkkD enwkc1chSajCoukS2zJk6N9aGn2eqD1Ib5LLnvlp0Qjk1GLohDq45EO1jSnD0vo0j0hi WrNo79+NQ7Mg2YhwuOl1xfVT4b9FpDqUzpJeWV5S/M/bqIQQLKwDN1XwRgVSTJAOuGV9 w36UNzB0a+nnx8EuvsxyxatVvuzatznsAt8KqIYhrfvbpWFN6mX5cr3EtiofNeqC8lCt gbP7An9ajyojHfodrBjN8NRuuJoULULsI/bPNoyMKtsJ7T2R0QdiW/BeoUmSkayH6pjJ bk6w== X-Gm-Message-State: AN3rC/6JimAdmH0DepQGu19u0yCwGdtLLqj5E3cSx2LGo6DVp+3bjAvk bAAoq3gJ37l+NCprKPVKj2O/Jxd+hTC2 X-Received: by 10.157.38.189 with SMTP id l58mr2138733otb.153.1492791113133; Fri, 21 Apr 2017 09:11:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.43.163 with HTTP; Fri, 21 Apr 2017 09:11:52 -0700 (PDT) From: Fabio Estevam Date: Fri, 21 Apr 2017 13:11:52 -0300 Message-ID: Subject: Touchscreen failure with CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND To: "rjw@rjwysocki.net" , viresh kumar Cc: Sascha Hauer , Shawn Guo , "linux-pm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Running 4.11-rc7 on a imx6q-sabresd board I notice that egalax touchscreen stops generating evtest events after a random period of time. This problem can be avoided if I unselect CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND: With this change evtest always capture all touchscreen events. No single failure is seen. I could see the same behavior with all mainline kernels I tested (4.9 and 4.10). Any ideas as to how fix this bug when CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y? Thanks --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -54,7 +54,6 @@ CONFIG_CMA=y CONFIG_CMDLINE="noinitrd console=ttymxc0,115200" CONFIG_KEXEC=y CONFIG_CPU_FREQ=y -CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_ARM_IMX6Q_CPUFREQ=y CONFIG_CPU_IDLE=y CONFIG_VFP=y