kisskb: OK linus/axs101_defconfig/arcompact Wed May 15, 16:07

2019-05-14 Thread noreply
OK linus/axs101_defconfig/arcompact Wed May 15, 16:07 http://kisskb.ellerman.id.au/kisskb/buildresult/13804319/ Commit: Merge tag 'ovl-update-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs 7e9890a3500d95c01511a4c45b7e7192dfa47ae2 Compiler: arc-buildroot-linux-ucli

kisskb: OK linus/axs103_smp_defconfig/arcv2 Wed May 15, 16:06

2019-05-14 Thread noreply
OK linus/axs103_smp_defconfig/arcv2 Wed May 15, 16:06 http://kisskb.ellerman.id.au/kisskb/buildresult/13804318/ Commit: Merge tag 'ovl-update-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs 7e9890a3500d95c01511a4c45b7e7192dfa47ae2 Compiler: arc-linux-gcc.br_real (B

[PATCH 9/9] ARC: mm: do_page_fault refactor #8: release mmap_sem sooner

2019-05-14 Thread Vineet Gupta
In case of successful page fault handling, this patch releases mmap_sem before updating the perf stat event for major/minor faults. So even though the contention reduction is NOT supe rhigh, it is still an improvement. There's an additional code size improvement as we only have 2 up_read() calls n

[PATCH 1/9] ARC: mm: SIGSEGV userspace trying to access kernel virtual memory

2019-05-14 Thread Vineet Gupta
From: Eugeniy Paltsev As of today if userspace process tries to access a kernel virtual addres (0x7000_ to 0x7_) such that a legit kernel mapping already exists, that process hangs instead of being killed with SIGSEGV Fix that by ensuring that do_page_fault() handles kenrel vaddr onl

[PATCH 6/9] ARC: mm: do_page_fault refactor #5: scoot no_context to end

2019-05-14 Thread Vineet Gupta
This is different than the rest of signal handling stuff No functional change Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c index 7f211b493170..c0a60aeb4abd

[PATCH 7/9] ARC: mm: do_page_fault refactor #6: error handlers to use same pattern

2019-05-14 Thread Vineet Gupta
- up_read - if !user_mode - whatever error handling Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c index c0a60aeb4abd..0e1a222a97ad 100644 --- a/arch/arc/

[PATCH 8/9] ARC: mm: do_page_fault refactor #7: fold the various error handling

2019-05-14 Thread Vineet Gupta
- single up_read() call vs. 4 - so much easier on eyes Technically it seems like @bad_area label moved up, but even in old regime, it was a special case of delivering SIGSEGV unconditionally which we now do as well, although with checks. Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 4

[PATCH 5/9] ARC: mm: do_page_fault refactor #4: consolidate retry related logic

2019-05-14 Thread Vineet Gupta
stats update code can now elide "retry" check and additional level of indentation since all retry handling is done ahead of it already Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 60 +++-- 1 file changed, 31 insertions(+), 29 deletions(-)

[PATCH 4/9] ARC: mm: do_page_fault refactor #3: tidyup vma access permission code

2019-05-14 Thread Vineet Gupta
The coding pattern to NOT intialize variables at declaration time but rather near code which makes us eof them makes it much easier to grok the overall logic, specially when the init is not simply 0 or 1 Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 39 +--

[PATCH 3/9] ARC: mm: do_page_fault refactor #2: remove short lived variable

2019-05-14 Thread Vineet Gupta
Compiler will do this anyways, still.. No functional change. Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c index 94d242740ac5..f1175685d914 100644 --- a/arch/arc/mm/fault.c

[PATCH 0/9] ARC do_page_fault rework

2019-05-14 Thread Vineet Gupta
This was on my todo list and Eugeniy's patch in this area pestered me to finish it finally. The ideas it to cleanup/tidyup ancient do_page_fault() code and make it more readable and hopefully better generated code. There are only a few/subtle functional changes - Eugeniy's fix to prevent user spa

[PATCH 2/9] ARC: mm: do_page_fault refactor #1: remove label @good_area

2019-05-14 Thread Vineet Gupta
Invert the condition for stack expansion. No functional change Signed-off-by: Vineet Gupta --- arch/arc/mm/fault.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c index 6836095251ed..94d242740ac5 100644 --- a/arch/arc/mm/

kisskb: OK linus/axs101_defconfig/arcompact Wed May 15, 08:22

2019-05-14 Thread noreply
OK linus/axs101_defconfig/arcompact Wed May 15, 08:22 http://kisskb.ellerman.id.au/kisskb/buildresult/13802662/ Commit: Merge tag 'iommu-updates-v5.2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/joro/iommu a13f0655503a4a89df67fdc7cac6a7810795d4b3 Compiler: arc-buildroot-lin

kisskb: OK linus/axs103_smp_defconfig/arcv2 Wed May 15, 08:21

2019-05-14 Thread noreply
OK linus/axs103_smp_defconfig/arcv2 Wed May 15, 08:21 http://kisskb.ellerman.id.au/kisskb/buildresult/13802661/ Commit: Merge tag 'iommu-updates-v5.2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/joro/iommu a13f0655503a4a89df67fdc7cac6a7810795d4b3 Compiler: arc-linux-gcc.br_

Re: [PATCH] ARC: [hsdk] Use rgmii-id mode for ethernet phy

2019-05-14 Thread Trent Piepho
On Tue, 2019-05-14 at 18:22 +, Alexey Brodkin wrote: > > Subject: [PATCH] ARC: [hsdk] Use rgmii-id mode for ethernet phy > > > > If internal delays are desired on the RGMII link, "rgmii-id" should be > > used as the phy-mode rather than "rgmii" . > > > > This dts has properties to set the del

RE: [PATCH] ARC: [hsdk] Use rgmii-id mode for ethernet phy

2019-05-14 Thread Alexey Brodkin
Hi Trent, > -Original Message- > From: Trent Piepho > Sent: Tuesday, May 14, 2019 8:40 PM > To: linux-snps-arc@lists.infradead.org > Cc: Trent Piepho ; Alexey Brodkin > ; Vineet Gupta > > Subject: [PATCH] ARC: [hsdk] Use rgmii-id mode for ethernet phy > > If internal delays are desired

[PATCH] ARC: [hsdk] Use rgmii-id mode for ethernet phy

2019-05-14 Thread Trent Piepho
If internal delays are desired on the RGMII link, "rgmii-id" should be used as the phy-mode rather than "rgmii" . This dts has properties to set the delay values, but they are ignored. I suspect this is a mistake. While the driver should disable delay based on the current DT, it does not, and ins