16 Jan, 2009

8 commits

  • The PAPR says that the property for specifying the number of SLBs should
    be called "slb-size". We currently only look for "ibm,slb-size" because
    this is what firmware actually presents.

    This patch makes us look for the "slb-size" property as well and in
    preference to the "ibm,slb-size". This should future proof us if
    firmware changes to match PAPR.

    Signed-off-by: Michael Neuling
    Signed-off-by: Benjamin Herrenschmidt

    Michael Neuling
     
  • powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices

    The subpage_prot syscall fails on second and subsequent calls for a given
    region, because is_hugepage_only_range() is mis-identifying the 4 kB
    slices when the process has a 64 kB page size.

    Signed-off-by: Dave Kleikamp
    Signed-off-by: Benjamin Herrenschmidt

    Dave Kleikamp
     
  • Signed-off-by: Stephen Rothwell
    Acked-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • Fixes compiler warnings:

    arch/powerpc/platforms/ps3/mm.c:1205: warning: passing argument 2 of 'ps3_repository_read_mm_info' from incompatible pointer type
    arch/powerpc/platforms/ps3/mm.c:1205: warning: passing argument 3 of 'ps3_repository_read_mm_info' from incompatible pointer type

    Signed-off-by: Stephen Rothwell
    Acked-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • This fixes these compiler warning:

    arch/powerpc/platforms/ps3/interrupt.c:109: warning: passing argument 2 of 'clear_bit' from incompatible pointer type
    arch/powerpc/platforms/ps3/interrupt.c:130: warning: passing argument 2 of 'set_bit' from incompatible pointer type

    Signed-off-by: Stephen Rothwell
    Acked-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • We just fix up the reference parameters as the others are dealt with by
    arithmetic promotion rules and don't cause warnings.

    This removes warnings like this:

    arch/powerpc/platforms/ps3/interrupt.c:327: warning: passing argument 1 of 'lv1_construct_event_receive_port' from incompatible pointer type

    Also, these:

    drivers/ps3/ps3-vuart.c:462: warning: passing argument 4 of 'ps3_vuart_raw_read' from incompatible pointer type
    drivers/ps3/ps3-vuart.c:592: warning: passing argument 4 of 'ps3_vuart_raw_read' from incompatible pointer type

    Signed-off-by: Stephen Rothwell
    Acked-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • Push the dma_addr_t type usage all the way down to where the actual
    values are manipulated.

    Now that u64 is "unsigned long long", this removes warnings like:

    arch/powerpc/platforms/ps3/system-bus.c:532: warning: passing argument 4 of 'ps3_dma_map' from incompatible pointer type
    arch/powerpc/platforms/ps3/system-bus.c:649: warning: passing argument 4 of 'ps3_dma_map' from incompatible pointer type

    Signed-off-by: Stephen Rothwell
    Acked-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • Also silences this warning:

    arch/powerpc/platforms/ps3/setup.c:275: warning: initialization from incompatible pointer type

    Signed-off-by: Stephen Rothwell
    Acked-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     

15 Jan, 2009

3 commits

  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (29 commits)
    powerpc/83xx: Move mcu_mpc8349emitx driver out of drivers/i2c/chips/
    powerpc/83xx: Make serial ports work on MPC8315E-RDB w/ FSL U-Boots
    powerpc/e500mc: Doorbells need to be taken w/exceptions disabled
    powerpc: Enable PS3 options and QPACE in ppc64_defconfig
    powerpc/powermac: Fix occasional SMP boot failure
    powerpc/cacheinfo: Rename cache_dir per-cpu variable
    hvc_console: Use kzalloc() instead of kmalloc() + memset()
    hvc_console: Do not set low_latency when using interrupts
    hvc_console: Call free_irq() only if request_irq() was successful
    hvc_console: Change an mb() to smp_mb() and add some comments
    powerpc: Cleanup from l64 to ll64 change: drivers/net
    powerpc: Cleanup from l64 to ll64 change: drivers/char
    powerpc: Cleanup from l64 to ll64 change: arch code
    powerpc: Change u64/s64 to a long long integer type
    powerpc/kexec: Check crash_base for relocatable kernel
    powerpc: Make dummy section a valid note header
    Xilinx: SPI: updated driver for device tree
    drivers/of: Add the of_find_i2c_device_by_node function.
    powerpc/xsysace: add compatible string for non-ipcore instance
    powerpc/mpc52xx: remove dead code from GPIO driver
    ...

    Linus Torvalds
     
  • * 'syscalls' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: (44 commits)
    [CVE-2009-0029] s390 specific system call wrappers
    [CVE-2009-0029] System call wrappers part 33
    [CVE-2009-0029] System call wrappers part 32
    [CVE-2009-0029] System call wrappers part 31
    [CVE-2009-0029] System call wrappers part 30
    [CVE-2009-0029] System call wrappers part 29
    [CVE-2009-0029] System call wrappers part 28
    [CVE-2009-0029] System call wrappers part 27
    [CVE-2009-0029] System call wrappers part 26
    [CVE-2009-0029] System call wrappers part 25
    [CVE-2009-0029] System call wrappers part 24
    [CVE-2009-0029] System call wrappers part 23
    [CVE-2009-0029] System call wrappers part 22
    [CVE-2009-0029] System call wrappers part 21
    [CVE-2009-0029] System call wrappers part 20
    [CVE-2009-0029] System call wrappers part 19
    [CVE-2009-0029] System call wrappers part 18
    [CVE-2009-0029] System call wrappers part 17
    [CVE-2009-0029] System call wrappers part 16
    [CVE-2009-0029] System call wrappers part 15
    ...

    Linus Torvalds
     
  • Add swab.h to kbuild.asm and remove the individual entries from
    each arch, mark as unifdef as some arches have some kernel-only
    bits inside.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     

14 Jan, 2009

5 commits


13 Jan, 2009

10 commits

  • To increase the amount of code that's built for a defconfig build.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Benjamin Herrenschmidt

    Michael Ellerman
     
  • The PowerMac kernel occasionally fails to bring up the secondary CPUs on
    SMP, the trigger factor seem to be fairly random and related to location
    of code and data.

    This appears to be due to the initial loading of the TOC value by the
    secondary processor which now happens before we clear HID4:RM_CI (Real
    Mode Cache Invalidate). This bit should really be cleared before we do
    any load or store other than fetching code.

    This fix works based on the assumption that all SMP 64-bit PowerMacs use
    variants of the 970, which fortunately is true, by explicitely clearing
    that bit, adding an slbia for good measure as RM_CI mode is known to
    create bogus ERAT entries.

    I also removed some spurrious debug output that was left enabled by
    mistake while at it.

    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     
  • The per_cpu__ prefix on DECLARE_PER_CPU'd variables is going away;
    rename cache_dir to cache_dir_pcpu.

    Signed-off-by: Nathan Lynch
    Signed-off-by: Benjamin Herrenschmidt

    Nathan Lynch
     
  • Signed-off-by: Stephen Rothwell
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • Convert arch/powerpc/ over to long long based u64:

    -#ifdef __powerpc64__
    -# include
    -#else
    -# include
    -#endif
    +#include

    This will avoid reoccuring spurious warnings in core kernel code that
    comes when people test on their own hardware. (i.e. x86 in ~98% of the
    cases) This is what x86 uses and it generally helps keep 64-bit code
    32-bit clean too.

    [Adjusted to not impact user mode (from paulus) - sfr]

    Signed-off-by: Ingo Molnar
    Signed-off-by: Stephen Rothwell
    Signed-off-by: Benjamin Herrenschmidt

    Ingo Molnar
     
  • Enforce that the crash kernel region never overlaps the current kernel,
    as it will be written directly on kexec load.

    Also, default to the previous KDUMP_KERNELBASE if the start is 0.

    Other architectures (x86, ia64) state that specifying the start address
    0 (or omitting it) will result in the kernel allocating it. Before the
    relocatable patch in 2.6.28, powerpc would adjust any other start value
    to the hardcoded KDUMP_KERNELBASE of 32M.

    Signed-off-by: Milton Miller
    Signed-off-by: Benjamin Herrenschmidt

    Milton Miller
     
  • We are declaring the dummy section (used to work around a binutils
    bug) as PT_NOTE, but we don't have enough bytes for it to be a valid
    note header, and kexec userspace complains:

    Warning: Elf Note name is not null terminated
    Warning: append= option is not passed. Using the first kernel root partition
    Warning: Elf Note name is not null terminated

    Instead of using the arbitray value 0xf177 (aka "fill"), declare a
    no-name no-description note of type 0.

    Signed-off-by: Milton Miller
    Signed-off-by: Benjamin Herrenschmidt

    Milton Miller
     
  • Benjamin Herrenschmidt
     
  • Benjamin Herrenschmidt
     
  • Support for the FPGA based watchdog timer on GE Fanuc's SBC610.

    This patch enables one of the watchdog timers found on the SBC610. There are
    two identical watchdog timers at different offsets in the above mentioned
    boards, however the current driver is only capable of supporting one of them.

    The watchdog timers are also capable of generating interrupts at a
    user-configurable threshold, though support for this operation is currently
    not supported by the driver.

    Signed-off-by: Martyn Welch
    Signed-off-by: Wim Van Sebroeck

    Martyn Welch
     

12 Jan, 2009

1 commit


10 Jan, 2009

4 commits

  • Eliminate duplicate return statements

    Signed-off-by: Wolfram Sang
    Signed-off-by: Grant Likely

    Wolfram Sang
     
  • The MPC5200 PIC driver doesn't correctly update the .status field of
    the irq_desc structure when the set_type hook is called. This patch
    adds the required code.

    Also cleans up the external IRQ typename field to be something easier
    to read (very minor).

    Signed-off-by: Grant Likely

    Grant Likely
     
  • strcmp on NULL results in a segmentation fault, also, remove the second,
    redundant test on dev

    Signed-off-by: Roel Kluin
    Signed-off-by: Grant Likely

    roel kluin
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile: (31 commits)
    powerpc/oprofile: fix whitespaces in op_model_cell.c
    powerpc/oprofile: IBM CELL: add SPU event profiling support
    powerpc/oprofile: fix cell/pr_util.h
    powerpc/oprofile: IBM CELL: cleanup and restructuring
    oprofile: make new cpu buffer functions part of the api
    oprofile: remove #ifdef CONFIG_OPROFILE_IBS in non-ibs code
    ring_buffer: fix ring_buffer_event_length()
    oprofile: use new data sample format for ibs
    oprofile: add op_cpu_buffer_get_data()
    oprofile: add op_cpu_buffer_add_data()
    oprofile: rework implementation of cpu buffer events
    oprofile: modify op_cpu_buffer_read_entry()
    oprofile: add op_cpu_buffer_write_reserve()
    oprofile: rename variables in add_ibs_begin()
    oprofile: rename add_sample() in cpu_buffer.c
    oprofile: rename variable ibs_allowed to has_ibs in op_model_amd.c
    oprofile: making add_sample_entry() inline
    oprofile: remove backtrace code for ibs
    oprofile: remove unused ibs macro
    oprofile: remove unused components in struct oprofile_cpu_buffer
    ...

    Linus Torvalds
     

09 Jan, 2009

2 commits

  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (53 commits)
    serial: Add driver for the Cell Network Processor serial port NWP device
    powerpc: enable dynamic ftrace
    powerpc/cell: Fix the prototype of create_vma_map()
    powerpc/mm: Make clear_fixmap() actually work
    powerpc/kdump: Use ppc_save_regs() in crash_setup_regs()
    powerpc: Export cacheable_memzero as its now used in a driver
    powerpc: Fix missing semicolons in mmu_decl.h
    powerpc/pasemi: local_irq_save uses an unsigned long
    powerpc/cell: Fix some u64 vs. long types
    powerpc/cell: Use correct types in beat files
    powerpc: Use correct type in prom_init.c
    powerpc: Remove unnecessary casts
    mtd/ps3vram: Use _PAGE_NO_CACHE in memory ioremap
    mtd/ps3vram: Use msleep in waits
    mtd/ps3vram: Use proper kernel types
    mtd/ps3vram: Cleanup ps3vram driver messages
    mtd/ps3vram: Remove ps3vram debug routines
    mtd/ps3vram: Add modalias support to the ps3vram driver
    mtd/ps3vram: Add ps3vram driver for accessing video RAM as MTD
    powerpc: Fix iseries drivers build failure without CONFIG_VIOPATH
    ...

    Linus Torvalds
     
  • When I review ocfs2 code, find there are 2 typos to "successfull". After
    doing grep "successfull " in kernel tree, 22 typos found totally -- great
    minds always think alike :)

    This patch fixes all the similar typos. Thanks for Randy's ack and comments.

    Signed-off-by: Coly Li
    Acked-by: Randy Dunlap
    Acked-by: Roland Dreier
    Cc: Jeremy Kerr
    Cc: Jeff Garzik
    Cc: Heiko Carstens
    Cc: Martin Schwidefsky
    Cc: Theodore Ts'o
    Cc: Mark Fasheh
    Cc: Vlad Yasevich
    Cc: Sridhar Samudrala
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Coly Li
     

08 Jan, 2009

7 commits

  • Signed-off-by: Robert Richter

    Robert Richter
     
  • This patch adds the SPU event based profiling funcitonality for the
    IBM Cell processor. Previously, the CELL OProfile kernel code supported
    PPU event, PPU cycle profiling and SPU cycle profiling. The addition of
    SPU event profiling allows the users to identify where in their SPU code
    various SPU evnets are occuring. This should help users further identify
    issues with their code. Note, SPU profiling has some limitations due to HW
    constraints. Only one event at a time can be used for profiling and SPU event
    profiling must be time sliced across all of the SPUs in a node.

    The patch adds a new arch specific file to the OProfile file system. The
    file has bit 0 set to indicate that the kernel supports SPU event profiling.
    The user tool must check this file/bit to make sure the kernel supports
    SPU event profiling before trying to do SPU event profiling. The user tool
    check is part of the user tool patch for SPU event profiling.

    Signed-off-by: Carl Love
    Signed-off-by: Robert Richter

    Carl Love
     
  • Signed-off-by: Robert Richter

    Robert Richter
     
  • This patch restructures and cleans up the code a bit to make it
    easier to add new functionality later. The patch makes no
    functional changes to the existing code.

    Signed-off-by: Carl Love
    Signed-off-by: Robert Richter

    Carl Love
     
  • This patch enables dynamic ftrace. The PowerPC port was dependent on
    other code not yet in mainline. Now that the code is, we can now
    let PowerPC compile with dynamic ftrace.

    Signed-off-by: Steven Rostedt
    Signed-off-by: Benjamin Herrenschmidt

    Steven Rostedt
     
  • Signed-off-by: Stephen Rothwell
    Acked-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • The clear_fixmap() routine issues map_page() with flags set to 0.
    Currently this causes a BUG_ON() inside the map_page(), as it assumes
    that a PTE should be clear before mapping.

    This patch makes the map_page() to trigger the BUG_ON() only if the
    flags were set.

    Signed-off-by: Anton Vorontsov
    Acked-by: Kumar Gala
    Signed-off-by: Benjamin Herrenschmidt

    Anton Vorontsov