Re: [PATCH] ARC: Improve handling of fatal signals in do_page_fault()

2018-08-02 Thread Alexey Brodkin
Hi Vineet,

On Wed, 2018-08-01 at 12:49 -0700, Vineet Gupta wrote:
> Hi Alexey,
> 
> I was finally forced to revisit this for my glibc tst-tls3-malloc deadlock. 
> And
> indeed with this change we don'tsee the deadlock. But see below..
> 
> 
> > @@ -139,12 +139,16 @@ void do_page_fault(unsigned long address, struct 
> > pt_regs *regs)
> >  */
> > fault = handle_mm_fault(vma, address, flags);
> >  
> > -   /* If Pagefault was interrupted by SIGKILL, exit page fault "early" */
> > +   /* If we need to retry but a fatal signal is pending, handle the
> > +* signal first. We do not need to release the mmap_sem because
> > +* it would already be released in __lock_page_or_retry in
> > +* mm/filemap.c. */
> 
> Right and we were already doing that: up_read() was called for !VM_FAULT_RETRY
> meaning we relied on the core mm to do that already for VM_FAULT_RETRY case.
> 
> The issue here was additional check for VM_FAULT_ERROR. Typically this is not 
> set
> by handle_mm_fault() meaning for common user faults with signal pending, we 
> were
> not calling up_read, hence the ensuing deadlock.

Right.

> > if (unlikely(fatal_signal_pending(current))) {
> > -   if ((fault & VM_FAULT_ERROR) && !(fault & VM_FAULT_RETRY))
> > -   up_read(&mm->mmap_sem);
> > -   if (user_mode(regs))
> > +   if (fault & VM_FAULT_RETRY) {
> > +   if (!user_mode(regs))
> > +   goto no_context;
> 
> Given this code is really tricky, lets only solve one problem with 1 one 
> patch.

Agree.

> > return;
> > +   }
> > }
> 
> The fault handling is spaghetti mess of checks and more checks and has not 
> really
> been touched since upstreaming. I need to clean it up and essentially rewrite 
> it
> for v4.19

So would you like me to send a re-spin with less changes as discussed above so
we have something better for now and for back-porting to stable branches.

Or you're going to rewrite all that sometime soon yourself?

-Alexey
___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc


[PATCH] ARC: Remove CONFIG_DEFAULT_HOSTNAME from defconfigs

2018-08-02 Thread Alexey Brodkin
There's no reason to set the same hostname to all ARC boards
by default. It usually gets overwritten by init scripts anyways.

Signed-off-by: Alexey Brodkin 
---
 arch/arc/configs/axs101_defconfig  | 1 -
 arch/arc/configs/axs103_defconfig  | 1 -
 arch/arc/configs/axs103_smp_defconfig  | 1 -
 arch/arc/configs/haps_hs_defconfig | 1 -
 arch/arc/configs/haps_hs_smp_defconfig | 1 -
 arch/arc/configs/hsdk_defconfig| 1 -
 arch/arc/configs/nsim_700_defconfig| 1 -
 arch/arc/configs/nsim_hs_defconfig | 1 -
 arch/arc/configs/nsim_hs_smp_defconfig | 1 -
 arch/arc/configs/nsimosci_defconfig| 1 -
 arch/arc/configs/nsimosci_hs_defconfig | 1 -
 arch/arc/configs/nsimosci_hs_smp_defconfig | 1 -
 arch/arc/configs/vdk_hs38_defconfig| 1 -
 arch/arc/configs/vdk_hs38_smp_defconfig| 1 -
 14 files changed, 14 deletions(-)

diff --git a/arch/arc/configs/axs101_defconfig 
b/arch/arc/configs/axs101_defconfig
index 55686cc4bb19..3dbb2b3f60af 100644
--- a/arch/arc/configs/axs101_defconfig
+++ b/arch/arc/configs/axs101_defconfig
@@ -1,4 +1,3 @@
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/axs103_defconfig 
b/arch/arc/configs/axs103_defconfig
index 20fb8e4e7337..4d7b85d4b2dc 100644
--- a/arch/arc/configs/axs103_defconfig
+++ b/arch/arc/configs/axs103_defconfig
@@ -1,4 +1,3 @@
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/axs103_smp_defconfig 
b/arch/arc/configs/axs103_smp_defconfig
index 51d1e866ce94..92417e2e39f3 100644
--- a/arch/arc/configs/axs103_smp_defconfig
+++ b/arch/arc/configs/axs103_smp_defconfig
@@ -1,4 +1,3 @@
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/haps_hs_defconfig 
b/arch/arc/configs/haps_hs_defconfig
index ab231c040efe..4984d9ed1573 100644
--- a/arch/arc/configs/haps_hs_defconfig
+++ b/arch/arc/configs/haps_hs_defconfig
@@ -1,4 +1,3 @@
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/haps_hs_smp_defconfig 
b/arch/arc/configs/haps_hs_smp_defconfig
index cf449cbf440d..1e93690b4a4f 100644
--- a/arch/arc/configs/haps_hs_smp_defconfig
+++ b/arch/arc/configs/haps_hs_smp_defconfig
@@ -1,4 +1,3 @@
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
index ba101d12515f..200d4ee436bc 100644
--- a/arch/arc/configs/hsdk_defconfig
+++ b/arch/arc/configs/hsdk_defconfig
@@ -1,4 +1,3 @@
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 CONFIG_SYSVIPC=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
 CONFIG_NO_HZ_IDLE=y
diff --git a/arch/arc/configs/nsim_700_defconfig 
b/arch/arc/configs/nsim_700_defconfig
index 31c2c70b34a1..0b59778604e4 100644
--- a/arch/arc/configs/nsim_700_defconfig
+++ b/arch/arc/configs/nsim_700_defconfig
@@ -1,5 +1,4 @@
 # CONFIG_LOCALVERSION_AUTO is not set
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/nsim_hs_defconfig 
b/arch/arc/configs/nsim_hs_defconfig
index a578c721d50f..e829b683887d 100644
--- a/arch/arc/configs/nsim_hs_defconfig
+++ b/arch/arc/configs/nsim_hs_defconfig
@@ -1,5 +1,4 @@
 # CONFIG_LOCALVERSION_AUTO is not set
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
diff --git a/arch/arc/configs/nsim_hs_smp_defconfig 
b/arch/arc/configs/nsim_hs_smp_defconfig
index 37d7395f3272..bef937c551f8 100644
--- a/arch/arc/configs/nsim_hs_smp_defconfig
+++ b/arch/arc/configs/nsim_hs_smp_defconfig
@@ -1,5 +1,4 @@
 # CONFIG_LOCALVERSION_AUTO is not set
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 # CONFIG_CROSS_MEMORY_ATTACH is not set
 CONFIG_HIGH_RES_TIMERS=y
diff --git a/arch/arc/configs/nsimosci_defconfig 
b/arch/arc/configs/nsimosci_defconfig
index 1e1470e2a7f0..ac601e33bb47 100644
--- a/arch/arc/configs/nsimosci_defconfig
+++ b/arch/arc/configs/nsimosci_defconfig
@@ -1,5 +1,4 @@
 # CONFIG_LOCALVERSION_AUTO is not set
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
diff --git a/arch/arc/configs/nsimosci_hs_defconfig 
b/arch/arc/configs/nsimosci_hs_defconfig
index 084a6e42685b..fef290c65e4c 100644
--- a/arch/arc/configs/nsimosci_hs_defconfig
+++ b/arch/arc/configs/nsimosci_hs_defconfig
@@ -1,5 +1,4 @@
 # CONFIG_LOCALVERSION_AUTO is not set
-CONFIG_DEFAULT_HOSTNAME="ARCLinux"
 # CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
diff --git a/arch/arc/configs/nsimosci_hs_smp_defconfig 
b/arch/arc/configs/nsimosci_hs_smp_defconfig
index f36d47990415..c0d19623aa82 100644
--- a/arch/arc/configs/nsimosci_hs_smp_defcon

[PATCH] ARC: [plat-axs10x] Enable SWAP

2018-08-02 Thread Alexey Brodkin
SWAP support on ARC was fixed earlier by
commit 6e3761145a9b ("ARC: Fix CONFIG_SWAP")
so now we may safely enable it on platforms that
have external media like USB and SD-card.

Signed-off-by: Alexey Brodkin 
Cc: sta...@vger.kernel.org # 6e3761145a9b: ARC: Fix CONFIG_SWAP
---
 arch/arc/configs/axs101_defconfig | 1 -
 arch/arc/configs/axs103_defconfig | 1 -
 arch/arc/configs/axs103_smp_defconfig | 1 -
 3 files changed, 3 deletions(-)

diff --git a/arch/arc/configs/axs101_defconfig 
b/arch/arc/configs/axs101_defconfig
index 3dbb2b3f60af..96b7258a76be 100644
--- a/arch/arc/configs/axs101_defconfig
+++ b/arch/arc/configs/axs101_defconfig
@@ -1,4 +1,3 @@
-# CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
diff --git a/arch/arc/configs/axs103_defconfig 
b/arch/arc/configs/axs103_defconfig
index 4d7b85d4b2dc..72fc21ef1334 100644
--- a/arch/arc/configs/axs103_defconfig
+++ b/arch/arc/configs/axs103_defconfig
@@ -1,4 +1,3 @@
-# CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
diff --git a/arch/arc/configs/axs103_smp_defconfig 
b/arch/arc/configs/axs103_smp_defconfig
index 92417e2e39f3..2ac89bd00e28 100644
--- a/arch/arc/configs/axs103_smp_defconfig
+++ b/arch/arc/configs/axs103_smp_defconfig
@@ -1,4 +1,3 @@
-# CONFIG_SWAP is not set
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 # CONFIG_CROSS_MEMORY_ATTACH is not set
-- 
2.17.1


___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc


[PATCH] ARC: Remove disabled CONFIG_DEVKMEM from defconfigs

2018-08-02 Thread Alexey Brodkin
CONFIG_DEVKMEM by default is disabled so clean-up
our defconfigs.

Signed-off-by: Alexey Brodkin 
Cc: Vineet Gupta 
Cc: Ofer Levi 
---
 arch/arc/configs/axs101_defconfig  | 1 -
 arch/arc/configs/axs103_defconfig  | 1 -
 arch/arc/configs/axs103_smp_defconfig  | 1 -
 arch/arc/configs/haps_hs_defconfig | 1 -
 arch/arc/configs/haps_hs_smp_defconfig | 1 -
 arch/arc/configs/nps_defconfig | 1 -
 arch/arc/configs/nsim_700_defconfig| 1 -
 arch/arc/configs/nsim_hs_defconfig | 1 -
 arch/arc/configs/nsim_hs_smp_defconfig | 1 -
 arch/arc/configs/nsimosci_defconfig| 1 -
 arch/arc/configs/nsimosci_hs_defconfig | 1 -
 arch/arc/configs/nsimosci_hs_smp_defconfig | 1 -
 arch/arc/configs/tb10x_defconfig   | 1 -
 arch/arc/configs/vdk_hs38_defconfig| 1 -
 14 files changed, 14 deletions(-)

diff --git a/arch/arc/configs/axs101_defconfig 
b/arch/arc/configs/axs101_defconfig
index 96b7258a76be..67cfb46675a2 100644
--- a/arch/arc/configs/axs101_defconfig
+++ b/arch/arc/configs/axs101_defconfig
@@ -61,7 +61,6 @@ CONFIG_MOUSE_PS2_TOUCHKIT=y
 CONFIG_MOUSE_SERIAL=y
 CONFIG_MOUSE_SYNAPTICS_USB=y
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
diff --git a/arch/arc/configs/axs103_defconfig 
b/arch/arc/configs/axs103_defconfig
index 72fc21ef1334..42a743c54520 100644
--- a/arch/arc/configs/axs103_defconfig
+++ b/arch/arc/configs/axs103_defconfig
@@ -62,7 +62,6 @@ CONFIG_MOUSE_PS2_TOUCHKIT=y
 CONFIG_MOUSE_SERIAL=y
 CONFIG_MOUSE_SYNAPTICS_USB=y
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
diff --git a/arch/arc/configs/axs103_smp_defconfig 
b/arch/arc/configs/axs103_smp_defconfig
index 2ac89bd00e28..5886fdcacb34 100644
--- a/arch/arc/configs/axs103_smp_defconfig
+++ b/arch/arc/configs/axs103_smp_defconfig
@@ -63,7 +63,6 @@ CONFIG_MOUSE_PS2_TOUCHKIT=y
 CONFIG_MOUSE_SERIAL=y
 CONFIG_MOUSE_SYNAPTICS_USB=y
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
diff --git a/arch/arc/configs/haps_hs_defconfig 
b/arch/arc/configs/haps_hs_defconfig
index 4984d9ed1573..765ec516135c 100644
--- a/arch/arc/configs/haps_hs_defconfig
+++ b/arch/arc/configs/haps_hs_defconfig
@@ -57,7 +57,6 @@ CONFIG_MOUSE_PS2_TOUCHKIT=y
 # CONFIG_SERIO_SERPORT is not set
 CONFIG_SERIO_ARC_PS2=y
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_NR_UARTS=1
diff --git a/arch/arc/configs/haps_hs_smp_defconfig 
b/arch/arc/configs/haps_hs_smp_defconfig
index 1e93690b4a4f..1f97b63c77f3 100644
--- a/arch/arc/configs/haps_hs_smp_defconfig
+++ b/arch/arc/configs/haps_hs_smp_defconfig
@@ -60,7 +60,6 @@ CONFIG_MOUSE_PS2_TOUCHKIT=y
 # CONFIG_SERIO_SERPORT is not set
 CONFIG_SERIO_ARC_PS2=y
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_NR_UARTS=1
diff --git a/arch/arc/configs/nps_defconfig b/arch/arc/configs/nps_defconfig
index 7c9c706ae7f6..31ba224bbfb4 100644
--- a/arch/arc/configs/nps_defconfig
+++ b/arch/arc/configs/nps_defconfig
@@ -59,7 +59,6 @@ CONFIG_NETCONSOLE=y
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO is not set
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_NR_UARTS=1
diff --git a/arch/arc/configs/nsim_700_defconfig 
b/arch/arc/configs/nsim_700_defconfig
index 0b59778604e4..b3c3c5763a3e 100644
--- a/arch/arc/configs/nsim_700_defconfig
+++ b/arch/arc/configs/nsim_700_defconfig
@@ -44,7 +44,6 @@ CONFIG_LXT_PHY=y
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO is not set
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_ARC=y
 CONFIG_SERIAL_ARC_CONSOLE=y
 # CONFIG_HW_RANDOM is not set
diff --git a/arch/arc/configs/nsim_hs_defconfig 
b/arch/arc/configs/nsim_hs_defconfig
index e829b683887d..cd7aed46e6bf 100644
--- a/arch/arc/configs/nsim_hs_defconfig
+++ b/arch/arc/configs/nsim_hs_defconfig
@@ -45,7 +45,6 @@ CONFIG_DEVTMPFS=y
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO is not set
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_ARC=y
 CONFIG_SERIAL_ARC_CONSOLE=y
 # CONFIG_HW_RANDOM is not set
diff --git a/arch/arc/configs/nsim_hs_smp_defconfig 
b/arch/arc/configs/nsim_hs_smp_defconfig
index bef937c551f8..84a2a31fd0d4 100644
--- a/arch/arc/configs/nsim_hs_smp_defconfig
+++ b/arch/arc/configs/nsim_hs_smp_defconfig
@@ -44,7 +44,6 @@ CONFIG_DEVTMPFS=y
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO is not set
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_ARC=y
 CONFIG_SERIAL_ARC_CONSOLE=y
 # CONFIG_HW_RANDOM is not set
diff --git a/arch/arc/configs/nsimosci_defconfig 
b/arch/arc

[PATCH] ARC: AXS10x/HSDK: Allow U-Boot to pass MAC-address to the kernel

2018-08-02 Thread Alexey Brodkin
Otherwise kernel uses random MAC which is not very conveniet.
With that change in place use might set desired MAC in U-Boot
with "setenv ethaddr 11:22:33:44:55:66", save environment and
then from boot to boot the same MAC will be used by the kernel.

One other note for this to happen it's required to pass
board's .dtb in U-Boot's "bootm" command like that:
--->8-
bootm 0x8200 - 0x8400
--->8-

Here 0x8200 is location of uImage while
0x8000 is location of either axs10x.dtb or hsdk.dtb
previously loaded from SD-card, USB storage or TFTP server.

Signed-off-by: Alexey Brodkin 
Cc: Rob Herring 
Cc: sta...@vger.kernel.org # 4.14
Cc: devicet...@vger.kernel.org
---
 arch/arc/boot/dts/axs10x_mb.dtsi | 7 ++-
 arch/arc/boot/dts/hsdk.dts   | 7 ++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/arch/arc/boot/dts/axs10x_mb.dtsi b/arch/arc/boot/dts/axs10x_mb.dtsi
index 47b74fbc403c..37bafd44e36d 100644
--- a/arch/arc/boot/dts/axs10x_mb.dtsi
+++ b/arch/arc/boot/dts/axs10x_mb.dtsi
@@ -9,6 +9,10 @@
  */
 
 / {
+   aliases {
+   ethernet = &gmac;
+   };
+
axs10x_mb {
compatible = "simple-bus";
#address-cells = <1>;
@@ -68,7 +72,7 @@
};
};
 
-   ethernet@0x18000 {
+   gmac: ethernet@0x18000 {
#interrupt-cells = <1>;
compatible = "snps,dwmac";
reg = < 0x18000 0x2000 >;
@@ -81,6 +85,7 @@
max-speed = <100>;
resets = <&creg_rst 5>;
reset-names = "stmmaceth";
+   mac-address = [00 00 00 00 00 00]; /* Filled in by 
U-Boot */
};
 
ehci@0x4 {
diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index 006aa3de5348..d00f283094d3 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -25,6 +25,10 @@
bootargs = "earlycon=uart8250,mmio32,0xf0005000,115200n8 
console=ttyS0,115200n8 debug print-fatal-signals=1";
};
 
+   aliases {
+   ethernet = &gmac;
+   };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -163,7 +167,7 @@
#clock-cells = <0>;
};
 
-   ethernet@8000 {
+   gmac: ethernet@8000 {
#interrupt-cells = <1>;
compatible = "snps,dwmac";
reg = <0x8000 0x2000>;
@@ -176,6 +180,7 @@
phy-handle = <&phy0>;
resets = <&cgu_rst HSDK_ETH_RESET>;
reset-names = "stmmaceth";
+   mac-address = [00 00 00 00 00 00]; /* Filled in by 
U-Boot */
 
mdio {
#address-cells = <1>;
-- 
2.17.1


___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc


[GIT PULL] ARC final updates for 4.18

2018-08-02 Thread Vineet Gupta
Hi Linus,

Another batch of fixes for ARC, this time mainly DMA API rework wreckage.

Please pull.

Thx,
-Vineet
--->
The following changes since commit d72e90f33aa4709ebecc5005562f52335e106a60:

  Linux 4.18-rc6 (2018-07-22 14:12:20 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ 
tags/arc-4.18-final

for you to fetch changes up to ec837d620c750c0d4996a907c8c4f7febe1bbeee:

  arc: fix type warnings in arc/mm/cache.c (2018-07-30 11:48:50 -0700)


ARC updates for 4.18

 - Software managed DMA wreckage after rework in 4.17 [Euginey]
   + missing cache flush
   + SMP_CACHE_BYTES vs. cache_line_size

 - allmodconfig build errors [Randy]

 - Maintainer update for Mellanox (EZChip) NPS platform


Eugeniy Paltsev (3):
  ARC: dma [non IOC]: fix arc_dma_sync_single_for_(device|cpu)
  ARC: dma [non-IOC] setup SMP_CACHE_BYTES and cache_line_size
  ARC: add SMP_CACHE_BYTES value validate

Leon Romanovsky (1):
  ARC: Add Ofer Levi as plat-eznps maintainer

Ofer Levi (1):
  ARC: [plat-eznps] Add missing struct nps_host_reg_aux_dpc

Randy Dunlap (4):
  arc: [plat-eznps] fix data type errors in platform headers
  arc: [plat-eznps] fix printk warning in arc/plat-eznps/mtm.c
  arc: fix build errors in arc/include/asm/delay.h
  arc: fix type warnings in arc/mm/cache.c

 MAINTAINERS |  1 +
 arch/arc/Kconfig|  3 ++
 arch/arc/include/asm/cache.h|  4 ++-
 arch/arc/include/asm/delay.h|  3 ++
 arch/arc/mm/cache.c | 17 ++--
 arch/arc/mm/dma.c   | 49 +++--
 arch/arc/plat-eznps/include/plat/ctop.h | 10 +++
 arch/arc/plat-eznps/mtm.c   |  6 ++--
 8 files changed, 85 insertions(+), 8 deletions(-)

___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc


Re: [PATCH] ARC: Improve handling of fatal signals in do_page_fault()

2018-08-02 Thread Vineet Gupta
On 08/02/2018 12:08 AM, Alexey Brodkin wrote:
>> The fault handling is spaghetti mess of checks and more checks and has not 
>> really
>> been touched since upstreaming. I need to clean it up and essentially 
>> rewrite it
>> for v4.19
> So would you like me to send a re-spin with less changes as discussed above so
> we have something better for now and for back-porting to stable branches.

No that's fine, I'll fix it up here - minimally for the stable backports and do
the rewrite later.

BTW I tried to reproduce the Old OOM hangs from LTP (STARS 9001304674, 
9001281305)
to prove that this fix solves those too, but I can't seem to reproduce the same
deadlock without this fix on 4.17 kernel.

-Vineet



___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc


Re: [PATCH] ARC: AXS10x/HSDK: Allow U-Boot to pass MAC-address to the kernel

2018-08-02 Thread Vineet Gupta
On 08/02/2018 03:19 AM, Alexey Brodkin wrote:
> Otherwise kernel uses random MAC which is not very conveniet.

Curious what exactly is the issue - why does the user care what MAC is assigned 
?

> With that change in place use might set desired MAC in U-Boot
> with "setenv ethaddr 11:22:33:44:55:66", save environment and
> then from boot to boot the same MAC will be used by the kernel.
>

And what if one is running without uboot - it will resort to all zeros vs. 
random
yet working MAC ?



___
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc