1. 20 4月, 2012 3 次提交
    • M
      powerpc/mpic_msgr: fix compile error when SMP disabled · bdce27c7
      Mingkai Hu 提交于
      In file included from arch/powerpc/sysdev/mpic_msgr.c:20:0:
      ~/arch/powerpc/include/asm/mpic_msgr.h: In function 'mpic_msgr_set_destination':
      ~/arch/powerpc/include/asm/mpic_msgr.h:117:2:
      error: implicit declaration of function 'get_hard_smp_processor_id'
      make[1]: *** [arch/powerpc/sysdev/mpic_msgr.o] Error 1
      Signed-off-by: NMingkai Hu <Mingkai.hu@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      bdce27c7
    • B
      powerpc: fix build when CONFIG_BOOKE_WDT is enabled · eda713e2
      Baruch Siach 提交于
      Commit ae3a197e (Disintegrate asm/system.h for PowerPC) broke build of
      assembly files when CONFIG_BOOKE_WDT is enabled as follows:
      
        AS      arch/powerpc/lib/string.o
      /home/baruch/git/stable/arch/powerpc/include/asm/reg_booke.h: Assembler messages:
      /home/baruch/git/stable/arch/powerpc/include/asm/reg_booke.h:19: Error: Unrecognized opcode: `extern'
      /home/baruch/git/stable/arch/powerpc/include/asm/reg_booke.h:20: Error: Unrecognized opcode: `extern'
      
      Since setup_32.c is the only user of the booke_wdt configuration variables, move
      the declarations there.
      
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: NBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      eda713e2
    • T
      powerpc/85xx: don't call of_platform_bus_probe() twice · 8a95bc8d
      Timur Tabi 提交于
      Commit 46d026ac ("powerpc/85xx: consolidate of_platform_bus_probe calls")
      replaced platform-specific of_device_id tables with a single function
      that probes the most of the busses in 85xx device trees.  If a specific
      platform needed additional busses probed, then it could call
      of_platform_bus_probe() again.  Typically, the additional platform-specific
      busses are children of existing busses that have already been probed.
      of_platform_bus_probe() does not handle those child busses automatically.
      
      Unfortunately, this doesn't actually work.  The second (platform-specific)
      call to of_platform_bus_probe() never finds any of the busses it's asked
      to find.
      
      To remedy this, the platform-specific of_device_id tables are eliminated,
      and their entries are merged into mpc85xx_common_ids[], so that all busses
      are probed at once.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      8a95bc8d
  2. 11 4月, 2012 1 次提交
  3. 10 4月, 2012 1 次提交
    • B
      powerpc: Fix page fault with lockdep regression · 08f1ec8a
      Benjamin Herrenschmidt 提交于
      commit a546498f
      introduced a regression on 32-bit when irq tracing
      is enabled by exposing an old bug in our irq tracing
      code for exception entry.
      
      The code would save and restore some GPRs around the
      calls to the C lockdep code, however, it tries to be
      too smart for its own good and restores some of the
      GPRs from the exception frame (as saved there on
      exception entry).
      
      However, for page faults, we do replace those GPRs with
      arguments to do_page_fault before we call transfer_to_handler
      and so restoring from the exception frame is plain wrong in
      this case.
      
      This was fine as long as we didn't touch the interrupt state
      when taking page fault, but when I started doing it, it would
      trigger the lockdep calls and the bug.
      
      This fixes it by cleaning up that code a bit. It did create
      a small stack frame for the sake of backtraces, so let's
      make it a bit bigger and use it to save and restore the
      stuff we care about.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      08f1ec8a
  4. 03 4月, 2012 4 次提交
    • L
      Merge branch 'for-next' of git://gitorious.org/kernel-hsi/kernel-hsi · b1a808ff
      Linus Torvalds 提交于
      Pull HSI (High Speed Synchronous Serial Interface) framework from Carlos Chinea:
       "The High Speed Synchronous Serial Interface (HSI) is a serial
        interface mainly used for connecting application engines (APE) with
        cellular modem engines (CMT) in cellular handsets.
      
        The framework is currently being used for some people and we would
        like to see it integrated into the kernel for 3.3.  There is no HW
        controller drivers in this pull, but some people have already some of
        them pending which they would like to push as soon as this integrated.
        I am also working on the acceptance for an TI OMAP one, based on a
        compatible legacy version of the interface called SSI."
      
      Ok, so it didn't get into 3.3, but here it is pulled into 3.4.
      
      Several people piped up to say "yeah, we want this".
      
      * 'for-next' of git://gitorious.org/kernel-hsi/kernel-hsi:
        HSI: hsi_char: Update ioctl-number.txt
        HSI: Add HSI API documentation
        HSI: hsi_char: Add HSI char device kernel configuration
        HSI: hsi_char: Add HSI char device driver
        HSI: hsi: Introducing HSI framework
      b1a808ff
    • L
      Merge branch 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 97754175
      Linus Torvalds 提交于
      Pull 'make cscope' fix from Michal Marek:
       "The kbuild.git#misc pull request introduced a bug that broke make
        cscope.  Apparently, both the original author and me only tested the
        use case that the commit was supposed to improve (make tags/TAGS), and
        not the use case that was not supposed (make cscope)."
      
      * 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        tags.sh: Add missing quotes
      97754175
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 8f6b7676
      Linus Torvalds 提交于
      Pull crypto fixes from Herbert Xu:
       - Fix for CPU hotplug hang in padata.
       - Avoid using cpu_active inappropriately in pcrypt and padata.
       - Fix for user-space algorithm lookup hang with IV generators.
       - Fix for netlink dump of algorithms where stuff went missing due to
         incorrect calculation of message size.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: user - Fix size of netlink dump message
        crypto: user - Fix lookup of algorithms with IV generator
        crypto: pcrypt - Use the online cpumask as the default
        padata: Fix cpu hotplug
        padata: Use the online cpumask as the default
        padata: Add a reference to the api documentation
      8f6b7676
    • L
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 143418d0
      Linus Torvalds 提交于
      Pull powerpc fixes from Benjamin Herrenschmidt:
       "This contains a couple more fixes for the system.h disintegration, a
        trivial section mismatch fix, a couple of patches from akpm that I
        didn't quite get he expected me to pickup, and a few more trivialities
        form Kumar that he appear to have forgotten to send me in the previous
        batch."
      
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        powerpc/eeh: Fix use of set_current_state() in eeh event handling set_current_state() wart
        powerpc/eeh: Remove eeh_event_handler()->daemonize()
        powerpc/kvm: Fallout from system.h disintegration
        powerpc: Fix fallout from system.h split up
        powerpc: Mark const init data with __initconst instead of __initdata
        powerpc/qe: Update the SNUM table for MPC8569 Rev2.0
        powerpc/dts: Removed fsl,msi property from dts.
        powerpc/epapr: add "memory" as a clobber to all hypercalls
        powerpc/85xx: Enable I2C_CHARDEV and I2C_MPC options in defconfigs
        powerpc/85xx: add the P1020UTM-PC DTS support
        powerpc/85xx: add the P1020MBG-PC DTS support
        powerpc/8xxx: remove 85xx/86xx restrictions from fsl_guts.h
      143418d0
  5. 02 4月, 2012 8 次提交
  6. 01 4月, 2012 23 次提交
    • L
      Linux 3.4-rc1 · dd775ae2
      Linus Torvalds 提交于
      dd775ae2
    • L
      Merge branch 's3-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio-console · b7ffff4b
      Linus Torvalds 提交于
      Pull virtio S3 support patches from Amit Shah:
       "Turns out S3 is not different from S4 for virtio devices: the device
        is assumed to be reset, so the host and guest state are to be assumed
        to be out of sync upon resume.  We handle the S4 case with exactly the
        same scenario, so just point the suspend/resume routines to the
        freeze/restore ones.
      
        Once that is done, we also use the PM API's macro to initialise the
        sleep functions.
      
        A couple of cleanups are included: there's no need for special thaw
        processing in the balloon driver, so that's addressed in patches 1 and
        2.
      
        Testing: both S3 and S4 support have been tested using these patches
        using a similar method used earlier during S4 patch development: a
        guest is started with virtio-blk as the only disk, a virtio network
        card, a virtio-serial port and a virtio balloon device.  Ping from
        guest to host, dd /dev/zero to a file on the disk, and IO from the
        host on the virtio-serial port, all at once, while exercising S4 and
        S3 (separately) were tested.  They all continue to work fine after
        resume.  virtio balloon values too were tested by inflating and
        deflating the balloon."
      
      Pulling from Amit, since Rusty is off getting married (and presumably
      shaving people).
      
      * 's3-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/amit/virtio-console:
        virtio-pci: switch to PM ops macro to initialise PM functions
        virtio-pci: S3 support
        virtio-pci: drop restore_common()
        virtio: drop thaw PM operation
        virtio: balloon: Allow stats update after restore from S4
      b7ffff4b
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 8bb1f229
      Linus Torvalds 提交于
      Pull second try at vfs part d#2 from Al Viro:
       "Miklos' first series (with do_lookup() rewrite split into edible
        chunks) + assorted bits and pieces.
      
        The 'untangling of do_lookup()' series is is a splitup of what used to
        be a monolithic patch from Miklos, so this series is basically "how do
        I convince myself that his patch is correct (or find a hole in it)".
        No holes found and I like the resulting cleanup, so in it went..."
      
      Changes from try 1: Fix a boot problem with selinux, and commit messages
      prettied up a bit.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (24 commits)
        vfs: fix out-of-date dentry_unhash() comment
        vfs: split __lookup_hash
        untangling do_lookup() - take __lookup_hash()-calling case out of line.
        untangling do_lookup() - switch to calling __lookup_hash()
        untangling do_lookup() - merge d_alloc_and_lookup() callers
        untangling do_lookup() - merge failure exits in !dentry case
        untangling do_lookup() - massage !dentry case towards __lookup_hash()
        untangling do_lookup() - get rid of need_reval in !dentry case
        untangling do_lookup() - eliminate a loop.
        untangling do_lookup() - expand the area under ->i_mutex
        untangling do_lookup() - isolate !dentry stuff from the rest of it.
        vfs: move MAY_EXEC check from __lookup_hash()
        vfs: don't revalidate just looked up dentry
        vfs: fix d_need_lookup/d_revalidate order in do_lookup
        ext3: move headers to fs/ext3/
        migrate ext2_fs.h guts to fs/ext2/ext2.h
        new helper: ext2_image_size()
        get rid of pointless includes of ext2_fs.h
        ext2: No longer export ext2_fs.h to user space
        mtdchar: kill persistently held vfsmount
        ...
      8bb1f229
    • L
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f22e08a7
      Linus Torvalds 提交于
      Pull scheduler fixes from Ingo Molnar.
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched: Fix incorrect usage of for_each_cpu_mask() in select_fallback_rq()
        sched: Fix __schedule_bug() output when called from an interrupt
        sched/arch: Introduce the finish_arch_post_lock_switch() scheduler callback
      f22e08a7
    • L
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f187e9fd
      Linus Torvalds 提交于
      Pull perf updates and fixes from Ingo Molnar:
       "It's mostly fixes, but there's also two late items:
      
         - preliminary GTK GUI support for perf report
         - PMU raw event format descriptors in sysfs, to be parsed by tooling
      
        The raw event format in sysfs is a new ABI.  For example for the 'CPU'
        PMU we have:
      
          aldebaran:~> ll /sys/bus/event_source/devices/cpu/format/*
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/any
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/cmask
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/edge
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/event
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/inv
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/offcore_rsp
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/pc
          -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/umask
      
        those lists of fields contain a specific format:
      
          aldebaran:~> cat /sys/bus/event_source/devices/cpu/format/offcore_rsp
          config1:0-63
      
        So, those who wish to specify raw events can now use the following
        event format:
      
          -e cpu/cmask=1,event=2,umask=3
      
        Most people will not want to specify any events (let alone raw
        events), they'll just use whatever default event the tools use.
      
        But for more obscure PMU events that have no cross-architecture
        generic events the above syntax is more usable and a bit more
        structured than specifying hex numbers."
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (41 commits)
        perf tools: Remove auto-generated bison/flex files
        perf annotate: Fix off by one symbol hist size allocation and hit accounting
        perf tools: Add missing ref-cycles event back to event parser
        perf annotate: addr2line wants addresses in same format as objdump
        perf probe: Finder fails to resolve function name to address
        tracing: Fix ent_size in trace output
        perf symbols: Handle NULL dso in dso__name_len
        perf symbols: Do not include libgen.h
        perf tools: Fix bug in raw sample parsing
        perf tools: Fix display of first level of callchains
        perf tools: Switch module.h into export.h
        perf: Move mmap page data_head offset assertion out of header
        perf: Fix mmap_page capabilities and docs
        perf diff: Fix to work with new hists design
        perf tools: Fix modifier to be applied on correct events
        perf tools: Fix various casting issues for 32 bits
        perf tools: Simplify event_read_id exit path
        tracing: Fix ftrace stack trace entries
        tracing: Move the tracing_on/off() declarations into CONFIG_TRACING
        perf report: Add a simple GTK2-based 'perf report' browser
        ...
      f187e9fd
    • L
      Merge tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6 · adb3b1f3
      Linus Torvalds 提交于
      Pull PARISC misc updates from James Bottomley:
       "This is a couple of minor updates (fixing lws futex locking and
        removing some obsolete cpu_*_map calls)."
      
      * tag 'parisc-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6:
        [PARISC] remove references to cpu_*_map.
        [PARISC] futex: Use same lock set as lws calls
      adb3b1f3
    • L
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 · a75ee6ec
      Linus Torvalds 提交于
      Pull SCSI updates from James Bottomley:
       "This is primarily another round of driver updates (lpfc, bfa, fcoe,
        ipr) plus a new ufshcd driver.  There shouldn't be anything
        controversial in here (The final deletion of scsi proc_ops which
        caused some build breakage has been held over until the next merge
        window to give us more time to stabilise it).
      
        I'm afraid, with me moving continents at exactly the wrong time,
        anything submitted after the merge window opened has been held over to
        the next merge window."
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (63 commits)
        [SCSI] ipr: Driver version 2.5.3
        [SCSI] ipr: Increase alignment boundary of command blocks
        [SCSI] ipr: Increase max concurrent oustanding commands
        [SCSI] ipr: Remove unnecessary memory barriers
        [SCSI] ipr: Remove unnecessary interrupt clearing on new adapters
        [SCSI] ipr: Fix target id allocation re-use problem
        [SCSI] atp870u, mpt2sas, qla4xxx use pci_dev->revision
        [SCSI] fcoe: Drop the rtnl_mutex before calling fcoe_ctlr_link_up
        [SCSI] bfa: Update the driver version to 3.0.23.0
        [SCSI] bfa: BSG and User interface fixes.
        [SCSI] bfa: Fix to avoid vport delete hang on request queue full scenario.
        [SCSI] bfa: Move service parameter programming logic into firmware.
        [SCSI] bfa: Revised Fabric Assigned Address(FAA) feature implementation.
        [SCSI] bfa: Flash controller IOC pll init fixes.
        [SCSI] bfa: Serialize the IOC hw semaphore unlock logic.
        [SCSI] bfa: Modify ISR to process pending completions
        [SCSI] bfa: Add fc host issue lip support
        [SCSI] mpt2sas: remove extraneous sas_log_info messages
        [SCSI] libfc: fcoe_transport_create fails in single-CPU environment
        [SCSI] fcoe: reduce contention for fcoe_rx_list lock [v2]
        ...
      a75ee6ec
    • J
      vfs: fix out-of-date dentry_unhash() comment · c0d02594
      J. Bruce Fields 提交于
      64252c75 "vfs: remove dget() from
      dentry_unhash()" changed the implementation but not the comment.
      
      Cc: Sage Weil <sage@newdream.net>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      c0d02594
    • M
      vfs: split __lookup_hash · bad61189
      Miklos Szeredi 提交于
      Split __lookup_hash into two component functions:
      
       lookup_dcache - tries cached lookup, returns whether real lookup is needed
       lookup_real - calls i_op->lookup
      
      This eliminates code duplication between d_alloc_and_lookup() and
      d_inode_lookup().
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      bad61189
    • A
    • A
      untangling do_lookup() - switch to calling __lookup_hash() · a3255546
      Al Viro 提交于
      now we have __lookup_hash() open-coded if !dentry case;
      just call the damn thing instead...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      a3255546
    • A
      a6ecdfcf
    • A
      ec335e91
    • A
      untangling do_lookup() - massage !dentry case towards __lookup_hash() · d774a058
      Al Viro 提交于
      Reorder if-else cases for starters...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d774a058
    • A
      untangling do_lookup() - get rid of need_reval in !dentry case · 08b0ab7c
      Al Viro 提交于
      Everything arriving into if (!dentry) will have need_reval = 1.
      Indeed, the only way to get there with need_reval reset to 0 would
      be via
      	if (unlikely(d_need_lookup(dentry)))
      		goto unlazy;
      	if (unlikely(dentry->d_flags & DCACHE_OP_REVALIDATE)) {
      		status = d_revalidate(dentry, nd);
      	if (unlikely(status <= 0)) {
      		if (status != -ECHILD)
      			need_reval = 0;
      		goto unlazy;
      ...
      unlazy:
      	/* no assignments to dentry */
      	if (dentry && unlikely(d_need_lookup(dentry))) {
      		dput(dentry);
      		dentry = NULL;
      	}
      and if d_need_lookup() had already been false the first time around, it
      will remain false on the second call as well.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      08b0ab7c
    • A
      untangling do_lookup() - eliminate a loop. · acc9cb3c
      Al Viro 提交于
      d_lookup() *will* fail after successful d_invalidate(), if we are
      holding i_mutex all along.  IOW, we don't need to jump back to
      l: - we know what path will be taken there and can do that (i.e.
      d_alloc_and_lookup()) directly.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      acc9cb3c
    • A
      untangling do_lookup() - expand the area under ->i_mutex · 37c17e1f
      Al Viro 提交于
      keep holding ->i_mutex over revalidation parts
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      37c17e1f
    • A
      untangling do_lookup() - isolate !dentry stuff from the rest of it. · 3f6c7c71
      Al Viro 提交于
      Duplicate the revalidation-related parts into if (!dentry) branch.
      Next step will be to pull them under i_mutex.
      
      This and the next 8 commits are more or less a splitup of patch
      by Miklos; folks, when you are working with something that convoluted,
      carve your patches up into easily reviewed steps, especially when
      a lot of codepaths involved are rarely hit...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      3f6c7c71
    • M
      vfs: move MAY_EXEC check from __lookup_hash() · cda309de
      Miklos Szeredi 提交于
      The only caller of __lookup_hash() that needs the exec permission check on
      parent is lookup_one_len().
      
      All lookup_hash() callers already checked permission in LOOKUP_PARENT walk.
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      cda309de
    • M
      vfs: don't revalidate just looked up dentry · 3637c05d
      Miklos Szeredi 提交于
      __lookup_hash() calls ->lookup() if the dentry needs lookup and on success
      revalidates the dentry (all under dir->i_mutex).
      
      While this is harmless it doesn't make a lot of sense.
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      3637c05d
    • M
      vfs: fix d_need_lookup/d_revalidate order in do_lookup · fa4ee159
      Miklos Szeredi 提交于
      Doing revalidate on a dentry which has not yet been looked up makes no sense.
      
      Move the d_need_lookup() check before d_revalidate().
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      fa4ee159
    • A
      ext3: move headers to fs/ext3/ · 4613ad18
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      4613ad18
    • A
      migrate ext2_fs.h guts to fs/ext2/ext2.h · f7699f2b
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      f7699f2b