Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-07-16 Thread Leon Romanovsky
On Tue, Jul 10, 2018 at 04:14:10PM +0200, Michal Hocko wrote: > On Tue 10-07-18 16:40:40, Leon Romanovsky wrote: > > On Mon, Jul 09, 2018 at 02:29:08PM +0200, Michal Hocko wrote: > > > On Wed 27-06-18 09:44:21, Michal Hocko wrote: > > > > This is the v2 of RFC based on the feedback I've received so

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-07-10 Thread Leon Romanovsky
On Tue, Jul 10, 2018 at 04:14:10PM +0200, Michal Hocko wrote: > On Tue 10-07-18 16:40:40, Leon Romanovsky wrote: > > On Mon, Jul 09, 2018 at 02:29:08PM +0200, Michal Hocko wrote: > > > On Wed 27-06-18 09:44:21, Michal Hocko wrote: > > > > This is the v2 of RFC based on the feedback I've received so

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-25 Thread Michal Hocko
On Mon 25-06-18 12:34:43, Paolo Bonzini wrote: > On 25/06/2018 10:45, Michal Hocko wrote: > > On Mon 25-06-18 10:10:18, Paolo Bonzini wrote: > >> On 25/06/2018 09:57, Michal Hocko wrote: > >>> On Sun 24-06-18 10:11:21, Paolo Bonzini wrote: > On 22/06/2018 17:02, Michal Hocko wrote: > > @@

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-25 Thread Paolo Bonzini
On 25/06/2018 10:45, Michal Hocko wrote: > On Mon 25-06-18 10:10:18, Paolo Bonzini wrote: >> On 25/06/2018 09:57, Michal Hocko wrote: >>> On Sun 24-06-18 10:11:21, Paolo Bonzini wrote: On 22/06/2018 17:02, Michal Hocko wrote: > @@ -7215,6 +7216,8 @@ void kvm_arch_mmu_notifier_invalidate_ra

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-25 Thread Michal Hocko
On Mon 25-06-18 10:10:18, Paolo Bonzini wrote: > On 25/06/2018 09:57, Michal Hocko wrote: > > On Sun 24-06-18 10:11:21, Paolo Bonzini wrote: > >> On 22/06/2018 17:02, Michal Hocko wrote: > >>> @@ -7215,6 +7216,8 @@ void kvm_arch_mmu_notifier_invalidate_range(struct > >>> kvm *kvm, > >>> apic_add

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-25 Thread Paolo Bonzini
On 25/06/2018 09:57, Michal Hocko wrote: > On Sun 24-06-18 10:11:21, Paolo Bonzini wrote: >> On 22/06/2018 17:02, Michal Hocko wrote: >>> @@ -7215,6 +7216,8 @@ void kvm_arch_mmu_notifier_invalidate_range(struct >>> kvm *kvm, >>> apic_address = gfn_to_hva(kvm, APIC_DEFAULT_PHYS_BASE >> PAGE_SHI

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-25 Thread Michal Hocko
On Sun 24-06-18 10:11:21, Paolo Bonzini wrote: > On 22/06/2018 17:02, Michal Hocko wrote: > > @@ -7215,6 +7216,8 @@ void kvm_arch_mmu_notifier_invalidate_range(struct > > kvm *kvm, > > apic_address = gfn_to_hva(kvm, APIC_DEFAULT_PHYS_BASE >> PAGE_SHIFT); > > if (start <= apic_address && ap

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-24 Thread Paolo Bonzini
On 22/06/2018 17:02, Michal Hocko wrote: > @@ -7215,6 +7216,8 @@ void kvm_arch_mmu_notifier_invalidate_range(struct kvm > *kvm, > apic_address = gfn_to_hva(kvm, APIC_DEFAULT_PHYS_BASE >> PAGE_SHIFT); > if (start <= apic_address && apic_address < end) > kvm_make_all_cpus_r

Re: [Intel-gfx] [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-22 Thread Jerome Glisse
On Fri, Jun 22, 2018 at 04:36:49PM +0100, Chris Wilson wrote: > Quoting Michal Hocko (2018-06-22 16:02:42) > > Hi, > > this is an RFC and not tested at all. I am not very familiar with the > > mmu notifiers semantics very much so this is a crude attempt to achieve > > what I need basically. It migh

Re: [Intel-gfx] [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-22 Thread Michal Hocko
On Fri 22-06-18 16:36:49, Chris Wilson wrote: > Quoting Michal Hocko (2018-06-22 16:02:42) > > Hi, > > this is an RFC and not tested at all. I am not very familiar with the > > mmu notifiers semantics very much so this is a crude attempt to achieve > > what I need basically. It might be completely

Re: [RFC PATCH] mm, oom: distinguish blockable mode for mmu notifiers

2018-06-22 Thread Michal Hocko
On Fri 22-06-18 17:13:02, Christian König wrote: > Hi Michal, > > [Adding Felix as well] > > Well first of all you have a misconception why at least the AMD graphics > driver need to be able to sleep in an MMU notifier: We need to sleep because > we need to wait for hardware operations to finish