aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* microblaze_mmu_v2: entry.S, entry.hMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Add CURRENT_TASK for entry.SMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: MMU asm offset updateMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Update tlb.h and tlbflush.hMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Update process creation for MMUMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: pgalloc.h and page.hMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: io.h MMU updateMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Page table - ioremap - pgtable.c/h, section updateMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Context handling - mmu_context.c/hMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Page fault handling high level - fault.cMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: mmu.h updateMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: MMU initializationMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: TLB low level codeMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Alocate TLB for early consoleMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: MMU update for startup codeMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze_mmu_v2: Add mmu_defconfigMichal Simek2009-05-26
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Fix size of __kernel_mode_t to shortMichal Simek2009-05-26
| | | | | | | This patches solve problem with inconsistency between kernel and glibc Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Add audit and seccomp thread flags.Edgar E. Iglesias2009-05-26
| | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* microblaze: Kbuild updateMichal Simek2009-05-22
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Fix cast warning for __va in prom.cMichal Simek2009-05-21
| | | | | | | __va expect 32bit value but of_read_ulong(of_read_number) returns 64bit value Signed-off-by: Michal Simek <monstr@monstr.eu>
* Microblaze: Remove unused variable from paging initMichal Simek2009-05-21
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Cleanup compiled-in rootfs in BSS sectionMichal Simek2009-05-21
| | | | | | | | | | | This patch is based on patch from Steve Magnani. There were bug for compiled-in rootfs. We have to move moving rootfs which is in BSS section to _ebss section which is at the end of kernel and then clear bss section not vice-versa. Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Fix early cmdline for CMDLINE_FORCEMichal Simek2009-05-21
| | | | | | | | | | | | This patch fixed parsing early parameters because current implementation does that early parse DTS command line and then parse CMDLINE line which is compiled-in. For case that DTS doesn't contain command line is copied command line from kernel with is done in prom.c that's why I can remove it from machine_early_init. Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Guard __HAVE_ARCH macros with __KERNEL__ in string.hSteve Magnani2009-05-21
| | | | | | | | | | | | | A polarity reversal in the __KERNEL__ guard prevents the __HAVE_ARCH flags from being defined in kernel compilation. I noticed that there's now an option for assembly-optimized versions of memcpy and memmove. I believe this may be buggy; when I turn it on, all my printk output gets smashed together, as if the newlines aren't getting copied. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: clean LDFLAGS to build kernelThomas Chou2009-05-21
| | | | | | | | Extra LDFLAGS from user space building may cause kernel failed to compile. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Fix paging init-zone initializationSteve Magnani2009-05-21
| | | | | | | | | | | | | | This patch fix problem with bad zone initialization. This bug wasn't perform because Microblaze doesn't define CONFIG_ZONE_DMA and ZONE_NORMAL was 0 for this case that's why free_area_init works with correct values. Original message: I believe that the switch from ZONE_DMA (== 0) to ZONE_NORMAL broke the free area initialization. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: use generic dma-mapping-broken.hArnd Bergmann2009-05-21
| | | | | | | | | | | | | | Microblaze does not support the Linux DMA mapping API at this point, so disable CONFIG_NO_DMA. This lets us use the generic dma-mapping-broken.h implementation instead of providing a different copy. Any drivers that try to use DMA mapping now get omitted from Kconfig or produce a link error, rather than failing silently at run time. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: prepare signal handling for generic unistd.hMichal Simek2009-05-21
| | | | | | | | | We need to define set_restore_sigmask() in order to get pselect and ppoll. Also, the setup_frame function can not be used when __NR_sigreturn is not defined. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: clean up checksum.cArnd Bergmann2009-05-21
| | | | | | | | | | | | | | | | This changes the function prototypes in the checksum code to have the usual prototypes, typically by turning int arguments into __wsum. Also change csum_partial_copy_from_user() to operate on the right address space and export ip_fast_csum, which is used in modular networking code. The new version is now sparse-clean including endianess checks. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: remove bad_user_access_lengthArnd Bergmann2009-05-21
| | | | | | | | This function was actually causing harm, by hiding errors about invalid sized get_user/put_user accesses. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: do not include types.h in ptrace.hArnd Bergmann2009-05-21
| | | | | | | | linux/types.h breaks the uclibc build, so don't include it here. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: add a dummy pgprot_noncachedArnd Bergmann2009-05-21
| | | | | | | | | | Some device drivers call this, so add a macro that pretends to do this. Since there is no MMU support, it won't actually result in an uncached mapping, though. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: add security initcallsArnd Bergmann2009-05-21
| | | | | | | | The security subsystem has its own initcalls, which need support in vmlinux.lds.S. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: remove cacheable_memcpyArnd Bergmann2009-05-21
| | | | | | | | This function is neither declared nor used anywhere outside of ppc32, so remove it from microblaze. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: kill incorrect __bad_xchg definitionArnd Bergmann2009-05-21
| | | | | | | | | | | The whole point of the __bad_xchg declaration in system.h is to give a linker error when a variable of invalid size is passed to __xchg. The out of line definition in traps.c defeats this purpose and does not any value, so remove it here. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: fix __user annotationsArnd Bergmann2009-05-21
| | | | | | | | | | | | The microblaze signal handling code gets some __user pointers wrong, as shown by sparse. This adds the annotations where appropriate and change sys_rt_sigreturn to correctly pass a user stack down to do_sigaltstack instead of a kernel structure. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: export some symbolsArnd Bergmann2009-05-21
| | | | | | | | Some device drivers require the symbols _ebss, kernel_thread, __page_offset or ___range_ok, so export them. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Kconfig: Enable drivers for MicroblazeMichal Simek2009-05-21
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* microblaze: Remove POWERPC reference from Microblaze gpio.hMichal Simek2009-05-21
| | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* Merge branch 'for-linus' of ↵Linus Torvalds2009-05-20
|\ | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/drm-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/drm-2.6: drm: Copy back ioctl data to userspace regardless of return code. drm: Round size of SHM maps to PAGE_SIZE
| * drm: Copy back ioctl data to userspace regardless of return code.Michel Dänzer2009-05-20
| | | | | | | | | | | | | | | | | | | | | | Fixes a regression from commit 9d5b3ffc42f7820e8ee07705496955e4c2c38dd9 ('drm: fixup some of the ioctl function exit paths'): The vblank ioctl needs to update the userspace parameters when interrupted by a signal, which was prevented by the return code check. This could cause the X server to hang in drmWaitVBlank(). Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
| * drm: Round size of SHM maps to PAGE_SIZEBenjamin Herrenschmidt2009-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, userspace can fail to obtain the SAREA mapping (among other reasons) if it passes SAREA_MAX to drmAddMap without aligning it to the page size. This breaks for example on PowerPC with 64K pages and radeon despite the kernel radeon actually doing the right rouding in the first place. The way SAREA_MAX is defined with a bunch of ifdef's and duplicated between libdrm and the X server is gross, ultimately it should be retrieved by userspace from the kernel, but in the meantime, we have plenty of existing userspace built with bad values that need to work. This patch works around broken userspace by rounding the requested size in drm_addmap_core() of any SHM map to the page size. Since the backing memory for SHM maps is also allocated within addmap_core, there is no danger of adjacent memory being exposed due to the increased map size. The only side effect is that drivers that previously tried to create or access SHM maps using a size < PAGE_SIZE and failed (getting -EINVAL), will now succeed at the cost of a little bit more memory used if that happens to be when the map is created. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
* | Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linusLinus Torvalds2009-05-20
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: MIPS: 64-bit: Fix system lockup. MIPS: IP28: Change to build with -mr10k-cache-barrier=store MIPS: IP22: Fix hang in power button interrupt handler MIPS: IP32: Fix hang on shutdown in power button interrupt handler.
| * | MIPS: 64-bit: Fix system lockup.Greg Ungerer2009-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The address range size calculation inside local_flush_tlb_kernel_range() is being truncated by a too small size variable holder on 64-bit systems. The truncated size can result in an erroneous tlbsize check that means we sit spinning inside a loop trying to flush a hige number of TLB entries. This is for all intents and purposes a system hang. Fix by using an appropriately sized valiable to hold the size. [Ralf: Greg's original patch submission identified the issue and fixed one instance in tlb-r4k.c but there there were several more. For consistency I also modified tlb-r3k.c even though that file is only used on 32-bit.] Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * | MIPS: IP28: Change to build with -mr10k-cache-barrier=storepeter fuerst2009-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Richard Sandiford's new code for inserting the cache-barriers, for GCC 4.3 and above and already incorporated in the current GCC-release, uses a slightly different option-syntax. Signed-off-by: peter fuerst <post@pfrst.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * | MIPS: IP22: Fix hang in power button interrupt handlerRalf Baechle2009-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hang was caused by the use of disable_irq() from the interrupt handler itself. Fixed by the use of disable_irq_nosync(). The issue was triggered by: commit 3aa551c9b4c40018f0e261a178e3d25478dc04a9 Author: Thomas Gleixner <tglx@linutronix.de> Date: Mon Mar 23 18:28:15 2009 +0100 genirq: add threaded interrupt handler support Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * | MIPS: IP32: Fix hang on shutdown in power button interrupt handler.Andrew Randrianasulu2009-05-20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | The hang was caused by the use of disable_irq() from the interrupt handler itself. Fixed by the use of disable_irq_nosync(). The issue was triggered by: commit 3aa551c9b4c40018f0e261a178e3d25478dc04a9 Author: Thomas Gleixner <tglx@linutronix.de> Date: Mon Mar 23 18:28:15 2009 +0100 genirq: add threaded interrupt handler support Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* | Merge master.kernel.org:/home/rmk/linux-2.6-armLinus Torvalds2009-05-20
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master.kernel.org:/home/rmk/linux-2.6-arm: (25 commits) [ARM] 5519/1: amba probe: pass "struct amba_id *" instead of void * [ARM] 5517/1: integrator: don't put clock lookups in __initdata [ARM] 5518/1: versatile: don't put clock lookups in __initdata [ARM] mach-l7200: fix spelling of SYS_CLOCK_OFF [ARM] Double check memmap is actually valid with a memmap has unexpected holes V2 [ARM] realview: fix broadcast tick support [ARM] realview: remove useless smp_cross_call_done() [ARM] smp: fix cpumask usage in ARM SMP code [ARM] 5513/1: Eurotech VIPER SBC: fix compilation error [ARM] 5509/1: ep93xx: clkdev enable UARTS ARM: OMAP2/3: Change omapfb to use clkdev for dispc and rfbi, v2 ARM: OMAP3: Fix HW SAVEANDRESTORE shift define ARM: OMAP3: Fix number of GPIO lines for 34xx [ARM] S3C: Do not set clk->owner field if unset [ARM] S3C2410: mach-bast.c registering i2c data too early [ARM] S3C24XX: Fix unused code warning in arch/arm/plat-s3c24xx/dma.c [ARM] S3C64XX: fix GPIO debug [ARM] S3C64XX: GPIO include cleanup [ARM] nwfpe: fix 'floatx80_is_nan' sparse warning [ARM] nwfpe: Add decleration for ExtendedCPDO ...
| * | [ARM] 5519/1: amba probe: pass "struct amba_id *" instead of void *Alessandro Rubini2009-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second argument of the probe method points to the amba_id structure, so it's better passed with the correct type. None of the current in-tree drivers uses the pointer, so they have only been checked for a clean compile. Change suggested by Russell King. Signed-off-by: Alessandro Rubini <rubini@unipv.it> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
| * | [ARM] 5517/1: integrator: don't put clock lookups in __initdataRabin Vincent2009-05-18
| | | | | | | | | | | | | | | | | | | | | | | | Remove the __initdata annotation for the clock lookups, since they will be needed when loading modules which use clk_get(). Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>