Message ID | 20240216174227.409400-6-gregory.clement@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69090-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp674635dyb; Fri, 16 Feb 2024 09:43:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWBq4gS/3nimE8RnMrkkTKgzpVmggI1p0O7s5Hx51RemPKRh3unI6MUetkHMCW1SOtnyhlU7lmLEmsaS1TQT6H2L3wBQQ== X-Google-Smtp-Source: AGHT+IFFYvgXD5Udz8wjggzgyMRNU6Bcy1nE+H5U3Ta6HbMxFdINYpMarJh7HhohY+fTpqrg40OV X-Received: by 2002:aa7:c517:0:b0:561:ff30:2d44 with SMTP id o23-20020aa7c517000000b00561ff302d44mr4657979edq.17.1708105435278; Fri, 16 Feb 2024 09:43:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708105435; cv=pass; d=google.com; s=arc-20160816; b=s+MsRCnGBLLvBGruDo9efOmuXDDW+7md91WmopX1WpkCcIVVcWBCTuS9CcXjxnBHYG FilxUTcdIP9spVXhSu+rvNUR5GdAuBqKScSzQQD3Fwj7UKyDsoO+1iSUCdCWKXlVIgKK JJktsDi6zOvZZ4nniay3Uc9BU10wVct5mQVOpAViDO7h1n0CDf9KLUqQwrH58i/rVNwW y0nG8jwd9RTzrQJ7bzDNWpz5fX8WImvVfCzrB1sYbe2ShgrABBolqPhMTev+0ULD5vT3 1k4zzqAv4+MkSIZMbV02nYx5MjM0da6O3ne+lH6d5m8IlNvUxpHr8byAvxOkJiHIC4G3 CDXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nfmqPXyNaR+Aomf8hQQJpTdW18Oyoy4DRDDUy1YAmW8=; fh=jshYI2NwtEb4RFDet1CibhjijWOL1JdxV9n387woDuM=; b=0dU+E4CPzmyDBdhz5KHOl7VPIQsh5kOBdtdGUfrBkCcIcOxZoc7ccyBCe44ML+L0+v vFbwdK2YtEi5anWSRMcP0Dj2Ze+Mg2reZPkeq6dMvV86jiMPYdYwtND9vGlDc7Fj/ans AgNyRWn+0QrMwFIPV7my4VE5fQAXvmjQ4qKgFZiGysyXB0WpTQaDBWHaIrAqqbUJWQsd oExBsqt8sgo/Akea+aoss6n7BPCIBYpvJkCo28nBtTyWZOhwnAV5+gxqYp+BWcDNez9N URzeicMI+KnmKKijMs6/j9g2HBjwP9pUnivUQe2edaBocZuYvvGhkNGVsjo54h3UUXyZ JctQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Gu4Ezaqp; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-69090-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69090-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t23-20020aa7d4d7000000b00561e6543600si156365edr.149.2024.02.16.09.43.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:43:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69090-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Gu4Ezaqp; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-69090-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69090-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E22C31F22405 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 17:43:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F042D1350E7; Fri, 16 Feb 2024 17:42:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Gu4Ezaqp" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10ADB132C1F; Fri, 16 Feb 2024 17:42:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708105359; cv=none; b=IEhJhDDzUqsK0Hbd32O84YdDCTDUqDEEmVewZeGI1n9t2tspBvn9UrfefXxLqSlkzLKn1wDr1ChAcDV3u6RV0UdoUemsQnyhQVkeIfBM0eNtCq9j4SlriO2CLcrWZ8/QLIYw3AGbiT13HmzPsfKPHfjNTj9ow4+HNal3IkbeXVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708105359; c=relaxed/simple; bh=E/90gBwLmpJXeK232Brlce3fowXySmiFqEe90Bkb9Hc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ofdOeZP9aqOGb2QVJkmgB+Se1LqProsfSeGWOjJ6gAGzWGFb9jVD02SaQeivBoR1i4affv5zq0/FEHf09H+1gCDqjdotkQJL7XTdeEaEOkUqTeQcIfC34li7EYMeB+syNVIkAA5vz/aMBziG164SJOWUVCn2OdDdpOnEUf8APag= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Gu4Ezaqp; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C097040009; Fri, 16 Feb 2024 17:42:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708105355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nfmqPXyNaR+Aomf8hQQJpTdW18Oyoy4DRDDUy1YAmW8=; b=Gu4EzaqpGe9p3mjEHXSwL8mlGL+/R90ivM05jzPQB67qyT2+xZv05L2imaQPvJO+DyamZ4 6bHYkXfoHa/vzpFl0AzsLKaOjWpOCxhSEdBXrhJlyNac08V0+O6cOX99jw+hys6A7/YZsV FavGJGTrWGrO+z1u5waTBrNX1enHOoGn7rFs5w/ni8sMeSZA/8KZU/a58FGTniiUsrWZIY I381Iv8//t+bFr7qEvPEkTm8lmooE+KPAVzT1F2RMUUtF4PkmxIchItpgjG0czrPE8/jBd Z1QHNnrAqBQ2dzfc2aQUGn1WRwVUg38mf0qS45fsO7bhM5ttb7FiGKodR5gvHA== From: Gregory CLEMENT <gregory.clement@bootlin.com> To: Paul Burton <paulburton@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, Jiaxun Yang <jiaxun.yang@flygoat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, =?utf-8?q?Th=C3=A9o_Lebr?= =?utf-8?q?un?= <theo.lebrun@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Gregory CLEMENT <gregory.clement@bootlin.com> Subject: [PATCH v8 05/14] MIPS: cps-vec: Use macros for 64bits access Date: Fri, 16 Feb 2024 18:42:14 +0100 Message-ID: <20240216174227.409400-6-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240216174227.409400-1-gregory.clement@bootlin.com> References: <20240216174227.409400-1-gregory.clement@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: gregory.clement@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791078364820355733 X-GMAIL-MSGID: 1791078364820355733 |
Series |
Add support for the Mobileye EyeQ5 SoC
|
|
Commit Message
Gregory CLEMENT
Feb. 16, 2024, 5:42 p.m. UTC
Some access are 32 bits only while they seems better to be done in
64bis for 64 bit kernel.
This was extract from an initial patch from Jiaxun
Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
---
arch/mips/kernel/cps-vec.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S index df610c006b443..f876309130ad1 100644 --- a/arch/mips/kernel/cps-vec.S +++ b/arch/mips/kernel/cps-vec.S @@ -396,7 +396,7 @@ LEAF(mips_cps_boot_vpes) /* Calculate a pointer to the VPEs struct vpe_boot_config */ li t0, VPEBOOTCFG_SIZE mul t0, t0, ta1 - addu t0, t0, ta3 + PTR_ADDU t0, t0, ta3 /* Set the TC restart PC */ lw t1, VPEBOOTCFG_PC(t0) @@ -571,10 +571,10 @@ dcache_done: lw $1, TI_CPU(gp) sll $1, $1, LONGLOG PTR_LA \dest, __per_cpu_offset - addu $1, $1, \dest + PTR_ADDU $1, $1, \dest lw $1, 0($1) PTR_LA \dest, cps_cpu_state - addu \dest, \dest, $1 + PTR_ADDU \dest, \dest, $1 .set pop .endm