- 22 2月, 2018 31 次提交
-
-
由 Greentime Hu 提交于
Add a maintainer information for the nds32(Andes) architecture. Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 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>
-
由 Greentime Hu 提交于
This patch adds support for signal handling. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). 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 system calls. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. 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 the DMA mapping API. It uses dma_map_ops for flexibility. 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 ioremap implementations. 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 includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. 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 includes irq related functions and irqchip_init(). 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 includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. 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 contains cache and TLB maintenance functions. 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 includes page fault handler, mmap and fixup implementations. 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 includes memory initializations and highmem supporting. 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 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: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch includes the exception/interrupt entries, pt_reg structure and related accessors. /* Unaligned accessing handling*/ Andes processors cannot load/store information which is not naturally aligned on the bus, i.e., loading a 4 byte data whose start address must be divisible by 4. If unaligned data accessing is happened, data unaligned exception will be triggered and user will get SIGSEGV or kernel oops according to the unaligned address. In order to make user be able to load/store data from an unaligned address, software load/store emulation is implemented in arch/nds32/mm/alignment.c to address data unaligned exception. Unaligned accessing handling is disabled by default because it is not a normal case. User can enable this feature by following steps. A. Compile time: 1. Enable kernel config CONFIG_ALIGNMENT_TRAP B. Run time: 1. Enter /proc/sys/nds32/unaligned_acess folder 2. Write 1 to file enable_mode to enable unaligned accessing handling. User can disable it by writing 0 to this file. 3. Write 1 to file debug to show which unaligned address is under processing. User can disable it by writing 0 to this file. However, unaligned 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: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 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: NVincent Chen <vincentc@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. 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 提交于
nds32 does not support VGA console, so prevent that kconfig symbol from being enabled for nds32, thus fixing these build errors: drivers/video/console/vgacon.o: In function `vgacon_save_screen': /NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:1327: undefined reference to `screen_info' /NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:1327: undefined reference to `screen_info' /NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:1328: undefined reference to `screen_info' /NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:1328: undefined reference to `screen_info' drivers/video/console/vgacon.o: In function `vgacon_init': /NOBACKUP/sqa2/greentime/contrib/src_pkg/linux-nds32/drivers/video/console/vgacon.c:591: undefined 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: NGreentime Hu <greentime@andestech.com>
-
由 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: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de> Acked-by: NRob Herring <robh@kernel.org> Cc: Peter Hurley <peter@hurleysoftware.com> Cc: stable@vger.kernel.org Fixes: 088da2a1 ("of: earlycon: Initialize port fields from DT properties")
-
由 Greentime Hu 提交于
It allows some architectures to use this generic macro instead of defining theirs. sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h It will move the ioremap_nocache out of the CONFIG_MMU ifdef. This means that in order to suppress re-definition errors we need to remove the #define in arch/sparc/include/asm/io_32.h. Also, the change adds a prototype for ioremap where size is size_t and offset is phys_addr_t so fix that as well. Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
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 CONFIG_MMU ifdef. This means that in order to suppress re-definition errors we need to setup #define's before importing asm-generic/io.h. Signed-off-by: NGreentime Hu <greentime@andestech.com>
-
由 Greentime Hu 提交于
openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it. 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 CONFIG_MMU ifdef. This means that in order to suppress re-definition errors we need to setup #define's before importing asm-generic/io.h. Also, the change adds a prototype for ioremap where size is size_t so fix that as well. Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NStafford Horne <shorne@gmail.com>
-
- 12 2月, 2018 7 次提交
-
-
由 Linus Torvalds 提交于
-
由 Al Viro 提交于
except, again, POLLFREE and POLL_BUSY_LOOP. With this, we finally get to the promised end result: - POLL{IN,OUT,...} are plain integers and *not* in __poll_t, so any stray instances of ->poll() still using those will be caught by sparse. - eventpoll.c and select.c warning-free wrt __poll_t - no more kernel-side definitions of POLL... - userland ones are visible through the entire kernel (and used pretty much only for mangle/demangle) - same behavior as after the first series (i.e. sparc et.al. epoll(2) working correctly). Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Linus Torvalds 提交于
This is the mindless scripted replacement of kernel use of POLL* variables as described by Al, done by this script: for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'` for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done done with de-mangling cleanups yet to come. NOTE! On almost all architectures, the EPOLL* constants have the same values as the POLL* constants do. But they keyword here is "almost". For various bad reasons they aren't the same, and epoll() doesn't actually work quite correctly in some cases due to this on Sparc et al. The next patch from Al will sort out the final differences, and we should be all done. Scripted-by: NAl Viro <viro@zeniv.linux.org.uk> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs由 Linus Torvalds 提交于
Pull more poll annotation updates from Al Viro: "This is preparation to solving the problems you've mentioned in the original poll series. After this series, the kernel is ready for running for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'` for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done done as a for bulk search-and-replace. After that, the kernel is ready to apply the patch to unify {de,}mangle_poll(), and then get rid of kernel-side POLL... uses entirely, and we should be all done with that stuff. Basically, that's what you suggested wrt KPOLL..., except that we can use EPOLL... instead - they already are arch-independent (and equal to what is currently kernel-side POLL...). After the preparations (in this series) switch to returning EPOLL... from ->poll() instances is completely mechanical and kernel-side POLL... can go away. The last step (killing kernel-side POLL... and unifying {de,}mangle_poll() has to be done after the search-and-replace job, since we need userland-side POLL... for unified {de,}mangle_poll(), thus the cherry-pick at the last step. After that we will have: - POLL{IN,OUT,...} *not* in __poll_t, so any stray instances of ->poll() still using those will be caught by sparse. - eventpoll.c and select.c warning-free wrt __poll_t - no more kernel-side definitions of POLL... - userland ones are visible through the entire kernel (and used pretty much only for mangle/demangle) - same behavior as after the first series (i.e. sparc et.al. epoll(2) working correctly)" * 'work.poll2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: annotate ep_scan_ready_list() ep_send_events_proc(): return result via esed->res preparation to switching ->poll() to returning EPOLL... add EPOLLNVAL, annotate EPOLL... and event_poll->event use linux/poll.h instead of asm/poll.h xen: fix poll misannotation smc: missing poll annotations
-
git://github.com/jcmvbkbc/linux-xtensa由 Linus Torvalds 提交于
Pull xtense fix from Max Filippov: "Build fix for xtensa architecture with KASAN enabled" * tag 'xtensa-20180211' of git://github.com/jcmvbkbc/linux-xtensa: xtensa: fix build with KASAN
-
git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2由 Linus Torvalds 提交于
Pull nios2 update from Ley Foon Tan: - clean up old Kconfig options from defconfig - remove leading 0x and 0s from bindings notation in dts files * tag 'nios2-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2: nios2: defconfig: Cleanup from old Kconfig options nios2: dts: Remove leading 0x and 0s from bindings notation
-
由 Max Filippov 提交于
The commit 917538e2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage") removed KASAN_SHADOW_SCALE_SHIFT definition from include/linux/kasan.h and added it to architecture-specific headers, except for xtensa. This broke the xtensa build with KASAN enabled. Define KASAN_SHADOW_SCALE_SHIFT in arch/xtensa/include/asm/kasan.h Reported by: kbuild test robot <fengguang.wu@intel.com> Fixes: 917538e2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage") Acked-by: NAndrey Konovalov <andreyknvl@google.com> Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
-
- 11 2月, 2018 2 次提交
-
-
由 Krzysztof Kozlowski 提交于
Remove old, dead Kconfig option INET_LRO. It is gone since commit 7bbf3cae ("ipv4: Remove inet_lro library"). Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org> Acked-by: NLey Foon Tan <ley.foon.tan@intel.com>
-
由 Mathieu Malaterre 提交于
Improve the DTS files by removing all the leading "0x" and zeros to fix the following dtc warnings: Warning (unit_address_format): Node /XXX unit name should not have leading "0x" and Warning (unit_address_format): Node /XXX unit name should not have leading 0s Converted using the following command: find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" {} + For simplicity, two sed expressions were used to solve each warnings separately. To make the regex expression more robust a few other issues were resolved, namely setting unit-address to lower case, and adding a whitespace before the the opening curly brace: https://elinux.org/Device_Tree_Linux#Linux_conventions This is a follow up to commit 4c9847b7 ("dt-bindings: Remove leading 0x from bindings notation") Reported-by: NDavid Daney <ddaney@caviumnetworks.com> Suggested-by: NRob Herring <robh@kernel.org> Signed-off-by: NMathieu Malaterre <malat@debian.org> Acked-by: NLey Foon Tan <ley.foon.tan@intel.com>
-