From patchwork Mon Jun 3 01:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Benjamin Schneider X-Patchwork-Id: 13683219 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE236C25B74 for ; Mon, 3 Jun 2024 01:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HiqZQj+/gn3R+LuesRtBRcLuWkrALMid4DnjDMA6anw=; b=Yn6QBMUULgH4iw xvji3LzMZunVuR95u6NX+XbPhiYBjzV6i1zbPQKzWqr2XezKWyCUhaBpi/bWE6UgNS/qmVnq2mYR1 bg7hapM06620QsBoBe5+4Ya7rzRiKc0EKBjb1SmU3Eo4h0hl7Ga2yr/j3uJDLfnuQ1i/sdzKWR9QH m9s8UIKk0jV2QnP8FRNZrC/DABvFnoHiSJQFeRpuAtROiXevF0gN4GpsMMDgZRvDkViOM9Q5X7Haj v9rirc30v20zEJ2ptqdcl8Bdo8AqAlzGD5ITJ3BkzvHzxlzPUuDGBWQAnYv5naQTeSST1nTwf135Q BzMetvBk4xEh+DKMHjDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDwWs-0000000FJOe-2LHU; Mon, 03 Jun 2024 01:30:30 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDwWp-0000000FJO7-31q9 for linux-arm-kernel@lists.infradead.org; Mon, 03 Jun 2024 01:30:29 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-6c4f3e0e3d2so1816916a12.1 for ; Sun, 02 Jun 2024 18:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717378226; x=1717983026; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tS15qjGSe6PTQR2eoAM4lHF1ea4VHbs/P9F17xo4vAA=; b=jBwpzZfMstewhSoPAAQSdAxVBIsk4dJD1C8KrZwGpCfofGuOV7eozFyY/7dztrpd09 D9DSoBScMGC8kdrmyqqZSHcMgccdZRGXZS8sbSDNOEzNr10oibkE4Ow+l4GSzVCL6TnN rVOHg4je21g1xnxp3nOgrRZEkpODjl6DR3svD7hpOO5PbEtD8MTyf4PR67h4/i1fIufB xc66ZQBxdO2EttHuh5fOPTl/1ujlAABSrkydyViTSky0aY+ACn0tuvZjsUygKl78WIhx U9mqrn6/MOcBk3ySoKEIb9Th33eq3kF2JE+Va427TBDAauGZi/VDD2USckd0h/e8znl8 mh2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717378226; x=1717983026; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tS15qjGSe6PTQR2eoAM4lHF1ea4VHbs/P9F17xo4vAA=; b=slcBW6rPMjoKFor1zd4CorxGImr6qn5JByqd/XF4MzwuZXUkvzFLcx0XQMx6cEp5no birHiZgXQaTPYo8Xalh4vIVVxqwSwLieL/lUZp9EANHJvAD5s58MXousjPhTLGiCAYQi vQtQlZhw+xKi/a2qAD8RO1vpOwS+raGGas8kc3chIdqgr9sTMRU5cshy3Toxdk17I+xW 5XBm+odOwHQSDjz9Yz5z9qVjKhNOb3cbE+lWdU7th19G4+dezZhasWJVWtiu3jyuPysZ Mv9eW64P8KCI8XPLEVGAftLvxWXoz6A0NFAKBhnk/afO4duIlaiIjDwOu/orDbQ0rZqT Iqig== X-Forwarded-Encrypted: i=1; AJvYcCXuNmZ/RGl83e9Va8yL9i7BzpplD1kYuWy1MhRymRMO+4ABQxrOA1Cgd607rnQ7fO6HE9MTyAFYA7Aqu6P5hLscfiMy+7IYrCsOOaIcCXc9QOfLQ70= X-Gm-Message-State: AOJu0YxR+dpV8yMDBsuRuxKVGtT/XWpduVPS0eMoYw5w8sag/xJhptyc ow7ouaFs52G99aIPj0WbgBd6ztJrhVJ0crHhB46BZ6VakMpC1Xhc X-Google-Smtp-Source: AGHT+IGs6z5mL3xKxFCycDd8imzkJHgzRpAuMo2Ismpb0CjdgJJhTx/OJJoCTMkj5x+ASeYZaFLesg== X-Received: by 2002:a05:6a21:788a:b0:1af:d1f3:2cb5 with SMTP id adf61e73a8af0-1b26f0e64a4mr9621243637.8.1717378225636; Sun, 02 Jun 2024 18:30:25 -0700 (PDT) Received: from desky.home.arpa ([2605:59c8:790:a500:5d50:7307:99f3:76c8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a77bb855sm6725047a91.52.2024.06.02.18.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 18:30:25 -0700 (PDT) From: Benjamin Schneider X-Google-Original-From: Benjamin Schneider To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Benjamin Schneider Subject: [PATCH] cpufreq: enable 1200Mhz clock speed for armada-37xx Date: Sun, 2 Jun 2024 18:26:38 -0700 Message-ID: <20240603012804.122215-2-ben@bens.haus> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240603012804.122215-1-ben@bens.haus> References: <20240603012804.122215-1-ben@bens.haus> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240602_183027_787492_CDD74127 X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This frequency was disabled because of unresolved stability problems. However, based on several months of testing, the source of the stability problems seems to be the bootloader, not the kernel. Marvell has recently merged changes to their bootloader source that addresses the stability issues when frequency scaling is enabled at all frequencies including 1.2Ghz. Signed-off-by: Benjamin Schneider Reviewed-by: Pali Rohár Reviewed-by: Andrew Lunn Acked-by: Gregory CLEMENT --- drivers/cpufreq/armada-37xx-cpufreq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c index bea41ccab..f28a4435f 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -102,11 +102,7 @@ struct armada_37xx_dvfs { }; static struct armada_37xx_dvfs armada_37xx_dvfs[] = { - /* - * 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 = 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} },