From: Gregory CLEMENT <gregory.clement@bootlin.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: "Paul Burton" <paulburton@kernel.org>,
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,
"Vladimir Kondratiev" <vladimir.kondratiev@mobileye.com>,
"Tawfik Bayouk" <tawfik.bayouk@mobileye.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Théo Lebrun" <theo.lebrun@bootlin.com>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH v7 01/14] MIPS: spaces: Define a couple of handy macros
Date: Wed, 14 Feb 2024 17:44:02 +0100 [thread overview]
Message-ID: <87sf1vj8rx.fsf@BL-laptop> (raw)
In-Reply-To: <ZcTFmUtV/mzeIBTx@alpha.franken.de>
Thomas Bogendoerfer <tsbogend@alpha.franken.de> writes:
> On Mon, Feb 05, 2024 at 04:34:47PM +0100, Gregory CLEMENT wrote:
>> Define KSEGX_SIZE to represent the size of each KSEG segment.
>>
>> Introduce CKSEG0ADDR_OR_64BIT and CKSEG1ADDR_OR_64BIT to get an XPHYS
>> address in 64bits and CKSEG[01]ADDR() in 32 bits mode.
>>
>> Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
>> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
>> ---
>> arch/mips/include/asm/addrspace.h | 5 +++++
>> arch/mips/include/asm/mach-generic/spaces.h | 4 ++++
>> 2 files changed, 9 insertions(+)
>>
>> diff --git a/arch/mips/include/asm/addrspace.h b/arch/mips/include/asm/addrspace.h
>> index 59a48c60a065c..03a5e2c8b5dc9 100644
>> --- a/arch/mips/include/asm/addrspace.h
>> +++ b/arch/mips/include/asm/addrspace.h
>> @@ -47,6 +47,11 @@
>> */
>> #define KSEGX(a) ((_ACAST32_(a)) & _ACAST32_(0xe0000000))
>>
>> +/*
>> + * Gives the size of each kernel segment
>> + */
>> +#define KSEGX_SIZE 0x20000000
>
> well this is the KSEG size for 32bit and defined in a common section,
> so better use CSEGX_SIZE
Done in the next series.
Thanks,
Gregory
>
> Thomas.
>
> --
> Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
> good idea. [ RFC1925, 2.3 ]
--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
next prev parent reply other threads:[~2024-02-14 16:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 15:34 [PATCH v7 00/14] Add support for the Mobileye EyeQ5 SoC Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 01/14] MIPS: spaces: Define a couple of handy macros Gregory CLEMENT
2024-02-08 12:14 ` Thomas Bogendoerfer
2024-02-14 16:44 ` Gregory CLEMENT [this message]
2024-02-05 15:34 ` [PATCH v7 02/14] MIPS: Fix set_uncached_handler for ebase in XKPHYS Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 03/14] MIPS: Allows relocation exception vectors everywhere Gregory CLEMENT
2024-02-08 12:11 ` Thomas Bogendoerfer
2024-02-14 16:48 ` Gregory CLEMENT
2024-02-14 19:14 ` Thomas Bogendoerfer
2024-02-05 15:34 ` [PATCH v7 04/14] MIPS: traps: Give more explanations if ebase doesn't belong to KSEG0 Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 05/14] MIPS: cps-vec: Use macros for 64bits access Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 06/14] dt-bindings: Add vendor prefix for Mobileye Vision Technologies Ltd Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 07/14] dt-bindings: mips: cpus: Sort the entries Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 08/14] dt-bindings: mips: cpu: Add I-Class I6500 Multiprocessor Core Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 09/14] dt-bindings: mips: Add bindings for Mobileye SoCs Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 10/14] MIPS: mobileye: Add EyeQ5 dtsi Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 11/14] MIPS: mobileye: Add EPM5 device tree Gregory CLEMENT
2024-02-05 15:34 ` [PATCH v7 12/14] MIPS: Share generic kernel code with other architecture Gregory CLEMENT
2024-02-08 9:38 ` Jiaxun Yang
2024-02-05 15:34 ` [PATCH v7 13/14] MIPS: Add support for Mobileye EyeQ5 Gregory CLEMENT
2024-02-08 9:38 ` Jiaxun Yang
2024-02-05 15:35 ` [PATCH v7 14/14] MAINTAINERS: Add entry for Mobileye MIPS SoCs Gregory CLEMENT
2024-02-08 12:18 ` [PATCH v7 00/14] Add support for the Mobileye EyeQ5 SoC Thomas Bogendoerfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sf1vj8rx.fsf@BL-laptop \
--to=gregory.clement@bootlin.com \
--cc=alexandre.belloni@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=paulburton@kernel.org \
--cc=robh+dt@kernel.org \
--cc=tawfik.bayouk@mobileye.com \
--cc=theo.lebrun@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=tsbogend@alpha.franken.de \
--cc=vladimir.kondratiev@mobileye.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox