1. 17 4月, 2015 13 次提交
    • U
      Revert "mmc: core: Convert mmc_driver to device_driver" · 96541bac
      Ulf Hansson 提交于
      This reverts commit 6685ac62 ("mmc: core: Convert mmc_driver to
      device_driver")
      
      The reverted commit went too far in simplifing the device driver parts
      for mmc.
      
      Let's restore the old mmc_driver to enable driver core to sooner
      or later to remove the ->probe(), ->remove() and ->shutdown() callbacks
      from the struct device_driver.
      
      Note that, the old ->suspend|resume() callbacks in the struct
      mmc_driver don't need to be restored, since the mmc block layer has
      converted to the modern system PM ops.
      
      Fixes: 6685ac62 ("mmc: core: Convert mmc_driver to device_driver")
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      Acked-by: NJaehoon Chung <jh80.chung@samsung.com>
      96541bac
    • J
      mmc: pwrseq: Fix error code propagation in mmc_pwrseq_simple_alloc() · 636efbc6
      Javier Martinez Canillas 提交于
      If the struct mmc_pwrseq_match .alloc function used to allocate a
      struct mmc_pwrseq fails, the error is propagated to mmc_of_parse().
      
      But instead of returning the error code in pwrseq, host->pwrseq is
      returned which will always be 0. So mmc_of_parse() succeeds even if
      the pwrseq .alloc function failed and host->pwrseq is NULL.
      
      This makes the SDIO device to not be powered if the power sequencing
      .alloc functions wants to be deferred due a missing resource because
      the mmc controller driver probe did wrongly succeed.
      
      Fixes: 0f12a0ce ("mmc: pwrseq: simplify alloc/free hooks")
      Signed-off-by: NJavier Martinez Canillas <javier.martinez@collabora.co.uk>
      Reviewed-by: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      636efbc6
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 4fc8adcf
      Linus Torvalds 提交于
      Pull third hunk of vfs changes from Al Viro:
       "This contains the ->direct_IO() changes from Omar + saner
        generic_write_checks() + dealing with fcntl()/{read,write}() races
        (mirroring O_APPEND/O_DIRECT into iocb->ki_flags and instead of
        repeatedly looking at ->f_flags, which can be changed by fcntl(2),
        check ->ki_flags - which cannot) + infrastructure bits for dhowells'
        d_inode annotations + Christophs switch of /dev/loop to
        vfs_iter_write()"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (30 commits)
        block: loop: switch to VFS ITER_BVEC
        configfs: Fix inconsistent use of file_inode() vs file->f_path.dentry->d_inode
        VFS: Make pathwalk use d_is_reg() rather than S_ISREG()
        VFS: Fix up debugfs to use d_is_dir() in place of S_ISDIR()
        VFS: Combine inode checks with d_is_negative() and d_is_positive() in pathwalk
        NFS: Don't use d_inode as a variable name
        VFS: Impose ordering on accesses of d_inode and d_flags
        VFS: Add owner-filesystem positive/negative dentry checks
        nfs: generic_write_checks() shouldn't be done on swapout...
        ocfs2: use __generic_file_write_iter()
        mirror O_APPEND and O_DIRECT into iocb->ki_flags
        switch generic_write_checks() to iocb and iter
        ocfs2: move generic_write_checks() before the alignment checks
        ocfs2_file_write_iter: stop messing with ppos
        udf_file_write_iter: reorder and simplify
        fuse: ->direct_IO() doesn't need generic_write_checks()
        ext4_file_write_iter: move generic_write_checks() up
        xfs_file_aio_write_checks: switch to iocb/iov_iter
        generic_write_checks(): drop isblk argument
        blkdev_write_iter: expand generic_file_checks() call in there
        ...
      4fc8adcf
    • L
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 84588e7a
      Linus Torvalds 提交于
      Pull quota and udf updates from Jan Kara:
       "The pull contains quota changes which complete unification of XFS and
        VFS quota interfaces (so tools can use either interface to manipulate
        any filesystem).  There's also a patch to support project quotas in
        VFS quota subsystem from Li Xi.
      
        Finally there's a bunch of UDF fixes and cleanups and tiny cleanup in
        reiserfs & ext3"
      
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: (21 commits)
        udf: Update ctime and mtime when directory is modified
        udf: return correct errno for udf_update_inode()
        ext3: Remove useless condition in if statement.
        vfs: Add general support to enforce project quota limits
        reiserfs: fix __RASSERT format string
        udf: use int for allocated blocks instead of sector_t
        udf: remove redundant buffer_head.h includes
        udf: remove else after return in __load_block_bitmap()
        udf: remove unused variable in udf_table_free_blocks()
        quota: Fix maximum quota limit settings
        quota: reorder flags in quota state
        quota: paranoia: check quota tree root
        quota: optimize i_dquot access
        quota: Hook up Q_XSETQLIM for id 0 to ->set_info
        xfs: Add support for Q_SETINFO
        quota: Make ->set_info use structure with neccesary info to VFS and XFS
        quota: Remove ->get_xstate and ->get_xstatev callbacks
        gfs2: Convert to using ->get_state callback
        xfs: Convert to using ->get_state callback
        quota: Wire up Q_GETXSTATE and Q_GETXSTATV calls to work with ->get_state
        ...
      84588e7a
    • L
      Merge branch 'for-4.1/drivers' of git://git.kernel.dk/linux-block · a39ef1a7
      Linus Torvalds 提交于
      Pull block driver updates from Jens Axboe:
       "This is the block driver pull request for 4.1.  As with the core bits,
        this is a relatively slow round.  This pull request contains:
      
         - Various fixes and cleanups for NVMe, from Alexey Khoroshilov, Chong
           Yuan, myself, Keith Busch, and Murali Iyer.
      
         - Documentation and code cleanups for nbd from Markus Pargmann.
      
         - Change of brd maintainer to me, from Ross Zwisler.  At least the
           email doesn't bounce anymore then.
      
         - Two xen-blkback fixes from Tao Chen"
      
      * 'for-4.1/drivers' of git://git.kernel.dk/linux-block: (23 commits)
        NVMe: Meta data handling through submit io ioctl
        NVMe: Add translation for block limits
        NVMe: Remove check for null
        NVMe: Fix error handling of class_create("nvme")
        xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX
        xen-blkback: enlarge the array size of blkback name
        nbd: Return error pointer directly
        nbd: Return error code directly
        nbd: Remove fixme that was already fixed
        nbd: Restructure debugging prints
        nbd: Fix device bytesize type
        nbd: Replace kthread_create with kthread_run
        nbd: Remove kernel internal header
        Documentation: nbd: Add list of module parameters
        Documentation: nbd: Reformat to allow more documentation
        NVMe: increase depth of admin queue
        nvme: Fix PRP list calculation for non-4k system page size
        NVMe: Fix blk-mq hot cpu notification
        NVMe: embedded iod mask cleanup
        NVMe: Freeze admin queue on device failure
        ...
      a39ef1a7
    • L
      Merge branch 'for-4.1/core' of git://git.kernel.dk/linux-block · d82312c8
      Linus Torvalds 提交于
      Pull block layer core bits from Jens Axboe:
       "This is the core pull request for 4.1.  Not a lot of stuff in here for
        this round, mostly little fixes or optimizations.  This pull request
        contains:
      
         - An optimization that speeds up queue runs on blk-mq, especially for
           the case where there's a large difference between nr_cpu_ids and
           the actual mapped software queues on a hardware queue.  From Chong
           Yuan.
      
         - Honor node local allocations for requests on legacy devices.  From
           David Rientjes.
      
         - Cleanup of blk_mq_rq_to_pdu() from me.
      
         - exit_aio() fixup from me, greatly speeding up exiting multiple IO
           contexts off exit_group().  For my particular test case, fio exit
           took ~6 seconds.  A typical case of both exposing RCU grace periods
           to user space, and serializing exit of them.
      
         - Make blk_mq_queue_enter() honor the gfp mask passed in, so we only
           wait if __GFP_WAIT is set.  From Keith Busch.
      
         - blk-mq exports and two added helpers from Mike Snitzer, which will
           be used by the dm-mq code.
      
         - Cleanups of blk-mq queue init from Wei Fang and Xiaoguang Wang"
      
      * 'for-4.1/core' of git://git.kernel.dk/linux-block:
        blk-mq: reduce unnecessary software queue looping
        aio: fix serial draining in exit_aio()
        blk-mq: cleanup blk_mq_rq_to_pdu()
        blk-mq: put blk_queue_rq_timeout together in blk_mq_init_queue()
        block: remove redundant check about 'set->nr_hw_queues' in blk_mq_alloc_tag_set()
        block: allocate request memory local to request queue
        blk-mq: don't wait in blk_mq_queue_enter() if __GFP_WAIT isn't set
        blk-mq: export blk_mq_run_hw_queues
        blk-mq: add blk_mq_init_allocated_queue and export blk_mq_register_disk
      d82312c8
    • L
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 7d69cff2
      Linus Torvalds 提交于
      Pull SCSI updates from James Bottomley:
       "This is the usual grab bag of driver updates (lpfc, qla2xxx, storvsc,
        aacraid, ipr) plus an assortment of minor updates.  There's also a
        major update to aic1542 which moves the driver into this millenium"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (106 commits)
        change SCSI Maintainer email
        sd, mmc, virtio_blk, string_helpers: fix block size units
        ufs: add support to allow non standard behaviours (quirks)
        ufs-qcom: save controller revision info in internal structure
        qla2xxx: Update driver version to 8.07.00.18-k
        qla2xxx: Restore physical port WWPN only, when port down detected for FA-WWPN port.
        qla2xxx: Fix virtual port configuration, when switch port is disabled/enabled.
        qla2xxx: Prevent multiple firmware dump collection for ISP27XX.
        qla2xxx: Disable Interrupt handshake for ISP27XX.
        qla2xxx: Add debugging info for MBX timeout.
        qla2xxx: Add serdes read/write support for ISP27XX
        qla2xxx: Add udev notification to save fw dump for ISP27XX
        qla2xxx: Add message for sucessful FW dump collected for ISP27XX.
        qla2xxx: Add support to load firmware from file for ISP 26XX/27XX.
        qla2xxx: Fix beacon blink for ISP27XX.
        qla2xxx: Increase the wait time for firmware to be ready for P3P.
        qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
        qla2xxx: Fix warnings reported by static checker.
        lpfc: Update version to 10.5.0.0 for upstream patch set
        lpfc: Update copyright to 2015
        ...
      7d69cff2
    • L
      Merge branch 'mailbox-for-next' of git://git.linaro.org/landing-teams/working/fujitsu/integration · 8fa6f497
      Linus Torvalds 提交于
      Pull mailbox updates from Jassi Brar.
      
      * 'mailbox-for-next' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
        mailbox: arm_mhu: add driver for ARM MHU controller
        Mailbox: Restructure and simplify PCC mailbox code
      8fa6f497
    • L
      Merge branch 'for-v4.1-rc1' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping · eabbfdec
      Linus Torvalds 提交于
      Pull DMA-mapping updates from Marek Szyprowski:
       "This contains two patches, which clarify abiguity in the dma-mapping
        api"
      
      * 'for-v4.1-rc1' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping:
        include/dma-mapping: Clarify output of dma_map_sg
        asm/dma-mapping-common: Clarify output of dma_map_sg_attrs
      eabbfdec
    • L
      Merge tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming · 45701e26
      Linus Torvalds 提交于
      Pull arch/c6x fixes from Mark Salter.
      
      * tag 'for-linus' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming:
        c6x: platforms: cache: Export symbol L1P_cache_block_invalidate and L1D_cache_block_writeback
        c6x: kernel: setup: Export symbol memory_end
        c6x: kernel: setup: Add screen_info global variable
        c6x: include: asm: Kbuild: Add generic serial.h
        c6x: include: asm: dma-mapping: Add dummy dma_sync_single_range_for_device
        c6x: include: asm: setup: Include "linux/types.h"
        c6x: asm: Add default flat.h according to xtensa architecture
        c6x: kernel: setup: Remove 'const' for local variables in machine_init
        c6x: Makefile: Add -D__linux__
        C6x: time: Ensure consistency in __init
        c6x: kernel: setup: Include "linux/console.h"
      45701e26
    • L
      Merge tag 'stable/for-linus-4.1-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 497a5df7
      Linus Torvalds 提交于
      Pull xen features and fixes from David Vrabel:
      
       - use a single source list of hypercalls, generating other tables etc.
         at build time.
      
       - add a "Xen PV" APIC driver to support >255 VCPUs in PV guests.
      
       - significant performance improve to guest save/restore/migration.
      
       - scsiback/front save/restore support.
      
       - infrastructure for multi-page xenbus rings.
      
       - misc fixes.
      
      * tag 'stable/for-linus-4.1-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/pci: Try harder to get PXM information for Xen
        xenbus_client: Extend interface to support multi-page ring
        xen-pciback: also support disabling of bus-mastering and memory-write-invalidate
        xen: support suspend/resume in pvscsi frontend
        xen: scsiback: add LUN of restored domain
        xen-scsiback: define a pr_fmt macro with xen-pvscsi
        xen/mce: fix up xen_late_init_mcelog() error handling
        xen/privcmd: improve performance of MMAPBATCH_V2
        xen: unify foreign GFN map/unmap for auto-xlated physmap guests
        x86/xen/apic: WARN with details.
        x86/xen: Provide a "Xen PV" APIC driver to support >255 VCPUs
        xen/pciback: Don't print scary messages when unsupported by hypervisor.
        xen: use generated hypercall symbols in arch/x86/xen/xen-head.S
        xen: use generated hypervisor symbols in arch/x86/xen/trace.c
        xen: synchronize include/xen/interface/xen.h with xen
        xen: build infrastructure for generating hypercall depending symbols
        xen: balloon: Use static attribute groups for sysfs entries
        xen: pcpu: Use static attribute groups for sysfs entry
      497a5df7
    • L
      Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 714d8e7e
      Linus Torvalds 提交于
      Pull arm64 updates from Will Deacon:
       "Here are the core arm64 updates for 4.1.
      
        Highlights include a significant rework to head.S (allowing us to boot
        on machines with physical memory at a really high address), an AES
        performance boost on Cortex-A57 and the ability to run a 32-bit
        userspace with 64k pages (although this requires said userspace to be
        built with a recent binutils).
      
        The head.S rework spilt over into KVM, so there are some changes under
        arch/arm/ which have been acked by Marc Zyngier (KVM co-maintainer).
        In particular, the linker script changes caused us some issues in
        -next, so there are a few merge commits where we had to apply fixes on
        top of a stable branch.
      
        Other changes include:
      
         - AES performance boost for Cortex-A57
         - AArch32 (compat) userspace with 64k pages
         - Cortex-A53 erratum workaround for #845719
         - defconfig updates (new platforms, PCI, ...)"
      
      * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (39 commits)
        arm64: fix midr range for Cortex-A57 erratum 832075
        arm64: errata: add workaround for cortex-a53 erratum #845719
        arm64: Use bool function return values of true/false not 1/0
        arm64: defconfig: updates for 4.1
        arm64: Extract feature parsing code from cpu_errata.c
        arm64: alternative: Allow immediate branch as alternative instruction
        arm64: insn: Add aarch64_insn_decode_immediate
        ARM: kvm: round HYP section to page size instead of log2 upper bound
        ARM: kvm: assert on HYP section boundaries not actual code size
        arm64: head.S: ensure idmap_t0sz is visible
        arm64: pmu: add support for interrupt-affinity property
        dt: pmu: extend ARM PMU binding to allow for explicit interrupt affinity
        arm64: head.S: ensure visibility of page tables
        arm64: KVM: use ID map with increased VA range if required
        arm64: mm: increase VA range of identity map
        ARM: kvm: implement replacement for ld's LOG2CEIL()
        arm64: proc: remove unused cpu_get_pgd macro
        arm64: enforce x1|x2|x3 == 0 upon kernel entry as per boot protocol
        arm64: remove __calc_phys_offset
        arm64: merge __enable_mmu and __turn_mmu_on
        ...
      714d8e7e
    • L
      Merge tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux · d19d5efd
      Linus Torvalds 提交于
      Pull powerpc updates from Michael Ellerman:
      
       - Numerous minor fixes, cleanups etc.
      
       - More EEH work from Gavin to remove its dependency on device_nodes.
      
       - Memory hotplug implemented entirely in the kernel from Nathan
         Fontenot.
      
       - Removal of redundant CONFIG_PPC_OF by Kevin Hao.
      
       - Rewrite of VPHN parsing logic & tests from Greg Kurz.
      
       - A fix from Nish Aravamudan to reduce memory usage by clamping
         nodes_possible_map.
      
       - Support for pstore on powernv from Hari Bathini.
      
       - Removal of old powerpc specific byte swap routines by David Gibson.
      
       - Fix from Vasant Hegde to prevent the flash driver telling you it was
         flashing your firmware when it wasn't.
      
       - Patch from Ben Herrenschmidt to add an OPAL heartbeat driver.
      
       - Fix for an oops causing get/put_cpu_var() imbalance in perf by Jan
         Stancek.
      
       - Some fixes for migration from Tyrel Datwyler.
      
       - A new syscall to switch the cpu endian by Michael Ellerman.
      
       - Large series from Wei Yang to implement SRIOV, reviewed and acked by
         Bjorn.
      
       - A fix for the OPAL sensor driver from Cédric Le Goater.
      
       - Fixes to get STRICT_MM_TYPECHECKS building again by Michael Ellerman.
      
       - Large series from Daniel Axtens to make our PCI hooks per PHB rather
         than per machine.
      
       - Small patch from Sam Bobroff to explicitly abort non-suspended
         transactions on syscalls, plus a test to exercise it.
      
       - Numerous reworks and fixes for the 24x7 PMU from Sukadev Bhattiprolu.
      
       - Small patch to enable the hard lockup detector from Anton Blanchard.
      
       - Fix from Dave Olson for missing L2 cache information on some CPUs.
      
       - Some fixes from Michael Ellerman to get Cell machines booting again.
      
       - Freescale updates from Scott: Highlights include BMan device tree
         nodes, an MSI erratum workaround, a couple minor performance
         improvements, config updates, and misc fixes/cleanup.
      
      * tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (196 commits)
        powerpc/powermac: Fix build error seen with powermac smp builds
        powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE
        powerpc: Remove PPC32 code from pseries specific find_and_init_phbs()
        powerpc/cell: Fix iommu breakage caused by controller_ops change
        powerpc/eeh: Fix crash in eeh_add_device_early() on Cell
        powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH
        powerpc/perf/hv-24x7: Fail 24x7 initcall if create_events_from_catalog() fails
        powerpc/pseries: Correct memory hotplug locking
        powerpc: Fix missing L2 cache size in /sys/devices/system/cpu
        powerpc: Add ppc64 hard lockup detector support
        oprofile: Disable oprofile NMI timer on ppc64
        powerpc/perf/hv-24x7: Add missing put_cpu_var()
        powerpc/perf/hv-24x7: Break up single_24x7_request
        powerpc/perf/hv-24x7: Define update_event_count()
        powerpc/perf/hv-24x7: Whitespace cleanup
        powerpc/perf/hv-24x7: Define add_event_to_24x7_request()
        powerpc/perf/hv-24x7: Rename hv_24x7_event_update
        powerpc/perf/hv-24x7: Move debug prints to separate function
        powerpc/perf/hv-24x7: Drop event_24x7_request()
        powerpc/perf/hv-24x7: Use pr_devel() to log message
        ...
      
      Conflicts:
      	tools/testing/selftests/powerpc/Makefile
      	tools/testing/selftests/powerpc/tm/Makefile
      d19d5efd
  2. 16 4月, 2015 27 次提交