Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp207065lqp; Tue, 11 Jun 2024 01:49:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmgNDiN2n22M6rzTa18n0ihgkACC/bKx2nN6AU5stCR7ojQJV1AT6rEWkcvNjfaXh7k9XyloXUc2/jWNx37azMSYsK3AuyOmWCMp4bsQ== X-Google-Smtp-Source: AGHT+IE+gxJ8Vwpe6iacegY1+K/NM5lSGAxJHVtqR2rk1GpQ4JTb/8LbayvJYH1aoEQxaXHIbdq+ X-Received: by 2002:a50:8a91:0:b0:57c:6000:88e1 with SMTP id 4fb4d7f45d1cf-57c60008a2bmr6755351a12.6.1718095770291; Tue, 11 Jun 2024 01:49:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718095770; cv=pass; d=google.com; s=arc-20160816; b=mSIww7cr/WnqVAEqBDWK8USpNJv89qx4O9+5fUbHEVPmQeolkbZRjtTcYULYii6HRc WCxXGiRy1IqPi/XpoVZMwS0z1oSI7MGyunP530958NloSaOBqHenObC63oZbRaKMKEzA d9aQnQC/AeivRDg5ihVFnC1liiknmlv+bWGyz7SoiQst1xdSg4ZNbzQbVHCuPnSJ/oeM rMzX0iGizdKYQoGXnL9i3neguRIuL/1tCJ30Nm/FHgYNycr3LrI5jUBWyeEiEy+xgqBa qXIKrCKmDPxBGYz71Kz6hbAwh7XQvbuFJBGrB41id3LiAnUO2pO24+fzeJ+jsRVd0hDL 4NSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=09Th4G0K8TOurU9XBrU12tT5bL1YyPAKsMSUH4Qvk8E=; fh=qFDjQAGCCWfs9/TnBncWZVi3RLluQxwXX9mltxSoKyU=; b=0Jrt4vR5EDMqtzA2EO0ycmI8QRf4d+plJQLqkLLCZQzOMqMEdlqooYii7E+xTF+z+t PMKkdE6j5uIPpkSv7K4ehHNkX+MrWSkWfiGcDxADaK9kMADrVhWhTivuc+rD1/ENLsX8 i7iIWdA9yRhNexU8bOKDgZYT0AJ+RxoODZTcFyMgZhPXs+gvbI43KAaCBQOPSrYl8TNe ESD6QAdYuSVO/g0Qc490EWWMpn8AJXReKgQOXWadTL0rCRXrzzAs4nHaZ7dMdxElo1C9 duBvwJe5K1tcqAjsn+5nxiAisrCbE32u8a9baIJpr2xOJ8u7rcFsKHjWvPu0a/ppbIca qLxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-209506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209506-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c74b232fasi2668416a12.184.2024.06.11.01.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 01:49:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-209506-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209506-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 09D4E1F260FE for ; Tue, 11 Jun 2024 08:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BC2617624C; Tue, 11 Jun 2024 08:49:14 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7339174EE4; Tue, 11 Jun 2024 08:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718095753; cv=none; b=ky1FlFOc5SceimSafshiSNbdGIeGAImdO0czrhfzLjypojyp+/cG7X+oGIVZCbdhsTnJ1OTqLMfcLEbKKE1Rhl034VJEyrn2AxBxy+BAULvOvJ38UPtcHdf7O9gNOefN8mzUSX8j+c7GLM8TNcXNXsrzI90G/+5NDM3AQmWh3P8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718095753; c=relaxed/simple; bh=QFDtUcbFUqxfMhI1iWqTziSSZsRbXT9IPUS2qPxjXAA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E6mnOsgahNAcDDY6tDBmegGe1k1qGsrLC5pMJGqdlMNv5ME4ODSa4N1GqwP9GdaZT9AivDC0pt4oSyzaL0UpsCkB5AmrHMijmVmKIWBEa5bEWXkYflk6J3bvKRNb88OscqDtj8fMQCe6VUPj8mzr+ttC6LbCOIFEawc3bHz6oko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1sGxBU-0000Nm-00; Tue, 11 Jun 2024 10:48:52 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 0FAC9C0A35; Tue, 11 Jun 2024 10:47:16 +0200 (CEST) Date: Tue, 11 Jun 2024 10:47:16 +0200 From: Thomas Bogendoerfer To: Christian Marangi Cc: Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel =?iso-8859-1?Q?Gonz=E1lez?= Cabanelas , =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Subject: Re: [PATCH v5 4/4] mips: bmips: enable RAC on BMIPS4350 Message-ID: References: <20240511130349.23409-1-ansuelsmth@gmail.com> <20240511130349.23409-5-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240511130349.23409-5-ansuelsmth@gmail.com> On Sat, May 11, 2024 at 03:03:48PM +0200, Christian Marangi wrote: > From: Daniel Gonz?lez Cabanelas > > The data RAC is left disabled by the bootloader in some SoCs, at least in > the core it boots from. > Enabling this feature increases the performance up to +30% depending on the > task. > > Signed-off-by: Daniel Gonz?lez Cabanelas > Signed-off-by: ?lvaro Fern?ndez Rojas > [ rework code and reduce code duplication ] > Signed-off-by: Christian Marangi > Acked-by: Florian Fainelli > --- > arch/mips/kernel/smp-bmips.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c > index 20e2fb10022d..52324738cbb3 100644 > --- a/arch/mips/kernel/smp-bmips.c > +++ b/arch/mips/kernel/smp-bmips.c > @@ -626,6 +626,23 @@ void bmips_cpu_setup(void) > __raw_readl(cbr + BMIPS_RAC_ADDRESS_RANGE); > break; > > + case CPU_BMIPS4350: > + u32 rac_addr = BMIPS_RAC_CONFIG_1; my gcc 10.2.1 doesn't like the declaration here: /local/tbogendoerfer/korg/linux/arch/mips/kernel/smp-bmips.c:630:3: error: a label can only be part of a statement and a declaration is not a statement 630 | u32 rac_addr = BMIPS_RAC_CONFIG_1; Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]