- 02 8月, 2018 1 次提交
-
-
由 Christoph Hellwig 提交于
Instead of duplicating the source statements in every architecture just do it once in the toplevel Kconfig file. Note that with this the inclusion of arch/$(SRCARCH/Kconfig moves out of the top-level Kconfig into arch/Kconfig so that don't violate ordering constraits while keeping a sensible menu structure. Signed-off-by: NChristoph Hellwig <hch@lst.de> Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
-
- 29 5月, 2018 3 次提交
-
-
由 Christoph Hellwig 提交于
Switch to the generic noncoherent direct mapping implementation. Signed-off-by: NChristoph Hellwig <hch@lst.de> Acked-by: NGreentime Hu <greentime@andestech.com> Tested-by: NGreentime Hu <greentime@andestech.com>
-
由 Christoph Hellwig 提交于
This matches the implementation of the more commonly used unmap_single routines and the sync_sg_for_cpu method which should provide equivalent cache maintainance. Signed-off-by: NChristoph Hellwig <hch@lst.de> Acked-by: NGreentime Hu <greentime@andestech.com> Tested-by: NGreentime Hu <greentime@andestech.com>
-
由 Christoph Hellwig 提交于
Make sure all other DMA methods call nds32_dma_sync_single_for_{device,cpu} to perform cache maintaince, and remove the consisteny_sync helper that implemented both with entirely separate code based off an argument. Also make sure these helpers handled highmem properly, for which code is copy and pasted from mips. Signed-off-by: NChristoph Hellwig <hch@lst.de> Acked-by: NGreentime Hu <greentime@andestech.com> Tested-by: NGreentime Hu <greentime@andestech.com>
-
- 23 5月, 2018 18 次提交
-
-
由 Vincent Chen 提交于
Getting a compiler warning, Wstringop-overflow, in arch/nds32/kernel/vdso.c when kernel is built by gcc-8. Declaring vdso_start and vdso_end as a pointer to fix this compiler warning. Signed-off-by: NVincent Chen <vincentc@andestech.com> Reviewed-by: NGreentime Hu <greentime@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Vincent Chen 提交于
In order to ensure that all data in source page has been written back to memory before copy_page, the local irq shall be disabled before calling cpu_dcache_wb_page(). In addition, removing unneeded page invalidation for 'to' page. Signed-off-by: NVincent Chen <vincentc@andestech.com> Reviewed-by: NGreentime Hu <greentime@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Vincent Chen 提交于
According to Documentation/cachetlb.txt, the cache of the page at vmaddr shall be flushed in flush_anon_page instead of the cache of the page at page_address(page). Signed-off-by: NVincent Chen <vincentc@andestech.com> Reviewed-by: NGreentime Hu <greentime@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Vincent Chen 提交于
1. Disable local irq before d-cache write-back and invalidate. The cpu_dcache_wbinval_page function is composed of d-cache write-back and invalidate. If the local irq is enabled when calling cpu_dcache_wbinval_page, the content of d-cache is possibly updated between write-back and invalidate. In this case, the updated data will be dropped due to the following d-cache invalidation. Therefore, we disable the local irq before calling cpu_dcache_wbinval_page. 2. Correct the data write-back for page aliasing case. Only the page whose (page->index << PAGE_SHIFT) is located at the same page color as page_address(page) needs to execute data write-back in flush_dcache_page function. Signed-off-by: NVincent Chen <vincentc@andestech.com> Reviewed-by: NGreentime Hu <greentime@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Nickhu 提交于
If the kernel config 'CONFIG_ALIGNMENT_TRAP' and the file '/proc/sys/nds32/unaligned_access/enable' are set, the kernel unaligned access handler does not handle correctly when the value of immediate field is negative. This commit fixes the unaligned access handler in kernel. Signed-off-by: NNickhu <nickhu@andestech.com> Reviewed-by: NGreentime Hu <greentime@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Nickhu 提交于
Change the name of the file '/proc/sys/nds32/unaligned_acess' to '/proc/sys/nds32/unaligned_access' Signed-off-by: NNickhu <nickhu@andestech.com> Reviewed-by: NGreentime Hu <greentime@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
The nds32 architecture will use physical memory when interrupt or exception comes and it will use the setting of NTC0-4. The original implementation didn't consider the DRAM start address may start from 1GB, 2GB or 3GB to cause this issue. It will write the data to DRAM if it is running 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: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
Refine readability of INT_MASK_INITAIAL_VAL with meaningful macro instead of magic number. Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 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: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
This way we can build kernel with CONFIG_CPU_LITTLE_ENDIAN=y. Build allmodconfig and allnoconfig are available too. It also fixes the endian mismatch issue because AFLAGS and LDFLAGS is not passed correctly. Signed-off-by: NVincent Ren-Wei Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
It broke the 'allmodconfig' build when CONFIG_TRACE_IRQFLAGS is enabled. Signed-off-by: NNick Chun-Ming Hu <nickhu@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
It broke the 'allmodconfig' build. We need to include <linux/types.h> to make sure the type is defined before using it. Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
It broke the 'allmodconfig' build. LD vmlinux SYSMAP System.map Building modules, stage 2. MODPOST 5028 modules ERROR: "flush_dcache_page" [net/sunrpc/xprtrdma/rpcrdma.ko] undefined! ERROR: "empty_zero_page" [net/ceph/libceph.ko] undefined! ERROR: "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: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
It broke the 'allmodconfig' build. fs/xfs/xfs_buf.c: In function 'xfs_buf_bio_end_io': fs/xfs/xfs_buf.c:1242:3: error: implicit declaration of function 'invalidate_kernel_vmap_range' [-Werror=implicit-function-declaration] invalidate_kernel_vmap_range(bp->b_addr, xfs_buf_vmap_len(bp)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/xfs_buf.c: In function 'xfs_buf_ioapply_map': fs/xfs/xfs_buf.c:1312:4: error: implicit declaration of function 'flush_kernel_vmap_range' [-Werror=implicit-function-declaration] flush_kernel_vmap_range(bp->b_addr, ^~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
It broke the 'allmodconfig' build. drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_mmap': drivers/gpu/drm/udl/udl_fb.c:183:52: error: 'PAGE_SHARED' undeclared (first use in this function) if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) ^~~~~~~~~~~ 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: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 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 <asm/xor.h> ^ compilation terminated. Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
To include kernel/Kconfig.freezer to make sure the dependency between CONFIG_CGROUP_FREEZER and CONFIG_FREEZER It will cause building error when I make allmodconfig. kernel/cgroup/freezer.c: In function 'freezer_css_online': kernel/cgroup/freezer.c:116:15: error: 'system_freezing_cnt' undeclared (first use in this function) atomic_inc(&system_freezing_cnt); ^~~~~~~~~~~~~~~~~~~ kernel/cgroup/freezer.c:116:15: note: each undeclared identifier is reported only once for each function it appears in kernel/cgroup/freezer.c: In function 'freezer_css_offline': kernel/cgroup/freezer.c:137:15: error: 'system_freezing_cnt' undeclared (first use in this function) atomic_dec(&system_freezing_cnt); ^~~~~~~~~~~~~~~~~~~ kernel/cgroup/freezer.c: In function 'freezer_attach': kernel/cgroup/freezer.c:181:4: error: implicit declaration of function 'freeze_task' [-Werror=implicit-function-declaration] freeze_task(task); ^~~~~~~~~~~ kernel/cgroup/freezer.c: In function 'freezer_apply_state': kernel/cgroup/freezer.c:360:16: error: 'system_freezing_cnt' undeclared (first use in this function) atomic_inc(&system_freezing_cnt); ^~~~~~~~~~~~~~~~~~~ Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
We can use the generic lib to fix these error because the symbol of libgcc in toolchain is not exported. ERROR: "__ucmpdi2" [fs/xfs/xfs.ko] undefined! ERROR: "__ashrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__lshrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__ashldi3" [fs/ntfs/ntfs.ko] undefined! ... Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
- 25 4月, 2018 4 次提交
-
-
由 Eric W. Biederman 提交于
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the information 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 calling function clearer. Cc: Greentime Hu <green.hu@gmail.com> Cc: Vincent Chen <deanbo422@gmail.com> Acked-by: NVincent Chen <deanbo422@gmail.com> Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
-
由 Eric W. Biederman 提交于
Call clear_siginfo to ensure every stack allocated siginfo is properly initialized before being passed to the signal sending functions. Note: It is not safe to depend on C initializers to initialize struct siginfo on the stack because C is allowed to skip holes when initializing a structure. The initialization of struct siginfo in tracehook_report_syscall_exit was moved from the helper user_single_step_siginfo into tracehook_report_syscall_exit itself, to make it clear that the local variable siginfo gets fully initialized. In a few cases the scope of struct siginfo has been reduced to make it clear that siginfo siginfo is not used on other paths in the function in which it is declared. Instances of using memset to initialize siginfo have been replaced with calls clear_siginfo for clarity. Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
-
由 Eric W. Biederman 提交于
As originally committed do_revisn would deliver a siginfo for SIGILL with an si_code composed of random stack contents. That makes no sense and is not something userspace can depend on. So simplify the code and just use "force_sig(SIG_ILL, current)" instead. Fixes: 2923f5ea ("nds32: Exception handling") Cc: Vincent Chen <vincentc@andestech.com> Cc: Greentime Hu <greentime@andestech.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
-
由 Eric W. Biederman 提交于
Neither unhandled_interrupt nor unhandled_exceptions fills in any of the siginfo fields whend sending SIGKILL. Further because it is SIGKILL even if all of the fields were filled out appropriately it would be impossible for the process to read any of the siginfo fields. So simplfy things and just use force_sig instead of force_sig_info. Fixes: 2923f5ea ("nds32: Exception handling") Cc: Vincent Chen <vincentc@andestech.com> Cc: Greentime Hu <greentime@andestech.com> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
-
- 19 4月, 2018 1 次提交
-
-
由 Arnd Bergmann 提交于
We have a couple of files that try to include asm/compat.h on architectures where this is available. Those should generally use the higher-level linux/compat.h file, but that in turn fails to include asm/compat.h when CONFIG_COMPAT is disabled, unless we can provide that header on all architectures. This adds the asm/compat.h for all remaining architectures to simplify the dependencies. Architectures that are getting removed in linux-4.17 are not changed here, to avoid needless conflicts with the removal patches. Those architectures are broken by this patch, but we have already shown that they have no users. Signed-off-by: NArnd Bergmann <arnd@arndb.de>
-
- 12 4月, 2018 1 次提交
-
-
由 Matthew Wilcox 提交于
Remove the address_space ->tree_lock and use the xa_lock newly added to the radix_tree_root. Rename the address_space ->page_tree to ->i_pages, since we don't really care that it's a tree. [willy@infradead.org: fix nds32, fs/dax.c] Link: http://lkml.kernel.org/r/20180406145415.GB20605@bombadil.infradead.orgLink: http://lkml.kernel.org/r/20180313132639.17387-9-willy@infradead.orgSigned-off-by: NMatthew Wilcox <mawilcox@microsoft.com> Acked-by: NJeff Layton <jlayton@redhat.com> Cc: Darrick J. Wong <darrick.wong@oracle.com> Cc: Dave Chinner <david@fromorbit.com> Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 16 3月, 2018 3 次提交
-
-
由 Greentime Hu 提交于
Use the generic dump_stack() instead of nds32 one because they are doing the same thing. Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
OUTPUT_FORMAT is not necessary here and the elf toolchain doesn't support these formats. Since kernel should be built pass with elf or Linux toolchain. This can be removed from vdso.ld.S These are the built failed messages. VDSOL arch/nds32/kernel/vdso/vdso.so.dbg /home/users/greentime/tmp/nds32le-elf-newlib-v3-upstream-b224/bin/../lib/gcc/nds32le-elf/8.0.1/../../../../nds32le-elf/bin/ld: target elf32-nds32le-linux not found collect2: error: ld returned 1 exit status make[1]: *** [arch/nds32/kernel/vdso/vdso.so.dbg] Error 1 make: *** [vdso_prepare] Error 2 Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
It will be built failed because these options are not supported by older version gcc. Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
- 22 2月, 2018 9 次提交
-
-
由 Greentime Hu 提交于
This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds nds32 defconfig. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch introduces some miscellaneous header files. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds support for device tree. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds support for timer. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NLinus Walleij <linus.walleij@linaro.org> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds support for loadable modules. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds L2 cache support. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds ptrace support. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch add support for various library functions. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-