Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp282461lqp; Tue, 11 Jun 2024 04:40:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFM4JFTsn5Xo+FBi3OH/nvnyxRUlO/Emknb8OKEKYiglHfHoM+3ePLJCtHE+DGPVxQryndyDmdwV+WmprwbOMG3R19SZK/9MPhK1AP4A== X-Google-Smtp-Source: AGHT+IHcrXXS28aNFARwS/cIkuP5FVo/l8DRl65hihBQj55c2NEtfebrrGZqcJTugVv/XcadqhEL X-Received: by 2002:a05:6214:2d42:b0:6b0:82a9:935f with SMTP id 6a1803df08f44-6b082a995aamr40695646d6.31.1718106021485; Tue, 11 Jun 2024 04:40:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718106021; cv=pass; d=google.com; s=arc-20160816; b=NiDPYwemkCBgdI3eiU+qKSIMunlpwpqC/OtGeKknJ8OzX23s2rq7lCfnmtXqLSSCig 6CZ9vemZIy7rUXKZhTwQ50Sl+AzWCgITzJsFcrsTnwRYJXpZGtdSOHWNkJi3whQ7IlY9 wAY6/fY0sSNS6Q8BqvYKMmO2Ds0CixbhGpl5QFuo7miILD/96hSR0zKCtlGx4TekysnO Mb9Iqh+kOR1pcmEY7k92oFmmVYLUTKUh4P4Y2n53hu0mQTSblBLhon5QTG96aLvaR2K5 hGnzjLNxQbVDvO9r2wIUkpsexlN8DkzLyu0ctkaoKG8w/EGBAILDpWk6INZUcmSSXxvj hxQA== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=HaD75ZmmaDNSb2smaeP0NbZYw8FhKXtqbvgVsLndZ8Y=; fh=TTXRfRQuCUj5/AfO6J8ZOnMSyJuljU9Hle5S1dkvAmI=; b=mmw0ajE7WGHktuQXxIT+El07fHh34/oNXYoOMvAxLwQMDhP2T/QAdxPE/mkxDUTP5d Ql5RYhRRJ48AUac54IHRwrGLa0D/F2bNeuOA1THCNBDfAu3UQ6YF2FXTkQaaug4A6oGu UL+dfmhMjTrmuCfOGYRBpmmyHCDnOh8AB5BCIXSyu1tJ/dF52fQLW9ECDw60/j1d471C JE2ttJ3nVc8wsA0FmoVuWv2Nsr+gs3Xd4Sfjd8rkI3L5XPliZZtHOifMoYV7JZIFYcRs RYr7KlBSyVrHdFBLY9V9cydvWVddANqb2NEd6jrMyGu7pFTkXCz6vqo5kt5AlGBZMtVQ lE1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a5PaQpDy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b074ce1f98si66970016d6.108.2024.06.11.04.40.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a5PaQpDy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-209774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3A00C1C20CEB for ; Tue, 11 Jun 2024 11:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C95E17B511; Tue, 11 Jun 2024 11:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a5PaQpDy" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 315CC176FB7; Tue, 11 Jun 2024 11:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105870; cv=none; b=kEEofetWhQZAx2cqDrdzx4r7bLhYk0RmVtdND2SEhtCRdSDROJBhcxW+6waB78GQ/vaQllIKuvOIuto+TNKNJWp6qkChFpBnC3iXeCkSil0z+n1d6aYmwHma7ELp4d9GjRFr2Gh3r72n3lo1K/w7MfqnKJOIUmYpuoG3ejVoc+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105870; c=relaxed/simple; bh=LRqiJygFXwFdgnMHnMYbPnGJMx7dxKY7Rq9+IwL5GQ8=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q4vBHPXrV5GvW7Yb+pxjEARTYYkilk/z6XNjeitWXroWjwTVrg4nwtVm6xddruTabrifm77oosRjtRUvHuIneAQGcXINBUDhH6lYHfhnlpbI2c1qfCZfYmzrT8XUkQ+Ug6F4b4HHGm1d81ajIMZDOhJaDYBgH2mbBDmoCZQM0+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a5PaQpDy; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4217990f8baso29045065e9.2; Tue, 11 Jun 2024 04:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718105868; x=1718710668; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:subject:cc:to:from:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=HaD75ZmmaDNSb2smaeP0NbZYw8FhKXtqbvgVsLndZ8Y=; b=a5PaQpDya7nnPMe2pKLfNjA78mqq9xX/WfDlhTJb4dwcQJzX5ToG2ntk28ra9w36eH bFepgocPUGFGKT5G13oz0XPTftGgfh/bRWMQnFKyE9h5V+xhRODKP840AiT/jxuLGmHB YNpAjarbNFVvXylU5hytB3jLtKDWdqoFH8Bzj++KsKmJ8F09a6yGDq/ZgDI0a8dq86g0 RDGeeoM9q9a2TUypPDufRlTR1xsA7ns0PBfWQbp9ba7NlqIE1Q9oBwJ84oJNNYhPwmKS JTaMzvtOhiTD5JK88j9iZUYyki5KO5fZbaLPqP9W9v0K1JSGGcaxVNSNq75WFWkQLJnF el8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718105868; x=1718710668; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:subject:cc:to:from:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HaD75ZmmaDNSb2smaeP0NbZYw8FhKXtqbvgVsLndZ8Y=; b=v8BlfRnNxOLKQIsWJR99mly1w3kASMh+Ca3+G34P0s0YS1D6LdPLt4ekKsF4zNq8Ht tiWJ23b4tTUG4wdN8rhZ6bASDY3YVenOrBQFbJMSZva1Ox9XN0y+vPixJjRy/wcI4a9o eNSqGCHp3Lmy9BbBJztJfz1Lf9cEEBbQkRwGipvDxw7Xw3bBGHM2osYbuVSuvNkFwVOa Qnn57RuysIVb0hdcknCtOytKOeahpWFpUqJpow3XucHYsx3qMJK0ciTYPnFHHzGW4gET hooMcLbPDJmsAAE6Z6o1hsc0jf3JKU66aPdf9PQwQc6+K+R19QEbMg1KJMGp30TxT6A5 jrIQ== X-Forwarded-Encrypted: i=1; AJvYcCU3vFETiH6lVN0XPpks940nxvQa/zbKtgf+UqKZUzv0bHI0hQLs+43qn738YaIbol+n3rN5IpUNiTSh0xv9xRi8jSWQPUMCui07DZHIbp4i9c3/L5zJ+PjqOLRfkfN5Bq70sFcHLW9PmSA4WM5VOCFrqXW8d6h3It59ApySze9MX3SHl9o= X-Gm-Message-State: AOJu0YyjbSs/CEgiKfqfVqF3lwFziA6fjvRk3FEWZC8xQU20/mCLvvSj RI1KRjMawxc1DuMumnjvMciK0xOYEleIJjBRVBN0buu/2zEEbTqo X-Received: by 2002:a5d:59a5:0:b0:35f:2947:e30a with SMTP id ffacd0b85a97d-35f2947e34bmr3464511f8f.46.1718105867497; Tue, 11 Jun 2024 04:37:47 -0700 (PDT) Received: from Ansuel-XPS. (93-34-90-105.ip49.fastwebnet.it. [93.34.90.105]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35f22607f38sm5977210f8f.13.2024.06.11.04.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:37:47 -0700 (PDT) Message-ID: <6668370b.df0a0220.d88a7.7744@mx.google.com> X-Google-Original-Message-ID: Date: Tue, 11 Jun 2024 13:37:46 +0200 From: Christian Marangi To: Thomas Bogendoerfer 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 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: On Tue, Jun 11, 2024 at 10:47:16AM +0200, Thomas Bogendoerfer wrote: > 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; > Thanks I moved the declaration up before the switch. -- Ansuel