Re: [PATCH v3 3/3] mm/armv6: work around armv6 cmpxchg support issue

2020-09-02 Thread Alex Shi
在 2020/9/1 下午9:17, Matthew Wilcox 写道: > On Tue, Sep 01, 2020 at 02:30:51PM +0800, Alex Shi wrote: >> seems there are couples archs can not do cmpxchg1 >> So update the patch here. And it's easy to fix if more arch issue find here. > >> +/* >> + * cmpxchg only support 32-bits operands on the fol

Re: [PATCH v3 3/3] mm/armv6: work around armv6 cmpxchg support issue

2020-09-01 Thread Matthew Wilcox
On Tue, Sep 01, 2020 at 02:30:51PM +0800, Alex Shi wrote: > seems there are couples archs can not do cmpxchg1 > So update the patch here. And it's easy to fix if more arch issue find here. > +/* > + * cmpxchg only support 32-bits operands on the following archs ARMv6, > SPARC32 > + * sh2, XTENSA.

Re: [PATCH v3 3/3] mm/armv6: work around armv6 cmpxchg support issue

2020-08-31 Thread Alex Shi
seems there are couples archs can not do cmpxchg1 So update the patch here. And it's easy to fix if more arch issue find here. >From cdf98ae7b5e83bb7210c927d4749f62fee4ed115 Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Mon, 31 Aug 2020 15:41:20 +0800 Subject: [PATCH v4 3/3] mm/pageblock: work ar

[PATCH v3 3/3] mm/armv6: work around armv6 cmpxchg support issue

2020-08-31 Thread Alex Shi
Armv6 can not simulate cmpxchg1 func, so we have to use cmpxchg4 on it. arm-linux-gnueabi-ld: mm/page_alloc.o: in function `set_pfnblock_flags_mask': (.text+0x32b4): undefined reference to `__bad_cmpxchg' arm-linux-gnueabi-ld: (.text+0x32e0): undefined reference to `__bad_cmpxchg' Report