Re: [PATCH v4 0/5] nds32 FPU port

2018-11-22 Thread Greentime Hu
h/nds32/math-emu/fnegd.c > create mode 100644 arch/nds32/math-emu/fnegs.c > create mode 100644 arch/nds32/math-emu/fpuemu.c > create mode 100644 arch/nds32/math-emu/fs2d.c > create mode 100644 arch/nds32/math-emu/fsqrtd.c > create mode 100644 arch/nds32/math-emu/fsqrts.c > create mode 100644 arch/nds32/math-emu/fsubd.c > create mode 100644 arch/nds32/math-emu/fsubs.c Hi Vincent, Thank you. Acked-by: Greentime Hu

Re: [GIT PULL] nds32 new features and bug fix for 4.20

2018-11-09 Thread Greentime Hu
Linus Torvalds 於 2018年11月9日 週五 下午10:03寫道: > > On Fri, Nov 9, 2018 at 4:01 AM Greentime Hu wrote: > > > > nds32 patches for 4.20 > > Much much too late for 4.20. > > Send these the next merge window please. Sorry for late. I will send these in the next merge window.

[GIT PULL] nds32 new features and bug fix for 4.20

2018-11-09 Thread Greentime Hu
Hi Linus, The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/greentime/linux.git tags/nds32-for-linus-4.20 for you to fetch

Re: [PATCH 1/2] nds32: Fix the missing "fpu_dp" message.

2018-11-06 Thread Greentime Hu
Hi Nylon, Nylon Chen 於 2018年11月7日 週三 下午1:32寫道: > > The "fpu_dp" should be added to hwcap_str table to make sure the cpu features > displayed correctly. > > Signed-off-by: Nylon Chen > --- > arch/nds32/kernel/setup.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v3 0/5] nds32 FPU port

2018-11-06 Thread Greentime Hu
4 arch/nds32/math-emu/fnegs.c > create mode 100644 arch/nds32/math-emu/fpuemu.c > create mode 100644 arch/nds32/math-emu/fs2d.c > create mode 100644 arch/nds32/math-emu/fsqrtd.c > create mode 100644 arch/nds32/math-emu/fsqrts.c > create mode 100644 arch/nds32/math-emu/fsubd.c > create mode 100644 arch/nds32/math-emu/fsubs.c Thank you. Acked-by: Greentime Hu

Re: [PATCH -next] nds32: Remove duplicated include from pm.c

2018-10-30 Thread Greentime Hu
Pavel Machek 於 2018年10月30日 週二 下午3:15寫道: > > On Tue 2018-10-30 02:22:42, YueHaibing wrote: > > Remove duplicated include. > > > > Signed-off-by: YueHaibing > > Acked-by: Pavel Machek > Hi Pavel and YueHaibin, Thank you. Acked-by: Greentime Hu

Re: [PATCH v2 1/1] nds32: Power management for nds32

2018-10-25 Thread Greentime Hu
_nds32__mfsr(NDS32_SR_INT_MASK); > + static unsigned long irq_orig_bit; > + u32 bit = 1 << data->hwirq; > + > + if (on) { > + if (int_mask & bit) > + __assign_bit(data->hwirq, _orig_bit, true); > + else > + __assign_bit(data->hwirq, _orig_bit, false); > + > + __assign_bit(data->hwirq, _mask, true); > + __assign_bit(data->hwirq, _mask, true); > + > + } else { > + if (!(irq_orig_bit & bit)) > + __assign_bit(data->hwirq, _mask, false); > + > + __assign_bit(data->hwirq, _mask, false); > + __assign_bit(data->hwirq, _orig_bit, false); > + } > + > + __nds32__mtsr_dsb(int_mask, NDS32_SR_INT_MASK); > + > + return 0; > +} > + > static struct irq_chip ativic32_chip = { > .name = "ativic32", > .irq_ack = ativic32_ack_irq, > .irq_mask = ativic32_mask_irq, > .irq_unmask = ativic32_unmask_irq, > + .irq_set_wake = nointc_set_wake, > }; > > static unsigned int __initdata nivic_map[6] = { 6, 2, 10, 16, 24, 32 }; Hi Nick, Thank you. Acked-by: Greentime Hu

Re: [PATCH v4 0/4] nds32: Perf support

2018-10-25 Thread Greentime Hu
ude/asm/stacktrace.h > create mode 100644 arch/nds32/kernel/perf_event_cpu.c > create mode 100644 tools/perf/arch/nds32/Build > create mode 100644 tools/perf/arch/nds32/util/Build > create mode 100644 tools/perf/arch/nds32/util/header.c > create mode 100644 tools/perf/pmu-events/arch/nds32/mapfile.csv > create mode 100644 tools/perf/pmu-events/arch/nds32/n13/atcpmu.json > Hi Nick, Thank you. Acked-by: Greentime Hu

Re: [PATCH 0/3] nds32: Unaligned access handler fix

2018-10-19 Thread Greentime Hu
+++- > arch/nds32/mm/alignment.c | 43 +++ > 3 files changed, 30 insertions(+), 20 deletions(-) > Hi Nick, Thanks Acked-by: Greentime Hu

Re: [PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.

2018-10-19 Thread Greentime Hu
ointer > + > +ifdef CONFIG_FUNCTION_TRACER > +CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE) > +endif > +CFLAGS_proc.o += -fomit-frame-pointer Hi Nick, Thanks. Acked-by: Greentime Hu

Re: [PATCH 0/2] Remove the no longer used mechanism

2018-10-17 Thread Greentime Hu
redundant assignment > nds32: Fill all TLB entries with kernel image mapping > > arch/nds32/kernel/head.S | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) > Zong, Thank you. Acked-by: Greentime Hu

[GIT PULL] nds32 updates for v4.19

2018-09-04 Thread Greentime Hu
in here are the bug fixes, building error fixes and ftrace support for nds32. These are the LTP20170427 testing results. Total Tests: 1902 Total Skipped Tests: 592 Total Failures: 420 Kernel Version: 4.19.0-rc2-00018-g2c9d30cc16f0-dirty Machine Architecture: nds32 Signed-off-by: Greentime Hu

[PATCH] nds32: linker script: GCOV kernel may refers data in __exit

2018-09-04 Thread Greentime Hu
-off-by: Greentime Hu --- arch/nds32/kernel/vmlinux.lds.S | 12 1 file changed, 12 insertions(+) diff --git a/arch/nds32/kernel/vmlinux.lds.S b/arch/nds32/kernel/vmlinux.lds.S index 288313b886ef..9e90f30a181d 100644 --- a/arch/nds32/kernel/vmlinux.lds.S +++ b/arch/nds32/kernel

Re: linux-next: build warnings from the build of Linus' tree

2018-08-28 Thread Greentime Hu
Arnd Bergmann 於 2018年8月24日 週五 下午8:48寫道: > > On Fri, Aug 24, 2018 at 10:23 AM Masami Hiramatsu wrote: > > > > On Fri, 24 Aug 2018 13:32:06 +1000 > > Stephen Rothwell wrote: > > > > > Hi all, > > > > > > After merging the origin tree, today's linux-next build (powerpc > > > allyesconfig) produced

[PATCH 2/3] nds32: Fix a kernel panic issue because of wrong frame pointer access.

2018-08-28 Thread Greentime Hu
,ae3xx (DT) Call Trace: [] dump_stack+0x2c/0x38 [] die+0x128/0x18c [] do_page_fault+0x3b8/0x4e0 [] ret_from_exception+0x0/0x10 [] common_exception_handler+0xda/0xf4 Signed-off-by: Greentime Hu --- arch/nds32/kernel/ex-entry.S | 2 +- arch/nds32/kernel/ex-exit.S | 4 ++-- arch/nds32/kernel/ftrace.c

[PATCH 1/3] nds32: Only print one page of stack when die to prevent printing too much information.

2018-08-28 Thread Greentime Hu
It may print too much information sometimes if the stack is wrong or too big. This patch can limit the debug information in a page of stack. Signed-off-by: Greentime Hu --- arch/nds32/kernel/traps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/nds32/kernel

[PATCH 3/3] nds32: fix build error because of wrong semicolon

2018-08-28 Thread Greentime Hu
'ELF_DATA' [EI_DATA] = ELF_DATA, ^~~~ /kisskb/src/fs/proc/kcore.c:312:15: note: to match this '{' .e_ident = { ^ /kisskb/src/scripts/Makefile.build:307: recipe for target 'fs/proc/kcore.o' failed Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h

Re: [PATCH 0/3] Fix get_user and put_user pointer issue

2018-08-21 Thread Greentime Hu
get_user/put_user macro expand pointer problem > nds32: Clean up the coding style > nds32: Extract the checking and getting pointer to a macro > > arch/nds32/include/asm/uaccess.h | 229 > --- > 1 file changed, 119 insertions(+), 110 deletions(-) > Acked-by: Greentime Hu

Re: [PATCH 0/6] Support ftrace on NDS32 architecture

2018-08-21 Thread Greentime Hu
+ > arch/nds32/kernel/stacktrace.c | 4 + > arch/nds32/kernel/traps.c | 30 +--- > scripts/recordmcount.pl | 3 + > 8 files changed, 370 insertions(+), 24 deletions(-) > create mode 100644 arch/nds32/include/asm/ftrace.h > create mode 100644 arch/nds32/kernel/ftrace.c Acked-by: Greentime Hu

Re: [PATCH 0/2] Remove the deprecated ABI implementation

2018-08-21 Thread Greentime Hu
i (2): > nds32: Remove the deprecated ABI implementation > nds32: Add macro definition for offset of lp register on stack > > arch/nds32/include/asm/nds32.h | 1 + > arch/nds32/kernel/stacktrace.c | 2 +- > arch/nds32/kernel/traps.c | 7 +-- > 3 files changed, 3 inser

Re: [PATCH] nds32: add NULL entry to the end of_device_id array

2018-08-08 Thread Greentime Hu
s[] __initconst = { > - {.compatible = "andestech,atl2c",} > + {.compatible = "andestech,atl2c",}, > + {} > }; > > static int __init atl2c_of_init(void) Hi Yuehaibing, Thank you for your patch. Acked-by: Greentime Hu

Re: [GIT PULL] nds32 fixes for 4.18

2018-07-20 Thread Greentime Hu
Greentime Hu 於 2018年7月17日 週二 下午2:34寫道: > > Hi Linus, > Greentime Hu 於 2018年7月9日 週一 下午4:19寫道: > > > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > >

Re: [GIT PULL] nds32 fixes for 4.18

2018-07-17 Thread Greentime Hu
Hi Linus, Greentime Hu 於 2018年7月9日 週一 下午4:19寫道: > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are available in the Git repository at: > > ssh://g...@gitolite.kernel.org/pub/scm/li

[GIT PULL] nds32 fixes for 4.18

2018-07-09 Thread Greentime Hu
Greentime Hu Greentime Hu (4): nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it says:

[PATCH] nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when make allyesconfig

2018-07-05 Thread Greentime Hu
up+0xbc): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text' nds32le-linux-ld: kernel/futex.o:(.fixup+0xc4): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text' Makefile:1010: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 Signed-off-by: Greentime Hu ---

[PATCH v2 1/3] nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it says

2018-07-03 Thread Greentime Hu
ot snoop stores then this routine(flush_icache_range) will need to flush it." Signed-off-by: Guo Ren Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cacheflush.h | 9 +-- arch/nds32/mm/cacheflush.c | 53 ++--- 2 files changed, 39 inserti

[PATCH v2 2/3] nds32: Fix the dts pointer is not passed correctly issue.

2018-07-03 Thread Greentime Hu
We found that the original implementation will only use the built-in dtb pointer instead of the pointer pass from bootloader. This bug is fixed by this patch. Signed-off-by: Greentime Hu --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH v2 3/3] nds32: To simplify the implementation of update_mmu_cache()

2018-07-03 Thread Greentime Hu
The checking code is done in kmap_atomic() so that we don't need to check it in update_mmu_cache() again. There is no need to implement it for cache aliasing or cache non-aliasing versions. We can just implement one version for both. Signed-off-by: Greentime Hu --- arch/nds32/mm/cacheflush.c

Re: [PATCH 1/2] nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it say

2018-07-02 Thread Greentime Hu
Guo Ren 於 2018年6月29日 週五 下午4:46寫道: > > On Thu, Jun 28, 2018 at 06:49:27PM +0800, Greentime Hu wrote: > > +void flush_icache_page(struct vm_area_struct *vma, struct page *page) > > +{ > > + unsigned long flags; > > + local_irq_save(flags); > > + c

[PATCH 1/2] nds32: To implement these icache invalidation APIs since nds32 cores don't snoop data cache. This issue is found by Guo Ren. Based on the Documentation/core-api/cachetlb.rst and it says:

2018-06-28 Thread Greentime Hu
ot snoop stores then this routine(flush_icache_range) will need to flush it." Signed-off-by: Guo Ren Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cacheflush.h | 9 +-- arch/nds32/mm/cacheflush.c | 49 + 2 files changed, 35 inserti

[PATCH 2/2] nds32: Fix the dts pointer is not passed correctly issue.

2018-06-28 Thread Greentime Hu
We found that the original implementation will only use the built-in dtb pointer instead of the pointer pass from bootloader. This bug is fixed by this patch. Signed-off-by: Greentime Hu --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch

Re: [PATCH v2] nds32: Fix build error caused by configuration flag rename

2018-06-15 Thread Greentime Hu
James Hogan 於 2018年6月15日 週五 下午8:34寫道: > > On Fri, Jun 15, 2018 at 02:12:58PM +0800, Greentime Hu wrote: > > Thank you James and Guenter. > > Should I pick it in my tree? It will be ok to put in your tree. :) > > > > Acked-by: Greentime Hu > > I think your

Re: [PATCH v2] nds32: Fix build error caused by configuration flag rename

2018-06-15 Thread Greentime Hu
cts in nds32 and adjust the ordering accordingly to be > alphabetical. > > Fixes: 763f96944c95 ("Merge tag 'mips_4.18' of > git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux") > Signed-off-by: Guenter Roeck > [jho...@kernel.org: Rename all 6 symbols, sort, update commi

Re: [PATCH] nds32: define __NDS32_E[BL]__ for sparse

2018-05-29 Thread Greentime Hu
= $(call cc-option, -EL) > +CHECKFLAGS += -D__NDS32_EL__ > else > KBUILD_CFLAGS += $(call cc-option, -EB) > KBUILD_AFLAGS += $(call cc-option, -EB) > LDFLAGS += $(call cc-option, -EB) > +CHECKFLAGS += -D__NDS32_EB__ > endif > > boot := arch/nds32/boot Thank you Luc. I'll pick it in my tree. Acked-by: Greentime Hu

[GIT PULL] nds32 fixes for 4.17

2018-05-27 Thread Greentime Hu
Version: 4.17.0-rc5-00018-g27288975a735 Machine Architecture: nds32 Signed-off-by: Greentime Hu <greent...@andestech.com> ---- Greentime Hu (12): nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined

Re: [PATCH 0/3]nds32: Correct the cache operation for catch aliasing case

2018-05-17 Thread Greentime Hu
nds32: Flush the cache of the page at vmaddr instead of kaddr in > flush_anon_page > nds32: Disable local irq before calling cpu_dcache_wb_page in > copy_user_highpage > > arch/nds32/mm/cacheflush.c | 34 -- > 1 files changed, 20 insert

Re: [PATCH 1/2] nds32: Renaming the file for unaligned access

2018-05-08 Thread Greentime Hu
2018-05-07 14:45 GMT+08:00 Nickhu <nic...@andestech.com>: > Change the name of the file '/proc/sys/nds32/unaligned_acess' > to '/proc/sys/nds32/unaligned_access' > > Signed-off-by: Nickhu <nic...@andestech.com> Thank you, Nick. Reviewed-by: Greentime Hu <greent...@andestech.com>

Re: [PATCH 2/2] nds32: Fix the unaligned access handler

2018-05-08 Thread Greentime Hu
ative. This commit fixes the > unaligned access handler in kernel. > > Signed-off-by: Nickhu <nic...@andestech.com> Thank you, Nick. Reviewed-by: Greentime Hu <greent...@andestech.com>

[PATCH 2/3] nds32: To refine readability of INT_MASK_INITAIAL_VAL

2018-04-30 Thread Greentime Hu
Refine readability of INT_MASK_INITAIAL_VAL with meaningful macro instead of magic number. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/bitfield.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nds32/include/asm/bitfield.h

[PATCH 1/3] nds32: Fix the virtual address may map too much range by tlbop issue.

2018-04-30 Thread Greentime Hu
We use tlbop to map virtual address in the first beginning, however it may map too much if DRAM size is not that big. We have to invalidate the mapping when the page table is created. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/kernel/setup.c | 3 +++ 1 file chan

[PATCH 3/3] nds32: To fix a cache inconsistency issue by setting correct cacheability of NTC

2018-04-30 Thread Greentime Hu
in physical address however kernel will read the data with virtaul address through data cache. In this case, the data of DRAM is latest. This fix will set the correct cacheability to let kernel write/read the latest data in cache instead of DRAM. Signed-off-by: Greentime Hu <greent...@andestech.

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-26 Thread Greentime Hu
2018-04-26 16:24 GMT+08:00 Christoph Hellwig <h...@lst.de>: > On Thu, Apr 26, 2018 at 04:06:34PM +0800, Greentime Hu wrote: >> It works!!! > > Thanks! > > Can you retest the updated tree here with all the fixes and give me > your Tested-by: for the gene

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-26 Thread Greentime Hu
2018-04-26 14:42 GMT+08:00 Christoph Hellwig : > Can you try this patch ontop of either the new or original one? > > --- > diff --git a/lib/dma-noncoherent.c b/lib/dma-noncoherent.c > index f4b8532c20ac..a2c192b3508d 100644 > --- a/lib/dma-noncoherent.c > +++ b/lib/dma-noncoherent.c >

Re: [REVIEW][PATCH 09/22] signal/nds32: Use force_sig_fault where appropriate

2018-04-25 Thread Greentime Hu
nformation it needs, ensures >>> all of the fiddly bits of filling in struct siginfo are done properly >>> and then calls force_sig_info. >>> >>> In short about a 5 line reduction in code for every time force_sig_info >>> is called, which makes the

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-25 Thread Greentime Hu
2018-04-25 14:40 GMT+08:00 Christoph Hellwig <h...@lst.de>: > On Wed, Apr 25, 2018 at 09:43:43AM +0800, Greentime Hu wrote: >> Hi Crhistoph, >> >> The ftmac100 works if I revert this commit. > > Thanks. ftmac100 only use dma_map_page, which in the old n

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-24 Thread Greentime Hu
a_inval_range(start, start + size); > break; > default: > BUG(); Hi Crhistoph, The ftmac100 works if I revert this commit. commit de46b9ba5298aafc47284735a4f21baa8e4ed4b7 Author: Greentime Hu <greent...@andestech.com> Date: Wed Apr 25 09:33:51 2018 +0800 Revert "nds32: use generic dma_noncoherent_ops" This reverts commit 0489ce952072e7542456e0d962437062916ce0df.

Re: [PATCH 13/22] nds32: use generic dma_noncoherent_ops

2018-04-23 Thread Greentime Hu
2018-04-20 16:03 GMT+08:00 Christoph Hellwig : > Switch to the generic noncoherent direct mapping implementation. > > This makes sure kmap_atomic_pfn is consistently used for access to > virtual addresses instead of either using the slower plain kmap > or blindly expecting

[PATCH v2 1/9] nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined issue.

2018-04-20 Thread Greentime Hu
shldi3" [fs/ntfs/ntfs.ko] undefined! ... Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/Kconfig | 6 ++ arch/nds32/Makefile | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/nds32/Kconfig b

[PATCH v2 2/9] nds32: Fix building error when CONFIG_FREEZE is enabled.

2018-04-20 Thread Greentime Hu
-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig index 98e05f997f91..b7404f2dcf5b 100644 --- a/arch/nds32/Kconfig +++ b/arch/n

[PATCH v2 7/9] nds32: Fix the unknown type u8 issue.

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build. We need to include to make sure the type is defined before using it. Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED

2018-04-20 Thread Greentime Hu
)) ^~~ drivers/gpu/drm/udl/udl_fb.c:183:52: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [drivers/gpu/drm/udl/udl_fb.o] Error 1 Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...

[PATCH v2 5/9] nds32: Fix xfs_buf built failed by export invalidate_kernel_vmap_range and flush_kernel_vmap_range

2018-04-20 Thread Greentime Hu
ed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/include/asm/cacheflush.h | 2 ++ arch/nds32/mm/cacheflush.c | 18 ++ 2 files changed, 20 insertions(+) diff --git a/arch/nds32/include/asm/cacheflush.h b/arch

[PATCH v2 9/9] nds32: Fix the allmodconfig build. To make sure CONFIG_CPU_LITTLE_ENDIAN is default y

2018-04-20 Thread Greentime Hu
This way we can build kernel with CONFIG_CPU_LITTLE_ENDIAN=y. Build allmodconfig and allnoconfig are available too. It also fix the endian mismatch issue because AFLAGS and LDFLAGS is not passed correctly. Signed-off-by: Vincent Ren-Wei Chen <vince...@andestech.com> Signed-off-by: Greent

[PATCH v2 3/9] nds32: Fix building error of crypto/xor.c by adding xor.h

2018-04-20 Thread Greentime Hu
When I compiled with allmodconfig, it caused this building failed. crypto/xor.c:25:21: fatal error: asm/xor.h: No such file or directory #include ^ compilation terminated. Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...

[PATCH v2 8/9] nds32: Fix build failed because arch_trace_hardirqs_off is changed to trace_hardirqs_off.

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build when CONFIG_TRACE_IRQFLAGS is enabled. Signed-off-by: Nick Chun-Ming Hu <nic...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/kernel/ex-entry.S | 2 +- 1 file ch

[PATCH v2 6/9] nds32: Fix the symbols undefined issue by exporting them.

2018-04-20 Thread Greentime Hu
save_stack_trace" [kernel/backtracetest.ko] undefined! ERROR: "clear_page" [fs/ocfs2/dlm/ocfs2_dlm.ko] undefined! ERROR: "copy_page" [fs/nilfs2/nilfs2.ko] undefined! ... Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> ---

[PATCH v2 0/9] nds32: fix allmodconfig build

2018-04-20 Thread Greentime Hu
Hi, This patchset is used to fix the allmodconfig building errors. Changes in v2: - To fix the endian mismatch issue. - Use EXPORT_SYMBOL(save_stack_trace) like other architectures. Greentime Hu (9): nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined

Re: [PATCH 6/9] nds32: Fix the symbols undefined issue by exporting them.

2018-04-20 Thread Greentime Hu
2018-04-20 18:41 GMT+08:00 Christoph Hellwig : >> +++ b/arch/nds32/kernel/stacktrace.c >> @@ -9,6 +9,7 @@ void save_stack_trace(struct stack_trace *trace) >> { >> save_stack_trace_tsk(current, trace); >> } >> +EXPORT_SYMBOL(save_stack_trace); > > All other architectures

Re: [9/9] nds32: Fix the allmodconfig build. To make sure CONFIG_CPU_LITTLE_ENDIAN is default y

2018-04-20 Thread Greentime Hu
2018-04-20 2:38 GMT+08:00 Guenter Roeck <li...@roeck-us.net>: > On Thu, Apr 19, 2018 at 09:18:15PM +0800, Greentime Hu wrote: >> This way we can build kernel with CONFIG_CPU_LITTLE_ENDIAN=y and allmodconfig >> will be available. >> >> Signed-off-by: Gree

[PATCH 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED

2018-04-19 Thread Greentime Hu
)) ^~~ drivers/gpu/drm/udl/udl_fb.c:183:52: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [drivers/gpu/drm/udl/udl_fb.o] Error 1 Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/pgtable

[PATCH 1/9] nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined issue.

2018-04-19 Thread Greentime Hu
shldi3" [fs/ntfs/ntfs.ko] undefined! ... Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/Kconfig | 6 ++ arch/nds32/Makefile | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig index 249f38d3388f..98e05f997

[PATCH 6/9] nds32: Fix the symbols undefined issue by exporting them.

2018-04-19 Thread Greentime Hu
save_stack_trace" [kernel/backtracetest.ko] undefined! ERROR: "clear_page" [fs/ocfs2/dlm/ocfs2_dlm.ko] undefined! ERROR: "copy_page" [fs/nilfs2/nilfs2.ko] undefined! ... Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/Kbuild | 1 + ar

[PATCH 2/9] nds32: Fix building error when CONFIG_FREEZE is enabled.

2018-04-19 Thread Greentime Hu
-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig index 98e05f997f91..b7404f2dcf5b 100644 --- a/arch/nds32/Kconfig +++ b/arch/nds32/Kconfig @@ -88,6 +88,7 @@ endmenu menu &

[PATCH 3/9] nds32: Fix building error of crypto/xor.c by adding xor.h

2018-04-19 Thread Greentime Hu
When I compiled with allmodconfig, it caused this building failed. crypto/xor.c:25:21: fatal error: asm/xor.h: No such file or directory #include ^ compilation terminated. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/Kbuild | 1 +

[PATCH 8/9] nds32: Fix build failed because arch_trace_hardirqs_off is changed to trace_hardirqs_off.

2018-04-19 Thread Greentime Hu
It broke the 'allmodconfig' build when CONFIG_TRACE_IRQFLAGS is enabled. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/kernel/ex-entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nds32/kernel/ex-entry.S b/arch/nds32/kernel/ex-entry.S

[PATCH 5/9] nds32: Fix xfs_buf built failed by export invalidate_kernel_vmap_range and flush_kernel_vmap_range

2018-04-19 Thread Greentime Hu
ed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/cacheflush.h | 2 ++ arch/nds32/mm/cacheflush.c | 18 ++ 2 files changed, 20 insertions(+) diff --git a/arch/nds32/include/asm/cacheflush.h b/arch/nds32/include/asm/cacheflush.h index 1240f148ec0f..

[PATCH 7/9] nds32: Fix the unknown type u8 issue.

2018-04-19 Thread Greentime Hu
It broke the 'allmodconfig' build. We need to include to make sure the type is defined before using it. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nds32/include/asm/io.h b/arch/nds32/i

[PATCH 9/9] nds32: Fix the allmodconfig build. To make sure CONFIG_CPU_LITTLE_ENDIAN is default y

2018-04-19 Thread Greentime Hu
This way we can build kernel with CONFIG_CPU_LITTLE_ENDIAN=y and allmodconfig will be available. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/Kconfig.cpu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/nds32/Kconfig.cpu b/arch

Re: nds32 build failures

2018-04-18 Thread Greentime Hu
2018-04-17 20:47 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Mon, Apr 16, 2018 at 11:06 AM, Greentime Hu <green...@gmail.com> wrote: >> 2018-04-16 11:58 GMT+08:00 Guenter Roeck <priv...@roeck-us.net>: >> >> This built failure is because the toolcha

Re: nds32 build failures

2018-04-16 Thread Greentime Hu
2018-04-16 11:58 GMT+08:00 Guenter Roeck : > I thought I should give the brand new architecture a try. Unfortunately, > that was not very successful. > > Build reference: v4.17-rc1 > gcc version: nds32le-elf-gcc (GCC) 7.3.0 > > Building nds32:defconfig ... failed > >

Re: [GIT PULL] Andes(nds32) Port for Linux 4.17

2018-04-02 Thread Greentime Hu
2018-04-03 0:04 GMT+08:00 Linus Torvalds <torva...@linux-foundation.org>: > On Sun, Apr 1, 2018 at 11:01 PM, Greentime Hu <green...@gmail.com> wrote: >> >> This tag contains the core nds32 Linux port(including interrupt controller >> driver and timer driver)

[GIT PULL] Andes(nds32) Port for Linux 4.17

2018-04-02 Thread Greentime Hu
Fix a bug of earlycon.c - Export ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt - Add atcpit100 driver ---- Greentime Hu (41): openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap pro

Re: [PATCH] cris: add ioremap_nocache declaration before include asm-generic/io.h.

2018-03-16 Thread Greentime Hu
2018-03-02 0:38 GMT+08:00 Greentime Hu <green...@gmail.com>: > A future commit for the nds32 architecture bootstrap("asm-generic/io.h: > move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef > CONFIG_MMU") will move the ioremap_nocache out of the CONFI

[PATCH] nds32: fix building failed if using elf toolchain.

2018-03-07 Thread Greentime Hu
-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/kernel/vdso/vdso.lds.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/nds32/kernel/vdso/vdso.lds.S b/arch/nds32/kernel/vdso/vdso.lds.S index 36630352ee02..1f2b16004594 100644 --- a/arch/nds32/kernel/vdso/vdso.lds.S +++ b/arch/nds32/

[PATCH] nds32: To use the generic dump_stack()

2018-03-07 Thread Greentime Hu
Use the generic dump_stack() instead of nds32 one because they are doing the same thing. Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/kernel/traps.c | 12 1 file changed, 12 deletions(-) diff --git a/arch/

Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol

2018-03-07 Thread Greentime Hu
2018-03-07 17:09 GMT+08:00 Petr Mladek : > Ah, there was a mid-air collision. Arnd already answered most of my > questions and even more. > > On Wed 2018-03-07 09:46:27, Arnd Bergmann wrote: >> On Wed, Mar 7, 2018 at 3:21 AM, Sergey Senozhatsky >>

Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol

2018-03-05 Thread Greentime Hu
2018-03-06 12:31 GMT+08:00 Sergey Senozhatsky <sergey.senozhatsky.w...@gmail.com>: > On (03/06/18 10:50), Greentime Hu wrote: > [..] >> > Greentime Hu, you tested this on nds32. Could I use your Tested-by, >> > please? >> > >> >>

Re: [PATCH] dump_stack: convert generic dump_stack into a weak symbol

2018-03-05 Thread Greentime Hu
0080 _dump_stack_arch_desc_str > 00248580 l O __ksymtab 0008 ___ksymtab_dump_stack > 002653d4 l O __ksymtab_strings 000c ___kstrtab_dump_stack > 51a8 g F .text 0042 _dump_stack > 002b69dc g F .init.text 002a _dump_stack_set_arch_desc > 001c2a90

Re: linux-next: build failure after merge of the printk tree

2018-03-04 Thread Greentime Hu
2018-03-05 11:20 GMT+08:00 Dave Young : > On 03/03/18 at 11:47pm, Sergey Senozhatsky wrote: >> Cc-ing Tejun >> >> On (03/02/18 16:54), Petr Mladek wrote: >> [..] >> > > (Though it is not immediately obvious why.) >> > >> > It is a mistery to me. The error appears when I move any

[PATCH] nds32: fix building failed if using older version gcc.

2018-03-01 Thread Greentime Hu
It will be built failed because these options are not supported by older version gcc. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nds32/Makefile | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile

[PATCH] cris: add ioremap_nocache declaration before include asm-generic/io.h.

2018-03-01 Thread Greentime Hu
#define's before importing asm-generic/io.h. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/cris/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/cris/include/asm/io.h b/arch/cris/include/asm/io.h index c92712d30f54..3867db75c314 100644 --- a/arch/

[PATCH] nios2: add ioremap_nocache declaration before include asm-generic/io.h.

2018-03-01 Thread Greentime Hu
e's before importing asm-generic/io.h. Signed-off-by: Greentime Hu <greent...@andestech.com> --- arch/nios2/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index ce072ba0f8dd..9010243077ab 100644 --- a/arch/nios2/

Re: Pull Request for linux-next

2018-02-21 Thread Greentime Hu
2018-02-22 8:29 GMT+08:00 Stephen Rothwell <s...@canb.auug.org.au>: > Hi Greentime, > > On Wed, 21 Feb 2018 16:14:39 +0800 Greentime Hu <green...@gmail.com> wrote: >> >> Could you please add https://github.com/andestech/linux.git next >> to linux-next >>

Re: [PATCH v7 02/37] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-02-21 Thread Greentime Hu
2018-02-21 19:37 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Wed, Feb 21, 2018 at 12:21 PM, Greentime Hu <green...@gmail.com> wrote: >> 2018-02-16 18:47 GMT+08:00 kbuild test robot <l...@intel.com>: > >> >> From: Greentime Hu <greent...@andestech.

Re: [PATCH v7 02/37] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-02-21 Thread Greentime Hu
ng git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Greentime-Hu/Andes-nds32-Linux-Kernel-Port/20180216-155013 > config: xtensa-allmodconfig (attached as .config) > compiler: xtensa-linux-gcc (GC

Pull Request for linux-next

2018-02-21 Thread Greentime Hu
Hi Stephen, Could you please add https://github.com/andestech/linux.git next to linux-next I will be sending pull requests to Linus for nds32 to be included for 4.17 release. https://lkml.org/lkml/2018/2/14/423 Thank you. Greentime :)

Re: [PATCH v7 03/37] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h

2018-02-21 Thread Greentime Hu
2018-02-14 22:43 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Tue, Feb 13, 2018 at 10:09 AM, Greentime Hu <green...@gmail.com> wrote: >> A commit for the nds32 architecture bootstrap("asm-generic/io.h: move >> ioremap_nocache/ioremap_uc/ioremap_wc/ior

Re: [PATCH v7 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-02-20 Thread Greentime Hu
2018-02-13 17:13 GMT+08:00 Greentime Hu <green...@gmail.com>: > Hi, all: > > ATCPIT100 is often used on the Andes architecture, > This timer provide 4 PIT channels. Each PIT channel is a > multi-function timer, can be configured as 32,16,8 bit timers > or PWM as we

Re: [PATCH v7 31/37] MAINTAINERS: Add nds32

2018-02-13 Thread Greentime Hu
2018-02-14 0:02 GMT+08:00 Joe Perches <j...@perches.com>: > On Tue, 2018-02-13 at 17:09 +0800, Greentime Hu wrote: >> Add a maintainer information for the nds32(Andes) architecture. > [] >> diff --git a/MAINTAINERS b/MAINTAINERS > [] >> @@ -868,6 +868,17 @@ X

[PATCH v7 00/37] Andes(nds32) Linux Kernel Port

2018-02-13 Thread Greentime Hu
oremap.c - Refine irq-ativic32.c - Fix a bug of earlycon.c - Export ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt - Add atcpit100 driver Greentime Hu (37): openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it. asm-generic/io.h: mo

[PATCH v7 02/37] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-02-13 Thread Greentime Hu
It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- include/asm-generic/io.h | 18

[PATCH v7 04/37] earlycon: add reg-offset to physical address before mapping

2018-02-13 Thread Greentime Hu
It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> Cc: Peter Hurley <pe...@hurl

[PATCH v7 05/37] drivers/video/concole: add negative dependency for VGA_CONSOLE on nds32

2018-02-13 Thread Greentime Hu
reference to `screen_info' drivers/video/console/vgacon.o:/NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:591: more undefined references to `screen_info' follow make: *** [vmlinux] Error 1 Signed-off-by: Greentime Hu <greent...@andestech.com> --- drivers

[PATCH v7 06/37] nds32: Assembly macros and definitions

2018-02-13 Thread Greentime Hu
This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/include/asm/assemble

[PATCH v7 08/37] nds32: Exception handling

2018-02-13 Thread Greentime Hu
accessing handler cannot work if this unaligned address is not accessible such as protection violation. On this condition, the default behaviors for addressing data unaligned exception still happen Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@ande

[PATCH v7 07/37] nds32: Kernel booting and initialization

2018-02-13 Thread Greentime Hu
This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com&g

[PATCH v7 10/37] nds32: MMU initialization

2018-02-13 Thread Greentime Hu
This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/mm/highmem.c | 79 ++ arch/nds32/m

[PATCH v7 09/37] nds32: MMU definitions

2018-02-13 Thread Greentime Hu
This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann &l

[PATCH v7 12/37] nds32: Cache and TLB routines

2018-02-13 Thread Greentime Hu
This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/include/asm/cache.h | 12 + arch/nds32/includ

[PATCH v7 11/37] nds32: MMU fault handling and page table management

2018-02-13 Thread Greentime Hu
This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen <vince...@andestech.com> Signed-off-by: Greentime Hu <greent...@andestech.com> Acked-by: Arnd Bergmann <a...@arndb.de> --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/

  1   2   3   4   5   >