Received: by 10.213.65.68 with SMTP id h4csp294301imn; Fri, 23 Mar 2018 04:58:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELtZBzqADuZ1LG+NBYaWm4Hvrinxvm3UtTBkf0jywzyu+VLuxD6G4WueUGB/S/tVstwA4f1Y X-Received: by 2002:a17:902:887:: with SMTP id 7-v6mr27573002pll.319.1521806281150; Fri, 23 Mar 2018 04:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521806281; cv=none; d=google.com; s=arc-20160816; b=KoXJ7j4IAbyVQPI4KtOPNspN2hC37+5OYH2Ed2MksSyQER9xbJXna9HtNCiFnrSnz0 stRdT31VeOIhaIjsqyu4pDf61lsRTsY6LlqZg4rGlTTrR9jCsc53Cf6NKj419LgDP/hi JDF12e/GEHZ5DgiBLDf8thDGbqTMEq/zSHD9kJmSkTyIzzJkA/0zkNslzoNYb+kTznEW LFJzgzJNaOyhgOsl+rUxowRGrOpjJyFnxUcDubfYkt0zDYF20HWRChmsAdA4e8wH7QUq Uadyf45n6ILmTmcK2/uKCUscXpTZJnjgVd7FNZb34fxkXtrR2lrdes1Pn0TQ6qggzLdi azKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hhxe4aU79BoBCqdtEpdz3HiNt37zSBHPPK8OyIeOt9k=; b=stRwEHwXCLtdK6lJxp3INVeqLdzhzq+U9UmrrpIJAOi+l2UCEcYuWZOn7p9zvvq6ZL JRLLFuijmgL5+B0Rmx8uBrAFolfeDdFvQyyGKPZ3JXnXjeZKGTKauoYFBdEIPYYFEIsM +5rmhfsSroqpoyl3FrZINiqjJIwuxXYkMfB2PSa4iprRj5axL0lHCE2YvrSbSBrX6pX2 fMfuA8HnE/MZywMcVr3Xy5gSz/Kbho63iFAVUfJlFr4v2trviu1H9D5Urfsx4b/G3Kz8 u3xnCQROl8YjQ8Nv5oCL5kijYyLDBEMnwj4Cb28y+i/mjFhX/SiENWrOvx9fVvPgLGai OGzg== 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 a23si2597818pfa.95.2018.03.23.04.57.46; Fri, 23 Mar 2018 04:58:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753703AbeCWKAm (ORCPT + 99 others); Fri, 23 Mar 2018 06:00:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36604 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753670AbeCWKAj (ORCPT ); Fri, 23 Mar 2018 06:00:39 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3F48513B9; Fri, 23 Mar 2018 10:00:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Meelis Roos , "Rafael J. Wysocki" , Viresh Kumar , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.14 05/77] cpufreq: longhaul: Revert transition_delay_us to 200 ms Date: Fri, 23 Mar 2018 10:53:39 +0100 Message-Id: <20180323094142.567154247@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094142.260022880@linuxfoundation.org> References: <20180323094142.260022880@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Viresh Kumar [ Upstream commit 1d0d064307cbfd8546841f6e9d94d02c55e45e1e ] The commit e948bc8fbee0 ("cpufreq: Cap the default transition delay value to 10 ms") caused a regression on EPIA-M min-ITX computer where shutdown or reboot hangs occasionally with a print message like: longhaul: Warning: Timeout while waiting for idle PCI bus cpufreq: __target_index: Failed to change cpu frequency: -16 This probably happens because the cpufreq governor tries to change the frequency of the CPU faster than allowed by the hardware. Before the above commit, the default transition delay was set to 200 ms for a transition_latency of 200000 ns. Lets revert back to that transition delay value to fix it. Note that several other transition delay values were tested like 20 ms and 30 ms and none of them have resolved system hang issue completely. Fixes: e948bc8fbee0 (cpufreq: Cap the default transition delay value to 10 ms) Reported-by: Meelis Roos Suggested-by: Rafael J. Wysocki Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/longhaul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -894,7 +894,7 @@ static int longhaul_cpu_init(struct cpuf if ((longhaul_version != TYPE_LONGHAUL_V1) && (scale_voltage != 0)) longhaul_setup_voltagescaling(); - policy->cpuinfo.transition_latency = 200000; /* nsec */ + policy->transition_delay_us = 200000; /* usec */ return cpufreq_table_validate_and_show(policy, longhaul_table); }