Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2894588pxb; Tue, 24 Aug 2021 10:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNFY1h/amwXUu0wtW8Irmc/9+BpPAO/TegM2Gvo89StIjGZ70TH0uHP9dPNTZ7jDlyv/VA X-Received: by 2002:a50:cb83:: with SMTP id k3mr15402930edi.102.1629824603312; Tue, 24 Aug 2021 10:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824603; cv=none; d=google.com; s=arc-20160816; b=p4XzmZ/ieFDVN4aM8OTvSqCZ1adALeQ3vHjfjX/ToxraViAoIH6/AyO/s8UIjCnlO/ CVIitwtM/+/FXEBPB3aa08YV+uhNjsEy5OJEq1wOMbXj6ccQ25tHBn/wZQhUmSEPI2Wx vPoH7x1b1h+SvdJGiysT+3DpAyg5lvOJ6J23RS/B9qb0cvg+3T/jnAk7Py51yX5zyzNd Uq9MLeInSACKv/dY3FWHlvMhTZ0+Up22TubXzJHF76YlSGDxjbNGeOf2tqJvNYXiXmsC hcuEVPts5gjArWjXZTtkxlVF70nUhK+4np7KvfuEBpCyaCLipSWNGVBqN/R5ps0XH5xu H4sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HTq9LbxmlcAdY9ICIEJMMMnjzPWHTFNjd+ACsvxnsp8=; b=oXm2ASU4VZDinfNSFXZxPF+rJGY9gROpeeLyIb5bUrKJ7BTdt2ZzixpYYmsXGHCfPT aSc/Qa8Gzj5IOPLPyNV7Ew09xXIfTzHoTVYq9vq/Pvg/oWG3d/2H54OHeFTI9AVmXY4e uU9LX0uRgAwZaXRtsZlBMD2uT1mUn2dWTWeOTDam3DD9gwXyHCh2AimL/ofPNSKWeMee jJ6tgnfK+wQr78WQBAvAGVJwdzs/HziAuduYyYU2ZBGXXATyF4bvRn7hkl27+5xWc/Cv EygTnFbZftXQ9u2ZP8MWMN0m9xUqUd5wnKdXKT1nho/vka8t6RdA5bVj5/lt1nLH+E8p pTsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kHHIWLBE; 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 u19si17924506ejo.211.2021.08.24.10.02.47; Tue, 24 Aug 2021 10:03:23 -0700 (PDT) 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=kHHIWLBE; 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 S233108AbhHXQ6l (ORCPT + 99 others); Tue, 24 Aug 2021 12:58:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:39584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234861AbhHXQ53 (ORCPT ); Tue, 24 Aug 2021 12:57:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2738961409; Tue, 24 Aug 2021 16:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824204; bh=04o+o1gg3m8SgoYqbhihayaGyn+eXrwxHYNUCwfx2eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kHHIWLBEr2t8fmmdOrW4Ag7PT1xTlLV323oKujvPMHCH4Kfm801mWU9UB7umCwOwm mHLc7/HByNJXSTHXZ0VL97v7IbmAivwNcqB1THpQyaEbLNFkM22OnNf/NoDe5+2ltm CVWhHf/HiUkf6V7H5Cc+yT9EKX+lkofbHHc5GBYoh3rC3vkyqCvRCdlI/Yah3iv6jy MywY4JidxiUsF7rt9DMazIaw3cYdpk0dACtVoeHpIWrqFM18kkYEcJmw1aD3cbT3n2 Z231bTXfU5crrD5Wv09bKb2LQ6bmgSTL9fRdQkPBxpjAmPp2aVHjB8yckUaSWRj4MH MbGZQ8WCGiWuA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , Viresh Kumar , Sasha Levin Subject: [PATCH 5.13 037/127] cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant Date: Tue, 24 Aug 2021 12:54:37 -0400 Message-Id: <20210824165607.709387-38-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek BehĂșn [ Upstream commit 484f2b7c61b9ae58cc00c5127bcbcd9177af8dfe ] The 1.2 GHz variant of the Armada 3720 SOC is unstable with DVFS: when the SOC boots, the WTMI firmware sets clocks and AVS values that work correctly with 1.2 GHz CPU frequency, but random crashes occur once cpufreq driver starts scaling. We do not know currently what is the reason: - it may be that the voltage value for L0 for 1.2 GHz variant provided by the vendor in the OTP is simply incorrect when scaling is used, - it may be that some delay is needed somewhere, - it may be something else. The most sane solution now seems to be to simply forbid the cpufreq driver on 1.2 GHz variant. Signed-off-by: Marek BehĂșn Fixes: 92ce45fb875d ("cpufreq: Add DVFS support for Armada 37xx") Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/armada-37xx-cpufreq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c index 3fc98a3ffd91..c10fc33b29b1 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -104,7 +104,11 @@ struct armada_37xx_dvfs { }; static struct armada_37xx_dvfs armada_37xx_dvfs[] = { - {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, + /* + * The cpufreq scaling for 1.2 GHz variant of the SOC is currently + * unstable because we do not know how to configure it properly. + */ + /* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */ {.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} }, {.cpu_freq_max = 800*1000*1000, .divider = {1, 2, 3, 4} }, {.cpu_freq_max = 600*1000*1000, .divider = {2, 4, 5, 6} }, -- 2.30.2