Received: by 10.213.65.68 with SMTP id h4csp310963imn; Fri, 23 Mar 2018 05:17:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELsaSll2eJKtxuDf2UWwd0w/ll7m+NTgv01KPZe0g/Fhk54QeO+98i0RmY9UtDNDogqBDg3i X-Received: by 2002:a17:902:7102:: with SMTP id a2-v6mr28954708pll.87.1521807466797; Fri, 23 Mar 2018 05:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521807466; cv=none; d=google.com; s=arc-20160816; b=Qw5NjiU6Zc7b/VojQcj22fu8z807TMA//XP0ayJhbd9npHKQ5ObygVclSTq4ONg0B8 3rvB5ITdKcqIN+XNxrbhRAGXsxX6SzZTD3v+QLJl36M6pwtkAxshbkClP6cxiQVRbNoN vCTtsOYulLFkTKHoArZcFUvJ460CyDOsdMfnkqfCzcBfeTjDUajo8lUdpkv54x5WDLX1 9RUgfpKzVrf8IW0r9tMvyamy8f7v4/+74ndUGRUiy3hEDmZ9Cqhs2V0tGdV2PTTBKLB/ z7JGmTQixbtdJrA9kgPZW5EY52nkl46rTuANjOt/j5zCwUknhC6To4FI9kV0YtKpIzvM ix5w== 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=UOK5DXvgOYOBKRAacBbibRX7j0QPWWrXEbbDxpg5mck=; b=zPuylqhExx7LvyLzw7J8Jq67Jq+zD8LGUovorC/00hOoVZDY3h2a4l1ZJP2ziakyGz og0GQpcHzlUAShamqJd5XIpbjyixIIJbSAzBxt5sXGKA18lHRk9ee0aJiNdYnopPiMro CSrlW1V6TXYIa+9RiVSpqw2jqSLzZ8ujjO5UKIN4rTHW8mpD0kG9qDATzlPBc9fswYXb 0wjpIXMp1HIloIJoV8k8ElzATx5A9M0z+VZzJv+LB/9qKgfmmxjtVkV4RpfDSO2c/tOG 7KuKyBnQYvyKzaRegtHJlc/Tki8yW5QbSq+3rUFmHePZd7tzDjlgQeZUvKzGNusmOXmw +vtQ== 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 y3si5872181pgc.601.2018.03.23.05.17.31; Fri, 23 Mar 2018 05:17:46 -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 S1752799AbeCWMQa (ORCPT + 99 others); Fri, 23 Mar 2018 08:16:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33992 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752629AbeCWJ4a (ORCPT ); Fri, 23 Mar 2018 05:56:30 -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 5B50FF51; Fri, 23 Mar 2018 09:56:29 +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.15 06/84] cpufreq: longhaul: Revert transition_delay_us to 200 ms Date: Fri, 23 Mar 2018 10:53:20 +0100 Message-Id: <20180323095412.876570801@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323095411.913234798@linuxfoundation.org> References: <20180323095411.913234798@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.15-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); }