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
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
ntation 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/un
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 *
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
[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 correspond
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 PU
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 ke
with Dave's 2.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
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 8K
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
/will/linux.git)
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
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
nd 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 | 1
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
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 dele
er_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 | 4 +++
arch/arm64/kerne
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(-)
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
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
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(-)
er_exit
Changes 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/kerne
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 befo
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 context tracking
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/
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 --
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
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
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/entry.S| 72 -
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/
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 --
lof Johansson
Signed-off-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
---
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
Reported-by: Olof Johansson
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/ker
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
.
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 change
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
ot; 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 +
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
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
.
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(
.
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
SMP builds 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 +++
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 a
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
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 that a
. 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/k
47 matches
Mail list logo