[PATCH 0/3] ARC: ARCv2: Introduce SmaRT support

2018-11-16 Thread Eugeniy Paltsev
all SmaRT related stuff to smart.h and smart.c * Other minor changes. Eugeniy Paltsev (3): ARC: split show_faulting_vma for logic and representation parts ARC: ARCv2: Introduce SmaRT support ARC: show detaled SmaRT configuration in mumbojumbo arch/arc/Kconfig | 12 ++ arch/ar

[PATCH 2/3] ARC: ARCv2: Introduce SmaRT support

2018-11-16 Thread Eugeniy Paltsev
nimal interference with MetaWare SmaRT support: * SmaRT is disabled only for small amount of time in smart_populate function. * SmaRT enable/disable via MetaWare doesn't lead to any serious issues (SmaRT disable via MetaWare may lead to last SmaRT record to be invalid, though) Signed-off-b

Re: MMC: bonnie++ runs with errors after switching mmc to blk-mq

2018-11-13 Thread Eugeniy Paltsev
On Tue, 2018-11-13 at 09:09 +0100, Linus Walleij wrote: > On Fri, Nov 9, 2018 at 3:36 PM Eugeniy Paltsev > wrote: > > > I still can reproduce errors about hung task when I run bonnie++ benchmark > > on arc/hsdk board > > (ARC HS38 CPU, Synopsys DW MMC controller).

[PATCH v2] ARC: IOC: panic if kernel was started with previously enabled IOC

2018-10-30 Thread Eugeniy Paltsev
at it, replace hardcoded bits in ARC_REG_IO_COH_PARTIAL and ARC_REG_IO_COH_ENABLE registers by definitions. Inspired by: https://lkml.org/lkml/2018/1/19/557 Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * Fix regression: check for IOC existence before accessing to any IOC register. arch/

[RFC v2 1/2] ARC: split show_faulting_vma for logic and representation parts

2018-10-29 Thread Eugeniy Paltsev
In preparation for introduncing SmaRT support for ARC split show_faulting_vma() for logic and representation parts to be able to use logic part in SmaRT code. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/bug.h | 9 + arch/arc/kernel/troubleshoot.c | 43

[RFC v2 2/2] ARC: ARCv2: Introduce SmaRT support

2018-10-29 Thread Eugeniy Paltsev
runtime. * Add SmaRT version check. Limit supported SmaRT versions to >= 0x03. * Move all SmaRT related stuff to smart.h and smart.c * Other minor changes. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 8 ++ arch/arc/include/asm/arcregs.h | 23 arch/arc/inc

[PATCH] ARC: [plat-hsdk] Enable DW APB GPIO support

2018-10-23 Thread Eugeniy Paltsev
Enable GPIO support on HSDK. HSDK SoC includes Synopsys DesignWare DW_apb_gpio IP with 24 GPIOs mapped onto port A. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/hsdk.dts | 15 +++ arch/arc/configs/hsdk_defconfig | 3 +++ 2 files changed, 18 insertions(+) diff --git

Re: [PATCH] DRM: UDL: get rid of useless vblank initialization

2018-10-23 Thread Eugeniy Paltsev
Hi David, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Fri, 2018-09-28 at 17:41 +0300, Eugeniy Paltsev wrote: > UDL doesn't support vblank functionality so we don't need to > initialize vblank here (we are able to send pag

Re: [PATCH v2 0/2] MTD: spi-nor: add support for sst26wf016, sst26wf032

2018-10-22 Thread Eugeniy Paltsev
Hi! Maybe you have any comments or remarks about this patch?And if you don't could you please apply it. Thanks! On Mon, 2018-09-10 at 14:46 +0300, Eugeniy Paltsev wrote: > Add support for the SST sst26wf016 and sst26wf032 flash IC: > > sst26wf*** flash series block protection imple

Re: [PATCH v2 1/2] mtd: spi-nor: Add support of sst26wf* flash ICs protection ops

2018-10-22 Thread Eugeniy Paltsev
Hi! Maybe you have any comments or remarks about this patch?And if you don't could you please apply it. Thanks! On Mon, 2018-09-10 at 14:46 +0300, Eugeniy Paltsev wrote: > sst26wf flash series block protection implementation differs > from other SST series, so add specific implemen

[RFC] ARC: ARCv2: Introduce SmaRT support : lmbench results

2018-10-19 Thread Eugeniy Paltsev
Lmbench summary with enabled and disabled SmaRT support is attached. -- Eugeniy Paltsev L M B E N C H 3 . 0 S U M M A R Y (Alpha software, do not distribute) Basic system parameters

[RFC] ARC: ARCv2: Introduce SmaRT support

2018-10-19 Thread Eugeniy Paltsev
dd SmaRT BCR encoding struct. Check SmaRT version number in BCR. NOTE: this RFC has prerequisite: http://patchwork.ozlabs.org/patch/986820/ Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 8 +++ arch/arc/include/asm/arcregs.h | 14 ++ arch/arc/include/asm/bug.h |

[PATCH v3] ARC: prevent showing irrelevant exception info in signal message

2018-10-19 Thread Eugeniy Paltsev
26/0x5c really_probe+0x3b0/0x464 __driver_attach+0xd4/0xd8 bus_for_each_dev+0x3a/0x70 bus_add_driver+0x12a/0x18c driver_register+0x56/0xe8 do_one_initcall+0x2e/0x118 kernel_init_freeable+0x102/0x194 >8--- Signed-off-by: Eugeniy Paltsev --- Changes v2->v3: * Do

Re: [PATCH v2] ARC: HSDK: improve reset driver

2018-10-17 Thread Eugeniy Paltsev
On Fri, 2018-10-12 at 14:08 +0200, Philipp Zabel wrote: > Hi Eugeniy, > > thank you for the update. > > On Fri, 2018-09-28 at 19:28 +0300, Eugeniy Paltsev wrote: > > As for today HSDK reset driver implements only > > .reset() callback. > > > > In case of

[PATCH v3] ARC: HSDK: improve reset driver

2018-10-17 Thread Eugeniy Paltsev
.reset() callback inside of .deassert() callback to avoid each reset controller user adaptation for work with both reset methods (reset() and {.assert() & .deassert()} pair) Signed-off-by: Eugeniy Paltsev --- Changes v2->v3: * Drop dummy .assert callback. drivers/reset/reset-hsdk.c | 1 +

Re: [PATCH v2 1/2] mtd: spi-nor: Add support of sst26wf* flash ICs protection ops

2018-10-15 Thread Eugeniy Paltsev
Hi! Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Mon, 2018-09-10 at 14:46 +0300, Eugeniy Paltsev wrote: > sst26wf flash series block protection implementation differs > from other SST series, so add specific implemen

Re: [PATCH] ARC: IOC: panic if kernel was started with previously enabled IOC

2018-10-09 Thread Eugeniy Paltsev
On Fri, 2018-10-05 at 22:56 +, Vineet Gupta wrote: > On 10/04/2018 06:12 AM, Eugeniy Paltsev wrote: > > > > diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c > > index f2701c13a66b..ee7b63e9c5e3 100644 > > --- a/arch/arc/mm/cache.c > > +++ b/arch/arc/m

[PATCH] ARC: IOC: panic if kernel was started with previously enabled IOC

2018-10-04 Thread Eugeniy Paltsev
regardless of our plans to use it or not. Also while I'm at it, replace hardcoded bits in ARC_REG_IO_COH_PARTIAL and ARC_REG_IO_COH_ENABLE registers by definitions. Inspired by: https://lkml.org/lkml/2018/1/19/557 Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/cache.h | 2 ++ arch/arc

[PATCH v2] drm: fb-helper: Reject all pixel format changing requests

2018-10-03 Thread Eugeniy Paltsev
drm fbdev emulation doesn't support changing the pixel format at all, so reject all pixel format changing requests. Cc: sta...@vger.kernel.org Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * Reject all pixel format changing request, not just the invalid ones. drivers/gpu/

Re: [PATCH] drm: fb-helper: Validate requested pixel format against bpp

2018-10-03 Thread Eugeniy Paltsev
On Wed, 2018-10-03 at 15:30 +0300, Ville Syrjälä wrote: > On Wed, Oct 03, 2018 at 01:36:00PM +0200, Daniel Vetter wrote: > > On Wed, Oct 3, 2018 at 1:05 PM Eugeniy Paltsev > > wrote: > > > > > > Validate requested pixel format against bits_per_pixe

[PATCH] drm: fb-helper: Validate requested pixel format against bpp

2018-10-03 Thread Eugeniy Paltsev
with 16 bpp which is obviously incorrect and should be rejected. Cc: sta...@vger.kernel.org Signed-off-by: Eugeniy Paltsev --- drivers/gpu/drm/drm_fb_helper.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 16ec93b75dbf

Re: [PATCH v2] ARC: prevent showing irrelevant exception info in signal message

2018-10-01 Thread Eugeniy Paltsev
Hi Vineet, any chance you could look at this? Otherwise we will both forget what it is all about :) On Tue, 2018-08-07 at 16:59 +0300, Eugeniy Paltsev wrote: > We process signals in the end of syscall/exception handler. > It the signal is fatal we print register's content using >

[PATCH v2] ARC: HSDK: improve reset driver

2018-09-28 Thread Eugeniy Paltsev
.reset() callback inside of .deassert() callback to avoid each reset controller user adaptation for work with both reset methods (reset() and {.assert() & .deassert()} pair) Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * Don't call hsdk_reset_reset in .assert callback. drivers/rese

[PATCH] DRM: UDL: get rid of useless vblank initialization

2018-09-28 Thread Eugeniy Paltsev
ery time. This breaks userspace apps (for example weston) which relies on timestamp value. Cc: sta...@vger.kernel.org Signed-off-by: Eugeniy Paltsev --- drivers/gpu/drm/udl/udl_main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_main.c b/driv

Re: [PATCH] DRM: VBLANK: provide valid timestamp for EVENT_FLIP

2018-09-28 Thread Eugeniy Paltsev
On Wed, 2018-09-26 at 19:37 +0300, Ville Syrjälä wrote: > On Wed, Sep 26, 2018 at 05:25:35PM +0300, Eugeniy Paltsev wrote: > > If driver/HW doesn't support vblank functionality (for example > > UDL driver, ARCPGU driver, ...) we always have vblank->time == 0. > > In resul

[PATCH v4 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-09-28 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys GPIO via CREG driver. Reviewed-by: Rob Herring Reviewed-by: Linus Walleij Signed-off-by: Eugeniy Paltsev --- Changes v3->v4: * Fix #gpio-cells description as driver is used generic GPIO binding. Chnages v2->v3:

[PATCH v4 1/2] GPIO: add single-register GPIO via CREG driver

2018-09-28 Thread Eugeniy Paltsev
Add single-register MMIO GPIO driver for complex cases where only several fields in register belong to GPIO lines and each GPIO line owns a field with different length and on/off value. Such CREG GPIOs are used in Synopsys AXS10x and HSDK boards. Signed-off-by: Eugeniy Paltsev --- Changes v3

[PATCH] DRM: VBLANK: provide valid timestamp for EVENT_FLIP

2018-09-26 Thread Eugeniy Paltsev
ime to provide valid timestamp for DRM_EVENT_FLIP_COMPLETE event. Cc: sta...@vger.kernel.org Signed-off-by: Eugeniy Paltsev --- drivers/gpu/drm/drm_vblank.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c index 28cdcf76b

Re: [PATCH] ARC: HSDK: improve reset driver

2018-09-24 Thread Eugeniy Paltsev
Hi Philip, On Fri, 2018-09-14 at 12:38 +0200, Philipp Zabel wrote: > Hi Eugeniy, > > On Mon, 2018-08-27 at 17:38 +0300, Eugeniy Paltsev wrote: > > As for today HSDK reset driver implements only > > .reset() callback. > > > > In case of driver which imp

Re: [PATCH v2 1/2] mtd: spi-nor: Add support of sst26wf* flash ICs protection ops

2018-09-24 Thread Eugeniy Paltsev
Hi Marek, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Mon, 2018-09-10 at 14:46 +0300, Eugeniy Paltsev wrote: > sst26wf flash series block protection implementation differs > from other SST series, so add specific implemen

Re: [PATCH v3 1/2] GPIO: add single-register GPIO via CREG driver

2018-09-24 Thread Eugeniy Paltsev
Hi Linus, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Tue, 2018-09-11 at 18:09 +0300, Eugeniy Paltsev wrote: > Add single-register MMIO GPIO driver for complex cases where > only several fields in register belong to GPIO

Re: [PATCH] drm/etnaviv: add DMA configuration for etnaviv platform device

2018-09-14 Thread Eugeniy Paltsev
RM helper functions. > > For now we should be fine with this solution. This works fine on HSDK, thanks! Tested-By: Eugeniy Paltsev > > Signed-off-by: Lucas Stach > --- > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 27 +-- > 1 file changed, 21 insert

Re: [PATCH] etnaviv: setup missing dma_mask

2018-09-11 Thread Eugeniy Paltsev
Hi Lucas, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Thu, 2018-08-23 at 19:38 +0300, Eugeniy Paltsev wrote: > As for today etnaviv device doesn't setup dma_mask. > The etnaviv device is a virtual device not represented

Re: [PATCH] ARC: HSDK: improve reset driver

2018-09-11 Thread Eugeniy Paltsev
Hi Philipp, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it. Thanks! On Mon, 2018-08-27 at 17:38 +0300, Eugeniy Paltsev wrote: > As for today HSDK reset driver implements only > .reset() callback. > > In case of driver which im

[PATCH v3 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-09-11 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys GPIO via CREG driver. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/gpio/snps,creg-gpio.txt| 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 1/2] GPIO: add single-register GPIO via CREG driver

2018-09-11 Thread Eugeniy Paltsev
Add single-register MMIO GPIO driver for complex cases where only several fields in register belong to GPIO lines and each GPIO line owns a field with different length and on/off value. Such CREG GPIOs are used in Synopsys AXS10x and HSDK boards. Signed-off-by: Eugeniy Paltsev --- Changes v2

[PATCH v3 0/2] GPIO: add single-register GPIO via CREG driver

2018-09-11 Thread Eugeniy Paltsev
kup table instead of device tree. * Use the ngpios attribute for instead of snps,ngpios. Eugeniy Paltsev (2): GPIO: add single-register GPIO via CREG driver dt-bindings: Document the Synopsys GPIO via CREG bindings .../devicetree/bindings/gpio/snps,creg-gpio.txt| 18 ++ MAINTAIN

[PATCH v2 1/2] mtd: spi-nor: Add support of sst26wf* flash ICs protection ops

2018-09-10 Thread Eugeniy Paltsev
;a=commitdiff;h=3d4fed87a5fa3ffedf64ff2811cd95c5ac4503ac Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * Check return value of {read | write}_reg callbacks. drivers/mtd/spi-nor/spi-nor.c | 177 ++ include/linux/mtd/spi-nor.h | 4 + 2 files changed,

[PATCH 2/2] mtd: spi-nor: add support for sst26wf016, sst26wf032

2018-09-04 Thread Eugeniy Paltsev
This commit adds support for the SST sst26wf016 and sst26wf032 flash IC. NOTE: this patch is basically following mine u-boot commit port: http://git.denx.de/?p=u-boot.git;a=commitdiff;h=a19e97157c3721ef9c4b15c68c1773467a3b4a98 Signed-off-by: Eugeniy Paltsev --- drivers/mtd/spi-nor/spi-nor.c

[PATCH 1/2] mtd: spi-nor: Add support of sst26wf* flash ICs protection ops

2018-09-04 Thread Eugeniy Paltsev
;a=commitdiff;h=3d4fed87a5fa3ffedf64ff2811cd95c5ac4503ac Signed-off-by: Eugeniy Paltsev --- drivers/mtd/spi-nor/spi-nor.c | 177 ++ include/linux/mtd/spi-nor.h | 4 + 2 files changed, 181 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi

[PATCH 0/2] MTD: spi-nor: add support for sst26wf016, sst26wf032

2018-09-04 Thread Eugeniy Paltsev
: these patches is basically following mine u-boot commits port: http://git.denx.de/?p=u-boot.git;a=commitdiff;h=3d4fed87a5fa3ffedf64ff2811cd95c5ac4503ac http://git.denx.de/?p=u-boot.git;a=commitdiff;h=a19e97157c3721ef9c4b15c68c1773467a3b4a98 Eugeniy Paltsev (2): mtd: spi-nor: Add support of sst26wf

Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-08-30 Thread Eugeniy Paltsev
On Thu, 2018-08-30 at 10:43 +0200, Linus Walleij wrote: > On Tue, Aug 28, 2018 at 1:27 PM Eugeniy Paltsev > wrote: > > > +++ b/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt > > @@ -0,0 +1,49 @@ > > +GPIO via CREG (Control REGisers) driver [snip] > &g

Re: Patch "asm-generic/bitops/lock.h: Rewrite using atomic_fetch_" causes kernel crash

2018-08-30 Thread Eugeniy Paltsev
On Thu, 2018-08-30 at 16:17 +0200, Peter Zijlstra wrote: > On Thu, Aug 30, 2018 at 11:53:17AM +0000, Eugeniy Paltsev wrote: > > I can see crashes with LLSC enabled in both SMP running on 4 cores > > and SMP running on 1 core. > > So you're running on LL/SC enabled hardware; t

Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-08-30 Thread Eugeniy Paltsev
On Tue, 2018-08-28 at 20:02 -0500, Rob Herring wrote: > On Tue, Aug 28, 2018 at 02:27:21PM +0300, Eugeniy Paltsev wrote: > > This patch adds documentation of device tree bindings for the Synopsys > > GPIO via CREG driver. > > > > Signed-off-by: Eugeniy Paltsev

Re: [PATCH v2 1/2] GPIO: add single-register gpio via creg driver

2018-08-30 Thread Eugeniy Paltsev
On Tue, 2018-08-28 at 11:15 -0700, Randy Dunlap wrote: > Hi, > > I don't see any updates/corrections here. :( My fault - I've forgotten to re-generate new patch via git format-patch and send you previous version. > > On 08/28/2018 04:27 AM, Eugeniy Paltsev wrote: > > &

Re: Patch "asm-generic/bitops/lock.h: Rewrite using atomic_fetch_" causes kernel crash

2018-08-30 Thread Eugeniy Paltsev
Hi Will, On Thu, 2018-08-30 at 10:51 +0100, Will Deacon wrote: > On Thu, Aug 30, 2018 at 11:44:11AM +0200, Peter Zijlstra wrote: > > On Wed, Aug 29, 2018 at 09:16:43PM +, Vineet Gupta wrote: > > > On 08/29/2018 11:33 AM, Eugeniy Paltsev wrote: > > > > Hi Gu

Patch "asm-generic/bitops/lock.h: Rewrite using atomic_fetch_" causes kernel crash

2018-08-29 Thread Eugeniy Paltsev
hich uses same generic bitops implementation and it works fine. Do you have any ideas what went wrong? -- Eugeniy Paltsev ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

[PATCH v2 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-08-28 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys GPIO via CREG driver. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/gpio/snps,creg-gpio.txt| 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v2 1/2] GPIO: add single-register gpio via creg driver

2018-08-28 Thread Eugeniy Paltsev
o and gpio-74xx-mmio: * They all don't support cases when GPIO output register have more than one bit per GPIO line. * They don't support holes in MMIO register. * They don't support cases when GPIO lines have different on/off values. Signed-off-by: Eugeniy Paltsev --- MAINTAINERS

Re: [PATCH 1/2] GPIO: add single-register gpio via creg driver

2018-08-28 Thread Eugeniy Paltsev
Hi Randy, thanks for comments, will be fixed in patch V2. On Thu, 2018-08-23 at 08:08 -0700, Randy Dunlap wrote: > On 08/23/2018 08:00 AM, Eugeniy Paltsev wrote: > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > > index 71c0ab46f216..0f9cc1582cab 100644 > &g

[PATCH] ARC: HSDK: improve reset driver

2018-08-27 Thread Eugeniy Paltsev
.reset() callback inside of .assert()/.deassert() callbacks to avoid each reset controller user adaptation for work with both reset methods (reset() and .assert()/.deassert() pair) Signed-off-by: Eugeniy Paltsev --- drivers/reset/reset-hsdk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] etnaviv: setup missing dma_mask

2018-08-23 Thread Eugeniy Paltsev
on map_* operations in generic dma_noncoherent_ops and dma_direct_ops. We faced with this behaviour after switching ARC to generic dma_noncoherent cache ops using. So fix this by setting dma_mask via dma_coerce_mask_and_coherent() Reviewed-by: Christoph Hellwig Signed-off-by: Eugeniy Paltsev

[PATCH 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-08-23 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys GPIO via CREG driver. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/gpio/snps,creg-gpio.txt| 48 ++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 1/2] GPIO: add single-register gpio via creg driver

2018-08-23 Thread Eugeniy Paltsev
o and gpio-74xx-mmio: * They all don't support cases when GPIO output register have more than one bit per GPIO line. * They don't support holes in MMIO register. * They don't support cases when GPIO lines have different on/off values. Signed-off-by: Eugeniy Paltsev --- MAINTAINERS

[PATCH 0/2] GPIO: add single-register gpio via creg driver

2018-08-23 Thread Eugeniy Paltsev
o and gpio-74xx-mmio: * They all don't support cases when GPIO output register have more than one bit per GPIO line. * They don't support holes in MMIO register. * They don't support cases when GPIO lines have different on/off values. This driver supports GPIOs via CREG on various Synopsys

Re: [PATCH v2 2/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-08-22 Thread Eugeniy Paltsev
Hi Vineet, On Mon, 2018-08-20 at 15:34 -0700, Vineet Gupta wrote: > On 08/13/2018 10:08 AM, Eugeniy Paltsev wrote: > > On Mon, 2018-08-13 at 16:24 +, Vineet Gupta wrote: > > > On 07/30/2018 09:26 AM, Eugeniy Paltsev wrote: > > > > @@ -1263,11 +1254,7 @@ void __i

Re: [PATCH] ARC: atomic64: fix atomic64_add_unless function

2018-08-14 Thread Eugeniy Paltsev
On Tue, 2018-08-14 at 13:42 +, Vineet Gupta wrote: > On 08/11/2018 09:09 AM, Eugeniy Paltsev wrote: > > Current implementation of 'atomic64_add_unless' function > > (and hence 'atomic64_inc_not_zero') return incorrect value > > if lover 32 bits of compared 64

[RFC] etnaviv: missing dma_mask

2018-08-14 Thread Eugeniy Paltsev
that should work (at least it works for ARC): Signed-off-by: Eugeniy Paltsev --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index 540b59fb4103

Re: [PATCH v2 0/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-08-13 Thread Eugeniy Paltsev
On Mon, 2018-08-13 at 16:19 +, Vineet Gupta wrote: > On 07/30/2018 09:26 AM, Eugeniy Paltsev wrote: > > The ARC HS processor provides an IOC port (I/O coherency bus > > interface) that allows external devices such as DMA devices > > to access memory through the cache

Re: [PATCH v2 2/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-08-13 Thread Eugeniy Paltsev
On Mon, 2018-08-13 at 16:24 +, Vineet Gupta wrote: > On 07/30/2018 09:26 AM, Eugeniy Paltsev wrote: > > @@ -1263,11 +1254,7 @@ void __init arc_cache_init_master(void) > > if (is_isa_arcv2() && ioc_enable) > > arc_ioc_setup(); > > >

[PATCH] ARC: atomic64: fix atomic64_add_unless function

2018-08-11 Thread Eugeniy Paltsev
4_test. Signed-off-by: Eugeniy Paltsev --- arch/arc/include/asm/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h index 11859287c52a..e840cb1763b2 100644 --- a/arch/arc/include/asm/atomic.h +++ b/arch/arc/inclu

[PATCH v2] ARC: prevent showing irrelevant exception info in signal message

2018-08-07 Thread Eugeniy Paltsev
26/0x5c really_probe+0x3b0/0x464 __driver_attach+0xd4/0xd8 bus_for_each_dev+0x3a/0x70 bus_add_driver+0x12a/0x18c driver_register+0x56/0xe8 do_one_initcall+0x2e/0x118 kernel_init_freeable+0x102/0x194 >8--- Signed-off-by: Eugeniy Paltsev --- NOTE: This patch

[PATCH 2/2] ARC: show_faulting_vma: check file_path for error

2018-08-06 Thread Eugeniy Paltsev
Return value of file_path() should be validated with IS_ERR() macro. Generic print_vma_addr() implementation was used as an example. Signed-off-by: Eugeniy Paltsev --- arch/arc/kernel/troubleshoot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc

[PATCH 1/2] ARC: show_faulting_vma: remove unused variables

2018-08-06 Thread Eugeniy Paltsev
We get 'inode', 'dev', and 'ino' in show_faulting_vma() but never use them. So get rid of this variables and corresponding code. Signed-off-by: Eugeniy Paltsev --- arch/arc/kernel/troubleshoot.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/arc/kernel

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

2018-08-06 Thread Eugeniy Paltsev
linux-2Dsnps-2Darc=DwICAg=DPL6_X_6JkXFx7AXWqB0tg=ZlJN > 1MriPUTkBKCrPSx67GmaplEUGcAEk9yPtCLdUXI=pEe31Mq4FC20ZBQ1SMGdCpesPmQFyaQCdpY9-N_aWRc=lwI7vTqAmbVPHdfMz_FlOzfBDvtYCQDL-6s-Z2FFr_Y= -- Eugeniy Paltsev ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

[PATCH v2 4/4] ARC: don't check for HIGHMEM pages in arch_dma_alloc

2018-07-30 Thread Eugeniy Paltsev
and arch_dma_free functions. Signed-off-by: Eugeniy Paltsev --- Changes v1->v2 (Thanks to Christoph): * Remove check for HIGHMEM pages from arch_dma_{alloc, free} arch/arc/mm/dma.c | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/arch/arc/mm/dma.c b/a

[PATCH v2 3/4] ARC: IOC: panic if both IOC and ZONE_HIGHMEM enabled

2018-07-30 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * None. arch/arc/mm/cache.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c index dac12afbb93a..389602cf1594 100644 --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -114

[PATCH v2 2/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-07-30 Thread Eugeniy Paltsev
e property: "dma_noncoherent_ops" are used if no "dma-coherent" property is present (or IOC is disabled) "dma_direct_ops" are used if "dma-coherent" property is present. Reviewed-by: Christoph Hellwig Signed-off-by: Eugeniy Paltsev --- Changes v1->v2 (Thanks to

[PATCH v2 0/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-07-30 Thread Eugeniy Paltsev
ct DMA_DIRECT_OPS explicitly as it is already selected by DMA_NONCOHERENT_OPS * Remove check for HIGHMEM pages from arch_dma_{alloc, free} Eugeniy Paltsev (4): ARC: DTS: mark DMA devices connected through IOC port as dma-coherent ARC: allow to use IOC and non-IOC DMA devices simultaneously

[PATCH v2 1/4] ARC: DTS: mark DMA devices connected through IOC port as dma-coherent

2018-07-30 Thread Eugeniy Paltsev
Mark DMA devices on AXS103 and HSDK boards connected through IOC port as dma-coherent. Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * None. arch/arc/boot/dts/axc003.dtsi | 26 ++ arch/arc/boot/dts/axc003_idu.dtsi | 26 ++ arch/arc/b

Re: [PATCH 3/4] ARC: refactor arch/arc/mm/dma.c

2018-07-30 Thread Eugeniy Paltsev
On Thu, 2018-07-26 at 11:17 +0200, Christoph Hellwig wrote: > On Tue, Jul 24, 2018 at 01:10:00PM +0300, Eugeniy Paltsev wrote: > > Refactoring, no functional change intended. > > [snip] > > > > *dma_handle = paddr; > > > > + /* > >

[PATCH v2 1/2] ARC: setup SMP_CACHE_BYTES and cache_line_size

2018-07-26 Thread Eugeniy Paltsev
f->end - sk_buff->tail) < SLC_LINE_SIZE and if we have some useful data right after sk_buff->end. Fix that by hardcode SMP_CACHE_BYTES to max line length we may have. Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * Fix ARCH_HAS_CACHE_LINE_SIZE selection in ARC Kconf

[PATCH v2 2/2] ARC: add SMP_CACHE_BYTES value validate

2018-07-26 Thread Eugeniy Paltsev
Check that SMP_CACHE_BYTES (and hence ARCH_DMA_MINALIGN) is larger or equal to any cache line length by comparing it with values previously read from ARC cache BCR registers. Signed-off-by: Eugeniy Paltsev --- Changes v1->v2: * None. arch/arc/mm/cache.c | 10 ++ 1 file changed,

[PATCH] NET: stmmac: align DMA stuff to largest cache line length

2018-07-26 Thread Eugeniy Paltsev
and other data, so we can lose this data while invalidate DMA buffer before DMA transaction. Fix that by using SMP_CACHE_BYTES instead of L1_CACHE_BYTES for aligning. Signed-off-by: Eugeniy Paltsev --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/2] ARC: setup SMP_CACHE_BYTES and cache_line_size

2018-07-26 Thread Eugeniy Paltsev
f->end - sk_buff->tail) < SLC_LINE_SIZE and if we have some useful data right after sk_buff->end. Fix that by hardcode SMP_CACHE_BYTES to max line length we may have. Signed-off-by: Eugeniy Paltsev Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 1 + arch/arc/inclu

[PATCH] ARC: fix broken noncoherent cache ops

2018-07-24 Thread Eugeniy Paltsev
ge") Signed-off-by: Eugeniy Paltsev --- NOTE: * This patch was stress tested on HSDK with bonie++ (usb and sdio) with IOC disabled. The ethernet wasn't tested because it doesn't work with SW cache control as for today (see STAR 9001336019) ar

[PATCH 4/4] ARC: IOC: panic if both IOC and ZONE_HIGHMEM enabled

2018-07-24 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- arch/arc/mm/cache.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c index 34935ce38631..e0b3484641c3 100644 --- a/arch/arc/mm/cache.c +++ b/arch/arc/mm/cache.c @@ -1143,6 +1143,19 @@ noinline void

[PATCH 3/4] ARC: refactor arch/arc/mm/dma.c

2018-07-24 Thread Eugeniy Paltsev
Refactoring, no functional change intended. Signed-off-by: Eugeniy Paltsev --- arch/arc/mm/dma.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c index b693818cd8e5..46584c7c2858 100644 --- a/arch/arc/mm

[PATCH 0/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-07-24 Thread Eugeniy Paltsev
c_dma_{map,unmap}_page (I will create fix soon, see STAR 9001374807) NOTE: We don't touch any aperture configuration in this patch series. So we don't switch any devices between IOC and non-IOC AXI ports on any board. It can be done later if it is required. Eugeniy Paltsev (4): ARC: DTS: mark D

[PATCH 2/4] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-07-24 Thread Eugeniy Paltsev
e property: "dma_noncoherent_ops" are used if no "dma-coherent" property is present (or IOC is disabled) "dma_direct_ops" are used if "dma-coherent" property is present. Signed-off-by: Eugeniy Paltsev --- Changes RFC v2 -> PATCH v1: * Move device tree changes to separa

[PATCH 1/4] ARC: DTS: mark DMA devices connected through IOC port as dma-coherent

2018-07-24 Thread Eugeniy Paltsev
Mark DMA devices on AXS103 and HSDK boards connected through IOC port as dma-coherent. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/axc003.dtsi | 26 ++ arch/arc/boot/dts/axc003_idu.dtsi | 26 ++ arch/arc/boot/dts/hsdk.dts| 4

Re: [PATCH] ARC: prevent showing irrelevant exception info in signal message

2018-07-06 Thread Eugeniy Paltsev
Hi Vineet, On Thu, 2018-07-05 at 14:26 -0700, Vineet Gupta wrote: > On 07/03/2018 03:57 AM, Eugeniy Paltsev wrote: > > On Mon, 2018-07-02 at 10:57 -0700, Vineet Gupta wrote: > > > +CC Al > > > > > > On 06/29/2018 12:39 PM, Eugeniy Paltsev wrote: > > &g

Re: [PATCH] ARC: prevent showing irrelevant exception info in signal message

2018-07-03 Thread Eugeniy Paltsev
On Mon, 2018-07-02 at 10:57 -0700, Vineet Gupta wrote: > +CC Al > > On 06/29/2018 12:39 PM, Eugeniy Paltsev wrote: > > We process signals in the end of syscall/exception handler. > > It the signal is fatal we print register's content using > > show_regs functi

[PATCH] ARC: prevent showing irrelevant exception info in signal message

2018-06-29 Thread Eugeniy Paltsev
BTA: 0x2fc4SP: 0x5ff8bd64 FP: 0x LPS: 0x200524a0 LPE: 0x200524b6 LPC: 0x0006 [-other-info-] _ This patch fix STAR 9001146055: waitpid02: Invalid Write @ 0x by insn @ 0x000123ec Signed-off-by: Eugeniy Paltsev --- arch

[RFC v2] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-06-28 Thread Eugeniy Paltsev
s v1->v2 (Thanks to Vineet and Christoph): * Panic if both IOC and HIGHMEM_ZONE are enabled. * Move arch_setup_dma_ops to arch/arc/mm/dma.c * Tweak the boot printing about IOC * Print info about cache ops used for each device. * Refactor arch_setup_dma_ops Signed-off-by: Eugeniy Paltsev ---

[RFC] ARC: allow to use IOC and non-IOC DMA devices simultaneously

2018-06-15 Thread Eugeniy Paltsev
"arc_ioc_ops" which will handle ZONE_HIGHMEM case. (BTW: current ARC dma_noncoherent_ops implementation also has same problem if IOC and HIGHMEM are enabled.) NOTE 2: In this RFC only hsdk.dts changes are shown to reduce patch size. AXS103 device tree changes are not shown. Signed-o

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-25 Thread Eugeniy Paltsev
On Mon, 2018-04-23 at 08:47 +0200, Ulf Hansson wrote: > On 20 April 2018 at 17:53, Eugeniy Paltsev <eugeniy.palt...@synopsys.com> > wrote: > > Hi Ulf, > > > > On Fri, 2018-04-20 at 09:35 +0200, Ulf Hansson wrote: > > > [...] > > > > > >

rsi_91x: Failed to read status register / FIRMWARE Assert issues

2018-04-24 Thread Eugeniy Paltsev
<=== rsi_91x: rsi_core_qos_processor: Queue number = 1 rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register ->8-------- Any ideas what could be wrong? -- Eugeniy Paltsev ___ linux-

Re: [RFC 0/2] dw_mmc: add multislot support

2018-04-20 Thread Eugeniy Paltsev
This patch at least shouldn't break anything for current users (which use it in single slot mode) Moreover we tested this dual-slot implementation and don't catch any problems (probably yet) except bus performance decrease in dual-slot mode (which is quite expected). > > Kind regards > U

[PATCH v2] clocksource: arc_timer: add comments about locking while read GFRC

2018-04-19 Thread Eugeniy Paltsev
This came to light in some internal discussions and it is nice to have this documented rather than digging up the PRM (Prog Ref Manual) again. Acked-by: Vineet Gupta <vgu...@synopsys.com> Signed-off-by: Eugeniy Paltsev <eugeniy.palt...@synopsys.com> --- Changes v1->v2: * Mi

[PATCH] clocksource: arc_timer: add comments about locking while read GFRC

2018-04-17 Thread Eugeniy Paltsev
This came to light in some internal discussions and it is nice to have this documented rather than digging up the PRM (Prog Ref Manual) again. Signed-off-by: Eugeniy Paltsev <eugeniy.palt...@synopsys.com> --- drivers/clocksource/arc_timer.c | 13 + 1 file changed, 13 inse

[RFC 2/2] dw_mmc: add multislot support

2018-04-17 Thread Eugeniy Paltsev
it on this board too to catch any regressions. Signed-off-by: Eugeniy Paltsev <eugeniy.palt...@synopsys.com> --- drivers/mmc/host/dw_mmc.c | 325 ++ drivers/mmc/host/dw_mmc.h | 14 +- 2 files changed, 253 insertions(+), 86 deletions(-) diff --git a/drive

[RFC 1/2] dw_mmc: revert removal multislot support

2018-04-17 Thread Eugeniy Paltsev
Revert "mmc: dw_mmc: remove the deprecated "num-slots"" Revert "mmc: dw_mmc: fix the wrong condition check of getting num-slots from DT" Revert "mmc: dw_mmc: remove the unnecessary slot variable" Revert "mmc: dw_mmc: update kernel-doc comments for dw_mci" Revert "mmc: dw_mmc: use the 'slot'

[RFC 0/2] dw_mmc: add multislot support

2018-04-17 Thread Eugeniy Paltsev
ingleslot and multislot modes) only on Synopsys HSDK board. But I will get ODROID-XU4 board (with Exynos5422 which has DW MMC controller) the next week so I will test it on this board too to catch any regressions. Eugeniy Paltsev (2): dw_mmc: revert removal multislot support dw_m

DW MMC multislot support

2018-03-30 Thread Eugeniy Paltsev
more than welcome. -- Eugeniy Paltsev ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

[PATCH v3 2/2] dt-bindings: Document the Synopsys DW AXI DMA bindings

2018-03-06 Thread Eugeniy Paltsev
This patch adds documentation of device tree bindings for the Synopsys DesignWare AXI DMA controller. Signed-off-by: Eugeniy Paltsev <eugeniy.palt...@synopsys.com> --- Changes v2->v3: * None. .../devicetree/bindings/dma/snps,dw-axi-dmac.txt | 41 ++ 1 file ch

[PATCH v3 1/2] dmaengine: Introduce DW AXI DMAC driver

2018-03-06 Thread Eugeniy Paltsev
This patch adds support for the DW AXI DMAC controller. DW AXI DMAC is a part of HSDK development board from Synopsys. In this driver implementation only DMA_MEMCPY transfers are supported. Signed-off-by: Eugeniy Paltsev <eugeniy.palt...@synopsys.com> --- Changes v2->v3 (suggeste

Re: [PATCH v2 1/2] dmaengine: Introduce DW AXI DMAC driver

2018-03-05 Thread Eugeniy Paltsev
On Mon, 2018-02-26 at 18:42 +0200, Andy Shevchenko wrote: > On Mon, Feb 26, 2018 at 4:56 PM, Eugeniy Paltsev > <eugeniy.palt...@synopsys.com> wrote: > > > + chip->core_clk = devm_clk_get(chip->dev, "core-clk"); > > Does the name come fr

Re: [PATCH v2 1/2] dmaengine: Introduce DW AXI DMAC driver

2018-03-05 Thread Eugeniy Paltsev
On Mon, 2018-02-26 at 18:42 +0200, Andy Shevchenko wrote: > On Mon, Feb 26, 2018 at 4:56 PM, Eugeniy Paltsev > <eugeniy.palt...@synopsys.com> wrote: > > +static int parse_device_properties(struct axi_dma_chip *chip) > > +{ > > + ret = device_property_r

[PATCH v2 0/2] Introduce DW AXI DMAC driver

2018-02-26 Thread Eugeniy Paltsev
tor axi_chan_get_xfer_width function. * Fix timeout calculation in dma_chan_pause. * Add record to MAINTAINERS in correct alphabetical order. Eugeniy Paltsev (2): dmaengine: Introduce DW AXI DMAC driver dt-bindings: Document the Synopsys DW AXI DMA bindings .../devicetree/bindings/dma/snps,dw-

<    1   2   3   4   5   >