[PATCH] ARC: Use 40-bit physical page mask for PAE

2021-04-26 Thread Vladimir Isaev
32-bit PAGE_MASK can not be used as a mask for physical addresses when PAE is enabled. PHYSICAL_PAGE_MASK must be used for physical addresses instead of PAGE_MASK. Signed-off-by: Vladimir Isaev --- arch/arc/include/asm/pgtable.h | 12 +++- arch/arc/include/uapi/asm/page.h | 7

[PATCH] ARC: Use max_high_pfn as a HIGHMEM zone border

2021-04-26 Thread Vladimir Isaev
Commit 4af22ded0ecf ("arc: fix memory initialization for systems with two memory banks") fixed highmem, but not for PAE case when highmem is actually bigger than lowmem. Signed-off-by: Vladimir Isaev Cc: Mike Rapoport --- arch/arc/mm/init.c | 2 +- 1 file changed, 1 insertion(+),

RE: [PATCH] ARC: Use max_high_pfn as a HIGHMEM zone border

2021-04-26 Thread Vladimir Isaev
Hi Mike, On Mon, April 26, 2021 2:29 PM, Mike Rapoport wrote: > On Mon, Apr 26, 2021 at 01:10:04PM +0300, Vladimir Isaev wrote: > > - max_zone_pfn[ZONE_HIGHMEM] = min_low_pfn; > > + max_zone_pfn[ZONE_HIGHMEM] = max_high_pfn; > > This is correct with PAE40, but it w

RE: [PATCH] ARC: Use 40-bit physical page mask for PAE

2021-04-26 Thread Vladimir Isaev
Hi, On Monday, April 26, 2021 7:30 PM, Vineet Gupta wrote: > On 4/26/21 3:08 AM, Vladimir Isaev wrote: > > > > > #endif /* _UAPI__ASM_ARC_PAGE_H */ > > diff --git a/arch/arc/mm/ioremap.c b/arch/arc/mm/ioremap.c > > index fac4adc90204..eb109d57d544 100644 &

[PATCH v2] ARC: Use 40-bit physical page mask for PAE

2021-04-27 Thread Vladimir Isaev
r19: 0x r20: 0x r21: 0x r22: 0x r23: 0x r24: 0x r25: 0x0018a488 Kernel panic - not syncing: Attempted to kill init! exitcode=0x000b Signed-off-by: Vladimir Isaev Reported-by: kernel test robot Cc: Vineet Gupta Cc: sta...@vger.kernel.org

[PATCH v2] ARC: Use max_high_pfn as a HIGHMEM zone border

2021-04-27 Thread Vladimir Isaev
rnel taint This is because the fix expects highmem to be always less than lowmem and uses min_low_pfn as an upper zone border for highmem. max_high_pfn should be ok for both highmem and highmem+PAE cases. Signed-off-by: Vladimir Isaev Cc: Mike Rapoport Cc: Vineet Gupta --- Changes for v2:

[PATCH] elf: _dl_fixup*: make @reloc_arg 64-bit safe

2021-07-22 Thread Vladimir Isaev
orted-by: Cupertino Miranda Signed-off-by: Vladimir Isaev Signed-off-by: Vineet Gupta --- elf/dl-runtime.c | 6 +++--- sysdeps/hppa/dl-fptr.c| 2 +- sysdeps/i386/dl-machine.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/elf/dl-runtime.c b/elf/dl-runtime

RE: [PATCH] elf: _dl_fixup*: make @reloc_arg 64-bit safe

2021-07-22 Thread Vladimir Isaev
On Jul 22 2021, Andreas Schwab wrote: > > On Jul 22 2021, Vladimir Isaev via Libc-alpha wrote: > > > diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c > > index 9d0d941000..6099a44ffb 100644 > > --- a/elf/dl-runtime.c > > +++ b/elf/dl-runtime.c > > @@