[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZmgPFLSCxjed2EGZ@alpha.franken.de>
Date: Tue, 11 Jun 2024 10:47:16 +0200
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Christian Marangi <ansuelsmth@...il.com>
Cc: Hauke Mehrtens <hauke@...ke-m.de>,
Rafał Miłecki <zajec5@...il.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
linux-mips@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Daniel González Cabanelas <dgcbueu@...il.com>,
Álvaro Fernández Rojas <noltari@...il.com>
Subject: Re: [PATCH v5 4/4] mips: bmips: enable RAC on BMIPS4350
On Sat, May 11, 2024 at 03:03:48PM +0200, Christian Marangi wrote:
> From: Daniel González Cabanelas <dgcbueu@...il.com>
>
> 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 <dgcbueu@...il.com>
> Signed-off-by: Álvaro Fernández Rojas <noltari@...il.com>
> [ rework code and reduce code duplication ]
> Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
> Acked-by: Florian Fainelli <florian.fainelli@...adcom.com>
> ---
> 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 ]
Powered by blists - more mailing lists