12 Jan, 2012

1 commit

  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci: (80 commits)
    x86/PCI: Expand the x86_msi_ops to have a restore MSIs.
    PCI: Increase resource array mask bit size in pcim_iomap_regions()
    PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES
    PCI: pci_ids: add device ids for STA2X11 device (aka ConneXT)
    PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
    x86/PCI: amd: factor out MMCONFIG discovery
    PCI: Enable ATS at the device state restore
    PCI: msi: fix imbalanced refcount of msi irq sysfs objects
    PCI: kconfig: English typo in pci/pcie/Kconfig
    PCI/PM/Runtime: make PCI traces quieter
    PCI: remove pci_create_bus()
    xtensa/PCI: convert to pci_scan_root_bus() for correct root bus resources
    x86/PCI: convert to pci_create_root_bus() and pci_scan_root_bus()
    x86/PCI: use pci_scan_bus() instead of pci_scan_bus_parented()
    x86/PCI: read Broadcom CNB20LE host bridge info before PCI scan
    sparc32, leon/PCI: convert to pci_scan_root_bus() for correct root bus resources
    sparc/PCI: convert to pci_create_root_bus()
    sh/PCI: convert to pci_scan_root_bus() for correct root bus resources
    powerpc/PCI: convert to pci_create_root_bus()
    powerpc/PCI: split PHB part out of pcibios_map_io_space()
    ...

    Fix up conflicts in drivers/pci/msi.c and include/linux/pci_regs.h due
    to the same patches being applied in other branches.

    Linus Torvalds
     

11 Jan, 2012

1 commit

  • * 'next' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: Wire-up new system calls
    microblaze: Remove NO_IRQ from architecture
    input: xilinx_ps2: Don't use NO_IRQ
    block: xsysace: Don't use NO_IRQ
    microblaze: Trivial asm fix
    microblaze: Fix debug message in module
    microblaze: Remove eprintk macro
    microblaze: Send CR before LF for early console
    microblaze: Change NO_IRQ to 0
    microblaze: Use irq_of_parse_and_map for timer
    microblaze: intc: Change variable name
    microblaze: Use of_find_compatible_node for timer and intc
    microblaze: Add __cmpdi2
    microblaze: Synchronize __pa __va macros

    Linus Torvalds
     

09 Jan, 2012

1 commit

  • * 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (76 commits)
    PM / Hibernate: Implement compat_ioctl for /dev/snapshot
    PM / Freezer: fix return value of freezable_schedule_timeout_killable()
    PM / shmobile: Allow the A4R domain to be turned off at run time
    PM / input / touchscreen: Make st1232 use device PM QoS constraints
    PM / QoS: Introduce dev_pm_qos_add_ancestor_request()
    PM / shmobile: Remove the stay_on flag from SH7372's PM domains
    PM / shmobile: Don't include SH7372's INTCS in syscore suspend/resume
    PM / shmobile: Add support for the sh7372 A4S power domain / sleep mode
    PM: Drop generic_subsys_pm_ops
    PM / Sleep: Remove forward-only callbacks from AMBA bus type
    PM / Sleep: Remove forward-only callbacks from platform bus type
    PM: Run the driver callback directly if the subsystem one is not there
    PM / Sleep: Make pm_op() and pm_noirq_op() return callback pointers
    PM/Devfreq: Add Exynos4-bus device DVFS driver for Exynos4210/4212/4412.
    PM / Sleep: Merge internal functions in generic_ops.c
    PM / Sleep: Simplify generic system suspend callbacks
    PM / Hibernate: Remove deprecated hibernation snapshot ioctls
    PM / Sleep: Fix freezer failures due to racy usermodehelper_is_disabled()
    ARM: S3C64XX: Implement basic power domain support
    PM / shmobile: Use common always on power domain governor
    ...

    Fix up trivial conflict in fs/xfs/xfs_buf.c due to removal of unused
    XBT_FORCE_SLEEP bit

    Linus Torvalds
     

07 Jan, 2012

2 commits

  • CC: Michal Simek
    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     
  • This patch converts MicroBlaze's architecture-specific
    'pcibios_set_master()' routine to a non-inlined function. This will
    allow follow on patches to create a generic 'pcibios_set_master()'
    function using the '__weak' attribute which can be used by all
    architectures as a default which, if necessary, can then be over-
    ridden by architecture-specific code.

    Converting 'pci_bios_set_master()' to a non-inlined function will
    allow MicroBlaze's 'pcibios_set_master()' implementation to remain
    architecture-specific after the generic version is introduced and thus,
    not change current behavior.

    No functional change.

    Signed-off-by: Myron Stowe
    Signed-off-by: Jesse Barnes

    Myron Stowe
     

05 Jan, 2012

5 commits

  • Wire up three system calls
    sendmmsg/process_vm_readv/process_vm_writev

    All tested by testing apps.
    Look at:
    net: Add sendmmsg socket system call
    (sha1: 228e548e602061b08ee8e8966f567c12aa079682)
    Cross Memory Attach
    (sha1: fcf634098c00dd9cd247447368495f0b79be12d1)

    Signed-off-by: Michal Simek

    Michal Simek
     
  • NO_IRQ shouldn't be used by any driver. All Microblaze
    drivers are fixed that's why NO_IRQ can be removed.

    Also fix pci-common.c which has references to NO_IRQ removed.

    Signed-off-by: Michal Simek
    Reviewed-by: Ryan Mallon
    Acked-by: Grant Likely
    CC: Benjamin Herrenschmidt

    Michal Simek
     
  • eprintk macro was used for printing early_printk
    messages. Early console registration was changed
    that's why this is not needed.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • As has been discussed many times[1], Using NO_IRQ set to anything other
    than 0 is bug waiting to happen since many drivers follow the pattern
    "if (!irq)" for testing whether or not an irq has been set.

    This patch changes the Microblaze NO_IRQ setting from -1 to 0 to bring
    it in line with most of the rest of the kernel. It also prepares for
    Microblaze eventually supporting multiple interrupt controllers by
    breaking the assumption that hwirq# == Linux IRQ#. The Linux IRQ
    number is just a cookie with no guarantee of a direct relationship
    with the hardware irq arrangement.

    At this point, Microblaze interrupt handling only supports only one
    instance of one kind of interrupt controller (xilinx_intc). This change
    shouldn't affect any architecture code outside of the interrupt
    controller driver and the irq_of mapping.

    Updated to 3.2 and to use irq_data.hwirq by Rob Herring.
    Tested and fixed by Michal Simek.

    [1] http://lkml.org/lkml/2005/11/21/221

    Signed-off-by: Grant Likely
    Signed-off-by: Rob Herring
    Signed-off-by: Michal Simek

    Michal Simek
     
  • noMMU and MMU system use the same macros - synchronize them.

    Signed-off-by: Michal Simek

    Michal Simek
     

09 Dec, 2011

1 commit

  • 24aa07882b (memblock, x86: Replace memblock_x86_reserve/free_range()
    with generic ones) removed arch/x86/include/asm/memblock.h and dropped
    its inclusion from include/linux/memblock.h which breaks other
    architectures which depended on the generic memblock.h pulling in the
    arch specific one.

    However, the proper fix isn't adding back the asm inclusion. memblock
    doesn't have any arch dependent part and doesn't need arch specific
    header file and asm/memblock.h files are either practically empty or
    contain mostly unrelated arch specific stuff.

    * In microblaze, sh, powerpc, sparc and openrisc, asm/memblock.h is
    either empty or just contains unused MEMBLOCK_DBG() macro. Remove
    them.

    * In arm and unicore32, asm/memblock.h contains arch specific stuff.
    Include it directly from its users. It might be a good idea to
    rename the header file to avoid confusion.

    Signed-off-by: Tejun Heo
    Reported-by: "H. Peter Anvin"
    Cc: Yinghai Lu
    Cc: Russell King
    Cc: Michal Simek
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mundt
    Cc: "David S. Miller"
    Cc: Guan Xuetao

    Tejun Heo
     

24 Nov, 2011

1 commit

  • * 'pm-freezer' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc: (24 commits)
    freezer: fix wait_event_freezable/__thaw_task races
    freezer: kill unused set_freezable_with_signal()
    dmatest: don't use set_freezable_with_signal()
    usb_storage: don't use set_freezable_with_signal()
    freezer: remove unused @sig_only from freeze_task()
    freezer: use lock_task_sighand() in fake_signal_wake_up()
    freezer: restructure __refrigerator()
    freezer: fix set_freezable[_with_signal]() race
    freezer: remove should_send_signal() and update frozen()
    freezer: remove now unused TIF_FREEZE
    freezer: make freezing() test freeze conditions in effect instead of TIF_FREEZE
    cgroup_freezer: prepare for removal of TIF_FREEZE
    freezer: clean up freeze_processes() failure path
    freezer: kill PF_FREEZING
    freezer: test freezable conditions while holding freezer_lock
    freezer: make freezing indicate freeze condition in effect
    freezer: use dedicated lock instead of task_lock() + memory barrier
    freezer: don't distinguish nosig tasks on thaw
    freezer: remove racy clear_freeze_flag() and set PF_NOFREEZE on dead tasks
    freezer: rename thaw_process() to __thaw_task() and simplify the implementation
    ...

    Rafael J. Wysocki
     

22 Nov, 2011

2 commits


01 Nov, 2011

1 commit

  • * 'next' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW usage
    microblaze: Use delay slot in __strnlen_user, __strncpy_user
    microblaze: Remove NET_IP_ALIGN from system.h
    microblaze: Add __ucmpdi2() helper function
    microblaze: Raise SIGFPE/FPE_INTDIV for div by zero
    microblaze: Switch ELF_ARCH code to 189
    microblaze: Added DMA sync operations
    microblaze: Moved __dma_sync() to dma-mapping.h
    microblaze: Add PVR for Microblaze v8.20.a
    microblaze: Fix access_ok macro
    microblaze: Add loop unrolling for PAGE in copy_tofrom_user
    microblaze: Simplify logic for unaligned byte copying
    microblaze: Change label names - copy_tofrom_user
    microblaze: Separate fixup section definition
    microblaze: Change label name in copy_tofrom_user
    microblaze: Clear top bit from cnt32_to_63

    Linus Torvalds
     

14 Oct, 2011

5 commits

  • As far as I can tell the only reason microblaze has
    __ARCH_WANT_INTERRUPTS_ON_CTXSW is because it initializes new task state
    with interrupts enabled so that on switch_to() interrupts get enabled.

    So change copy_thread() to clear MSR_IE instead of set it, this will
    ensure switch_to() will always keep IRQs disabled.

    The scheduler will disable IRQs when taking rq->lock in schedule() and
    enable IRQs in finish_lock_switch() after its done its magic.

    This leaves ARM the only __ARCH_WANT_INTERRUPTS_ON_CTXSW user.

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Michal Simek

    Peter Zijlstra
     
  • Use default value (which is the same) from
    include/linux/skbuff.h.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Switch arch code to 189, the registered code in the upstream
    version of binutils. Continue to accept the experimental 0xbaab.

    Signed-off-by: Edgar E. Iglesias
    Signed-off-by: Michal Simek

    Edgar E. Iglesias
     
  • __dma_sync_page() was replaced by __dma_sync(), and parameters of calls to
    the new function were adjusted to match __dma_sync()'s format.

    Signed-off-by: Eli Billauer
    Signed-off-by: Michal Simek

    Eli Billauer
     
  • There is the problem with bit OR (|) because for
    some combination is addr | size | addr+size equal
    to seq.

    For standard kernel setting (kernel starts at 0xC0000000)
    is seq for user space 0xBFFFFFFF and everything below
    this limit is fine.

    But even address 0xBFFFFFFF is fine because it
    is below kernel space.

    Signed-off-by: Andrew Fedonczuk
    Signed-off-by: Michal Simek

    Michal Simek
     

28 Sep, 2011

1 commit

  • There are numerous broken references to Documentation files (in other
    Documentation files, in comments, etc.). These broken references are
    caused by typo's in the references, and by renames or removals of the
    Documentation files. Some broken references are simply odd.

    Fix these broken references, sometimes by dropping the irrelevant text
    they were part of.

    Signed-off-by: Paul Bolle
    Signed-off-by: Jiri Kosina

    Paul Bolle
     

28 Jul, 2011

1 commit

  • * 'next' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: Do not show error message for 32 interrupt lines
    Revert "microblaze: PCI fix typo fault in of_node pointer moving into pci_bus"
    microblaze: PCI fix typo fault in of_node pointer moving into pci_bus
    microblaze: Add support for early console on mdm
    microblaze: Simplify early console binding from DT
    microblaze: Get early printk console earlier
    microblaze: Standardise cpuinfo output for cache policy
    microblaze: Unprivileged stream instruction awareness
    microblaze: trivial: Fix typo fault
    microblaze: exec: Remove redundant set_fs(USER_DS)
    microblaze: Remove duplicated prototype of start_thread()
    microblaze: Fix unaligned value saving to the stack for system with MMU
    microblaze/irqs: Do not trace arch_local_{*,irq_*} functions

    Linus Torvalds
     

27 Jul, 2011

3 commits

  • …git/arm/linux-arm-soc

    * 'next/cross-platform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc:
    ARM: Consolidate the clkdev header files
    ARM: set vga memory base at run-time
    ARM: convert PCI defines to variables
    ARM: pci: make pcibios_assign_all_busses use pci_has_flag
    ARM: remove unnecessary mach/hardware.h includes
    pci: move microblaze and powerpc pci flag functions into asm-generic
    powerpc: rename ppc_pci_*_flags to pci_*_flags

    Fix up conflicts in arch/microblaze/include/asm/pci-bridge.h

    Linus Torvalds
     
  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     
  • [ poleg@redhat.com: no need to declare show_regs() in ptrace.h, sched.h does this ]
    Signed-off-by: Mike Frysinger
    Cc: Tejun Heo
    Signed-off-by: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     

25 Jul, 2011

6 commits

  • Recognize early Linux console from chosen - linux,stdout-path
    instead of detecting the first console with appropriate
    compatible strings.
    This patch solved the problem on system with multiple
    consoles.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • 1. Register early console as standard console
    2. Enable CON_BOOT console flag to ensure auto-unregistering by the kernel
    3. remap_early_printk function remap physical console baseaddr to virtual space

    Usage specific function for console remap is done after memory initialization
    with IRQ turn off that's why there is not necessary to protect it.

    The reason for remapping is that the kernel use TLB 63 for 1:1 address mapping
    to be able to use console in very early boot-up phase. But allocating one TLB
    just for console caused performance degression that's why ioremaps create new
    mapping and TLB 63 is automatically released and ready to use.

    Signed-off-by: Michal Simek
    CC: Russell King
    CC: Ralf Baechle
    CC: Ingo Molnar
    CC: Alan Cox
    CC:
    CC: Arnd Bergmann

    Michal Simek
     
  • Add cpuinfo support for the new MicroBlaze option permitting userspace
    (unprivileged) access to the streaming instructions (FSL / AXI-stream).

    Emit a noisy warning at bootup if this is enabled, because bad user code
    can potentially lockup the CPU.

    Signed-off-by: John A. Williams
    Signed-off-by: Michal Simek

    John A. Williams
     
  • descrtiption -> description

    Signed-off-by: Michal Simek

    Michal Simek
     
  • The prototype for start_thread() is already present in the MMU/NOMMU
    independent part of the file. Remove the duplicate.

    Signed-off-by: Mathias Krause
    Signed-off-by: Michal Simek

    Mathias Krause
     
  • Do not trace arch_local_save_flags(), arch_local_irq_*() and friends.
    Although they are marked inline, gcc may still make a function out of
    them and add it to the pool of functions that are traced by the function
    tracer. This can cause undesirable results (kernel panic, triple faults,
    etc).

    Add the notrace notation to prevent them from ever being traced.

    Cc: Michal Simek
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     

13 Jul, 2011

1 commit


08 Jun, 2011

4 commits

  • The generic code always get the device-node in the right place now
    so a single implementation will work for all archs

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Grant Likely
    Acked-by: Michal Simek
    Acked-by: Jesse Barnes

    Benjamin Herrenschmidt
     
  • All archs do more or less the same thing now, move it into
    a single generic place.

    I chose pci.h rather than of_pci.h to avoid having to change
    all call-sites to include the later.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Michal Simek
    Acked-by: Grant Likely
    Acked-by: Jesse Barnes

    Benjamin Herrenschmidt
     
  • The whole business with re-assigning all bus numbers, creating
    an OF bus "map" etc... is ancient powermac stuff that you really
    don't care about on microblaze.

    Similarly pci_device_from_OF_node() is unused and by getting rid
    of it we can get rid of a whole lot of code otherwise unused on
    this architecture

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Grant Likely
    Acked-by: Michal Simek

    Benjamin Herrenschmidt
     
  • powerpc has two different ways of matching PCI devices to their
    corresponding OF node (if any) for historical reasons. The ppc64 one
    does a scan looking for matching bus/dev/fn, while the ppc32 one does a
    scan looking only for matching dev/fn on each level in order to be
    agnostic to busses being renumbered (which Linux does on some
    platforms).

    This removes both and instead moves the matching code to the PCI core
    itself. It's the most logical place to do it: when a pci_dev is created,
    we know the parent and thus can do a single level scan for the matching
    device_node (if any).

    The benefit is that all archs now get the matching for free. There's one
    hook the arch might want to provide to match a PHB bus to its device
    node. A default weak implementation is provided that looks for the
    parent device device node, but it's not entirely reliable on powerpc for
    various reasons so powerpc provides its own.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Michal Simek
    Acked-by: Jesse Barnes

    Benjamin Herrenschmidt
     

29 May, 2011

1 commit

  • 32bit and 64bit on x86 are tested and working. The rest I have looked
    at closely and I can't find any problems.

    setns is an easy system call to wire up. It just takes two ints so I
    don't expect any weird architecture porting problems.

    While doing this I have noticed that we have some architectures that are
    very slow to get new system calls. cris seems to be the slowest where
    the last system calls wired up were preadv and pwritev. avr32 is weird
    in that recvmmsg was wired up but never declared in unistd.h. frv is
    behind with perf_event_open being the last syscall wired up. On h8300
    the last system call wired up was epoll_wait. On m32r the last system
    call wired up was fallocate. mn10300 has recvmmsg as the last system
    call wired up. The rest seem to at least have syncfs wired up which was
    new in the 2.6.39.

    v2: Most of the architecture support added by Daniel Lezcano
    v3: ported to v2.6.36-rc4 by: Eric W. Biederman
    v4: Moved wiring up of the system call to another patch
    v5: ported to v2.6.39-rc6
    v6: rebased onto parisc-next and net-next to avoid syscall conflicts.
    v7: ported to Linus's latest post 2.6.39 tree.

    >  arch/blackfin/include/asm/unistd.h     |    3 ++-
    >  arch/blackfin/mach-common/entry.S      |    1 +
    Acked-by: Mike Frysinger

    Oh - ia64 wiring looks good.
    Acked-by: Tony Luck

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

08 Apr, 2011

1 commit


01 Apr, 2011

1 commit


31 Mar, 2011

1 commit