- 10 2月, 2015 1 次提交
-
-
由 Ley Foon Tan 提交于
Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
- 09 2月, 2015 3 次提交
-
-
由 Ley Foon Tan 提交于
Commit d065bd81 ("mm: retry page fault when blocking on disk transfer") and and commit 37b23e05 ("x86,mm: make pagefault killable") The above commits introduced changes into the nios2 pagefault handler for making the page fault handler retryable as well as killable. These changes reduce the mmap_sem hold time, which is crucial during OOM killer invocation. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Tobias Klauser 提交于
prepare_to_copy() was removed from all architectures supported at that time in commit 55ccf3fe ("fork: move the real prepare_to_copy() users to arch_dup_task_struct()"). Remove it from nios2 as well. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Chung-Ling Tang 提交于
Follow other architectures for user fault handling. Signed-off-by: NChung-Ling Tang <cltang@codesourcery.com> Acked-by: NLey Foon Tan <lftan@altera.com>
-
- 30 1月, 2015 1 次提交
-
-
由 Linus Torvalds 提交于
The core VM already knows about VM_FAULT_SIGBUS, but cannot return a "you should SIGSEGV" error, because the SIGSEGV case was generally handled by the caller - usually the architecture fault handler. That results in lots of duplication - all the architecture fault handlers end up doing very similar "look up vma, check permissions, do retries etc" - but it generally works. However, there are cases where the VM actually wants to SIGSEGV, and applications _expect_ SIGSEGV. In particular, when accessing the stack guard page, libsigsegv expects a SIGSEGV. And it usually got one, because the stack growth is handled by that duplicated architecture fault handler. However, when the generic VM layer started propagating the error return from the stack expansion in commit fee7e49d ("mm: propagate error from stack expansion even for guard page"), that now exposed the existing VM_FAULT_SIGBUS result to user space. And user space really expected SIGSEGV, not SIGBUS. To fix that case, we need to add a VM_FAULT_SIGSEGV, and teach all those duplicate architecture fault handlers about it. They all already have the code to handle SIGSEGV, so it's about just tying that new return value to the existing code, but it's all a bit annoying. This is the mindless minimal patch to do this. A more extensive patch would be to try to gather up the mostly shared fault handling logic into one generic helper routine, and long-term we really should do that cleanup. Just from this patch, you can generally see that most architectures just copied (directly or indirectly) the old x86 way of doing things, but in the meantime that original x86 model has been improved to hold the VM semaphore for shorter times etc and to handle VM_FAULT_RETRY and other "newer" things, so it would be a good idea to bring all those improvements to the generic case and teach other architectures about them too. Reported-and-tested-by: NTakashi Iwai <tiwai@suse.de> Tested-by: NJan Engelhardt <jengelh@inai.de> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> # "s390 still compiles and boots" Cc: linux-arch@vger.kernel.org Cc: stable@vger.kernel.org Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 22 1月, 2015 1 次提交
-
-
由 Ley Foon Tan 提交于
__kuser_sigtramp address should be 0x1044 instead of 0x1040. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
- 20 1月, 2015 1 次提交
-
-
由 Rusty Russell 提交于
Nothing needs the module pointer any more, and the next patch will call it from RCU, where the module itself might no longer exist. Removing the arg is the safest approach. This just codifies the use of the module_alloc/module_free pattern which ftrace and bpf use. Signed-off-by: NRusty Russell <rusty@rustcorp.com.au> Acked-by: NAlexei Starovoitov <ast@kernel.org> Cc: Mikael Starvik <starvik@axis.com> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Ley Foon Tan <lftan@altera.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Chris Metcalf <cmetcalf@ezchip.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: x86@kernel.org Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: linux-cris-kernel@axis.com Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: nios2-dev@lists.rocketboards.org Cc: linuxppc-dev@lists.ozlabs.org Cc: sparclinux@vger.kernel.org Cc: netdev@vger.kernel.org
-
- 31 12月, 2014 2 次提交
-
-
由 Tobias Klauser 提交于
Follow aa0d5326 ("ia64: Use preempt_schedule_irq") and use preempt_schedule_irq instead of enabling/disabling interrupts and messing around with PREEMPT_ACTIVE in the nios2 low-level preemption code ourselves. Also get rid of the now needless re-check for TIF_NEED_RESCHED, preempt_schedule_irq will already take care of rescheduling. This also fixes the following build error when building with CONFIG_PREEMPT: arch/nios2/kernel/built-in.o: In function `need_resched': arch/nios2/kernel/entry.S:374: undefined reference to `PREEMPT_ACTIVE' Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Walter Goossens 提交于
This patch initializes the mmu field of the cpuinfo structure to the value supplied by the devicetree. Signed-off-by: NWalter Goossens <waltergoossens@home.nl> Acked-by: NLey Foon Tan <lftan@altera.com>
-
- 17 12月, 2014 3 次提交
-
-
由 Ley Foon Tan 提交于
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Suggested-by: NMichael S. Tsirkin <mst@redhat.com> Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Paul Bolle 提交于
Running "make defconfig" currently fails for nios2: $ make ARCH=nios2 defconfig scripts/kconfig/conf --defconfig Kconfig *** *** Can't find default configuration "arch/nios2/defconfig"! *** make[1]: *** [defconfig] Error 1 make: *** [defconfig] Error 2 Add a definition for KBUILD_DEFCONFIG to the nios2's main Makefile to enable this make target. Signed-off-by: NPaul Bolle <pebolle@tiscali.nl> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Guenter Roeck 提交于
Fix drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core': drivers/gpu/drm/drm_bufs.c:213:5: error: implicit declaration of function 'ioremap_wc' seen when building nios2:allmodconfig. Signed-off-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NLey Foon Tan <lftan@altera.com>
-
- 08 12月, 2014 28 次提交
-
-
由 Tobias Klauser 提交于
If NIOS2_CMDLINE_IGNORE_DTB is selected but CMDLINE_BOOL isn't and thus CONFIG_CMDLINE is not defined, the build fails with the following error: arch/nios2/kernel/setup.c: In function 'nios2_boot_init': arch/nios2/kernel/setup.c:131:30: error: 'CONFIG_CMDLINE' undeclared (first use in this function) strncpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE); This can be reproduced using randconfig with KCONFIG_SEED=0xE5B8749E, i.e. 'make KCONFIG_SEED=0xE5B8749E ARCH=nios2 randconfig'. Fix this by letting NIOS2_CMDLINE_IGNORE_DTB depend on CMDLINE_BOOL, so we actually have a default kernel command string to fall back to. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Tobias Klauser 提交于
kernel/time/Kconfig expects that NR_CPUS is defined. This fixes the following config warning: "kernel/time/Kconfig:163:warning: range is invalid" Follow 4cbbbb43 ("microblaze: Fix missing NR_CPUS in menuconfig") Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Tobias Klauser 提交于
TI_TASK is not used in nios2 assembly code, so remove it. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Tobias Klauser 提交于
The irq member of struct nios2_timer is only written to but never read, thus it can be removed. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Tobias Klauser 提交于
shm_align_mask is not defined/used on nios2, thus there is no need to declare it. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This is require for __iomem definition. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Move asm-generic/io.h to end of file to override functions like phys_to_virt, virt_to_phys in asm-generic/io.h. This is due to recent commit 9216efaf introduced new way to override functions by checking for the existence of a macro with the same of the function. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Don't need asm-generic/iomap.h and asm-generic/io.h added default ioread8/16/32 iowrite8/16/32 implementation. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Remove extra space between # and define. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Dmitry Torokhov 提交于
Return value of irq_of_parse_and_map() is unsigned int, with 0 indicating failure, so testing for negative result never works. Signed-off-by: NDmitry Torokhov <dtor@chromium.org> Reviewed-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Tobias Klauser 提交于
Make the checking for div/mul/mulx instruction config symbols easier to read by using IS_ENABLED instead of #ifdefs. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Acked-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds Makefile and Kconfig files required for building a nios2 kernel. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Add ptrace support for nios2. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds support for loadable modules. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This file contains constants for the instruction macros, cpu registers, fields and bits. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch introduces a few nios2-specific header files. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Add time keeping code for nios2. Signed-off-by: NLey Foon Tan <lftan@altera.com> Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
-
由 Ley Foon Tan 提交于
Add device tree support to arch/nios2. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
Add optimised library functions for nios2. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds support for signal handling. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds support for system calls from userspaces. It uses the asm-generic/unistd.h definitions with architecture spcific syscall. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds definitions for the ELF format Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds support for the DMA mapping API. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds the support for IRQ handling. Signed-off-by: NLey Foon Tan <lftan@altera.com> Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
-
由 Ley Foon Tan 提交于
This patch adds the TLB maintenance functions. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds functionality required for cache maintenance. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-
由 Ley Foon Tan 提交于
This patch adds support for thread creation and context switching. Signed-off-by: NLey Foon Tan <lftan@altera.com>
-