Re: [PATCH 1/2] ARCv2: LIB: memeset: fix doing prefetchw outside of buffer

2019-01-14 Thread Vineet Gupta
On 1/14/19 7:17 AM, Eugeniy Paltsev wrote: > Current ARCv2 memeset implementation may call 'prefetchw' > instruction for address which lies outside of memset area. > So we got one modified (dirty) cache line outside of memset > area. This may lead to data corruption if this area is used > for DMA I

Re: [PATCH 06/21] ARC: Atomics and Locking primitives

2019-01-14 Thread Vineet Gupta
On 12/18/18 3:15 PM, Joseph Myers wrote: > On Tue, 18 Dec 2018, Vineet Gupta wrote: > >> +#define USE_ATOMIC_COMPILER_BUILTINS 0 > > There is a strong preference for new ports to use 1 for this rather than 0 > (and not to have any asms in their atomic-machine.h unless there's some > reason use

Re: [PATCH] webkitgtk: Enable building for ARC architecture

2019-01-14 Thread Khem Raj
On Mon, Jan 14, 2019 at 12:45 PM Alexey Brodkin wrote: > > Hi Khem, > > > -Original Message- > > From: Khem Raj [mailto:raj.k...@gmail.com] > > Sent: Friday, January 11, 2019 6:32 PM > > To: Alexey Brodkin > > Cc: Patches and discussions about the oe-core layer > > ; > > Richard Purdie ;

RE: [PATCH] webkitgtk: Enable building for ARC architecture

2019-01-14 Thread Alexey Brodkin
Hi Khem, > -Original Message- > From: Khem Raj [mailto:raj.k...@gmail.com] > Sent: Friday, January 11, 2019 6:32 PM > To: Alexey Brodkin > Cc: Patches and discussions about the oe-core layer > ; > Richard Purdie ; Ross Burton > ; linux-snps- > a...@lists.infradead.org; Alexander Kanavin

Re: [PATCH 3/3] bitops.h: set_mask_bits() to return old value

2019-01-14 Thread Will Deacon
On Thu, Jan 10, 2019 at 04:26:27PM -0800, Vineet Gupta wrote: > | > Also, set_mask_bits is used in fs quite a bit and we can possibly come up > | > with a generic llsc based implementation (w/o the cmpxchg loop) > | > | May I also suggest changing the return value of set_mask_bits() to old. > | > |

[PATCH] etnaviv: allow to build on ARC

2019-01-14 Thread Eugeniy Paltsev
ARC HSDK SoC has Vivante GPU IP so allow build etnaviv for ARC. Signed-off-by: Eugeniy Paltsev --- drivers/gpu/drm/etnaviv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig index 342591a1084e..49a9957c337

[PATCH 1/2] ARCv2: LIB: memeset: fix doing prefetchw outside of buffer

2019-01-14 Thread Eugeniy Paltsev
Current ARCv2 memeset implementation may call 'prefetchw' instruction for address which lies outside of memset area. So we got one modified (dirty) cache line outside of memset area. This may lead to data corruption if this area is used for DMA IO. Another issue is that current ARCv2 memeset imple

[PATCH 2/2] ARCv2: LIB: memset: move st instruction series to macros

2019-01-14 Thread Eugeniy Paltsev
Move store 32 byte instruction series to macros to make code more readable. Signed-off-by: Eugeniy Paltsev --- arch/arc/lib/memset-archs.S | 63 +++-- 1 file changed, 21 insertions(+), 42 deletions(-) diff --git a/arch/arc/lib/memset-archs.S b/arch/arc/li