[RFC PATCH v2 2/2] Implement sharing/unsharing of PMDs for FS/DAX

2019-06-07 Thread Larry Bassel
This is based on (but somewhat different from) what hugetlbfs does to share/unshare page tables. Signed-off-by: Larry Bassel --- include/linux/hugetlb.h | 4 ++ mm/huge_memory.c| 37 + mm/hugetlb.c| 8 ++-- mm/memory.c | 108

[RFC PATCH v2 1/2] Rename CONFIG_ARCH_WANT_HUGE_PMD_SHARE to CONFIG_ARCH_HAS_HUGE_PMD_SHARE

2019-06-07 Thread Larry Bassel
Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 2 +- arch/arm64/mm/hugetlbpage.c | 2 +- arch/x86/Kconfig| 2 +- mm/hugetlb.c| 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 697ea05

[RFC PATCH v2 0/2] Share PMDs for FS/DAX on x86

2019-06-07 Thread Larry Bassel
ementation of sharing and unsharing is based on, but somewhat different than that in mm/hugetlb.c, though some of the code from this file could be reused and thus was made non-static. Larry Bassel (2): Rename CONFIG_ARCH_WANT_HUGE_PMD_SHARE to CONFIG_ARCH_HAS_HUGE_PMD_SHARE Implement sharing

Re: [PATCH, RFC 2/2] Implement sharing/unsharing of PMDs for FS/DAX

2019-05-24 Thread Larry Bassel
On 14 May 19 16:01, Kirill A. Shutemov wrote: > On Thu, May 09, 2019 at 09:05:33AM -0700, Larry Bassel wrote: [trim] > > --- a/mm/huge_memory.c > > +++ b/mm/huge_memory.c > > @@ -1747,6 +1747,33 @@ static inline void zap_deposited_table(struct > > mm_struct *mm, pmd_t *

Re: [PATCH, RFC 0/2] Share PMDs for FS/DAX on x86

2019-05-14 Thread Larry Bassel
On 14 May 19 15:28, Kirill A. Shutemov wrote: > On Thu, May 09, 2019 at 09:05:31AM -0700, Larry Bassel wrote: > > This patchset implements sharing of page table entries pointing > > to 2MiB pages (PMDs) for FS/DAX on x86. > > -EPARSE. > > How do you share entries? En

Re: question about page tables in DAX/FS/PMEM case

2019-02-21 Thread Larry Bassel
[adding linux-mm] On 21 Feb 19 15:41, Jerome Glisse wrote: > On Wed, Feb 20, 2019 at 03:06:22PM -0800, Larry Bassel wrote: > > I'm working on sharing page tables in the DAX/XFS/PMEM/PMD case. > > > > If multiple processes would use the identical page of PMDs corresponding &

question about page tables in DAX/FS/PMEM case

2019-02-20 Thread Larry Bassel
I'm working on sharing page tables in the DAX/XFS/PMEM/PMD case. If multiple processes would use the identical page of PMDs corresponding to a 1 GiB address range of DAX/XFS/PMEM/PMDs, presumably one can instead of populating a new PUD, just atomically increment a refcount and point to the same

question about mmap MAP_PRIVATE on PMEM/DAX/fs files

2019-02-06 Thread Larry Bassel
Is mmaping a PMEM/DAX/fs file MAP_PRIVATE supported? Is it something that people are likely to want to do? If it is supported, suppose I open a file in PMEM/DAX/fs, mmap it MAP_PRIVATE, read from the memory mapped file (with memory accesses, not the read syscall) and take a page fault which the

RFC: revisiting shared page tables

2018-12-04 Thread Larry Bassel
6.13 patch (plus fixes to the known bugs in it) and forward port it to the tip, rather than starting from scratch? Thanks. Larry Bassel

RFC: revisiting shared page tables

2018-12-04 Thread Larry Bassel
6.13 patch (plus fixes to the known bugs in it) and forward port it to the tip, rather than starting from scratch? Thanks. Larry Bassel

Re: [RFC] mm, THP: Map read-only text segments using large THP pages

2018-05-17 Thread Larry Bassel
On 17 May 18 08:23, Matthew Wilcox wrote: > > I can't find any information on what page sizes SPARC supports. > Maybe you could point me at a reference? All I've managed to find is > the architecture manuals for SPARC which believe it is not their purpose > to mandate an MMU. > Page sizes of

Re: [RFC] mm, THP: Map read-only text segments using large THP pages

2018-05-17 Thread Larry Bassel
On 17 May 18 08:23, Matthew Wilcox wrote: > > I can't find any information on what page sizes SPARC supports. > Maybe you could point me at a reference? All I've managed to find is > the architecture manuals for SPARC which believe it is not their purpose > to mandate an MMU. > Page sizes of

[PATCH v8 1/2] arm64: adjust el0_sync so that a function can be called

2014-06-03 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Acked-by: Will Deacon Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/kernel/entry.S | 19

[PATCH v8 0/2] context tracker support for arm64

2014-06-03 Thread Larry Bassel
) Changes v2 to v3: * Save/restore necessary registers in ct_user_enter and ct_user_exit * Annotate "error paths" out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm

[PATCH v8 2/2] arm64: enable context tracking

2014-06-03 Thread Larry Bassel
e by Kevin. Acked-by: Will Deacon Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S

[PATCH v8 2/2] arm64: enable context tracking

2014-06-03 Thread Larry Bassel
. Acked-by: Will Deacon will.dea...@arm.com Reviewed-by: Kevin Hilman khil...@linaro.org Tested-by: Kevin Hilman khil...@linaro.org Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include

[PATCH v8 1/2] arm64: adjust el0_sync so that a function can be called

2014-06-03 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Acked-by: Will Deacon will.dea...@arm.com Reviewed-by: Kevin Hilman khil...@linaro.org Tested-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry

[PATCH v8 0/2] context tracker support for arm64

2014-06-03 Thread Larry Bassel
) Changes v2 to v3: * Save/restore necessary registers in ct_user_enter and ct_user_exit * Annotate error paths out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable

[PATCH v7 0/2] context tracker support for arm64

2014-05-30 Thread Larry Bassel
* Annotate "error paths" out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/i

[PATCH v7 2/2] arm64: enable context tracking

2014-05-30 Thread Larry Bassel
e by Kevin. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel Acked-by: Will Deacon --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S| 39 +++- 3 files changed, 43 insert

[PATCH v7 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-30 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel Acked-by: Will Deacon --- arch/arm64/kernel/entry.S | 19 +-- 1 file changed, 13 insertions(+), 6 deletions

[PATCH v7 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-30 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org Acked-by: Will Deacon will.dea...@arm.com --- arch/arm64/kernel/entry.S | 19 +-- 1

[PATCH v7 0/2] context tracker support for arm64

2014-05-30 Thread Larry Bassel
* Annotate error paths out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm

[PATCH v7 2/2] arm64: enable context tracking

2014-05-30 Thread Larry Bassel
. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org Acked-by: Will Deacon will.dea...@arm.com --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S| 39

[PATCH v6 0/2] context tracker support for arm64

2014-05-29 Thread Larry Bassel
s v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 +++ arch/arm64/kernel/entry.S

[PATCH v6 2/2] arm64: enable context tracking

2014-05-29 Thread Larry Bassel
e by Kevin. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S| 39 +++- 3 files changed, 43 insertions(+), 1 deletion(-)

[PATCH v6 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-29 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel --- arch/arm64/kernel/entry.S | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/arch

[PATCH v6 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-29 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel --- arch/arm64/kernel/entry.S | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/arch

[PATCH v6 2/2] arm64: enable context tracking

2014-05-29 Thread Larry Bassel
e by Kevin. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S| 39 +++- 3 files changed, 43 insertions(+), 1 deletion(-)

[PATCH v6 0/2] context tracker support for arm64

2014-05-29 Thread Larry Bassel
s v1 to v2: * Save far_el1 in x26 temporarily *** BLURB HERE *** Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 +++ arch/arm64/kernel/entry.S

[PATCH v6 0/2] context tracker support for arm64

2014-05-29 Thread Larry Bassel
: * Save far_el1 in x26 temporarily *** BLURB HERE *** Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 +++ arch/arm64/kernel/entry.S| 58

[PATCH v6 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-29 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/kernel/entry.S | 19 +-- 1 file changed, 13 insertions(+), 6 deletions

[PATCH v6 2/2] arm64: enable context tracking

2014-05-29 Thread Larry Bassel
. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S| 39 +++- 3 files changed, 43

[PATCH v6 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-29 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/kernel/entry.S | 19 +-- 1 file changed, 13 insertions(+), 6 deletions

[PATCH v6 2/2] arm64: enable context tracking

2014-05-29 Thread Larry Bassel
. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 arch/arm64/kernel/entry.S| 39 +++- 3 files changed, 43

[PATCH v6 0/2] context tracker support for arm64

2014-05-29 Thread Larry Bassel
: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 4 +++ arch/arm64/kernel/entry.S| 58

Re: [PATCH v5 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-28 Thread Larry Bassel
On 28 May 14 12:27, Will Deacon wrote: > Hi Larry, > > On Mon, May 26, 2014 at 07:56:12PM +0100, Larry Bassel wrote: > > To implement the context tracker properly on arm64, > > a function call needs to be made after debugging and > > interrupts are turned on, b

Re: [PATCH v5 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-28 Thread Larry Bassel
On 28 May 14 12:27, Will Deacon wrote: Hi Larry, On Mon, May 26, 2014 at 07:56:12PM +0100, Larry Bassel wrote: To implement the context tracker properly on arm64, a function call needs to be made after debugging and interrupts are turned on, but before the lr is changed to point

[PATCH v5 0/2] context tracker support for arm64

2014-05-26 Thread Larry Bassel
registers in ct_user_enter and ct_user_exit * Annotate "error paths" out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm

[PATCH v5 2/2] arm64: enable context tracking

2014-05-26 Thread Larry Bassel
e by Kevin. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 46 3 files changed, 48 insertions(+) diff --git a/

[PATCH v5 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-26 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel --- arch/arm64/kernel/entry.S | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git

[PATCH v5 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-26 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/kernel/entry.S | 23 --- 1 file changed, 16 insertions(+), 7

[PATCH v5 0/2] context tracker support for arm64

2014-05-26 Thread Larry Bassel
registers in ct_user_enter and ct_user_exit * Annotate error paths out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig

[PATCH v5 2/2] arm64: enable context tracking

2014-05-26 Thread Larry Bassel
. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 46 3 files changed, 48

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-23 Thread Larry Bassel
On 23 May 14 15:44, Catalin Marinas wrote: > On Thu, May 22, 2014 at 11:35:20PM +0100, Larry Bassel wrote: > > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > > > To implement the context tracker properly on arm64, > > > > a function call needs to be made af

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-23 Thread Larry Bassel
On 23 May 14 15:44, Catalin Marinas wrote: On Thu, May 22, 2014 at 11:35:20PM +0100, Larry Bassel wrote: On 05/22/2014 03:27 PM, Larry Bassel wrote: To implement the context tracker properly on arm64, a function call needs to be made after debugging and interrupts are turned

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Larry Bassel
On 22 May 14 16:23, Christopher Covington wrote: > Hi Larry, > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > To implement the context tracker properly on arm64, > > a function call needs to be made after debugging and > > interrupts are turned on, but before the

[PATCH v4 0/2] context tracker support for arm64

2014-05-22 Thread Larry Bassel
el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 72 3 fil

[PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Larry Bassel
e by Kevin. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 48 3 files changed, 50 insertions(+) diff --git a/

[PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel --- arch/arm64/kernel/entry.S | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git

[PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/kernel/entry.S | 24 +--- 1 file changed, 17 insertions(+), 7

[PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Larry Bassel
. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 48 3 files changed, 50

[PATCH v4 0/2] context tracker support for arm64

2014-05-22 Thread Larry Bassel
Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 72 3 files changed

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Larry Bassel
On 22 May 14 16:23, Christopher Covington wrote: Hi Larry, On 05/22/2014 03:27 PM, Larry Bassel wrote: To implement the context tracker properly on arm64, a function call needs to be made after debugging and interrupts are turned on, but before the lr is changed to point to ret_to_user

[PATCH v3] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-12 Thread Larry Bassel
by: Stephen Boyd Tested-by: Olof Johansson Signed-off-by: Russell King Changes v2 to v3: * Do not call is_smp() as this is only defined on arm32 Changes v1 to v2: * Include ARM 7887/1 bugfix Signed-off-by: Larry Bassel Reviewed-by: Kevin Hilman --- arch/arm64/include/asm/hardirq

Re: [PATCH v2] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-12 Thread Larry Bassel
On 12 May 14 10:29, Will Deacon wrote: > On Sat, May 10, 2014 at 11:23:41PM +0100, Larry Bassel wrote: > > Support for arch_irq_work_raise() was missing from > > arm64 (a prerequisite for FULL_NOHZ). > > [...] > > > @@ -455,6 +457,14 @@ void arch_send_ca

Re: [PATCH v2] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-12 Thread Larry Bassel
On 12 May 14 10:29, Will Deacon wrote: On Sat, May 10, 2014 at 11:23:41PM +0100, Larry Bassel wrote: Support for arch_irq_work_raise() was missing from arm64 (a prerequisite for FULL_NOHZ). [...] @@ -455,6 +457,14 @@ void arch_send_call_function_single_ipi(int cpu) smp_cross_call

[PATCH v3] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-12 Thread Larry Bassel
not call is_smp() as this is only defined on arm32 Changes v1 to v2: * Include ARM 7887/1 bugfix Signed-off-by: Larry Bassel larry.bas...@linaro.org Reviewed-by: Kevin Hilman khil...@linaro.org --- arch/arm64/include/asm/hardirq.h | 2 +- arch/arm64/kernel/smp.c | 19 +++ 2

[PATCH v2] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-10 Thread Larry Bassel
Signed-off-by: Stephen Boyd Tested-by: Olof Johansson Signed-off-by: Russell King Changes v1 to v2: * Include ARM 7887/1 bugfix Signed-off-by: Larry Bassel Reviewed-by: Kevin Hilman --- arch/arm64/include/asm/hardirq.h | 2 +- arch/arm64/kernel/smp.c | 19 ++

Re: [PATCH] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-10 Thread Larry Bassel
On 09 May 14 16:57, Catalin Marinas wrote: > On Mon, May 05, 2014 at 09:48:27PM +0100, Larry Bassel wrote: > > Support for arch_irq_work_raise() was missing from > > arm64 (a prerequisite for FULL_NOHZ). > > > > This patch is based on the arm32 patch ARM 787

Re: [PATCH] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-10 Thread Larry Bassel
On 09 May 14 16:57, Catalin Marinas wrote: On Mon, May 05, 2014 at 09:48:27PM +0100, Larry Bassel wrote: Support for arch_irq_work_raise() was missing from arm64 (a prerequisite for FULL_NOHZ). This patch is based on the arm32 patch ARM 7872/1 which ports cleanly. [...] +#ifdef

[PATCH v2] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-10 Thread Larry Bassel
to v2: * Include ARM 7887/1 bugfix Signed-off-by: Larry Bassel larry.bas...@linaro.org Reviewed-by: Kevin Hilman khil...@linaro.org --- arch/arm64/include/asm/hardirq.h | 2 +- arch/arm64/kernel/smp.c | 19 +++ 2 files changed, 20 insertions(+), 1 deletion(-) diff

[PATCH v3 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-09 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel Reviewed-by: Kevin Hilman --- arch/arm64/kernel/entry.S | 27 +++ 1 file changed, 19

[PATCH v3 2/2] arm64: enable context tracking

2014-05-09 Thread Larry Bassel
a previous patch of this series). The calls to ct_user_exit are made after hw debugging has been enabled (enable_dbg). The call to ct_user_enter is made at the beginning of the kernel_exit macro. This patch is based on earlier work by Kevin Hilman. Signed-off-by: Kevin Hilman Signed-off-by: La

[PATCH v3 0/2] context tracker support for arm64

2014-05-09 Thread Larry Bassel
" out of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 +

[PATCH v3 0/2] context tracker support for arm64

2014-05-09 Thread Larry Bassel
of el0_sync with ct_user_exit Changes v1 to v2: * Save far_el1 in x26 temporarily Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel

[PATCH v3 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-09 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org Reviewed-by: Kevin Hilman khil...@linaro.org --- arch/arm64/kernel/entry.S | 27

[PATCH v3 2/2] arm64: enable context tracking

2014-05-09 Thread Larry Bassel
-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 49 3 files changed, 51 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64

Re: [PATCH v2 2/2] arm64: enable context tracking

2014-05-07 Thread Larry Bassel
On 07 May 14 11:17, Will Deacon wrote: > On Wed, May 07, 2014 at 12:32:29AM +0100, Larry Bassel wrote: > > Make calls to ct_user_enter when the kernel is exited > > and ct_user_exit when the kernel is entered (in el0_da, > > el0_ia, el0_svc, el0_irq). > > Why onl

Re: [PATCH v2 2/2] arm64: enable context tracking

2014-05-07 Thread Larry Bassel
On 07 May 14 11:17, Will Deacon wrote: On Wed, May 07, 2014 at 12:32:29AM +0100, Larry Bassel wrote: Make calls to ct_user_enter when the kernel is exited and ct_user_exit when the kernel is entered (in el0_da, el0_ia, el0_svc, el0_irq). Why only these entry points? I can reschedule

[PATCH v2 0/2] context tracker support for arm64

2014-05-06 Thread Larry Bassel
Implement and enable context tracking for arm64 (which is a prerequisite for FULL_NOHZ support). This patchset builds upon earlier work by Kevin Hilman and is based on 3.15-rc2. Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch

[PATCH v2 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-06 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel Reviewed-by: Kevin Hilman --- arch/arm64/kernel/entry.S | 14 +- 1 file changed, 9 insertions(+), 5

[PATCH v2 2/2] arm64: enable context tracking

2014-05-06 Thread Larry Bassel
. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 22 ++ 3 files changed, 24 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64

[PATCH v2 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-06 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call (save far_el1 in x26 temporarily instead). Signed-off-by: Larry Bassel larry.bas...@linaro.org Reviewed-by: Kevin Hilman khil...@linaro.org --- arch/arm64/kernel/entry.S | 14

[PATCH v2 2/2] arm64: enable context tracking

2014-05-06 Thread Larry Bassel
. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 22 ++ 3 files changed, 24 insertions(+) diff

[PATCH v2 0/2] context tracker support for arm64

2014-05-06 Thread Larry Bassel
Implement and enable context tracking for arm64 (which is a prerequisite for FULL_NOHZ support). This patchset builds upon earlier work by Kevin Hilman and is based on 3.15-rc2. Larry Bassel (2): arm64: adjust el0_sync so that a function can be called arm64: enable context tracking arch

[PATCH] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-05 Thread Larry Bassel
anyway. Signed-off-by: Stephen Boyd Reviewed-by: Kevin Hilman Cc: Frederic Weisbecker Signed-off-by: Russell King Signed-off-by: Larry Bassel Reviewed-by: Kevin Hilman --- arch/arm64/include/asm/hardirq.h | 2 +- arch/arm64/kernel/smp.c | 18 ++ 2

[PATCH] arm64: Support arch_irq_work_raise() via self IPIs

2014-05-05 Thread Larry Bassel
supported on SMP builds anyway. Signed-off-by: Stephen Boyd sb...@codeaurora.org Reviewed-by: Kevin Hilman khil...@linaro.org Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Larry Bassel larry.bas...@linaro.org Reviewed

[PATCH 3/3] arm64: enable context tracking

2014-04-27 Thread Larry Bassel
). The calls to ct_user_exit are made after hw debugging has been enabled (enable_dbg). The call to ct_user_enter is made at the end of the kernel_exit macro. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/kernel/entry.S | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 2/3] arm64: add support for context tracking

2014-04-27 Thread Larry Bassel
From: Kevin Hilman Add the macros and defines needed to implement context tracking on arm64. Signed-off-by: Kevin Hilman Signed-off-by: Larry Bassel --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 1 + arch/arm64/kernel/entry.S| 16

[PATCH 0/3] context tracker support for arm64

2014-04-27 Thread Larry Bassel
Implement and enable context tracking for arm64 (which is a prerequisite for FULL_NOHZ support). This patchset builds upon earlier work by Kevin Hilman and is based on 3.15-rc2. Kevin Hilman (1): arm64: add support for context tracking Larry Bassel (2): arm64: adjust el0_sync so

[PATCH 1/3] arm64: adjust el0_sync so that a function can be called

2014-04-27 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call. Signed-off-by: Larry Bassel Reviewed-by: Kevin Hilman --- arch/arm64/kernel/entry.S | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kernel

[PATCH 0/3] context tracker support for arm64

2014-04-27 Thread Larry Bassel
Implement and enable context tracking for arm64 (which is a prerequisite for FULL_NOHZ support). This patchset builds upon earlier work by Kevin Hilman and is based on 3.15-rc2. Kevin Hilman (1): arm64: add support for context tracking Larry Bassel (2): arm64: adjust el0_sync so

[PATCH 1/3] arm64: adjust el0_sync so that a function can be called

2014-04-27 Thread Larry Bassel
. For similar reasons, defer the setting of x0 so that it doesn't need to be saved around the function call. Signed-off-by: Larry Bassel larry.bas...@linaro.org Reviewed-by: Kevin Hilman khil...@linaro.org --- arch/arm64/kernel/entry.S | 12 +++- 1 file changed, 7 insertions(+), 5 deletions

[PATCH 2/3] arm64: add support for context tracking

2014-04-27 Thread Larry Bassel
From: Kevin Hilman khil...@linaro.org Add the macros and defines needed to implement context tracking on arm64. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm

[PATCH 3/3] arm64: enable context tracking

2014-04-27 Thread Larry Bassel
). The calls to ct_user_exit are made after hw debugging has been enabled (enable_dbg). The call to ct_user_enter is made at the end of the kernel_exit macro. Signed-off-by: Kevin Hilman khil...@linaro.org Signed-off-by: Larry Bassel larry.bas...@linaro.org --- arch/arm64/kernel/entry.S | 5 + 1