Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-12-07 Thread Greentime Hu
2017-12-08 0:40 GMT+08:00 Al Viro : > On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: >> +void do_page_fault(unsigned long entry, unsigned long addr, >> +unsigned int error_code, struct pt_regs *regs) > [snip] >> + /* >> + * If we're

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-12-07 Thread Greentime Hu
2017-12-08 0:40 GMT+08:00 Al Viro : > On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: >> +void do_page_fault(unsigned long entry, unsigned long addr, >> +unsigned int error_code, struct pt_regs *regs) > [snip] >> + /* >> + * If we're in an interrupt or have

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-12-07 Thread Al Viro
On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: > +void do_page_fault(unsigned long entry, unsigned long addr, > +unsigned int error_code, struct pt_regs *regs) [snip] > + /* > + * If we're in an interrupt or have no user > + * context, we must not take

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-12-07 Thread Al Viro
On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: > +void do_page_fault(unsigned long entry, unsigned long addr, > +unsigned int error_code, struct pt_regs *regs) [snip] > + /* > + * If we're in an interrupt or have no user > + * context, we must not take

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-28 Thread Greentime Hu
Hi, Mark: 2017-11-27 21:51 GMT+08:00 Mark Rutland : > Hi, > > On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: >> +void do_page_fault(unsigned long entry, unsigned long addr, >> +unsigned int error_code, struct pt_regs *regs) >> +{ > >> + /*

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-28 Thread Greentime Hu
Hi, Mark: 2017-11-27 21:51 GMT+08:00 Mark Rutland : > Hi, > > On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: >> +void do_page_fault(unsigned long entry, unsigned long addr, >> +unsigned int error_code, struct pt_regs *regs) >> +{ > >> + /* >> + * As per

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-27 Thread Mark Rutland
Hi, On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: > +void do_page_fault(unsigned long entry, unsigned long addr, > +unsigned int error_code, struct pt_regs *regs) > +{ > + /* > + * As per x86, we may deadlock here. However, since the kernel only > +

Re: [PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-27 Thread Mark Rutland
Hi, On Mon, Nov 27, 2017 at 08:27:53PM +0800, Greentime Hu wrote: > +void do_page_fault(unsigned long entry, unsigned long addr, > +unsigned int error_code, struct pt_regs *regs) > +{ > + /* > + * As per x86, we may deadlock here. However, since the kernel only > +

[PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-27 Thread Greentime Hu
From: Greentime Hu This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 50 ++ arch/nds32/mm/extable.c

[PATCH v2 06/35] nds32: MMU fault handling and page table management

2017-11-27 Thread Greentime Hu
From: Greentime Hu This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 50 ++ arch/nds32/mm/extable.c| 29 +++ arch/nds32/mm/fault.c | 420