From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756089AbdKCNHN (ORCPT ); Fri, 3 Nov 2017 09:07:13 -0400 Received: from mail-he1eur01on0137.outbound.protection.outlook.com ([104.47.0.137]:45773 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754765AbdKCNHK (ORCPT ); Fri, 3 Nov 2017 09:07:10 -0400 From: Marcel Ziswiler To: "linux-kernel@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "rafael.j.wysocki@intel.com" CC: "digetx@gmail.com" , "thierry.reding@gmail.com" , "mirq-linux@rere.qmqm.pl" Subject: T20 Cpuidle Freeze Thread-Topic: T20 Cpuidle Freeze Thread-Index: AQHTVKSlb3FPPtEfGEqp52ZRzOLX7A== Date: Fri, 3 Nov 2017 13:07:05 +0000 Message-ID: <1509714423.21320.11.camel@toradex.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=marcel.ziswiler@toradex.com; x-originating-ip: [188.155.243.164] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR05MB1881;6:ZOQHArPiVZbX2VCkOLE1Kbi8D5BlK7fX43Ho4BcWa9yWFIKRyN4QE6Wy4RtH9NQZt66WRdqNINIzysn8+3xlwaO48IJdwvcsuMtOTLoWuH25IwNFLsA1w6fMfVDg7EiLwkw6L0chIuzKHKJ0/rtcnDrRRdZfweuntzwO+3hafili4bq6INHfk7mgwInGeKnsjO/8zBEEz55L68rc4e9kifrcFi42hQdCn8sFktO23udKkMdHWsOl0JLTODSDDfX69VgCYcv7iW3UH6VWBJNApSDOuCrLpjelMt+/aFIJ9aTs3b/mLUEuc363gqe+2sP2EwY8qQKsc/BhxTtEkNH4X2RLH53Pdjy95D8dXH3Yndc=;5:8g9ZgwpG75F35d3C5QEVkxwSAM5GzmMJQ+dPYINtMSLKHOxslz9T5Cu8QDXANaKqZXOzRos5/lTFcWk7Esz7F3zC+IIsfJkn3lW9sBcAawNhjePmguA9gOgACZzDut2aKtBp4+77ILjFAee+FxHL/Q/k47VOmLE6KkxqE/KMPNc=;24:UPhfdAXdLMZuZUcz93AuTRmYxqIlG9pkNJZ5b3Yg1OJcR2vaZUjoI7g2TyVQUIs5uH1rp+ocbPvanEMlaZwK+uw96zPw4fbdvC/pXf0su7A=;7:vF5j+L/UTQwtOliB/SQgVtIAm5/DOB5rvBwtlx/RZVCnlrnNiAZHzlcrk+puZe439yiouZY8EjfEBCltauSK7dAXaZOF6+noCjuaI9Im6D+DbKSsFS0kGOfXXQbmfbUYzzDWsX8bfTc2yYSS0/Nn+eMTCNX9epXUrE1isJAH6jFRopK4CRKAf/ToiS5cmO/aWyZB9TuaUxvK1+eqp73YNjvInpNAcGrw6Hcej1MdeMAbsPRyc2Vpy/95a4GSfxpd x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 1104c624-912e-4345-421e-08d522bbc83f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:HE1PR05MB1881; x-ms-traffictypediagnostic: HE1PR05MB1881: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3231021)(10201501046)(93006095)(93001095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:HE1PR05MB1881;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:HE1PR05MB1881; x-forefront-prvs: 0480A51D4A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39830400002)(346002)(376002)(189002)(199003)(7116003)(6486002)(7736002)(2501003)(4326008)(5250100002)(14454004)(8936002)(54906003)(6306002)(110136005)(33646002)(86362001)(189998001)(103116003)(39060400002)(81166006)(6512007)(25786009)(8676002)(81156014)(316002)(66066001)(478600001)(6436002)(5660300001)(3846002)(102836003)(6116002)(2201001)(6506006)(305945005)(966005)(53936002)(97736004)(106356001)(2900100001)(3280700002)(105586002)(68736007)(2906002)(99286004)(36756003)(3660700001)(54356999)(101416001)(50986999);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR05MB1881;H:HE1PR05MB1882.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <9A92D9C5B05D5749A46BFB7E5564A150@eurprd05.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1104c624-912e-4345-421e-08d522bbc83f X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Nov 2017 13:07:05.5048 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1881 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vA3D7HnQ010795 Hi Rafael, dear community One of our customers reported seeing freezes when running the LTS Linux kernel 4.9.x on our Toradex Colibri T20 modules [1]. I was able to reproduce a complete SoC lock-up after a few minutes also running the latest 4.14-rc7 while LTS 4.4.x seemed to run stable. Having attempted a multi-level bisection points towards the following first bad commit: 9c4b2867ed7c8c8784dd417ffd16e705e81eb145 cpuidle: menu: Fix menu_select() for CPUIDLE_DRIVER_STATE_START == 0 Unfortunately as drivers/cpuidle/governors/menu.c has gotten further edits since it seems not trivial to just revert it. However I found out that it indeed has to do with CPU idle as when I did disable the CONFIG_CPU_IDLE Linux kernel configuration option also LTS 4.9.59 as well as latest 4.14-rc7 run now stable overnight. Does anybody have any clue what exactly may be happening and/or why cpuidle may not run stable on T20? Or is everybody always just disabling cpuidle on T20 anyway? Thanks! [1] https://www.toradex.com/community/questions/16838/actual-lts-kernel -49-on-colibri-t20.html Best regards - Mit freundlichen GrĂ¼ssen - Meilleures salutations Marcel Ziswiler Platform Manager Embedded Linux Toradex AG Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500 48 00 (main line) | Direct: +41 41 500 48 10