22 Jul, 2008

20 commits

  • Introduce a new dma attriblue DMA_ATTR_WEAK_ORDERING to use weak ordering
    on DMA mappings in the Cell processor. Add the code to the Cell's IOMMU
    implementation to use this code.

    Dynamic mappings can be weakly or strongly ordered on an individual basis
    but the fixed mapping has to be either completely strong or completely weak.
    This is currently decided by a kernel boot option (pass iommu_fixed=weak
    for a weakly ordered fixed linear mapping, strongly ordered is the default).

    Signed-off-by: Mark Nelson
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Mark Nelson
     
  • While running on a system with new hardware and a kernel where the
    cpu_specs[] table does not recognize the new hardware, the identify_cpu()
    routine will select the default case as it searches through cpu_specs[]
    in an attempt to match the real PVR. Once the default case is selected,
    non of the oprofile counters and/or fields have been set up or defined.

    When identify_cpu() is called once more with the logical PVR, some of
    the cpu specific fields are replaced with the exception of the oprofile
    related ones. However, in the case where we have actually taken the
    default case while searching for the real PVR, we need to tell
    oprofile that we are now running in compatibility mode so it can pick up
    the correct counters. We do this by setting the oprofile_cpu_type field
    to be that taken from the cpu_specs[] for the cpu we are now emulating.

    This change will detect that we are now altering the real PVR and determine
    if we also need to update the oprofile_cpu_type field.

    Signed-off-by: Torez Smith
    Signed-off-by: Benjamin Herrenschmidt

    Torez Smith
     
  • For C code spaces versus tabs is just a religious issue,
    but for Makefiles it actually matters.

    This patch fixes he following errors:
    /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/powerpc/boot/Makefile:166: *** missing separator. Stop.
    /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/powerpc/boot/Makefile:171: *** missing separator. Stop.

    Since this was inside an ifdef DTC_GENPARSER it was not a problem unless
    someone wanted to regenerate the shipped generated files.

    Signed-off-by: Adrian Bunk
    Acked-by: David Gibson
    Signed-off-by: Benjamin Herrenschmidt

    Adrian Bunk
     
  • The real option is above in the same Kconfig file.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Benjamin Herrenschmidt

    Adrian Bunk
     
  • Replace ifdef clutter with the PPC_LONG and PPC_LONG_ALIGN macros
    for readability.

    No change to the generated code.

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

    Michael Ellerman
     
  • Use the new PPC_LONG_ALIGN macro instead of passing an argument
    to the asm for consistency.

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

    Michael Ellerman
     
  • Add a #define for aligning to a long-sized boundary. It would be nice
    to use sizeof(long) for this, but that requires generating the value
    with asm-offsets.c, and asm-offsets.c includes asm-compat.h and we
    descend into some sort of recursive include hell.

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

    Michael Ellerman
     
  • The OF parsing code for PCI addresses isn't always treating properly
    the address space indication 0b11 (ie. 0x3) as meaning 64 bits
    memory space.

    This means that it fails to parse addresses for PCI BARs that have
    this encoding set by the firmware, which happens on some SLOF
    versions and breaks offb palette handling on Powerstation.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Segher Boessenkool

    Benjamin Herrenschmidt
     
  • __WARN() is not defined for all configs, use WARN_ON(1) instead.

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

    Michael Ellerman
     
  • We need to pass the kernel stack pointer instead of the user space
    stack pointer in save_stack_trace_tsk().

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Arnd Bergmann
     
  • Update ps3_defconfig.

    Signed-off-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Geoff Levand
     
  • Add sub match id for ps3 system bus so that two different system bus
    devices can be connected to a shared device.

    Signed-off-by: Masakazu Mokuno
    Signed-off-by: Geoff Levand
    Signed-off-by: Benjamin Herrenschmidt

    Masakazu Mokuno
     
  • This is a defconfig from Dave Jones and should be similar (if not
    identical) to the fedora ppc32 defconfig. The intent is to cover all
    cache coherent 6xx based chips and platforms as reasonable.

    Signed-off-by: Kumar Gala
    Signed-off-by: Benjamin Herrenschmidt

    Kumar Gala
     
  • Update iommu_alloc() to take the struct dma_attrs and pass them on to
    tce_build(). This change propagates down to the tce_build functions of
    all the platforms.

    Signed-off-by: Mark Nelson
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Mark Nelson
     
  • This patch adds support for the power button on future IBM cell blades.
    It actually doesn't shut down the machine. Instead it exposes an
    input device /dev/input/event0 to userspace which sends KEY_POWER
    if power button has been pressed.
    haldaemon actually recognizes the button, so a plattform independent acpid
    replacement should handle it correctly.

    Signed-off-by: Christian Krafft
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Christian Krafft
     
  • This patch adds a config option for the sysreset_hack used for
    IBM Cell blades. The code is moves from pervasive.c into ras.c and
    gets it's own init method.

    Signed-off-by: Christian Krafft
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Christian Krafft
     
  • This patch adds a cpufreq governor that takes the number of running spus
    into account. It's very similar to the ondemand governor, but not as complex.
    Instead of hacking spu load into the ondemand governor it might be easier to
    have cpufreq accepting multiple governors per cpu in future.
    Don't know if this is the right way, but it would keep the governors simple.

    Signed-off-by: Christian Krafft
    Signed-off-by: Arnd Bergmann
    Acked-by: Dave Jones
    Signed-off-by: Benjamin Herrenschmidt

    Christian Krafft
     
  • DDR2 memory DIMMs on the Axon could be accessed only as one partition
    when using file system drivers which are using the direct_access() method.
    This patch enables for such file system drivers to access Axon's DDR2 memory
    even if it is splitted in several partitions.

    Signed-off-by: Maxim Shchetynin
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Maxim Shchetynin
     
  • Axonram module registers one block device for each DDR2 DIMM found
    on a system. This means that each DDR2 DIMM becomes its own block device
    major number. This patch lets axonram module to register the only one
    block device for all DDR2 DIMMs which also spares kernel resources.

    Signed-off-by: Maxim Shchetynin
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Benjamin Herrenschmidt

    Maxim Shchetynin
     
  • Since commit 7560fa60fcdcdb0da662f6a9fad9064b554ef46c (gpio:
    and "no GPIO support here" stubs) drivers can use GPIOs if they're available,
    but don't require them.

    This patch actually enables this feature.

    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: Anton Vorontsov
    Signed-off-by: Benjamin Herrenschmidt

    Wolfgang Grandegger
     

17 Jul, 2008

20 commits