u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] airoha: rework RAM size handling to support multiple RAM size
@ 2025-07-22 18:44 Christian Marangi
  2025-07-24 10:30 ` Mikhail Kshevetskiy
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Marangi @ 2025-07-22 18:44 UTC (permalink / raw)
  To: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Christian Marangi, Mikhail Kshevetskiy,
	Emanuele Ghidoli, u-boot

There are multiple version of the same reference board with different
RAM size and it's not enough to base the RAM size entirely from DT. To
better support it use the get_ram_size way to scan for the actual RAM
size of Airoha SoC and increase the size of the memory map.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
index d149e0ee3c8..0f72365c4ab 100644
--- a/arch/arm/mach-airoha/an7581/init.c
+++ b/arch/arm/mach-airoha/an7581/init.c
@@ -2,10 +2,14 @@
 
 #include <fdtdec.h>
 #include <init.h>
+#include <linux/sizes.h>
 #include <sysreset.h>
 #include <asm/armv8/mmu.h>
+#include <asm/global_data.h>
 #include <asm/system.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int print_cpuinfo(void)
 {
 	printf("CPU:   Airoha AN7581\n");
@@ -14,12 +18,23 @@ int print_cpuinfo(void)
 
 int dram_init(void)
 {
-	return fdtdec_setup_mem_size_base();
+	int ret;
+
+	ret = fdtdec_setup_mem_size_base();
+	if (ret)
+		return ret;
+
+	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
+
+	return 0;
 }
 
 int dram_init_banksize(void)
 {
-	return fdtdec_setup_memory_banksize();
+	gd->bd->bi_dram[0].start = gd->ram_base;
+	gd->bd->bi_dram[0].size = gd->ram_size;
+
+	return 0;
 }
 
 void reset_cpu(void)
@@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
 		/* DDR */
 		.virt = 0x80000000UL,
 		.phys = 0x80000000UL,
-		.size = 0x80000000UL,
+		.size = 0x200000000ULL,
 		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
 	}, {
 		.virt = 0x00000000UL,
 		.phys = 0x00000000UL,
-		.size = 0x20000000UL,
+		.size = 0x40000000UL,
 		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
 			 PTE_BLOCK_NON_SHARE |
 			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
-- 
2.50.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-07-22 18:44 [PATCH] airoha: rework RAM size handling to support multiple RAM size Christian Marangi
@ 2025-07-24 10:30 ` Mikhail Kshevetskiy
  2025-07-27 11:58   ` Christian Marangi
  0 siblings, 1 reply; 9+ messages in thread
From: Mikhail Kshevetskiy @ 2025-07-24 10:30 UTC (permalink / raw)
  To: Christian Marangi, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot


On 22.07.2025 21:44, Christian Marangi wrote:
> There are multiple version of the same reference board with different
> RAM size and it's not enough to base the RAM size entirely from DT. To
> better support it use the get_ram_size way to scan for the actual RAM
> size of Airoha SoC and increase the size of the memory map.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
>  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
>  1 file changed, 19 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
> index d149e0ee3c8..0f72365c4ab 100644
> --- a/arch/arm/mach-airoha/an7581/init.c
> +++ b/arch/arm/mach-airoha/an7581/init.c
> @@ -2,10 +2,14 @@
>  
>  #include <fdtdec.h>
>  #include <init.h>
> +#include <linux/sizes.h>
>  #include <sysreset.h>
>  #include <asm/armv8/mmu.h>
> +#include <asm/global_data.h>
>  #include <asm/system.h>
>  
> +DECLARE_GLOBAL_DATA_PTR;
> +
>  int print_cpuinfo(void)
>  {
>  	printf("CPU:   Airoha AN7581\n");
> @@ -14,12 +18,23 @@ int print_cpuinfo(void)
>  
>  int dram_init(void)
>  {
> -	return fdtdec_setup_mem_size_base();
> +	int ret;
> +
> +	ret = fdtdec_setup_mem_size_base();
> +	if (ret)
> +		return ret;
> +
> +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);

Can we use a memory size passed by airoha trusted firmware instead of
playing with  get_ram_size()?

> +
> +	return 0;
>  }
>  
>  int dram_init_banksize(void)
>  {
> -	return fdtdec_setup_memory_banksize();
> +	gd->bd->bi_dram[0].start = gd->ram_base;
> +	gd->bd->bi_dram[0].size = gd->ram_size;
as I know u-boot can safely use only 2Gb of memory, thus it's better

        #define CFG_MAX_MEM_MAPPED  SZ_2G

and replace above line with

        gd->bd->bi_dram[0].size = get_effective_memsize();

> +
> +	return 0;
>  }
>  
>  void reset_cpu(void)
> @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
>  		/* DDR */
>  		.virt = 0x80000000UL,
>  		.phys = 0x80000000UL,
> -		.size = 0x80000000UL,
> +		.size = 0x200000000ULL,
>  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
>  	}, {
>  		.virt = 0x00000000UL,
>  		.phys = 0x00000000UL,
> -		.size = 0x20000000UL,
> +		.size = 0x40000000UL,
>  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
>  			 PTE_BLOCK_NON_SHARE |
>  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-07-24 10:30 ` Mikhail Kshevetskiy
@ 2025-07-27 11:58   ` Christian Marangi
  2025-07-27 12:03     ` Mikhail Kshevetskiy
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Marangi @ 2025-07-27 11:58 UTC (permalink / raw)
  To: Mikhail Kshevetskiy
  Cc: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot

On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy wrote:
> 
> On 22.07.2025 21:44, Christian Marangi wrote:
> > There are multiple version of the same reference board with different
> > RAM size and it's not enough to base the RAM size entirely from DT. To
> > better support it use the get_ram_size way to scan for the actual RAM
> > size of Airoha SoC and increase the size of the memory map.
> >
> > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> > ---
> >  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
> >  1 file changed, 19 insertions(+), 4 deletions(-)
> >
> > diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
> > index d149e0ee3c8..0f72365c4ab 100644
> > --- a/arch/arm/mach-airoha/an7581/init.c
> > +++ b/arch/arm/mach-airoha/an7581/init.c
> > @@ -2,10 +2,14 @@
> >  
> >  #include <fdtdec.h>
> >  #include <init.h>
> > +#include <linux/sizes.h>
> >  #include <sysreset.h>
> >  #include <asm/armv8/mmu.h>
> > +#include <asm/global_data.h>
> >  #include <asm/system.h>
> >  
> > +DECLARE_GLOBAL_DATA_PTR;
> > +
> >  int print_cpuinfo(void)
> >  {
> >  	printf("CPU:   Airoha AN7581\n");
> > @@ -14,12 +18,23 @@ int print_cpuinfo(void)
> >  
> >  int dram_init(void)
> >  {
> > -	return fdtdec_setup_mem_size_base();
> > +	int ret;
> > +
> > +	ret = fdtdec_setup_mem_size_base();
> > +	if (ret)
> > +		return ret;
> > +
> > +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
> 
> Can we use a memory size passed by airoha trusted firmware instead of
> playing with  get_ram_size()?
>

Hi I received some feedback from Airoha about this and sadly it's not
possible. There are too much version of ATF and only some of them
provide RAM size in some way or another. Also there isn't an exact HW
trap to read to know the RAM size hence raw testing the ram and not
depending externally is the only solution :(

I will address all the other comments.

> > +
> > +	return 0;
> >  }
> >  
> >  int dram_init_banksize(void)
> >  {
> > -	return fdtdec_setup_memory_banksize();
> > +	gd->bd->bi_dram[0].start = gd->ram_base;
> > +	gd->bd->bi_dram[0].size = gd->ram_size;
> as I know u-boot can safely use only 2Gb of memory, thus it's better
> 
>         #define CFG_MAX_MEM_MAPPED  SZ_2G
> 
> and replace above line with
> 
>         gd->bd->bi_dram[0].size = get_effective_memsize();
> 
> > +
> > +	return 0;
> >  }
> >  
> >  void reset_cpu(void)
> > @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
> >  		/* DDR */
> >  		.virt = 0x80000000UL,
> >  		.phys = 0x80000000UL,
> > -		.size = 0x80000000UL,
> > +		.size = 0x200000000ULL,
> >  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
> >  	}, {
> >  		.virt = 0x00000000UL,
> >  		.phys = 0x00000000UL,
> > -		.size = 0x20000000UL,
> > +		.size = 0x40000000UL,
> >  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
> >  			 PTE_BLOCK_NON_SHARE |
> >  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

-- 
	Ansuel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-07-27 11:58   ` Christian Marangi
@ 2025-07-27 12:03     ` Mikhail Kshevetskiy
  2025-08-23 13:26       ` Christian Marangi
  0 siblings, 1 reply; 9+ messages in thread
From: Mikhail Kshevetskiy @ 2025-07-27 12:03 UTC (permalink / raw)
  To: Christian Marangi
  Cc: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot


On 27.07.2025 14:58, Christian Marangi wrote:
> On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy wrote:
>> On 22.07.2025 21:44, Christian Marangi wrote:
>>> There are multiple version of the same reference board with different
>>> RAM size and it's not enough to base the RAM size entirely from DT. To
>>> better support it use the get_ram_size way to scan for the actual RAM
>>> size of Airoha SoC and increase the size of the memory map.
>>>
>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
>>> ---
>>>  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
>>>  1 file changed, 19 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
>>> index d149e0ee3c8..0f72365c4ab 100644
>>> --- a/arch/arm/mach-airoha/an7581/init.c
>>> +++ b/arch/arm/mach-airoha/an7581/init.c
>>> @@ -2,10 +2,14 @@
>>>  
>>>  #include <fdtdec.h>
>>>  #include <init.h>
>>> +#include <linux/sizes.h>
>>>  #include <sysreset.h>
>>>  #include <asm/armv8/mmu.h>
>>> +#include <asm/global_data.h>
>>>  #include <asm/system.h>
>>>  
>>> +DECLARE_GLOBAL_DATA_PTR;
>>> +
>>>  int print_cpuinfo(void)
>>>  {
>>>  	printf("CPU:   Airoha AN7581\n");
>>> @@ -14,12 +18,23 @@ int print_cpuinfo(void)
>>>  
>>>  int dram_init(void)
>>>  {
>>> -	return fdtdec_setup_mem_size_base();
>>> +	int ret;
>>> +
>>> +	ret = fdtdec_setup_mem_size_base();
>>> +	if (ret)
>>> +		return ret;
>>> +
>>> +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
>> Can we use a memory size passed by airoha trusted firmware instead of
>> playing with  get_ram_size()?
>>
> Hi I received some feedback from Airoha about this and sadly it's not
> possible. There are too much version of ATF and only some of them
> provide RAM size in some way or another. Also there isn't an exact HW
> trap to read to know the RAM size hence raw testing the ram and not
> depending externally is the only solution :(
>
> I will address all the other comments.
great.
>>> +
>>> +	return 0;
>>>  }
>>>  
>>>  int dram_init_banksize(void)
>>>  {
>>> -	return fdtdec_setup_memory_banksize();
>>> +	gd->bd->bi_dram[0].start = gd->ram_base;
>>> +	gd->bd->bi_dram[0].size = gd->ram_size;
>> as I know u-boot can safely use only 2Gb of memory, thus it's better
>>
>>         #define CFG_MAX_MEM_MAPPED  SZ_2G
>>
>> and replace above line with
>>
>>         gd->bd->bi_dram[0].size = get_effective_memsize();
>>
>>> +
>>> +	return 0;
>>>  }
>>>  
>>>  void reset_cpu(void)
>>> @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
>>>  		/* DDR */
>>>  		.virt = 0x80000000UL,
>>>  		.phys = 0x80000000UL,
>>> -		.size = 0x80000000UL,
>>> +		.size = 0x200000000ULL,
>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
>>>  	}, {
>>>  		.virt = 0x00000000UL,
>>>  		.phys = 0x00000000UL,
>>> -		.size = 0x20000000UL,
>>> +		.size = 0x40000000UL,
>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
>>>  			 PTE_BLOCK_NON_SHARE |
>>>  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-07-27 12:03     ` Mikhail Kshevetskiy
@ 2025-08-23 13:26       ` Christian Marangi
  2025-08-31 20:04         ` Mikhail Kshevetskiy
                           ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christian Marangi @ 2025-08-23 13:26 UTC (permalink / raw)
  To: Mikhail Kshevetskiy
  Cc: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot

On Sun, Jul 27, 2025 at 03:03:30PM +0300, Mikhail Kshevetskiy wrote:
> 
> On 27.07.2025 14:58, Christian Marangi wrote:
> > On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy wrote:
> >> On 22.07.2025 21:44, Christian Marangi wrote:
> >>> There are multiple version of the same reference board with different
> >>> RAM size and it's not enough to base the RAM size entirely from DT. To
> >>> better support it use the get_ram_size way to scan for the actual RAM
> >>> size of Airoha SoC and increase the size of the memory map.
> >>>
> >>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> >>> ---
> >>>  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
> >>>  1 file changed, 19 insertions(+), 4 deletions(-)
> >>>
> >>> diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
> >>> index d149e0ee3c8..0f72365c4ab 100644
> >>> --- a/arch/arm/mach-airoha/an7581/init.c
> >>> +++ b/arch/arm/mach-airoha/an7581/init.c
> >>> @@ -2,10 +2,14 @@
> >>>  
> >>>  #include <fdtdec.h>
> >>>  #include <init.h>
> >>> +#include <linux/sizes.h>
> >>>  #include <sysreset.h>
> >>>  #include <asm/armv8/mmu.h>
> >>> +#include <asm/global_data.h>
> >>>  #include <asm/system.h>
> >>>  
> >>> +DECLARE_GLOBAL_DATA_PTR;
> >>> +
> >>>  int print_cpuinfo(void)
> >>>  {
> >>>  	printf("CPU:   Airoha AN7581\n");
> >>> @@ -14,12 +18,23 @@ int print_cpuinfo(void)
> >>>  
> >>>  int dram_init(void)
> >>>  {
> >>> -	return fdtdec_setup_mem_size_base();
> >>> +	int ret;
> >>> +
> >>> +	ret = fdtdec_setup_mem_size_base();
> >>> +	if (ret)
> >>> +		return ret;
> >>> +
> >>> +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
> >> Can we use a memory size passed by airoha trusted firmware instead of
> >> playing with  get_ram_size()?
> >>
> > Hi I received some feedback from Airoha about this and sadly it's not
> > possible. There are too much version of ATF and only some of them
> > provide RAM size in some way or another. Also there isn't an exact HW
> > trap to read to know the RAM size hence raw testing the ram and not
> > depending externally is the only solution :(
> >
> > I will address all the other comments.
> great.
> >>> +
> >>> +	return 0;
> >>>  }
> >>>  
> >>>  int dram_init_banksize(void)
> >>>  {
> >>> -	return fdtdec_setup_memory_banksize();
> >>> +	gd->bd->bi_dram[0].start = gd->ram_base;
> >>> +	gd->bd->bi_dram[0].size = gd->ram_size;
> >> as I know u-boot can safely use only 2Gb of memory, thus it's better
> >>
> >>         #define CFG_MAX_MEM_MAPPED  SZ_2G
> >>

Sorry for coming back on this but by declaring CFG_MAX_MEM_MAPPED 
aren't we limiting the memory to 2gb? Also these info are passed to the
kernel so we are limiting the RAM also there. Am I wrong?

Also I notice the weak function dram_init_banksize is exactly the
current one with the usage of effective ram so I guess I can drop it
entirely?

Can you help me understand the usage of MAX_MEM_MAPPED and confirm this
doesn't limit the total RAM when loading the kernel? (we don't use ATAGS
as we use FDT)

> >> and replace above line with
> >>
> >>         gd->bd->bi_dram[0].size = get_effective_memsize();
> >>
> >>> +
> >>> +	return 0;
> >>>  }
> >>>  
> >>>  void reset_cpu(void)
> >>> @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
> >>>  		/* DDR */
> >>>  		.virt = 0x80000000UL,
> >>>  		.phys = 0x80000000UL,
> >>> -		.size = 0x80000000UL,
> >>> +		.size = 0x200000000ULL,
> >>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
> >>>  	}, {
> >>>  		.virt = 0x00000000UL,
> >>>  		.phys = 0x00000000UL,
> >>> -		.size = 0x20000000UL,
> >>> +		.size = 0x40000000UL,
> >>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
> >>>  			 PTE_BLOCK_NON_SHARE |
> >>>  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

-- 
	Ansuel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-08-23 13:26       ` Christian Marangi
@ 2025-08-31 20:04         ` Mikhail Kshevetskiy
  2025-08-31 20:11         ` Mikhail Kshevetskiy
  2025-09-01 13:16         ` Mikhail Kshevetskiy
  2 siblings, 0 replies; 9+ messages in thread
From: Mikhail Kshevetskiy @ 2025-08-31 20:04 UTC (permalink / raw)
  To: Christian Marangi
  Cc: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot

On 23.08.2025 16:26, Christian Marangi wrote:
> On Sun, Jul 27, 2025 at 03:03:30PM +0300, Mikhail Kshevetskiy wrote:
>> On 27.07.2025 14:58, Christian Marangi wrote:
>>> On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy wrote:
>>>> On 22.07.2025 21:44, Christian Marangi wrote:
>>>>> There are multiple version of the same reference board with different
>>>>> RAM size and it's not enough to base the RAM size entirely from DT. To
>>>>> better support it use the get_ram_size way to scan for the actual RAM
>>>>> size of Airoha SoC and increase the size of the memory map.
>>>>>
>>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
>>>>> ---
>>>>>  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
>>>>>  1 file changed, 19 insertions(+), 4 deletions(-)
>>>>>
>>>>> diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
>>>>> index d149e0ee3c8..0f72365c4ab 100644
>>>>> --- a/arch/arm/mach-airoha/an7581/init.c
>>>>> +++ b/arch/arm/mach-airoha/an7581/init.c
>>>>> @@ -2,10 +2,14 @@
>>>>>  
>>>>>  #include <fdtdec.h>
>>>>>  #include <init.h>
>>>>> +#include <linux/sizes.h>
>>>>>  #include <sysreset.h>
>>>>>  #include <asm/armv8/mmu.h>
>>>>> +#include <asm/global_data.h>
>>>>>  #include <asm/system.h>
>>>>>  
>>>>> +DECLARE_GLOBAL_DATA_PTR;
>>>>> +
>>>>>  int print_cpuinfo(void)
>>>>>  {
>>>>>  	printf("CPU:   Airoha AN7581\n");
>>>>> @@ -14,12 +18,23 @@ int print_cpuinfo(void)
>>>>>  
>>>>>  int dram_init(void)
>>>>>  {
>>>>> -	return fdtdec_setup_mem_size_base();
>>>>> +	int ret;
>>>>> +
>>>>> +	ret = fdtdec_setup_mem_size_base();
>>>>> +	if (ret)
>>>>> +		return ret;
>>>>> +
>>>>> +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
>>>> Can we use a memory size passed by airoha trusted firmware instead of
>>>> playing with  get_ram_size()?
>>>>
>>> Hi I received some feedback from Airoha about this and sadly it's not
>>> possible. There are too much version of ATF and only some of them
>>> provide RAM size in some way or another. Also there isn't an exact HW
>>> trap to read to know the RAM size hence raw testing the ram and not
>>> depending externally is the only solution :(
>>>
>>> I will address all the other comments.
>> great.
>>>>> +
>>>>> +	return 0;
>>>>>  }
>>>>>  
>>>>>  int dram_init_banksize(void)
>>>>>  {
>>>>> -	return fdtdec_setup_memory_banksize();
>>>>> +	gd->bd->bi_dram[0].start = gd->ram_base;
>>>>> +	gd->bd->bi_dram[0].size = gd->ram_size;
>>>> as I know u-boot can safely use only 2Gb of memory, thus it's better
>>>>
>>>>         #define CFG_MAX_MEM_MAPPED  SZ_2G
>>>>
> Sorry for coming back on this but by declaring CFG_MAX_MEM_MAPPED 
> aren't we limiting the memory to 2gb? Also these info are passed to the
> kernel so we are limiting the RAM also there. Am I wrong?
You might be right. I don't remember where this knowledge could have
come to me from.

I'll read arm documentation and look to a code to study an issue. I hope
I will have enough time for it on Monday-Tuesday.

> Also I notice the weak function dram_init_banksize is exactly the
> current one with the usage of effective ram so I guess I can drop it
> entirely?
looks reasonable.
>
> Can you help me understand the usage of MAX_MEM_MAPPED and confirm this
> doesn't limit the total RAM when loading the kernel? (we don't use ATAGS
> as we use FDT)
will try make it clear for me as well, see above

Mikhail Kshevetskiy
>>>> and replace above line with
>>>>
>>>>         gd->bd->bi_dram[0].size = get_effective_memsize();
>>>>
>>>>> +
>>>>> +	return 0;
>>>>>  }
>>>>>  
>>>>>  void reset_cpu(void)
>>>>> @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
>>>>>  		/* DDR */
>>>>>  		.virt = 0x80000000UL,
>>>>>  		.phys = 0x80000000UL,
>>>>> -		.size = 0x80000000UL,
>>>>> +		.size = 0x200000000ULL,
>>>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
>>>>>  	}, {
>>>>>  		.virt = 0x00000000UL,
>>>>>  		.phys = 0x00000000UL,
>>>>> -		.size = 0x20000000UL,
>>>>> +		.size = 0x40000000UL,
>>>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
>>>>>  			 PTE_BLOCK_NON_SHARE |
>>>>>  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-08-23 13:26       ` Christian Marangi
  2025-08-31 20:04         ` Mikhail Kshevetskiy
@ 2025-08-31 20:11         ` Mikhail Kshevetskiy
  2025-09-01  2:23           ` Weijie Gao (高惟杰)
  2025-09-01 13:16         ` Mikhail Kshevetskiy
  2 siblings, 1 reply; 9+ messages in thread
From: Mikhail Kshevetskiy @ 2025-08-31 20:11 UTC (permalink / raw)
  To: Christian Marangi
  Cc: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot

please see 0x00_8000_0000 -- 0x00_FFFF_FFFF region of memory from
https://developer.arm.com/documentation/100961/1100-00/Programming-Reference/ARMv8-A-Foundation-Platform-memory-map

According to it we will have only 2 Gb of memory started from
0x00_8000_0000.

Mikhail

On 23.08.2025 16:26, Christian Marangi wrote:
> On Sun, Jul 27, 2025 at 03:03:30PM +0300, Mikhail Kshevetskiy wrote:
>> On 27.07.2025 14:58, Christian Marangi wrote:
>>> On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy wrote:
>>>> On 22.07.2025 21:44, Christian Marangi wrote:
>>>>> There are multiple version of the same reference board with different
>>>>> RAM size and it's not enough to base the RAM size entirely from DT. To
>>>>> better support it use the get_ram_size way to scan for the actual RAM
>>>>> size of Airoha SoC and increase the size of the memory map.
>>>>>
>>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
>>>>> ---
>>>>>  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
>>>>>  1 file changed, 19 insertions(+), 4 deletions(-)
>>>>>
>>>>> diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
>>>>> index d149e0ee3c8..0f72365c4ab 100644
>>>>> --- a/arch/arm/mach-airoha/an7581/init.c
>>>>> +++ b/arch/arm/mach-airoha/an7581/init.c
>>>>> @@ -2,10 +2,14 @@
>>>>>  
>>>>>  #include <fdtdec.h>
>>>>>  #include <init.h>
>>>>> +#include <linux/sizes.h>
>>>>>  #include <sysreset.h>
>>>>>  #include <asm/armv8/mmu.h>
>>>>> +#include <asm/global_data.h>
>>>>>  #include <asm/system.h>
>>>>>  
>>>>> +DECLARE_GLOBAL_DATA_PTR;
>>>>> +
>>>>>  int print_cpuinfo(void)
>>>>>  {
>>>>>  	printf("CPU:   Airoha AN7581\n");
>>>>> @@ -14,12 +18,23 @@ int print_cpuinfo(void)
>>>>>  
>>>>>  int dram_init(void)
>>>>>  {
>>>>> -	return fdtdec_setup_mem_size_base();
>>>>> +	int ret;
>>>>> +
>>>>> +	ret = fdtdec_setup_mem_size_base();
>>>>> +	if (ret)
>>>>> +		return ret;
>>>>> +
>>>>> +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
>>>> Can we use a memory size passed by airoha trusted firmware instead of
>>>> playing with  get_ram_size()?
>>>>
>>> Hi I received some feedback from Airoha about this and sadly it's not
>>> possible. There are too much version of ATF and only some of them
>>> provide RAM size in some way or another. Also there isn't an exact HW
>>> trap to read to know the RAM size hence raw testing the ram and not
>>> depending externally is the only solution :(
>>>
>>> I will address all the other comments.
>> great.
>>>>> +
>>>>> +	return 0;
>>>>>  }
>>>>>  
>>>>>  int dram_init_banksize(void)
>>>>>  {
>>>>> -	return fdtdec_setup_memory_banksize();
>>>>> +	gd->bd->bi_dram[0].start = gd->ram_base;
>>>>> +	gd->bd->bi_dram[0].size = gd->ram_size;
>>>> as I know u-boot can safely use only 2Gb of memory, thus it's better
>>>>
>>>>         #define CFG_MAX_MEM_MAPPED  SZ_2G
>>>>
> Sorry for coming back on this but by declaring CFG_MAX_MEM_MAPPED 
> aren't we limiting the memory to 2gb? Also these info are passed to the
> kernel so we are limiting the RAM also there. Am I wrong?
>
> Also I notice the weak function dram_init_banksize is exactly the
> current one with the usage of effective ram so I guess I can drop it
> entirely?
>
> Can you help me understand the usage of MAX_MEM_MAPPED and confirm this
> doesn't limit the total RAM when loading the kernel? (we don't use ATAGS
> as we use FDT)
>
>>>> and replace above line with
>>>>
>>>>         gd->bd->bi_dram[0].size = get_effective_memsize();
>>>>
>>>>> +
>>>>> +	return 0;
>>>>>  }
>>>>>  
>>>>>  void reset_cpu(void)
>>>>> @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
>>>>>  		/* DDR */
>>>>>  		.virt = 0x80000000UL,
>>>>>  		.phys = 0x80000000UL,
>>>>> -		.size = 0x80000000UL,
>>>>> +		.size = 0x200000000ULL,
>>>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
>>>>>  	}, {
>>>>>  		.virt = 0x00000000UL,
>>>>>  		.phys = 0x00000000UL,
>>>>> -		.size = 0x20000000UL,
>>>>> +		.size = 0x40000000UL,
>>>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
>>>>>  			 PTE_BLOCK_NON_SHARE |
>>>>>  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-08-31 20:11         ` Mikhail Kshevetskiy
@ 2025-09-01  2:23           ` Weijie Gao (高惟杰)
  0 siblings, 0 replies; 9+ messages in thread
From: Weijie Gao (高惟杰) @ 2025-09-01  2:23 UTC (permalink / raw)
  To: ansuelsmth@gmail.com, mikhail.kshevetskiy@iopsys.eu
  Cc: trini@konsulko.com, u-boot@lists.denx.de, Ryder Lee,
	Chunfeng Yun (云春峰), GSS_MTK_Uboot_upstream,
	emanuele.ghidoli@toradex.com

On Sun, 2025-08-31 at 23:11 +0300, Mikhail Kshevetskiy wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> please see 0x00_8000_0000 -- 0x00_FFFF_FFFF region of memory from
> 
https://urldefense.com/v3/__https://developer.arm.com/documentation/100961/1100-00/Programming-Reference/ARMv8-A-Foundation-Platform-memory-map__;!!CTRNKA9wMg0ARbw!gZzjNziWJK-ebGgoMiVwXKxlXIE-DJ68_0hCD4y8g5V6uCskSFIGsUpBsIapN1Fmqod9yWygxoLwETO_eAWsvAcGUFaY0nT4$
> 
> According to it we will have only 2 Gb of memory started from
> 0x00_8000_0000.

The ARMv8-A Foundation Platform from the link is a simulation model,
not an architecture that must be applied to all real armv8 ICs.

> 
> Mikhail
> 
> On 23.08.2025 16:26, Christian Marangi wrote:
> > On Sun, Jul 27, 2025 at 03:03:30PM +0300, Mikhail Kshevetskiy
> > wrote:
> > > On 27.07.2025 14:58, Christian Marangi wrote:
> > > > On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy
> > > > wrote:
> > > > > On 22.07.2025 21:44, Christian Marangi wrote:
> > > > > > There are multiple version of the same reference board with
> > > > > > different
> > > > > > RAM size and it's not enough to base the RAM size entirely
> > > > > > from DT. To
> > > > > > better support it use the get_ram_size way to scan for the
> > > > > > actual RAM
> > > > > > size of Airoha SoC and increase the size of the memory map.
> > > > > > 
> > > > > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> > > > > > ---
> > > > > >  arch/arm/mach-airoha/an7581/init.c | 23
> > > > > > +++++++++++++++++++----
> > > > > >  1 file changed, 19 insertions(+), 4 deletions(-)
> > > > > > 
> > > > > > diff --git a/arch/arm/mach-airoha/an7581/init.c
> > > > > > b/arch/arm/mach-airoha/an7581/init.c
> > > > > > index d149e0ee3c8..0f72365c4ab 100644
> > > > > > --- a/arch/arm/mach-airoha/an7581/init.c
> > > > > > +++ b/arch/arm/mach-airoha/an7581/init.c
> > > > > > @@ -2,10 +2,14 @@
> > > > > > 
> > > > > >  #include <fdtdec.h>
> > > > > >  #include <init.h>
> > > > > > +#include <linux/sizes.h>
> > > > > >  #include <sysreset.h>
> > > > > >  #include <asm/armv8/mmu.h>
> > > > > > +#include <asm/global_data.h>
> > > > > >  #include <asm/system.h>
> > > > > > 
> > > > > > +DECLARE_GLOBAL_DATA_PTR;
> > > > > > +
> > > > > >  int print_cpuinfo(void)
> > > > > >  {
> > > > > >   printf("CPU:   Airoha AN7581\n");
> > > > > > @@ -14,12 +18,23 @@ int print_cpuinfo(void)
> > > > > > 
> > > > > >  int dram_init(void)
> > > > > >  {
> > > > > > - return fdtdec_setup_mem_size_base();
> > > > > > + int ret;
> > > > > > +
> > > > > > + ret = fdtdec_setup_mem_size_base();
> > > > > > + if (ret)
> > > > > > +         return ret;
> > > > > > +
> > > > > > + gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
> > > > > 
> > > > > Can we use a memory size passed by airoha trusted firmware
> > > > > instead of
> > > > > playing with  get_ram_size()?
> > > > > 
> > > > 
> > > > Hi I received some feedback from Airoha about this and sadly
> > > > it's not
> > > > possible. There are too much version of ATF and only some of
> > > > them
> > > > provide RAM size in some way or another. Also there isn't an
> > > > exact HW
> > > > trap to read to know the RAM size hence raw testing the ram and
> > > > not
> > > > depending externally is the only solution :(
> > > > 
> > > > I will address all the other comments.
> > > 
> > > great.
> > > > > > +
> > > > > > + return 0;
> > > > > >  }
> > > > > > 
> > > > > >  int dram_init_banksize(void)
> > > > > >  {
> > > > > > - return fdtdec_setup_memory_banksize();
> > > > > > + gd->bd->bi_dram[0].start = gd->ram_base;
> > > > > > + gd->bd->bi_dram[0].size = gd->ram_size;
> > > > > 
> > > > > as I know u-boot can safely use only 2Gb of memory, thus it's
> > > > > better
> > > > > 
> > > > >         #define CFG_MAX_MEM_MAPPED  SZ_2G
> > > > > 
> > 
> > Sorry for coming back on this but by declaring CFG_MAX_MEM_MAPPED
> > aren't we limiting the memory to 2gb? Also these info are passed to
> > the
> > kernel so we are limiting the RAM also there. Am I wrong?
> > 
> > Also I notice the weak function dram_init_banksize is exactly the
> > current one with the usage of effective ram so I guess I can drop
> > it
> > entirely?
> > 
> > Can you help me understand the usage of MAX_MEM_MAPPED and confirm
> > this
> > doesn't limit the total RAM when loading the kernel? (we don't use
> > ATAGS
> > as we use FDT)
> > 
> > > > > and replace above line with
> > > > > 
> > > > >         gd->bd->bi_dram[0].size = get_effective_memsize();
> > > > > 
> > > > > > +
> > > > > > + return 0;
> > > > > >  }
> > > > > > 
> > > > > >  void reset_cpu(void)
> > > > > > @@ -32,12 +47,12 @@ static struct mm_region
> > > > > > an7581_mem_map[] = {
> > > > > >           /* DDR */
> > > > > >           .virt = 0x80000000UL,
> > > > > >           .phys = 0x80000000UL,
> > > > > > -         .size = 0x80000000UL,
> > > > > > +         .size = 0x200000000ULL,
> > > > > >           .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
> > > > > > PTE_BLOCK_OUTER_SHARE,
> > > > > >   }, {
> > > > > >           .virt = 0x00000000UL,
> > > > > >           .phys = 0x00000000UL,
> > > > > > -         .size = 0x20000000UL,
> > > > > > +         .size = 0x40000000UL,
> > > > > >           .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
> > > > > >                    PTE_BLOCK_NON_SHARE |
> > > > > >                    PTE_BLOCK_PXN | PTE_BLOCK_UXN

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] airoha: rework RAM size handling to support multiple RAM size
  2025-08-23 13:26       ` Christian Marangi
  2025-08-31 20:04         ` Mikhail Kshevetskiy
  2025-08-31 20:11         ` Mikhail Kshevetskiy
@ 2025-09-01 13:16         ` Mikhail Kshevetskiy
  2 siblings, 0 replies; 9+ messages in thread
From: Mikhail Kshevetskiy @ 2025-09-01 13:16 UTC (permalink / raw)
  To: Christian Marangi
  Cc: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Emanuele Ghidoli, u-boot

I think to get an answer we need:
1) Physical address map of an7581 chips. Could you ask it from airoha?
2) Find out a list of devices that supports DMA with 32-bit addresses only.

If there are two (or more) memory regions (like in
https://developer.arm.com/documentation/100961/1100-00/Programming-Reference/ARMv8-A-Foundation-Platform-memory-map)
we need to configure them separately (see
arch/arm/mach-exynos/mmu-arm64.c file, exynos850_mem_map array).

If we have a single region started at 0x80000000, but there is a device
that supports 32-bit DMA only, then we should split this memory region
on 2 regions. The first will be limited by 2Gb, and the second will
cover rest of memory.

In both above cases we will need to restrict u-boot to use only first
memory region (not dig it yet).

Regards,
Mikhail Kshevetskiy


On 23.08.2025 16:26, Christian Marangi wrote:
> On Sun, Jul 27, 2025 at 03:03:30PM +0300, Mikhail Kshevetskiy wrote:
>> On 27.07.2025 14:58, Christian Marangi wrote:
>>> On Thu, Jul 24, 2025 at 01:30:45PM +0300, Mikhail Kshevetskiy wrote:
>>>> On 22.07.2025 21:44, Christian Marangi wrote:
>>>>> There are multiple version of the same reference board with different
>>>>> RAM size and it's not enough to base the RAM size entirely from DT. To
>>>>> better support it use the get_ram_size way to scan for the actual RAM
>>>>> size of Airoha SoC and increase the size of the memory map.
>>>>>
>>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
>>>>> ---
>>>>>  arch/arm/mach-airoha/an7581/init.c | 23 +++++++++++++++++++----
>>>>>  1 file changed, 19 insertions(+), 4 deletions(-)
>>>>>
>>>>> diff --git a/arch/arm/mach-airoha/an7581/init.c b/arch/arm/mach-airoha/an7581/init.c
>>>>> index d149e0ee3c8..0f72365c4ab 100644
>>>>> --- a/arch/arm/mach-airoha/an7581/init.c
>>>>> +++ b/arch/arm/mach-airoha/an7581/init.c
>>>>> @@ -2,10 +2,14 @@
>>>>>  
>>>>>  #include <fdtdec.h>
>>>>>  #include <init.h>
>>>>> +#include <linux/sizes.h>
>>>>>  #include <sysreset.h>
>>>>>  #include <asm/armv8/mmu.h>
>>>>> +#include <asm/global_data.h>
>>>>>  #include <asm/system.h>
>>>>>  
>>>>> +DECLARE_GLOBAL_DATA_PTR;
>>>>> +
>>>>>  int print_cpuinfo(void)
>>>>>  {
>>>>>  	printf("CPU:   Airoha AN7581\n");
>>>>> @@ -14,12 +18,23 @@ int print_cpuinfo(void)
>>>>>  
>>>>>  int dram_init(void)
>>>>>  {
>>>>> -	return fdtdec_setup_mem_size_base();
>>>>> +	int ret;
>>>>> +
>>>>> +	ret = fdtdec_setup_mem_size_base();
>>>>> +	if (ret)
>>>>> +		return ret;
>>>>> +
>>>>> +	gd->ram_size = get_ram_size((void *)gd->ram_base, SZ_8G);
>>>> Can we use a memory size passed by airoha trusted firmware instead of
>>>> playing with  get_ram_size()?
>>>>
>>> Hi I received some feedback from Airoha about this and sadly it's not
>>> possible. There are too much version of ATF and only some of them
>>> provide RAM size in some way or another. Also there isn't an exact HW
>>> trap to read to know the RAM size hence raw testing the ram and not
>>> depending externally is the only solution :(
>>>
>>> I will address all the other comments.
>> great.
>>>>> +
>>>>> +	return 0;
>>>>>  }
>>>>>  
>>>>>  int dram_init_banksize(void)
>>>>>  {
>>>>> -	return fdtdec_setup_memory_banksize();
>>>>> +	gd->bd->bi_dram[0].start = gd->ram_base;
>>>>> +	gd->bd->bi_dram[0].size = gd->ram_size;
>>>> as I know u-boot can safely use only 2Gb of memory, thus it's better
>>>>
>>>>         #define CFG_MAX_MEM_MAPPED  SZ_2G
>>>>
> Sorry for coming back on this but by declaring CFG_MAX_MEM_MAPPED 
> aren't we limiting the memory to 2gb? Also these info are passed to the
> kernel so we are limiting the RAM also there. Am I wrong?
>
> Also I notice the weak function dram_init_banksize is exactly the
> current one with the usage of effective ram so I guess I can drop it
> entirely?
>
> Can you help me understand the usage of MAX_MEM_MAPPED and confirm this
> doesn't limit the total RAM when loading the kernel? (we don't use ATAGS
> as we use FDT)
>
>>>> and replace above line with
>>>>
>>>>         gd->bd->bi_dram[0].size = get_effective_memsize();
>>>>
>>>>> +
>>>>> +	return 0;
>>>>>  }
>>>>>  
>>>>>  void reset_cpu(void)
>>>>> @@ -32,12 +47,12 @@ static struct mm_region an7581_mem_map[] = {
>>>>>  		/* DDR */
>>>>>  		.virt = 0x80000000UL,
>>>>>  		.phys = 0x80000000UL,
>>>>> -		.size = 0x80000000UL,
>>>>> +		.size = 0x200000000ULL,
>>>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
>>>>>  	}, {
>>>>>  		.virt = 0x00000000UL,
>>>>>  		.phys = 0x00000000UL,
>>>>> -		.size = 0x20000000UL,
>>>>> +		.size = 0x40000000UL,
>>>>>  		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
>>>>>  			 PTE_BLOCK_NON_SHARE |
>>>>>  			 PTE_BLOCK_PXN | PTE_BLOCK_UXN

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-01 13:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-22 18:44 [PATCH] airoha: rework RAM size handling to support multiple RAM size Christian Marangi
2025-07-24 10:30 ` Mikhail Kshevetskiy
2025-07-27 11:58   ` Christian Marangi
2025-07-27 12:03     ` Mikhail Kshevetskiy
2025-08-23 13:26       ` Christian Marangi
2025-08-31 20:04         ` Mikhail Kshevetskiy
2025-08-31 20:11         ` Mikhail Kshevetskiy
2025-09-01  2:23           ` Weijie Gao (高惟杰)
2025-09-01 13:16         ` Mikhail Kshevetskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).