- 22 2月, 2018 37 次提交
-
-
由 Greentime Hu 提交于
This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: NGreentime Hu <greentime@andestech.com> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds the Andestech Internal Vector Interrupt Controller driver. You can find the spec here. Ch4.9 of AndeStar SPA V3 Manual. http://www.andestech.com/product.php?cls=9Signed-off-by: NRick Chen <rick@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NMarc Zyngier <marc.zyngier@arm.com>
-
由 Greentime Hu 提交于
This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: NRick Chen <rick@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NRob Herring <robh@kernel.org> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NRob Herring <robh@kernel.org> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds nds32 L2 cache controller binding documents. Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NRob Herring <robh@kernel.org> Acked-by: NArnd Bergmann <arnd@arndb.de>
-
由 Greentime Hu 提交于
This patch adds nds32 CPU binding documents. Signed-off-by: NVincent Chen <vincentc@andestech.com> Signed-off-by: NRick Chen <rick@andestech.com> Signed-off-by: NZong Li <zong@andestech.com> Signed-off-by: NGreentime Hu <greentime@andestech.com> Reviewed-by: NRob Herring <robh@kernel.org>
-
由 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 3 次提交
-
-
由 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>
-