Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933228AbeAHNUf (ORCPT + 1 other); Mon, 8 Jan 2018 08:20:35 -0500 Received: from mail-bn3nam01on0089.outbound.protection.outlook.com ([104.47.33.89]:44283 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932420AbeAHNUb (ORCPT ); Mon, 8 Jan 2018 08:20:31 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=fail action=none header.from=nxp.com; Message-ID: <1515417622.3207.5.camel@nxp.com> Subject: Re: [BUG] schedutil governor produces regular max freq spikes because of lockup detector watchdog threads From: Leonard Crestez To: Viresh Kumar , Patrick Bellasi CC: "Rafael J. Wysocki" , Linux PM , Anson Huang , "linux-kernel@vger.kernel.org" , Juri Lelli , Peter Zijlstra , Date: Mon, 8 Jan 2018 15:20:22 +0200 In-Reply-To: <20180108040121.GB4003@vireshk-i7> References: <1515184652.6892.26.camel@nxp.com> <20180108040121.GB4003@vireshk-i7> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131598911997222909;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39380400002)(376002)(39860400002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(377424004)(24454002)(8676002)(6246003)(59450400001)(2870700001)(498600001)(53936002)(305945005)(104016004)(86362001)(50466002)(956003)(356003)(85426001)(36756003)(2950100002)(5660300001)(2906002)(47776003)(8936002)(106466001)(54906003)(5820100001)(81156014)(76176011)(4326008)(53546011)(316002)(97736004)(50226002)(81166006)(110136005)(105606002)(23676004)(103116003)(68736007)(8656006)(229853002)(99106002)(42866002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR03MB2366;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD038;1:B/de4TaIZZrKehW8E0pzlpmeOcI2mCTFzpCWRSkS8tulFKDxCJdmfWYQVyo/Zknlgan5wPPMu157G2JmNVnK/llAufW/oDyqQok3ZTemQS7g0TOMEKQhGPkWV4BnOl/v X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cddf0fe3-bf6e-4012-1ffd-08d5569a84e3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307);SRVR:SN2PR03MB2366; X-Microsoft-Exchange-Diagnostics: 1;SN2PR03MB2366;3:mY0stFU4CKb7ArNt6k/iLV5PQlA2kUgjpCoaBz3/lZxN0q0YZFrZFZ8naSTYJIX2k+gMB1Ain0U5qYkDRQiPGMyqkgh01sLTqqk1hjRZRJRBq31jNUqF/1fGxsd0bKY3SdgJInv0LGyeYQF0tyIgRxJWzGnuYr6YjHC/7q9wViYCnGxw3BJTWZWUOEGWoH2uH/gMGgE0+YGf7q/TyjkAMBlGJwHqnfELear0Ahza2RLhY8g7G3Pk/ZK1nPUQTuN26wUxZADapRiicLf0vTbuu3IqzdmhmTxd7cM5uMug65QZP5JTvfOPGBZoXjn6eak4vl/xlnq+wj8gq8PiAj/cAs7yzYsLuffYy1azIcGXfrg=;25:yk+cWcFhmArDmp1y7+ckW9BtzvkbTDtnzCHq10d+Lj0rv+GMkpE4/Ri6ju0kIVf6npsLZypc0FEGWbXcfotfIISm7ia8XKsqfCUdQBEw3XKhVUJE7Dxgxb7PL63RbMaq7CDKvu1LEqhWMiM8QnMCTgBv3RIaHpdNlQUBlZJ7/mITwK7iYrr/lYqXBQI25JgFfleP+V+S4USJtoNHthTIIc48fQ+Shm/9WEqn9thSgvE436J4VOA6J0IbpogI7NA0GO/81C0URWCA49pPC/pBo0XydGDMYxeO/MWOB/FH1On/0jWL3RVzcFmQOKEmbuLYxSi8nQ4FYq8klJ0s/RCoNg== X-MS-TrafficTypeDiagnostic: SN2PR03MB2366: X-Microsoft-Exchange-Diagnostics: 1;SN2PR03MB2366;31:6T+HueqyHNwePaB/rlWNR2QK4XefscY3rg022G+5T+hGbT5yI/6fKjKT69TIdYqW+gu48jw77KD/5bkMHHjIW2T4mUbFyGweFzvaYsYZVtu3Fk/Ao6HDw8GMcb2+LEK+gD5/PawhZeElTDtfzos24EHBPMOopeZumYP3tLvmaEjf5uZBavLzTuedkjSPlA0UKuZBMd6EL9lvATj4WEmVtbA2LAOedHkrVHPNVZBhFBo=;4:oWa4Exyiywg7LP7bNYfM236v0w4d8Ra+uNbzUkm+UHOQtkdCQMhmhL9TkoManObssqGa78ZECgY+2Uw9KBQYp6HXju/1AwS289JoD9sI4v4a/EHm9aZszZYcPoQILvJwKEaCXCPGL7LS7d8jUT2HgVxlNcCf5wD1G1Z/k3T5wY3QghcfeAAHE2MsKDq3ad4q7kTzLppOxFCnc3e62rk2032sjd5oX2TmHH0lQB6nwRIKZ1uE9k7DeiEuWlhgl6288t4oaK9Rcq10ZMhgLyP1PzC+tcfDYPFV/ONLjv0rENQNtjh3OOFk4hW5ek1EjCXc X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123556025)(20161123565025)(20161123561025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(201708071742011);SRVR:SN2PR03MB2366;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:SN2PR03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B2366;6:J1F6RcVaZure/BKpX/lE2olm4+5JufPl2sIGNxxJrmtQ4H7akv6w6zmfm1koWm26Hnr0hBPSw1lhfLQMn7fUYFKmxUmz6/Vi63effL0LDw7tH/9OwTBQw/7OVpTv+sxWy+aro7xtoTxQoc9hW0IFfvjMATRYDGxFUUR6VybBneZbDyKm4ZL7yNynJFxu3HdQbJWCZyKV5a7o0GWuuaICZDeqaynTYWOSxQ2MgS3SSdBxoXP2qE+OXDFAw2zU5l6uS3MuOp3zYjIKpbGfbGwM6/cAHrSj4f/VVYTKcD+ObE2o57XPFz8Enj6hBVYJsRIgDIfFjalhh8wC2GUX1Vmnj+IyMVHVHUiwz7TNNXSeV28=;5:vveJitGL3QciIX5lbhSw+8T6xE4a75Ptsaj5cdq2iZDI0gw3fjPpduu+PvyDwyR/lG5ps4HGqAHS9RZ83RVS81WmssIhlaFd2kY0HUYOn+6iOPfd5cYm5bsBPlnbpXOx8K/oHA6b7UO0Dg8YlgY+NjX8TSCPY3CJMhXa36uEV8k=;24:XBVWUumbCWKFU+//yLce3BnN/XsFRDwGIvd6+JpmPmM5wkduTpFsLVxwAG/QaM8wNPJP8WzTWZpqLd1pyL79cOz8f4wPn/GxL3sj02wktSQ=;7:H6fKKjovsfjmo1C72HuupEmn1GjKJbQrVoxa/blaxZ+fB00P4Ti+HtzEebbqQFSZYED15wcpcQ77pqK91+SzTQs7I0ikqYT/V7kSDyEw9tiZriDomhl/EHAN18PwQZJnaTWMHQ9Uxt4i2idP6RaSbv3UyeceytDjCHmV/uRJQpaoJThyPh1cqKo3qnL9AHbt+p9lkh6fkCHi2WcOH3lRUSbGVrNXZ5qqFbN/80WeQYRKAc5ERwGWexCuhSc+qNT3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 13:19:58.0842 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cddf0fe3-bf6e-4012-1ffd-08d5569a84e3 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2366 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, 2018-01-08 at 09:31 +0530, Viresh Kumar wrote: > On 05-01-18, 23:18, Rafael J. Wysocki wrote: > > On Fri, Jan 5, 2018 at 9:37 PM, Leonard Crestez wrote: > > > When using the schedutil governor together with the softlockup detector > > > all CPUs go to their maximum frequency on a regular basis. This seems > > > to be because the watchdog creates a RT thread on each CPU and this > > > causes regular kicks with: > > > > > >     cpufreq_update_this_cpu(rq, SCHED_CPUFREQ_RT); > > > > > > The schedutil governor responds to this by immediately setting the > > > maximum cpu frequency, this is very undesirable. > > > > > > The issue can be fixed by this patch from android: > > > > > > The patch stalled in a long discussion about how it's difficult for > > > cpufreq to deal with RT and how some RT users might just disable > > > cpufreq. It is indeed hard but if the system experiences regular power > > > kicks from a common debug feature they will end up disabling schedutil > > > instead. > > Patrick has a series of patches dealing with this problem area AFAICS, > > but we are currently integrating material from Juri related to > > deadline tasks. > I am not sure if Patrick's patches would solve this problem at all as > we still go to max for RT and the RT task is created from the > softlockup detector somehow. I assume you're talking about the series starting with "[PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates" I checked and they have no effect on this particular issue (not surprising). -- Regards, Leonard