25 Oct, 2013

10 commits


14 Oct, 2013

1 commit

  • Some pl330 have per channel irq and it is necessary
    to allocate all of them. Loop over irq assigned for this
    device to support these pl330 IPs.

    For example this IP is available on Xilinx Zynq platform.

    Signed-off-by: Michal Simek
    Tested-by: Lars-Peter Clausen
    Signed-off-by: Vinod Koul

    Michal Simek
     

13 Oct, 2013

3 commits


07 Oct, 2013

12 commits

  • Using list_move() instead of list_del() + list_add().

    Signed-off-by: Wei Yongjun
    Signed-off-by: Vinod Koul

    Wei Yongjun
     
  • This patch adds support for suspend/resume functionality to the cppi41
    DMA driver. The steps necessary to make the system resume properly were
    figured out by trial-and-error. The code as it stands now is the
    minimum that has to be done to put the musb host system on an AM33xx
    system into an operable state after resume.

    Signed-off-by: Daniel Mack
    Signed-off-by: Vinod Koul

    Daniel Mack
     
  • dst_addr_width and src_addr_width should be a power of 2. Currently the
    driver checks, that they both lie between 1 and 8 and that they are equal
    to 1 or even. This however leaves an invalid value of 6 uncaught. Use an
    explicit power of 2 check instead.

    Signed-off-by: Guennadi Liakhovetski
    [typo fix on changelog]
    Signed-off-by: Vinod Koul

    Guennadi Liakhovetski
     
  • Makes the code more readable and compact. No functional change.

    Signed-off-by: Daniel Mack
    Signed-off-by: Vinod Koul

    Daniel Mack
     
  • Fix a misspelled function name.

    Signed-off-by: Daniel Mack
    Signed-off-by: Vinod Koul

    Daniel Mack
     
  • Instead of passing around struct plafform_device, use struct device and
    save one level of dereferencing. This affects the following functions:

    * cppi41_add_chans
    * purge_descs
    * deinit_cpii41
    * init_descs
    * init_cppi41
    * cppi_glue_infos

    It's just a cosmetic cleanup that makes the code more readable.

    Signed-off-by: Daniel Mack
    Signed-off-by: Vinod Koul

    Daniel Mack
     
  • tegra_dma_prep_dma_cyclic is referenced only in this file.
    Make it static.

    Signed-off-by: Sachin Kamat
    Acked-by: Laxman Dewangan
    Signed-off-by: Vinod Koul

    Sachin Kamat
     
  • Use devm_request_irq function.

    Signed-off-by: Michal Simek
    Signed-off-by: Vinod Koul

    Michal Simek
     
  • Linus Torvalds
     
  • Modify the code to use current_euid(), and in_egroup_p, as in done
    in fs/proc/proc_sysctl.c:test_perm()

    Cc: stable@vger.kernel.org
    Reviewed-by: Eric Sandeen
    Reported-by: Eric Sandeen
    Signed-off-by: "Eric W. Biederman"
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • Pull SCSI target fixes from Nicholas Bellinger:
    "Here are the outstanding target fixes queued up for v3.12-rc4 code.

    The highlights include:

    - Make vhost/scsi tag percpu_ida_alloc() use GFP_ATOMIC
    - Allow sess_cmd_map allocation failure fallback to use vzalloc
    - Fix COMPARE_AND_WRITE se_cmd->data_length bug with FILEIO backends
    - Fixes for COMPARE_AND_WRITE callback recursive failure OOPs + non
    zero scsi_status bug
    - Make iscsi-target do acknowledgement tag release from RX context
    - Setup iscsi-target with extra (cmdsn_depth / 2) percpu_ida tags

    Also included is a iscsi-target patch CC'ed for v3.10+ that avoids
    legacy wait_for_task=true release during fast-past StatSN
    acknowledgement, and two other SRP target related patches that address
    long-standing issues that are CC'ed for v3.3+.

    Extra thanks to Thomas Glanzmann for his testing feedback with
    COMPARE_AND_WRITE + EXTENDED_COPY VAAI logic"

    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    iscsi-target; Allow an extra tag_num / 2 number of percpu_ida tags
    iscsi-target: Perform release of acknowledged tags from RX context
    iscsi-target: Only perform wait_for_tasks when performing shutdown
    target: Fail on non zero scsi_status in compare_and_write_callback
    target: Fix recursive COMPARE_AND_WRITE callback failure
    target: Reset data_length for COMPARE_AND_WRITE to NoLB * block_size
    ib_srpt: always set response for task management
    target: Fall back to vzalloc upon ->sess_cmd_map kzalloc failure
    vhost/scsi: Use GFP_ATOMIC with percpu_ida_alloc for obtaining tag
    ib_srpt: Destroy cm_id before destroying QP.
    target: Fix xop->dbl assignment in target_xcopy_parse_segdesc_02

    Linus Torvalds
     
  • Pull slave-dmaengine fixes from Vinod Koul:
    "Here is the slave dmanegine fixes. We have the fix for deadlock issue
    on imx-dma by Michael and Josh's edma config fix along with author
    change"

    * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
    dmaengine: imx-dma: fix callback path in tasklet
    dmaengine: imx-dma: fix lockdep issue between irqhandler and tasklet
    dmaengine: imx-dma: fix slow path issue in prep_dma_cyclic
    dma/Kconfig: Make TI_EDMA select TI_PRIV_EDMA
    edma: Update author email address

    Linus Torvalds
     

06 Oct, 2013

5 commits

  • Pull btrfs fixes from Chris Mason:
    "This is a small collection of fixes, including a regression fix from
    Liu Bo that solves rare crashes with compression on.

    I've merged my for-linus up to 3.12-rc3 because the top commit is only
    meant for 3.12. The rest of the fixes are also available in my master
    branch on top of my last 3.11 based pull"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
    btrfs: Fix crash due to not allocating integrity data for a bioset
    Btrfs: fix a use-after-free bug in btrfs_dev_replace_finishing
    Btrfs: eliminate races in worker stopping code
    Btrfs: fix crash of compressed writes
    Btrfs: fix transid verify errors when recovering log tree

    Linus Torvalds
     
  • Pull GPIO fixes from Linus Walleij:
    "Two patches for the OMAP driver, dealing with setting up IRQs properly
    on the device tree boot path"

    * tag 'gpio-v3.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
    gpio/omap: auto-setup a GPIO when used as an IRQ
    gpio/omap: maintain GPIO and IRQ usage separately

    Linus Torvalds
     
  • Pull USB fixes from Greg KH:
    "Here are none fixes for various USB driver problems. The majority are
    gadget/musb fixes, but there are some new device ids in here as well"

    * tag 'usb-3.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    usb: chipidea: add Intel Clovertrail pci id
    usb: gadget: s3c-hsotg: fix can_write limit for non-periodic endpoints
    usb: gadget: f_fs: fix error handling
    usb: musb: dsps: do not bind to "musb-hdrc"
    USB: serial: option: Ignore card reader interface on Huawei E1750
    usb: musb: gadget: fix otg active status flag
    usb: phy: gpio-vbus: fix deferred probe from __init
    usb: gadget: pxa25x_udc: fix deferred probe from __init
    usb: musb: fix otg default state

    Linus Torvalds
     
  • Pull tty fixes from Greg KH:
    "Here are two tty driver fixes for 3.12-rc4.

    One fixes the reported regression in the n_tty code that a number of
    people found recently, and the other one fixes an issue with xen
    consoles that broke in 3.10"

    * tag 'tty-3.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    xen/hvc: allow xenboot console to be used again
    tty: Fix pty master read() after slave closes

    Linus Torvalds
     
  • Pull staging fixes from Greg KH:
    "Here are 4 tiny staging and iio driver fixes for 3.12-rc4. Nothing
    major, just some small fixes for reported issues"

    * tag 'staging-3.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    staging: comedi: ni_65xx: (bug fix) confine insn_bits to one subdevice
    iio:magnetometer: Bugfix magnetometer default output registers
    iio: Remove debugfs entries in iio_device_unregister()
    iio: amplifiers: ad8366: Remove regulator_put

    Linus Torvalds
     

05 Oct, 2013

9 commits

  • When btrfs creates a bioset, we must also allocate the integrity data pool.
    Otherwise btrfs will crash when it tries to submit a bio to a checksumming
    disk:

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
    IP: [] mempool_alloc+0x4a/0x150
    PGD 2305e4067 PUD 23063d067 PMD 0
    Oops: 0000 [#1] PREEMPT SMP
    Modules linked in: btrfs scsi_debug xfs ext4 jbd2 ext3 jbd mbcache
    sch_fq_codel eeprom lpc_ich mfd_core nfsd exportfs auth_rpcgss af_packet
    raid6_pq xor zlib_deflate libcrc32c [last unloaded: scsi_debug]
    CPU: 1 PID: 4486 Comm: mount Not tainted 3.12.0-rc1-mcsum #2
    Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
    task: ffff8802451c9720 ti: ffff880230698000 task.ti: ffff880230698000
    RIP: 0010:[] [] mempool_alloc+0x4a/0x150
    RSP: 0018:ffff880230699688 EFLAGS: 00010286
    RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00000000005f8445
    RDX: 0000000000000001 RSI: 0000000000000010 RDI: 0000000000000000
    RBP: ffff8802306996f8 R08: 0000000000011200 R09: 0000000000000008
    R10: 0000000000000020 R11: ffff88009d6e8000 R12: 0000000000011210
    R13: 0000000000000030 R14: ffff8802306996b8 R15: ffff8802451c9720
    FS: 00007f25b8a16800(0000) GS:ffff88024fc80000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 0000000000000018 CR3: 0000000230576000 CR4: 00000000000007e0
    Stack:
    ffff8802451c9720 0000000000000002 ffffffff81a97100 0000000000281250
    ffffffff81a96480 ffff88024fc99150 ffff880228d18200 0000000000000000
    0000000000000000 0000000000000040 ffff880230e8c2e8 ffff8802459dc900
    Call Trace:
    [] bio_integrity_alloc+0x48/0x1b0
    [] bio_integrity_prep+0xac/0x360
    [] ? mempool_alloc+0x58/0x150
    [] ? alloc_extent_state+0x31/0x110 [btrfs]
    [] blk_queue_bio+0x1c9/0x460
    [] generic_make_request+0xca/0x100
    [] submit_bio+0x79/0x160
    [] btrfs_map_bio+0x48e/0x5b0 [btrfs]
    [] btree_submit_bio_hook+0xda/0x110 [btrfs]
    [] submit_one_bio+0x6a/0xa0 [btrfs]
    [] read_extent_buffer_pages+0x250/0x310 [btrfs]
    [] ? __radix_tree_preload+0x66/0xf0
    [] ? radix_tree_insert+0x95/0x260
    [] btree_read_extent_buffer_pages.constprop.128+0xb6/0x120
    [btrfs]
    [] read_tree_block+0x3a/0x60 [btrfs]
    [] open_ctree+0x139d/0x2030 [btrfs]
    [] btrfs_mount+0x53a/0x7d0 [btrfs]
    [] ? pcpu_alloc+0x8eb/0x9f0
    [] ? __kmalloc_track_caller+0x35/0x1e0
    [] mount_fs+0x20/0xd0
    [] vfs_kern_mount+0x76/0x120
    [] do_mount+0x200/0xa40
    [] ? strndup_user+0x5b/0x80
    [] SyS_mount+0x90/0xe0
    [] system_call_fastpath+0x1a/0x1f
    Code: 4c 8d 75 a8 4c 89 6d e8 45 89 e0 4c 8d 6f 30 48 89 5d d8 41 83 e0 af 48
    89 fb 49 83 c6 18 4c 89 7d f8 65 4c 8b 3c 25 c0 b8 00 00 8b 73 18 44 89 c7
    44 89 45 98 ff 53 20 48 85 c0 48 89 c2 74
    RIP [] mempool_alloc+0x4a/0x150
    RSP
    CR2: 0000000000000018
    ---[ end trace 7a96042017ed21e2 ]---

    Signed-off-by: Darrick J. Wong
    Signed-off-by: Josef Bacik
    Signed-off-by: Chris Mason

    Darrick J. Wong
     
  • Chris Mason
     
  • Pull CIFS fixes from Steve French:
    "Small set of cifs fixes. Most important is Jeff's fix that works
    around disconnection problems which can be caused by simultaneous use
    of user space tools (starting a long running smbclient backup then
    doing a cifs kernel mount) or multiple cifs mounts through a NAT, and
    Jim's fix to deal with reexport of cifs share.

    I expect to send two more cifs fixes next week (being tested now) -
    fixes to address an SMB2 unmount hang when server dies and a fix for
    cifs symlink handling of Windows "NFS" symlinks"

    * 'for-linus' of git://git.samba.org/sfrench/cifs-2.6:
    [CIFS] update cifs.ko version
    [CIFS] Remove ext2 flags that have been moved to fs.h
    [CIFS] Provide sane values for nlink
    cifs: stop trying to use virtual circuits
    CIFS: FS-Cache: Uncache unread pages in cifs_readpages() before freeing them

    Linus Torvalds
     
  • Pull PCI fix from Bjorn Helgaas:
    "We merged what was intended to be an MMCONFIG cleanup, but in fact,
    for systems without _CBA (which is almost everything), it broke
    extended config space for domain 0 and it broke all config space for
    other domains.

    This reverts the change"

    * tag 'pci-v3.12-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    Revert "x86/PCI: MMCONFIG: Check earlier for MMCONFIG region at address zero"

    Linus Torvalds
     
  • This reverts commit 07f9b61c3915e8eb156cb4461b3946736356ad02.

    07f9b61c was intended to be a cleanup that didn't change anything, but in
    fact, for systems without _CBA (which is almost everything), it broke
    extended config space for domain 0 and all config space for other domains.

    Reference: http://lkml.kernel.org/r/20131004011806.GE20450@dangermouse.emea.sgi.com
    Reported-by: Hedi Berriche
    Signed-off-by: Bjorn Helgaas

    Bjorn Helgaas
     
  • Pull ACPI and power management fixes from Rafael Wysocki:

    - The resume part of user space driven hibernation (s2disk) is now
    broken after the change that moved the creation of memory bitmaps to
    after the freezing of tasks, because I forgot that the resume utility
    loaded the image before freezing tasks and needed the bitmaps for
    that. The fix adds special handling for that case.

    - One of recent commits changed the export of acpi_bus_get_device() to
    EXPORT_SYMBOL_GPL(), which was technically correct but broke existing
    binary modules using that function including one in particularly
    widespread use. Change it back to EXPORT_SYMBOL().

    - The intel_pstate driver sometimes fails to disable turbo if its
    no_turbo sysfs attribute is set. Fix from Srinivas Pandruvada.

    - One of recent cpufreq fixes forgot to update a check in cpufreq-cpu0
    which still (incorrectly) treats non-NULL as non-error. Fix from
    Philipp Zabel.

    - The SPEAr cpufreq driver uses a wrong variable type in one place
    preventing it from catching errors returned by one of the functions
    called by it. Fix from Sachin Kamat.

    * tag 'pm+acpi-3.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    ACPI: Use EXPORT_SYMBOL() for acpi_bus_get_device()
    intel_pstate: fix no_turbo
    cpufreq: cpufreq-cpu0: NULL is a valid regulator, part 2
    cpufreq: SPEAr: Fix incorrect variable type
    PM / hibernate: Fix user space driven resume regression

    Linus Torvalds
     
  • Pull xfs bugfixes from Ben Myers:
    "There are lockdep annotations for project quotas, a fix for dirent
    dtype support on v4 filesystems, a fix for a memory leak in recovery,
    and a fix for the build error that resulted from it. D'oh"

    * tag 'xfs-for-linus-v3.12-rc4' of git://oss.sgi.com/xfs/xfs:
    xfs: Use kmem_free() instead of free()
    xfs: fix memory leak in xlog_recover_add_to_trans
    xfs: dirent dtype presence is dependent on directory magic numbers
    xfs: lockdep needs to know about 3 dquot-deep nesting

    Linus Torvalds
     
  • Now avc_audit() has no more users with that parameter. Remove it.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • .. so get rid of it. The only indirect users were all the
    avc_has_perm() callers which just expanded to have a zero flags
    argument.

    Signed-off-by: Linus Torvalds

    Linus Torvalds