Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp974644pxb; Tue, 9 Feb 2021 18:32:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFU6J3qh9DO1+Nc2LKfAFY2oXrKQdvnAPkRYPl+hz9pl54ZKHyy3dmPenrmJvWwJz9NP7C X-Received: by 2002:a17:906:199a:: with SMTP id g26mr673846ejd.485.1612924372050; Tue, 09 Feb 2021 18:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612924372; cv=none; d=google.com; s=arc-20160816; b=RO4ON+T9dgHYyOss7Xu9L06HouGF5M5TAkBL5jZguk2sxiSVR3HLor10PmKeI+hC3c gZ5g2YBOQtjvYceo681Ho5tA2pxZ/Hee+vVbqw8VbosqMQXrNC2AXX8dsKRy3+XXd/E7 SpLo706CPtvbXdY2EYhcjutVvDcn9DDtkU55F1QeCI9lLSMaozLMxscICMMET4fB8jD3 FulfFVwEnzyhh5h5K+8wo3pJwBL1lvJ6gNbZwjsRqaMS8/3cZCeRlI3226kRWr477Eea n+P7NGTcI04xLZlvJftTiT1CyDrr2yhbBhnGHdlz5A31bTBPby7m7WnzRhLU1PS30uzh C/XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=H8gmXCdcOK2KGSYjzwAznMmDC7V/NTqVn7CK1R0CcTI=; b=LvtCS4ENOGr9F9NyigVSLmoQvFJ3X5hsEKME+sTGVhWeHNqS/DZy7G5R6IOBkPWMly RdD9MSy8QLQ36ulS8iwTK6phzGSVUfhUYvA2BW33N8P1eAUcfq6PwXGzuSTkOwT4x9m9 k0B9F8IN5CGdeijCbrUQDBd41VPndYTkYOyCg8XYVUfqx0LhnMUon1bV6ikjohtfBjkN rbCFV9YLgicnmqINNcrHdMa7MzMlkkXlB6KjuEFTQc+5RCm6028nbVVRwuQmqAj1zzUo /Ymi9kxhfzJIbJyXUlWo9HgFG2fJ6b0mxAGpIDKgugJ4qzdPMmTrAJSaJSKIobhdPATt VoBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cvV8b0ek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb11si353018ejb.0.2021.02.09.18.32.29; Tue, 09 Feb 2021 18:32:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cvV8b0ek; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235239AbhBJC3u (ORCPT + 99 others); Tue, 9 Feb 2021 21:29:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:53716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234792AbhBJB7N (ORCPT ); Tue, 9 Feb 2021 20:59:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F140764E54; Wed, 10 Feb 2021 01:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612922313; bh=H8gmXCdcOK2KGSYjzwAznMmDC7V/NTqVn7CK1R0CcTI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=cvV8b0ekScUhfccdLHFum5M2Lub9dqFayg7xt/OJD+2JMR1IY1Fbzj4CQbuLBdykG S8teH72X3uREcuZeuF2mQWFrA6qaX0hk9NdgBX4WzTBIxtL0Frqjk+llT4qj1sTIeP dMDAClLoJzIiq0yaHZuTR70Y9EosPpGUOga7WNUSjbtdiACTp5ENCm/JnyKfRGFjvm xwsuN3qK6qAzicRuIrWMHZCzlOkM+0KyqYp+SXmiTqd5dHzKuCDvTZMlno/Gc3Fva9 UAgSBGtSdRoESJ605NgwDL/hDX/DT9kJ/syp+ZOXNYfQkO1yvXVIKbGHn0IPMszxbg mIUcBGrO25OkA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210114124032.12765-7-pali@kernel.org> References: <20210114124032.12765-1-pali@kernel.org> <20210114124032.12765-7-pali@kernel.org> Subject: Re: [PATCH mvebu v2 06/10] clk: mvebu: armada-37xx-periph: Fix workaround for switching from L1 to L0 From: Stephen Boyd Cc: Marek =?utf-8?q?Beh=C3=BAn?= , Miquel Raynal , Tomasz Maciej Nowak , Luka Perkov , Andre Heider , Vladimir Vid , Russell King , =?utf-8?q?G=C3=A9rald?= Kerma , Konstantin Porotchkin To: Andrew Lunn , Gregory Clement , Michael Turquette , Pali =?utf-8?q?Roh=C3=A1r?= , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 09 Feb 2021 17:58:31 -0800 Message-ID: <161292231125.418021.8310551532294838376@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Pali Roh=C3=A1r (2021-01-14 04:40:28) > When CPU frequency is at 250 MHz and set_rate() is called with 500 MHz (L= 1) > quickly followed by a call with 1 GHz (L0), the CPU does not necessarily > stay in L1 for at least 20ms as is required by Marvell errata. >=20 > This situation happens frequently with the ondemand cpufreq governor and > can be also reproduced with userspace governor. In most cases it causes C= PU > to crash. >=20 > This change fixes the above issue and ensures that the CPU always stays in > L1 for at least 20ms when switching from any state to L0. >=20 > Signed-off-by: Marek Beh=C3=BAn > Signed-off-by: Pali Roh=C3=A1r > Fixes: 61c40f35f5cd ("clk: mvebu: armada-37xx-periph: Fix switching CPU r= ate from 300Mhz to 1.2GHz") > Cc: stable@vger.kernel.org > --- Acked-by: Stephen Boyd