25 Jan, 2015

4 commits

  • pULL SCSI fixes from James Bottomley:
    "This consists of four real fixes and three MAINTAINER updates.

    Three of the fixes are obvious (the DIX and atomic allocation are bug
    on and warn on fixes and the other is just trivial) and the ipr one is
    a bit more involved but is required because without it, the card
    double completes aborted commands and causes a kernel oops"

    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    MAINTAINERS: ibmvscsi driver maintainer change
    MAINTAINERS: ibmvfc driver maintainer change
    MAINTAINERS: Remove self as isci maintainer
    scsi_debug: test always evaluates to false, || should be used instead
    scsi: Avoid crashing if device uses DIX but adapter does not support it
    scsi_debug: use atomic allocation in resp_rsup_opcodes
    ipr: wait for aborted command responses

    Linus Torvalds
     
  • Pull watchdog fixes from Wim Van Sebroeck:
    "This will fix reboot issues with the imx2_wdt driver and it also drops
    some forgotten owner assignments from platform_drivers"

    * git://www.linux-watchdog.org/linux-watchdog:
    watchdog: drop owner assignment from platform_drivers
    watchdog: imx2_wdt: Disable power down counter on boot
    watchdog: imx2_wdt: Improve power management support.

    Linus Torvalds
     
  • Pull hwmon update from Jean Delvare:
    "This contains a single thing: a new driver for the temperature sensor
    embedded in the Intel 5500/5520/X58 chipsets.

    Sorry for the late request, it's been so long since I last sent a pull
    request and I've been so busy with other tasks meanwhile that I simply
    forgot about these patches. But given that this is a new driver, it
    can't introduce any regression so I thought it could still be OK.

    This has been in linux-next for months now"

    * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    hwmon: (i5500_temp) Convert to use ATTRIBUTE_GROUPS macro
    hwmon: (i5500_temp) Convert to module_pci_driver
    hwmon: (i5500_temp) Don't bind to disabled sensors
    hwmon: (i5500_temp) Convert to devm_hwmon_device_register_with_groups
    hwmon: (i5500_temp) New driver for the Intel 5500/5520/X58 chipsets

    Linus Torvalds
     
  • Pull media fixes from Mauro Carvalho Chehab:
    - fix some race conditions caused by a regression on videobuf2
    - fix a interrupt release bug on cx23885
    - fix support for Mygica T230 and HVR4400
    - fix compilation breakage when USB is not selected on tlg2300
    - fix capabilities report on ompa3isp, soc-camera, rcar_vin and
    pvrusb2

    * tag 'media/v3.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] omap3isp: Correctly set QUERYCAP capabilities
    [media] cx23885: fix free interrupt bug
    [media] pvrusb2: fix missing device_caps in querycap
    [media] vb2: fix vb2_thread_stop race conditions
    [media] rcar_vin: Update device_caps and capabilities in querycap
    [media] soc-camera: fix device capabilities in multiple camera host drivers
    [media] Fix Mygica T230 support
    [media] cx23885: Split Hauppauge WinTV Starburst from HVR4400 card entry
    [media] tlg2300: Fix media dependencies

    Linus Torvalds
     

24 Jan, 2015

14 commits

  • Use ATTRIBUTE_GROUPS macro to simplify the code a bit.

    Signed-off-by: Axel Lin
    Signed-off-by: Jean Delvare

    Axel Lin
     
  • Use module_pci_driver to simplify the code a bit.

    Signed-off-by: Axel Lin
    Reviewed-by: Guenter Roeck
    Signed-off-by: Jean Delvare

    Axel Lin
     
  • On many motherboards, for an unknown reason, the thermal sensor seems
    to be disabled and will return a constant temperature value of 36.5
    degrees Celsius. Don't bind to the device in that case, so that we
    don't report this bogus value to userspace.

    Signed-off-by: Jean Delvare
    Cc: Romain Dolbeau
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • Use devm_hwmon_device_register_with_groups() to simplify the code a
    bit.

    Signed-off-by: Jean Delvare
    Cc: Romain Dolbeau
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • The Intel 5500, 5520 and X58 chipsets embed a digital thermal sensor.
    This new driver supports it.

    Note that on many boards the sensor seems to be disabled and reports
    the minimum value (36.5 degrees Celsius) all the time.

    Signed-off-by: Jean Delvare
    Tested-by: Romain Dolbeau
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • Pull btrfs fixes from Chris Mason:
    "We have a few fixes in my for-linus branch.

    Qu Wenruo's batch fix a regression between some our merge window pull
    and the inode_cache feature. The rest are smaller bugs"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
    btrfs: Don't call btrfs_start_transaction() on frozen fs to avoid deadlock.
    btrfs: Fix the bug that fs_info->pending_changes is never cleared.
    btrfs: fix state->private cast on 32 bit machines
    Btrfs: fix race deleting block group from space_info->ro_bgs list
    Btrfs: fix incorrect freeing in scrub_stripe
    btrfs: sync ioctl, handle errors after transaction start

    Linus Torvalds
     
  • …/linux-platform-drivers-x86

    Pull platform driver fix from Darren Hart:
    "Revert keyboard backlight sysfs support and documentation.

    The support for the dell-laptop keyboard backlight was flawed and the
    fix:

    https://lkml.org/lkml/2015/1/14/539

    was more invasive that I felt comfortable sending at RC5.

    This series reverts the support for the dell-laptop keyboard backlight
    as well as the documentation for the newly created sysfs attributes.

    We'll get this implemented correctly for 3.20"

    * tag 'platform-drivers-x86-v3.19-2' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86:
    Revert "platform: x86: dell-laptop: Add support for keyboard backlight"
    Revert "Documentation: Add entry for dell-laptop sysfs interface"

    Linus Torvalds
     
  • Pull PCI fixes from Bjorn Helgaas:
    "These are fixes for:

    - a resource management problem that causes a Radeon "Fatal error
    during GPU init" on machines where the BIOS programmed an invalid
    Root Port window. This was a regression in v3.16.

    - an Atheros AR93xx device that doesn't handle PCI bus resets
    correctly. This was a regression in v3.14.

    - an out-of-date email address"

    * tag 'pci-v3.19-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    MAINTAINERS: Update Richard Zhu's email address
    sparc/PCI: Clip bridge windows to fit in upstream windows
    powerpc/PCI: Clip bridge windows to fit in upstream windows
    parisc/PCI: Clip bridge windows to fit in upstream windows
    mn10300/PCI: Clip bridge windows to fit in upstream windows
    microblaze/PCI: Clip bridge windows to fit in upstream windows
    ia64/PCI: Clip bridge windows to fit in upstream windows
    frv/PCI: Clip bridge windows to fit in upstream windows
    alpha/PCI: Clip bridge windows to fit in upstream windows
    x86/PCI: Clip bridge windows to fit in upstream windows
    PCI: Add pci_claim_bridge_resource() to clip window if necessary
    PCI: Add pci_bus_clip_resource() to clip to fit upstream window
    PCI: Pass bridge device, not bus, when updating bridge windows
    PCI: Mark Atheros AR93xx to avoid bus reset
    PCI: Add flag for devices where we can't use bus reset

    Linus Torvalds
     
  • Pull devicetree bug fixes and documentation updates from Grant Likely:
    "A few bugfixes for the new DT overlay feature, documentation updates,
    spelling corrections, and changes to MAINTAINERS. Nothing earth
    shattering here"

    * tag 'devicetree-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux:
    of/unittest: Overlays with sub-devices tests
    of/platform: Handle of_populate drivers in notifier
    of/overlay: Do not generate duplicate nodes
    devicetree: document the "qemu" and "virtio" vendor prefixes
    devicetree: document ARM bindings for QEMU's Firmware Config interface
    Documentation: of: fix typo in graph bindings
    dma-mapping: fix debug print to display correct dma_pfn_offset
    of: replace Asahi Kasei Corp vendor prefix
    ARM: dt: GIC: Spelling s/specific/specifier/, s/flaggs/flags/
    dt/bindings: arm-boards: Spelling s/pointong/pointing/
    MAINTAINERS: Update DT website and git repository
    MAINTAINERS: drop DT regex matching on of_get_property and of_match_table

    Linus Torvalds
     
  • Pull kvm fixes from Paolo Bonzini:
    "Three small fixes.

    Two for x86 and one avoids that sparse bails out"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: x86: SYSENTER emulation is broken
    KVM: x86: Fix of previously incomplete fix for CVE-2014-8480
    KVM: fix sparse warning in include/trace/events/kvm.h

    Linus Torvalds
     
  • Pull ARM fixes from Russell King:
    "Another round of small ARM fixes.

    restore_user_regs early stack deallocation is buggy in the presence of
    FIQs which switch to SVC mode, and could lead to corrupted registers
    being returned to a user process given an inopportune FIQ event.

    Another bug was spotted in the ARM perf code where it could lose track
    of perf counter overflows, leading to incorrect perf results.

    Lastly, a bug in arm_add_memory() was spotted where the memory sizes
    aren't properly rounded. As most people pass properly rounded sizes,
    this hasn't been noticed"

    * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
    ARM: 8292/1: mm: fix size rounding-down of arm_add_memory() function
    ARM: 8255/1: perf: Prevent wraparound during overflow
    ARM: 8266/1: Remove early stack deallocation from restore_user_regs

    Linus Torvalds
     
  • Pull two arm64 fixes from Will Deacon:
    "Arm64 fixes seem to come in pairs recently. We've got a fix for
    removing device-tree blobs when doing a make clean and another one
    addressing a missing include, which fixes build failures in -next for
    allmodconfig (spotted by Mark's buildbot).

    Summary from signed tag:

    - fix cleaning of .dtbs following directory restructuring
    - fix allmodconfig build breakage in -next due to missing include"

    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
    arm64: dump: Fix implicit inclusion of definition for PCI_IOBASE
    arm64: Add dtb files to archclean rule

    Linus Torvalds
     
  • This reverts commit 02b2aaaa57ab41504e8d03a3b2ceeb9440a2c188.

    This interface was determined to be flawed and required too invasive a
    fix for the RC cycle. This will be revisited in 3.20.

    Signed-off-by: Darren Hart

    Darren Hart
     
  • This reverts commit 3161293ba6dfceee9c1efe75185677445def05d4.

    This interface was determined to be flawed and required too invasive a
    fix for the RC cycle. This will be revisited in 3.20.

    Signed-off-by: Darren Hart

    Darren Hart
     

23 Jan, 2015

12 commits


22 Jan, 2015

10 commits

  • When using overlays with drivers calling of_populate the notifier
    will try to create the device twice. Using the populated bit
    before proceeding protects against this.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Grant Likely

    Pantelis Antoniou
     
  • During the course of the rewrites a bug sneaked in when dealing
    with children nodes of overlays, which ends up duplicating
    sub nodes.

    Simply remove the duplicate traversal of child nodes to fix.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Grant Likely

    Pantelis Antoniou
     
  • __kuser_sigtramp address should be 0x1044 instead of 0x1040.

    Signed-off-by: Ley Foon Tan

    Ley Foon Tan
     
  • James Bottomley points out that it will be -1 during unload. It's
    only used for diagnostics, so let's not hide that as it could be a
    clue as to what's gone wrong.

    Cc: Jason Wessel
    Acked-and-documention-added-by: James Bottomley
    Reviewed-by: Masami Hiramatsu
    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • device_caps in struct v4l2_capability were inadequately set in
    VIDIOC_QUERYCAP. Fix this. Without this a WARN_ON in the v4l2 core
    is triggered. This WARN_ON was added for kernel 3.19 exactly to
    detect these situations.

    Signed-off-by: Sakari Ailus
    Acked-by: Laurent Pinchart
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     
  • First free the interrupt, then disable the PCI device. The other way
    around will lead to this warning:

    Jan 19 11:42:02 telek kernel: [ 1440.161234] WARNING: CPU: 0 PID: 2191 at kernel/irq/manage.c:1311 __free_irq+0x97/0x1f0()
    Jan 19 11:42:02 telek kernel: [ 1440.161236] Trying to free already-free IRQ 0
    Jan 19 11:42:02 telek kernel: [ 1440.161237] Modules linked in: tda8290 tda10048 cx25840 cx23885(-) altera_ci tda18271 altera_stapl videobuf2_dvb tveeprom cx2341x videobuf2_dma_sg dvb_core rc_core videobuf2_memops videobuf2_core v4l2_common videodev media nouveau x86_pkg_temp_thermal cfbfillrect cfbimgblt cfbcopyarea ttm drm_kms_helper processor button isci
    Jan 19 11:42:02 telek kernel: [ 1440.161266] CPU: 0 PID: 2191 Comm: rmmod Tainted: G W 3.19.0-rc1-telek #345
    Jan 19 11:42:02 telek kernel: [ 1440.161268] Hardware name: ASUSTeK COMPUTER INC. Z9PE-D8 WS/Z9PE-D8 WS, BIOS 5404 02/10/2014
    Jan 19 11:42:02 telek kernel: [ 1440.161270] ffffffff81bf1fce ffff8808958b7cc8 ffffffff8194a97f 0000000000000000
    Jan 19 11:42:02 telek kernel: [ 1440.161274] ffff8808958b7d18 ffff8808958b7d08 ffffffff810c56b0 0000000000000286
    Jan 19 11:42:02 telek kernel: [ 1440.161279] 0000000000000000 0000000000000000 ffff88089f808890 ffff88089f808800
    Jan 19 11:42:02 telek kernel: [ 1440.161284] Call Trace:
    Jan 19 11:42:02 telek kernel: [ 1440.161290] [] dump_stack+0x4f/0x7b
    Jan 19 11:42:02 telek kernel: [ 1440.161295] [] warn_slowpath_common+0x80/0xc0
    Jan 19 11:42:02 telek kernel: [ 1440.161299] [] warn_slowpath_fmt+0x41/0x50
    Jan 19 11:42:02 telek kernel: [ 1440.161303] [] ? _raw_spin_lock_irqsave+0x56/0x70
    Jan 19 11:42:02 telek kernel: [ 1440.161307] [] ? __free_irq+0x49/0x1f0
    Jan 19 11:42:02 telek kernel: [ 1440.161311] [] __free_irq+0x97/0x1f0
    Jan 19 11:42:02 telek kernel: [ 1440.161316] [] free_irq+0x48/0xd0
    Jan 19 11:42:02 telek kernel: [ 1440.161323] [] cx23885_finidev+0x4b/0x90 [cx23885]
    Jan 19 11:42:02 telek kernel: [ 1440.161329] [] pci_device_remove+0x3a/0xc0
    Jan 19 11:42:02 telek kernel: [ 1440.161334] [] __device_release_driver+0x7a/0xf0
    Jan 19 11:42:02 telek kernel: [ 1440.161338] [] driver_detach+0xc8/0xd0
    Jan 19 11:42:02 telek kernel: [ 1440.161341] [] bus_remove_driver+0x4e/0xb0
    Jan 19 11:42:02 telek kernel: [ 1440.161345] [] driver_unregister+0x2b/0x60
    Jan 19 11:42:02 telek kernel: [ 1440.161349] [] pci_unregister_driver+0x25/0x70
    Jan 19 11:42:02 telek kernel: [ 1440.161355] [] cx23885_fini+0x10/0x12 [cx23885]
    Jan 19 11:42:02 telek kernel: [ 1440.161360] [] SyS_delete_module+0x1a8/0x1f0
    Jan 19 11:42:02 telek kernel: [ 1440.161364] [] system_call_fastpath+0x12/0x17
    Jan 19 11:42:02 telek kernel: [ 1440.161367] ---[ end trace a9c07cb5f3357020 ]---

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The VIDIOC_QUERYCAP function should set device_caps, but this was missing.
    In addition, it set the version field as well, but that should be done by
    the core, not by the driver.

    If a driver doesn't set device_caps the v4l2 core will issue a WARN_ON, so
    it's important that this is set correctly.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The locking scheme inside the vb2 thread is unsafe when stopping the
    thread. In particular kthread_stop was called *after* internal data
    structures were cleaned up instead of doing that before. In addition,
    internal vb2 functions were called after threadio->stop was set to
    true and vb2_internal_streamoff was called. This is also not allowed.

    All this led to a variety of race conditions and kernel warnings and/or
    oopses.

    Fixed by moving the kthread_stop call up before the cleanup takes
    place, and by checking threadio->stop before calling internal vb2
    queuing operations.

    Signed-off-by: Hans Verkuil
    Cc: # for v3.16 and up
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The V4L2 API requires both .capabilities and .device_caps fields of
    struct v4l2_capability to be set. Otherwise the compliance checker
    complains and since commit "v4l2-ioctl: WARN_ON if querycap didn't fill
    device_caps" a compile-time warning is issued. Fix this non-compliance
    in the rcar_vin driver.

    Signed-off-by: Nobuhiro Iwamatsu
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Nobuhiro Iwamatsu
     
  • The V4L2 API requires both .capabilities and .device_caps fields of
    struct v4l2_capability to be set. Otherwise the compliance checker
    complains and since commit "v4l2-ioctl: WARN_ON if querycap didn't fill
    device_caps" a compile-time warning is issued. Fix this non-compliance
    in several soc-camera camera host drivers.

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Guennadi Liakhovetski
    Tested-by: Geert Uytterhoeven
    Signed-off-by: Mauro Carvalho Chehab

    Guennadi Liakhovetski