Re: [PATCH v2 01/19] ARC: mm: use SCRATCH_DATA0 register for caching pgdir in ARCv2 only

2021-08-16 Thread Vineet Gupta
On 8/15/21 2:27 AM, Mike Rapoport wrote: On Thu, Aug 12, 2021 at 04:37:35PM -0700, Vineet Gupta wrote: MMU SCRATCH_DATA0 register is intended to cache task pgd. However in ARC700 SMP port, it has to be repurposed for reentrant interrupt handling, while UP port doesn't. We currently ahandle boe

Re: [PATCH v2 03/19] ARC: mm: move mmu/cache externs out to setup.h

2021-08-16 Thread Vineet Gupta
On 8/15/21 2:27 AM, Mike Rapoport wrote: Heh, "Don't pollute mmu.h and cache.h with some of ARC internal bootlog/setup related functions. move them aside to setup.h" is still not there :) Oops my bad, indeed missed out on that one. Fixed now. Thx, -Vineet __

Re: [PATCH v2 16/19] ARC: mm: support 3 levels of page tables

2021-08-16 Thread Vineet Gupta
On 8/15/21 2:27 AM, Mike Rapoport wrote: On Thu, Aug 12, 2021 at 04:37:50PM -0700, Vineet Gupta wrote: ARCv2 MMU is software walked and Linux implements 2 levels of paging: pgd/pte. Forthcoming hw will have multiple levels, so this change preps mm code for same. It is also fun to try multi level

Re: [PATCH v2 00/19] ARC mm updates: support 3/4 levels and asm-generic/pgalloc

2021-08-16 Thread Vineet Gupta
On 8/15/21 2:26 AM, Mike Rapoport wrote: On Thu, Aug 12, 2021 at 04:37:34PM -0700, Vineet Gupta wrote: Hi, Big pile of ARC mm changes to prepare for 3 or 4 levels of paging (from current 2) needed for new hardware page walked MMUv6 (in aRCv3 ISA based cores). Most of these changes are incremen

[PATCH] ARC: export clear_user_page() for modules

2021-08-16 Thread Randy Dunlap
ad.org --- arch/arc/mm/cache.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210816.orig/arch/arc/mm/cache.c +++ linux-next-20210816/arch/arc/mm/cache.c @@ -1041,7 +1041,7 @@ void clear_user_page(void *to, unsigned clear_page(to); clear_bit(PG_dc

Re: [PATCH] ARC: export clear_user_page() for modules

2021-08-16 Thread Vineet Gupta
eet Gupta Cc: linux-snps-arc@lists.infradead.org Thx for the fix. Added for 5.16 ! -Vineet --- arch/arc/mm/cache.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210816.orig/arch/arc/mm/cache.c +++ linux-next-20210816/arch/arc/mm/cache.c @@ -1041,7 +1041,7 @@

[PATCH AUTOSEL 5.13 05/12] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

[PATCH AUTOSEL 5.10 4/9] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

[PATCH AUTOSEL 5.4 2/5] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

[PATCH AUTOSEL 4.19 2/4] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

[PATCH AUTOSEL 4.14 2/2] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

[PATCH AUTOSEL 4.9 2/2] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

[PATCH AUTOSEL 4.4 2/2] ARC: Fix CONFIG_STACKDEPOT

2021-08-16 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld:

Re: [PATCH 4/7] arc: replace cc-option-yn uses with cc-option

2021-08-16 Thread Nathan Chancellor
On 8/16/2021 5:21 PM, 'Nick Desaulniers' via Clang Built Linux wrote: cc-option-yn can be replaced with cc-option. ie. Checking for support: ifeq ($(call cc-option-yn,$(FLAG)),y) becomes: ifneq ($(call cc-option,$(FLAG)),) Checking for lack of support: ifeq ($(call cc-option-yn,$(FLAG)),n) becom

[PATCH 4/7] arc: replace cc-option-yn uses with cc-option

2021-08-16 Thread Nick Desaulniers
cc-option-yn can be replaced with cc-option. ie. Checking for support: ifeq ($(call cc-option-yn,$(FLAG)),y) becomes: ifneq ($(call cc-option,$(FLAG)),) Checking for lack of support: ifeq ($(call cc-option-yn,$(FLAG)),n) becomes: ifeq ($(call cc-option,$(FLAG)),) This allows us to pursue removing

Re: [PATCH v2 16/19] ARC: mm: support 3 levels of page tables

2021-08-16 Thread Mike Rapoport
On Mon, Aug 16, 2021 at 12:53:46PM -0700, Vineet Gupta wrote: > On 8/15/21 2:27 AM, Mike Rapoport wrote: > > On Thu, Aug 12, 2021 at 04:37:50PM -0700, Vineet Gupta wrote: > > > ARCv2 MMU is software walked and Linux implements 2 levels of paging: > > > pgd/pte. > > > Forthcoming hw will have multi

Re: [PATCH v2 00/19] ARC mm updates: support 3/4 levels and asm-generic/pgalloc

2021-08-16 Thread Mike Rapoport
On Mon, Aug 16, 2021 at 12:58:18PM -0700, Vineet Gupta wrote: > On 8/15/21 2:26 AM, Mike Rapoport wrote: > > On Thu, Aug 12, 2021 at 04:37:34PM -0700, Vineet Gupta wrote: > > > Hi, > > > > > > Big pile of ARC mm changes to prepare for 3 or 4 levels of paging (from > > > current 2) needed for new h