vidia.com>
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Andrew Morton <a...@linux-foundation.org>
---
mm/migrate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/migrate.c b/mm/migrate.c
index 6954c14..e00814c 100644
--- a/mm/migrate.c
+++ b/mm/migr
From: Mark Hairgrove
Index was incremented before last use and thus the second array
could dereference to an invalid address (not mentioning the fact
that it did not properly clear the entry we intended to clear).
Signed-off-by: Mark Hairgrove
Signed-off-by: Jérôme Glisse
Cc: Andrew Morton
From: Ralph Campbell <rcampb...@nvidia.com>
Constify pointer parameter to avoid issue when use from code that
only has const struct page pointer to use in the first place.
Signed-off-by: Ralph Campbell <rcampb...@nvidia.com>
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
From: Ralph Campbell
Constify pointer parameter to avoid issue when use from code that
only has const struct page pointer to use in the first place.
Signed-off-by: Ralph Campbell
Signed-off-by: Jérôme Glisse
Cc: Andrew Morton
---
include/linux/hmm.h | 4 ++--
1 file changed, 2 insertions
as happening.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Dan Williams <dan.j.willi...@intel.com>
Cc: Ross Zwisler <ross.zwis...@linux.intel.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Bernhard Held <berny...@gmx.de>
Cc: Adam Borowski &l
as happening.
Signed-off-by: Jérôme Glisse
Cc: Dan Williams
Cc: Ross Zwisler
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
Cc: Radim Krčmář
Cc: Wanpeng Li
Cc: Paolo Bonzini
Cc: Takashi Iwai
Cc: Nadav Amit
Cc: Mike Galbraith
Cc: Kirill A. Shutemov
Cc
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Leon Roma
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: Leon Romanovsky
Cc: linux-r
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: l
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
C
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: linux-r...@vger.kernel.org
Cc: Dean
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: amd-...@lists.freedesktop.org
Cc: Felix
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: li
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: S
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: linuxppc-...@lists.ozlabs.org
Cc
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: Suravee Suthikulpanit
Cc: io
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: David Woodhou
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: David Woodhouse
Cc: io...@lists.linux
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Konrad Rze
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: Konrad Rzeszutek Wilk
Cc: Roger Pau
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Dimitri Si
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Sudee
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: Dimitri Sivanich
Cc: Jack Steiner
Cc
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: Sudeep Dutt
Cc: Ashutosh Dixit
Cc
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Paolo B
Call to mmu_notifier_invalidate_page() are replaced by call to
mmu_notifier_invalidate_range() and thus call are bracketed by
call to mmu_notifier_invalidate_range_start()/end()
Remove now useless invalidate_page callback.
Signed-off-by: Jérôme Glisse
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: k
clear
choice:
- invalidate_range_start()/end() callback (which allow you to sleep)
- invalidate_range() where you can not sleep but happen right after
page table update under page table lock
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Linus Torvalds <torva...@linux-found
clear
choice:
- invalidate_range_start()/end() callback (which allow you to sleep)
- invalidate_range() where you can not sleep but happen right after
page table update under page table lock
Signed-off-by: Jérôme Glisse
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea
happen.
Finaly the last page remove it completely so it can RIP.
Jérôme Glisse (13):
dax: update to new mmu_notifier semantic
mm/rmap: update to new mmu_notifier semantic
powerpc/powernv: update to new mmu_notifier semantic
drm/amdgpu: update to new mmu_notifier semantic
IB/umem: update
happen.
Finaly the last page remove it completely so it can RIP.
Jérôme Glisse (13):
dax: update to new mmu_notifier semantic
mm/rmap: update to new mmu_notifier semantic
powerpc/powernv: update to new mmu_notifier semantic
drm/amdgpu: update to new mmu_notifier semantic
IB/umem: update
as happening.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Dan Williams <dan.j.willi...@intel.com>
Cc: Ross Zwisler <ross.zwis...@linux.intel.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Bernhard Held <berny...@gmx.de>
Cc: Adam Borowski &l
as happening.
Signed-off-by: Jérôme Glisse
Cc: Dan Williams
Cc: Ross Zwisler
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
Cc: Radim Krčmář
Cc: Wanpeng Li
Cc: Paolo Bonzini
Cc: Takashi Iwai
Cc: Nadav Amit
Cc: Mike Galbraith
Cc: Kirill A. Shutemov
Cc: axie
https://lkml.kernel.org/r/20170804134928.l4klfcnqatni7...@black.fi.intel.com
https://marc.info/?l=kvm=150327081325160=2
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Bernhard Held <berny...@gmx.de>
Cc: Adam Borowski <ki
https://lkml.kernel.org/r/20170804134928.l4klfcnqatni7...@black.fi.intel.com
https://marc.info/?l=kvm=150327081325160=2
Signed-off-by: Jérôme Glisse
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
Cc: Radim Krčmář
Cc: Wanpeng Li
Cc: Paolo Bonzini
Cc: Takashi Iwai
Cc
mmu_notifier_invalidate_page() is now be call from under the spinlock.
But we can now rely on invalidate_range() being call afterward.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Joerg Roedel <jroe...@suse.de>
Cc: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com>
mmu_notifier_invalidate_page() is now be call from under the spinlock.
But we can now rely on invalidate_range() being call afterward.
Signed-off-by: Jérôme Glisse
Cc: Joerg Roedel
Cc: Suravee Suthikulpanit
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
Cc
mmu_notifier_invalidate_page() can now be call from under the spinlock.
Move it approprietly and add a call to mmu_notifier_invalidate_range()
for user that need to be able to sleep.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Dan Williams <dan.j.willi...@intel.com>
Cc:
mmu_notifier_invalidate_page() can now be call from under the spinlock.
Move it approprietly and add a call to mmu_notifier_invalidate_range()
for user that need to be able to sleep.
Signed-off-by: Jérôme Glisse
Cc: Dan Williams
Cc: Ross Zwisler
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam
...@black.fi.intel.com
https://marc.info/?l=kvm=150327081325160=2
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Bernhard Held <berny...@gmx.de>
Cc: Adam Borowski <kilob...@angband.pl>
Cc: Andrea Arcangeli <aar
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Bernhard Held <berny...@gmx.de>
Cc: Adam Borowski <kilob...@angband.pl>
Cc: Andrea Arcangeli <aarca...@redhat.com>
Cc: Radim Krčmář <rkrc...@redhat.com>
Cc:
...@black.fi.intel.com
https://marc.info/?l=kvm=150327081325160=2
Signed-off-by: Jérôme Glisse
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
Cc: Radim Krčmář
Cc: Wanpeng Li
Cc: Paolo Bonzini
Cc: Takashi Iwai
Cc: Nadav Amit
Cc: Mike Galbraith
Cc: Kirill
Signed-off-by: Jérôme Glisse
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
Cc: Radim Krčmář
Cc: Wanpeng Li
Cc: Paolo Bonzini
Cc: Takashi Iwai
Cc: Nadav Amit
Cc: Mike Galbraith
Cc: Kirill A. Shutemov
Cc: axie
Cc: Andrew Morton
---
include/linux
ads:
https://lkml.kernel.org/r/20170809204333.27485-1-jgli...@redhat.com
https://lkml.kernel.org/r/20170804134928.l4klfcnqatni7...@black.fi.intel.com
https://marc.info/?l=kvm=150327081325160=2
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Linus Torvalds <torva...@linux-foundation.org
ads:
https://lkml.kernel.org/r/20170809204333.27485-1-jgli...@redhat.com
https://lkml.kernel.org/r/20170804134928.l4klfcnqatni7...@black.fi.intel.com
https://marc.info/?l=kvm=150327081325160=2
Signed-off-by: Jérôme Glisse
Cc: Linus Torvalds
Cc: Bernhard Held
Cc: Adam Borowski
Cc: Andrea Arcangeli
:
- removed outdated section
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
---
Documentation/vm/hmm.txt | 384 +++
MAINTAINERS | 7 +
2 files changed, 391 insertions(+)
create mode 100644 Documentation/vm/hmm.txt
diff
:
- removed outdated section
Signed-off-by: Jérôme Glisse
---
Documentation/vm/hmm.txt | 384 +++
MAINTAINERS | 7 +
2 files changed, 391 insertions(+)
create mode 100644 Documentation/vm/hmm.txt
diff --git a/Documentation/vm/hmm.txt b
rdware in the future.
Changed since v2:
- s/device unaddressable/device private/
Changed since v1:
- Kconfig logic (depend on x86-64 and use ARCH_HAS pattern)
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: J
-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: John Hubbard <jhubb...@nvidia.com>
Signed-off-by: Mark Hairgrove <mhairgr...@nvidia.com>
Signed-off-by: Sherry Cheung <sche...@nvidia.com>
Signed-off-by: Su
pattern)
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: John Hubbard <jhubb...@nvidia.com>
Signed-off-by: Mark Hairgrove <mhairgr...@nvidia.com>
Signed-off-by: Sherry Cheung <sche...@nvidia.com>
Sig
memory (from device unaddressable)
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Acked-by: Dan Williams <dan.j.willi...@intel.com>
Cc: Ross Zwisler <ross.zwis...@linux.intel.com>
---
fs/proc/task_mmu.c | 7 +
include/linux/ioport.h | 1 +
include/lin
rdware in the future.
Changed since v2:
- s/device unaddressable/device private/
Changed since v1:
- Kconfig logic (depend on x86-64 and use ARCH_HAS pattern)
Signed-off-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by:
-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by: Sherry Cheung
Signed-off-by: Subhash Gutti
---
include/linux/hmm.h | 55 +-
mm/hmm.c| 285
2
pattern)
Signed-off-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by: Sherry Cheung
Signed-off-by: Subhash Gutti
---
include/linux/hmm.h | 152 +++
include/linux/mm_types.h
memory (from device unaddressable)
Signed-off-by: Jérôme Glisse
Acked-by: Dan Williams
Cc: Ross Zwisler
---
fs/proc/task_mmu.c | 7 +
include/linux/ioport.h | 1 +
include/linux/memremap.h | 73
include/linux/mm.h | 12
gic, it is the same as it was
before this patch.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Johannes Weiner <han...@cmpxchg.org>
Cc: Michal Hocko <mho...@kernel.org>
Cc: Vladimir Davydov <vdavydov@gmail.com>
Cc: cgro...@vger.kernel.org
This handle page fault on behalf of device driver, unlike handle_mm_fault()
it does not trigger migration back to system memory for device memory.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: John Hu
gic, it is the same as it was
before this patch.
Signed-off-by: Jérôme Glisse
Cc: Johannes Weiner
Cc: Michal Hocko
Cc: Vladimir Davydov
Cc: cgro...@vger.kernel.org
---
mm/memcontrol.c | 168 +++-
1 file changed, 92 insertions(+), 76 deletions(-)
diff --
This handle page fault on behalf of device driver, unlike handle_mm_fault()
it does not trigger migration back to system memory for device memory.
Signed-off-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by: Sherry Cheung
since v1:
- use static key to disable special code path in put_page() by
default
- uninline put_zone_device_private_page()
- fix build issues with some kernel config related to header
inter-dependency
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Kirill A. Shutemov <kir
since v1:
- use static key to disable special code path in put_page() by
default
- uninline put_zone_device_private_page()
- fix build issues with some kernel config related to header
inter-dependency
Signed-off-by: Jérôme Glisse
Cc: Kirill A. Shutemov
Cc: Dan Williams
Cc: Ross
device_initcall() and drop everything that is module specific
Changed since v1:
- Improve commit message
- Add drvdata parameter to set on struct device
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: John Hubbard <jhub
device_initcall() and drop everything that is module specific
Changed since v1:
- Improve commit message
- Add drvdata parameter to set on struct device
Signed-off-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by: Sherry Cheung
- make this x86-64 only for now
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: John Hubbard <jhubb...@nvidia.com>
Signed-off-by: Mark Hairgrove <mhairgr...@nvidia.com>
Signed-off-by: Sherry Cheung <
- make this x86-64 only for now
Signed-off-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by: Sherry Cheung
Signed-off-by: Subhash Gutti
Signed-off-by: Balbir Singh
---
include/linux/hmm.h | 155
-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Kirill A. Shutemov <kirill.shute...@linux.intel.com>
---
include/linux/migrate.h | 10 +++-
mm/migrate.c| 149 +++-
mm/page_vma_mapped.c| 10
mm/rmap.c | 25
-off-by: Jérôme Glisse
Cc: Kirill A. Shutemov
---
include/linux/migrate.h | 10 +++-
mm/migrate.c| 149 +++-
mm/page_vma_mapped.c| 10
mm/rmap.c | 25
4 files changed, 164 insertions(+), 30 deletions
Common case for migration of virtual address range is page are map
only once inside the vma in which migration is taking place. Because
we already walk the CPU page table for that range we can directly do
the unmap there and setup special migration swap entry.
Signed-off-by: Jérôme Glisse <j
Common case for migration of virtual address range is page are map
only once inside the vma in which migration is taking place. Because
we already walk the CPU page table for that range we can directly do
the unmap there and setup special migration swap entry.
Signed-off-by: Jérôme Glisse
Signed
for page with single mapping
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Signed-off-by: Evgeny Baskakov <ebaska...@nvidia.com>
Signed-off-by: John Hubbard <jhubb...@nvidia.com>
Signed-off-by: Mark Hairgrove <mhairgr...@nvidia.com>
Signed-off-by: Sherry Cheung <sch
for page with single mapping
Signed-off-by: Jérôme Glisse
Signed-off-by: Evgeny Baskakov
Signed-off-by: John Hubbard
Signed-off-by: Mark Hairgrove
Signed-off-by: Sherry Cheung
Signed-off-by: Subhash Gutti
---
include/linux/migrate.h | 104 ++
mm/migrate.c| 492
Unlike unaddressable memory, coherent device memory has a real
resource associated with it on the system (as CPU can address
it). Add a new helper to hotplug such memory within the HMM
framework.
Changed since v2:
- s/host/public
Changed since v1:
- s/public/host
Signed-off-by: Jérôme Glisse
ne its
implementation and select CONFIG_ARCH_HAS_ADD_PAGES. All others use
the currently existing __add_pages.
Signed-off-by: Michal Hocko <mho...@suse.com>
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Acked-by: Balbir Singh <bsinghar...@gmail.com>
---
arch/x86/Kconfig
Unlike unaddressable memory, coherent device memory has a real
resource associated with it on the system (as CPU can address
it). Add a new helper to hotplug such memory within the HMM
framework.
Changed since v2:
- s/host/public
Changed since v1:
- s/public/host
Signed-off-by: Jérôme Glisse
and select CONFIG_ARCH_HAS_ADD_PAGES. All others use
the currently existing __add_pages.
Signed-off-by: Michal Hocko
Signed-off-by: Jérôme Glisse
Acked-by: Balbir Singh
---
arch/x86/Kconfig | 4
arch/x86/mm/init_64.c | 22 +++---
include/linux
since v1:
- 5 level page table fix
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
---
include/linux/migrate.h | 9 +++
mm/migrate.c| 205 +---
2 files changed, 205 insertions(+), 9 deletions(-)
diff --git a/include/linux/migra
since v4:
- added memory cgroup change to this patch
Changed since v3:
- s/public/public (going back)
Changed since v2:
- s/public/public
- add proper include in migrate.c and drop useless #if/#endif
Changed since v1:
- Kconfig and #if/#else cleanup
Signed-off-by: Jérôme Glisse <j
since v1:
- 5 level page table fix
Signed-off-by: Jérôme Glisse
---
include/linux/migrate.h | 9 +++
mm/migrate.c| 205 +---
2 files changed, 205 insertions(+), 9 deletions(-)
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
since v4:
- added memory cgroup change to this patch
Changed since v3:
- s/public/public (going back)
Changed since v2:
- s/public/public
- add proper include in migrate.c and drop useless #if/#endif
Changed since v1:
- Kconfig and #if/#else cleanup
Signed-off-by: Jérôme Glisse
Cc: Aneesh
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1404788.html
v24 https://lwn.net/Articles/726691/
Jérôme Glisse (18):
hmm: heterogeneous memory management documentation v3
mm/hmm: heterogeneous memory management (HMM for short) v5
mm/hmm/mirror: mirror process address space
for thing like HMM (see include/linux/hmm.h).
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
---
fs/aio.c | 8 +++
fs/f2fs/data.c | 5 -
fs/hugetlbfs/inode.c | 5 -
fs/ubifs/file.c | 5 -
include/linux/migrate.h
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1404788.html
v24 https://lwn.net/Articles/726691/
Jérôme Glisse (18):
hmm: heterogeneous memory management documentation v3
mm/hmm: heterogeneous memory management (HMM for short) v5
mm/hmm/mirror: mirror process address space
for thing like HMM (see include/linux/hmm.h).
Signed-off-by: Jérôme Glisse
---
fs/aio.c | 8 +++
fs/f2fs/data.c | 5 -
fs/hugetlbfs/inode.c | 5 -
fs/ubifs/file.c | 5 -
include/linux/migrate.h | 5 +
include/linux
device memory behave and why
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Acked-by: Balbir Singh <bsinghar...@gmail.com>
Cc: Johannes Weiner <han...@cmpxchg.org>
Cc: Michal Hocko <mho...@kernel.org>
Cc: Vladimir Davydov <vdavydov@gmail.com>
Cc: cgro...@vger.ker
device memory behave and why
Signed-off-by: Jérôme Glisse
Acked-by: Balbir Singh
Cc: Johannes Weiner
Cc: Michal Hocko
Cc: Vladimir Davydov
Cc: cgro...@vger.kernel.org
---
kernel/memremap.c | 1 +
mm/memcontrol.c | 52
2 files changed, 49
since v3:
- s/public/public (going back)
Changed since v2:
- s/public/public
- add proper include in migrate.c and drop useless #if/#endif
Changed since v1:
- Kconfig and #if/#else cleanup
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Balbir Singh <balb...@au1.ibm.com>
Cc:
since v3:
- s/public/public (going back)
Changed since v2:
- s/public/public
- add proper include in migrate.c and drop useless #if/#endif
Changed since v1:
- Kconfig and #if/#else cleanup
Signed-off-by: Jérôme Glisse
Cc: Balbir Singh
Cc: Aneesh Kumar
Cc: Paul E. McKenney
Cc: Benjamin
the memory is (for instance on board GPU memory).
There is no functional change here.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Dan Williams <dan.j.willi...@intel.com>
Cc: Ross Zwisler <ross.zwis...@linux.intel.com>
---
include/linux/memremap.h | 4 ++--
kernel/memremap.
the memory is (for instance on board GPU memory).
There is no functional change here.
Signed-off-by: Jérôme Glisse
Cc: Dan Williams
Cc: Ross Zwisler
---
include/linux/memremap.h | 4 ++--
kernel/memremap.c| 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux
Unlike unaddressable memory, coherent device memory has a real
resource associated with it on the system (as CPU can address
it). Add a new helper to hotplug such memory within the HMM
framework.
Changed since v2:
- s/host/public
Changed since v1:
- s/public/host
Signed-off-by: Jérôme Glisse
Unlike unaddressable memory, coherent device memory has a real
resource associated with it on the system (as CPU can address
it). Add a new helper to hotplug such memory within the HMM
framework.
Changed since v2:
- s/host/public
Changed since v1:
- s/public/host
Signed-off-by: Jérôme Glisse
05 - update memory controller to properly handle
ZONE_DEVICE pages when uncharging
patch 06 - documentation patch
Previous posting:
v1 https://lkml.org/lkml/2017/4/7/638
v2 https://lwn.net/Articles/725412/
v3 https://lwn.net/Articles/727114/
v4 https://lwn.net/Articles/727692/
Jérôme
or as file back page. So from memcg
point of view we want to handle them like regular page for now at
least.
Changed since v2:
- s/host/public
Changed since v1:
- s/public/host
- add comments explaining how device memory behave and why
Signed-off-by: Jérôme Glisse <jgli...@redhat.com&
gic, it is the same as it was
before this patch.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Johannes Weiner <han...@cmpxchg.org>
Cc: Michal Hocko <mho...@kernel.org>
Cc: Vladimir Davydov <vdavydov@gmail.com>
Cc: cgro...@vger.kernel.org
and unaccounted when
a process exit.
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Michal Hocko <mho...@kernel.org>
---
Documentation/vm/hmm.txt | 40
1 file changed, 40 insertions(+)
diff --git a/Documentation/vm/hmm.txt b/Documentation/vm/h
05 - update memory controller to properly handle
ZONE_DEVICE pages when uncharging
patch 06 - documentation patch
Previous posting:
v1 https://lkml.org/lkml/2017/4/7/638
v2 https://lwn.net/Articles/725412/
v3 https://lwn.net/Articles/727114/
v4 https://lwn.net/Articles/727692/
Jérôme
or as file back page. So from memcg
point of view we want to handle them like regular page for now at
least.
Changed since v2:
- s/host/public
Changed since v1:
- s/public/host
- add comments explaining how device memory behave and why
Signed-off-by: Jérôme Glisse
Cc: Johannes Weiner
Cc
gic, it is the same as it was
before this patch.
Signed-off-by: Jérôme Glisse
Cc: Johannes Weiner
Cc: Michal Hocko
Cc: Vladimir Davydov
Cc: cgro...@vger.kernel.org
---
mm/memcontrol.c | 168 +++-
1 file changed, 92 insertions(+), 76 deletions(-)
diff --
and unaccounted when
a process exit.
Signed-off-by: Jérôme Glisse
Cc: Michal Hocko
---
Documentation/vm/hmm.txt | 40
1 file changed, 40 insertions(+)
diff --git a/Documentation/vm/hmm.txt b/Documentation/vm/hmm.txt
index 192dcdb38bd1..4d3aac9f4a5d 100644
since v2:
- s/public/host
- add proper include in migrate.c and drop useless #if/#endif
Changed since v1:
- Kconfig and #if/#else cleanup
Signed-off-by: Jérôme Glisse <jgli...@redhat.com>
Cc: Balbir Singh <balb...@au1.ibm.com>
Cc: Aneesh Kumar <aneesh.ku...@linux.vnet.ibm.
since v2:
- s/public/host
- add proper include in migrate.c and drop useless #if/#endif
Changed since v1:
- Kconfig and #if/#else cleanup
Signed-off-by: Jérôme Glisse
Cc: Balbir Singh
Cc: Aneesh Kumar
Cc: Paul E. McKenney
Cc: Benjamin Herrenschmidt
Cc: Dan Williams
Cc: Ross Zwisler
---
fs
1 - 100 of 834 matches
Mail list logo