29 Sep, 2014

1 commit


28 Sep, 2014

2 commits

  • Pull ARM SoC fixes from Olof Johansson:
    "Here's our last set of fixes for 3.17. Most of these are for TI
    platforms, fixing some noisy Kconfig issues, runtime clock and power
    issues on several platforms and NAND timings on DRA7.

    There are also a couple of bug fixes for i.MX, one for QCOM and a
    small fix to avoid section mismatch noise on PXA.

    Diffstat looks large, partially due to some tables being updated and
    thus touching many lines. The qcom gsbi change also restructures
    clock management a bit and thus touches a bunch of lines.

    All in all, a bit more changes than we'd like at this point, but
    nothing stands out as risky either so it seems like the right thing to
    send it up now instead of holding it to the merge window"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    drivers/soc: qcom: do not disable the iface clock in probe
    ARM: imx: fix .is_enabled() of shared gate clock
    ARM: OMAP3: Fix I/O chain clock line assertion timed out error
    ARM: keystone: dts: fix bindings for pcie and usb clock nodes
    bus: omap_l3_noc: Fix connID for OMAP4
    ARM: DT: imx53: fix lvds channel 1 port
    ARM: dts: cm-t54: fix serial console power supply.
    ARM: dts: dra7-evm: Fix NAND GPMC timings
    ARM: pxa: fix section mismatch warning for pxa_timer_nodt_init
    ARM: OMAP: Fix Kconfig warning for omap1

    Linus Torvalds
     
  • Pull x86 fixes from Ingo Molnar:
    "This has:

    - EFI revert to fix a boot regression
    - early_ioremap() fix for boot failure
    - KASLR fix for possible boot failures
    - EFI fix for corrupted string printing
    - remove a misleading EFI bootup 'failed!' error message

    Unfortunately it's all rather close to the merge window"

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/efi: Truncate 64-bit values when calling 32-bit OutputString()
    x86/efi: Delete misleading efi_printk() error message
    Revert "efi/x86: efistub: Move shared dependencies to "
    x86/kaslr: Avoid the setup_data area when picking location
    x86 early_ioremap: Increase FIX_BTMAPS_SLOTS to 8

    Linus Torvalds
     

27 Sep, 2014

1 commit


26 Sep, 2014

7 commits

  • Merge fixes from Andrew Morton:
    "9 fixes"

    * emailed patches from Andrew Morton :
    mm: softdirty: keep bit when zapping file pte
    fs/cachefiles: add missing \n to kerror conversions
    genalloc: fix device node resource counter
    drivers/rtc/rtc-efi.c: add missing module alias
    mm, slab: initialize object alignment on cache creation
    mm: softdirty: addresses before VMAs in PTE holes aren't softdirty
    ocfs2/dlm: do not get resource spinlock if lockres is new
    nilfs2: fix data loss with mmap()
    ocfs2: free vol_label in ocfs2_delete_osb()

    Linus Torvalds
     
  • Without proper alias kernel module is not loaded for rtc-efi driver.

    Signed-off-by: Pali Rohár
    Cc: dann frazier
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pali Rohár
     
  • Pull ACPI and power management fixes from Rafael Wysocki:
    "These are regression fixes (ACPI hotplug, cpufreq, hibernation, ACPI
    LPSS driver), fixes for stuff that never worked correctly (ACPI GPIO
    support in some cases and a wrong sign of an error code in the ACPI
    core in one place), and one blacklist item for ACPI backlight
    handling.

    Specifics:

    - Revert of a recent hibernation core commit that introduced a NULL
    pointer dereference during resume for at least one user (Rafael J
    Wysocki).

    - Fix for the ACPI LPSS (Low-Power Subsystem) driver to disable
    asynchronous PM callback execution for LPSS devices during system
    suspend/resume (introduced in 3.16) which turns out to break
    ordering expectations on some systems. From Fu Zhonghui.

    - cpufreq core fix related to the handling of sysfs nodes during
    system suspend/resume that has been broken for intel_pstate since
    3.15 from Lan Tianyu.

    - Restore the generation of "online" uevents for ACPI container
    devices that was removed in 3.14, but some user space utilities
    turn out to need them (Rafael J Wysocki).

    - The cpufreq core fails to release a lock in an error code path
    after changes made in 3.14. Fix from Prarit Bhargava.

    - ACPICA and ACPI/GPIO fixes to make the handling of ACPI GPIO
    operation regions (which means AML using GPIOs) work correctly in
    all cases from Bob Moore and Srinivas Pandruvada.

    - Fix for a wrong sign of the ACPI core's create_modalias() return
    value in case of an error from Mika Westerberg.

    - ACPI backlight blacklist entry for ThinkPad X201s from Aaron Lu"

    * tag 'pm+acpi-3.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    Revert "PM / Hibernate: Iterate over set bits instead of PFNs in swsusp_free()"
    gpio / ACPI: Use pin index and bit length
    ACPICA: Update to GPIO region handler interface.
    ACPI / platform / LPSS: disable async suspend/resume of LPSS devices
    cpufreq: release policy->rwsem on error
    cpufreq: fix cpufreq suspend/resume for intel_pstate
    ACPI / scan: Correct error return value of create_modalias()
    ACPI / video: disable native backlight for ThinkPad X201s
    ACPI / hotplug: Generate online uevents for ACPI containers

    Linus Torvalds
     
  • Pull i2c fixes from Wolfram Sang:
    "This is probably not the kind of pull request you want to see that
    late in the cycle. Yet, the ACPI refactorization was problematic
    again and caused another two issues which need fixing. My holidays
    with limited internet (plus travelling) and the developer's illness
    didn't help either :(

    The details:

    - ACPI code was refactored out into a seperate file and as a
    side-effect, the i2c-core module got renamed. Jean Delvare
    rightfully complained about the rename being problematic for
    distributions. So, Mika and I thought the least problematic way to
    deal with it is to move all the code back into the main i2c core
    source file. This is mainly a huge code move with some #ifdeffery
    applied. No functional code changes. Our personal tests and the
    testbots did not find problems. (I was thinking about reverting,
    too, yet that would also have ~800 lines changed)

    - The new ACPI code also had a NULL pointer exception, thanks to
    Peter for finding and fixing it.

    - Mikko fixed a locking problem by decoupling clock_prepare and
    clock_enable.

    - Addy learnt that the datasheet was wrong and reimplemented the
    frequency setup according to the new algorithm.

    - Fan fixed an off-by-one error when copying data

    - Janusz fixed a copy'n'paste bug which gave a wrong error message

    - Sergei made sure that "don't touch" bits are not accessed"

    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    i2c: acpi: Fix NULL Pointer dereference
    i2c: move acpi code back into the core
    i2c: rk3x: fix divisor calculation for SCL frequency
    i2c: mxs: fix error message in pio transfer
    i2c: ismt: use correct length when copy buffer
    i2c: rcar: fix RCAR_IRQ_ACK_{RECV|SEND}
    i2c: tegra: Move clk_prepare/clk_set_rate to probe

    Linus Torvalds
     
  • * pm-cpufreq:
    cpufreq: release policy->rwsem on error
    cpufreq: fix cpufreq suspend/resume for intel_pstate

    * pm-sleep:
    Revert "PM / Hibernate: Iterate over set bits instead of PFNs in swsusp_free()"

    Rafael J. Wysocki
     
  • * acpi-hotplug:
    ACPI / hotplug: Generate online uevents for ACPI containers

    * acpi-scan:
    ACPI / scan: Correct error return value of create_modalias()

    * acpi-lpss:
    ACPI / platform / LPSS: disable async suspend/resume of LPSS devices

    * acpi-gpio:
    gpio / ACPI: Use pin index and bit length
    ACPICA: Update to GPIO region handler interface.

    * acpi-video:
    ACPI / video: disable native backlight for ThinkPad X201s

    Rafael J. Wysocki
     
  • Pull gpio fixes from Linus Walleij:
    "Two GPIO fixes:

    - GPIO direction flags where handled wrong in the new descriptor-
    based API, so direction changes did not always "take".

    - Fix a handler installation race in the generic GPIO irqchip code"

    * tag 'gpio-v3.17-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
    gpio: Fix potential NULL handler data in chained irqchip handler
    gpio: Fix gpio direction flags not getting set

    Linus Torvalds
     

25 Sep, 2014

16 commits

  • Pull EFI fixes from Matt Fleming:

    * Revert the static library changes from the merge window since they're
    causing issues for Macbooks and Fedora + Grub2 (Matt Fleming)

    * Delete the misleading "setup_efi_pci() failed!" message which some
    people are seeing when booting EFI (Matt Fleming)

    * Fix printing strings from the 32-bit EFI boot stub by only passing
    32-bit addresses to the firmware (Matt Fleming)

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Pull devicetree bug fixes and documentation from Grant Likely:
    "Several bug fix commits for issues found in the v3.17 rc series.

    Most of these are minor in that they aren't actively dangerous, but
    they have been seen in the wild. The one important fix is commit
    7dbe5849fb50 ("of: make sure of_alias is initialized before accessing
    it"), without which some powerpc platforms will fail to find stdout
    for the console"

    * tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux:
    of/fdt: fix memory range check
    of: Fix memory block alignment in early_init_dt_add_memory_arch()
    of: make sure of_alias is initialized before accessing it
    of: Documentation regarding attaching OF Selftest testdata
    of: Disabling OF functions that use sysfs if CONFIG_SYSFS disabled
    of: correct of_console_check()'s return value

    Linus Torvalds
     
  • If adapter->dev.parent == NULL there is a NULL pointer dereference in
    acpi_i2c_install_space_handler and acpi_i2c_remove_space_handler.

    This is present since introduction of this code:
    366047515c6e "i2c: rework kernel config I2C_ACPI" or even
    da3c6647ee08 "I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI"

    The adapter->dev.parent == NULL case is valid for the i2c_stub,
    so loading i2c_stub with ACPI_I2C_OPREGION enabled results in an oops.
    This is also valid at least for i2c_tiny_usb and i2c_robotfuzz_osif.

    Fix by checking whether it is null before calling ACPI_HANDLE.

    Signed-off-by: Peter Huewe
    Acked-by: Mika Westerberg
    Signed-off-by: Wolfram Sang

    Peter Hüwe
     
  • Commit 5d98e61d337c ("I2C/ACPI: Add i2c ACPI operation region support")
    renamed the i2c-core module. This may cause regressions for
    distributions, so put the ACPI code back into the core.

    Reported-by: Jean Delvare
    Signed-off-by: Wolfram Sang
    Tested-by: Lan Tianyu
    Tested-by: Mika Westerberg

    Wolfram Sang
     
  • In cases where board has below memory DT node

    memory{
    device_type = "memory";
    reg = ;
    };

    Check on the memory range in fdt.c will always fail because it is
    comparing MAX_PHYS_ADDR with base + size, in fact it should compare
    it with base + size - 1.

    This issue was originally noticed on Qualcomm IFC6410 board.
    Without this patch kernel shows up noticed unnecessary warnings

    [ 0.000000] Machine model: Qualcomm APQ8064/IFC6410
    [ 0.000000] Ignoring memory range 0xffffffff - 0x100000000
    [ 0.000000] cma: Reserved 64 MiB at ab800000

    as a result the size get reduced to 0x7fffffff which looks wrong.

    This patch fixes the check involved in generating this warning and
    as a result it also fixes the wrong size calculation.

    Signed-off-by: Srinivas Kandagatla
    [grant.likely: adjust new size calculation also]
    Signed-off-by: Grant Likely

    Srinivas Kandagatla
     
  • We need to add this module to the nomux table to be able to detect the
    touchpad.

    Cc: stablevger.kernel.org
    Signed-off-by: Marcos Paulo de Souza
    Signed-off-by: Dmitry Torokhov

    Marcos Paulo de Souza
     
  • Pull drm fixes from Dave Airlie:
    "Some final radeon and i915 fixes, black screens mostly"

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/radeon/cik: use a separate counter for CP init timeout
    drm/i915/hdmi: fix hdmi audio state readout
    drm/i915: Don't leak command parser tables on suspend/resume
    drm/radeon: add PX quirk for asus K53TK
    drm/radeon: add a backlight quirk for Amilo Xi 2550
    drm/radeon: add a module parameter for backlight control (v2)
    drm/radeon: Update IH_RB_RPTR register after each processed interrupt
    drm/radeon: Make IH ring overflow debugging output more useful
    drm/radeon: Clear RB_OVERFLOW bit earlier

    Linus Torvalds
     
  • Fix code when the operation region callback is for an gpio, which
    is not at index 0 and for partial pins in a GPIO definition.
    For example:
    Name (GMOD, ResourceTemplate ()
    {
    //3 Outputs that define the Power mode of the device
    GpioIo (Exclusive, PullDown, , , , "\\_SB.GPI2") {10, 11, 12}
    })
    }

    If opregion callback calls is for:
    - Set pin 10, then address = 0 and bit length = 1
    - Set pin 11, then address = 1 and bit length = 1
    - Set for both pin 11 and pin 12, then address = 1, bit length = 2

    This change requires updated ACPICA gpio operation handler code to
    send the pin index and bit length.

    Fixes: 473ed7be0da0 (gpio / ACPI: Add support for ACPI GPIO operation regions)
    Signed-off-by: Srinivas Pandruvada
    Acked-by: Mika Westerberg
    Acked-by: Linus Walleij
    Cc: 3.15+ # 3.15+: 75ec6e55f138 ACPICA: Update to GPIO region handler interface.
    Signed-off-by: Rafael J. Wysocki

    Srinivas Pandruvada
     
  • Changes to correct several GPIO issues:

    1) The update_rule in a GPIO field definition is now ignored;
    a read-modify-write operation is never performed for GPIO fields.
    (Internally, this means that the field assembly/disassembly
    code is completely bypassed for GPIO.)

    2) The Address parameter passed to a GPIO region handler is
    now the bit offset of the field from a previous Connection()
    operator. Thus, it becomes a "Pin Number Index" into the
    Connection() resource descriptor.

    3) The bit_width parameter passed to a GPIO region handler is
    now the exact bit width of the GPIO field. Thus, it can be
    interpreted as "number of pins".

    Overall, we can now say that the region handler interface
    to GPIO handlers is a raw "bit/pin" addressed interface, not
    a byte-addressed interface like the system_memory handler interface.

    Signed-off-by: Bob Moore
    Signed-off-by: Lv Zheng
    Cc: 3.15+ # 3.15+
    Signed-off-by: Rafael J. Wysocki

    Bob Moore
     
  • - fix a backlight regression resulting in dark screen
    - add a PX quirk to avoid a hang with runtime pm
    - fix an init issue on the CIK compute rings
    - fix IH ring buffer overflows gracefully

    * 'drm-fixes-3.17' of git://people.freedesktop.org/~agd5f/linux:
    drm/radeon/cik: use a separate counter for CP init timeout
    drm/radeon: add PX quirk for asus K53TK
    drm/radeon: add a backlight quirk for Amilo Xi 2550
    drm/radeon: add a module parameter for backlight control (v2)
    drm/radeon: Update IH_RB_RPTR register after each processed interrupt
    drm/radeon: Make IH ring overflow debugging output more useful
    drm/radeon: Clear RB_OVERFLOW bit earlier

    Dave Airlie
     
  • On some systems (Asus T100 in particular) there are strict ordering
    dependencies between LPSS devices with respect to power management
    that break if they suspend/resume asynchronously.

    In theory it should be possible to follow those dependencies in the
    async suspend/resume case too (the ACPI tables tell as that the
    dependencies are there), but since we're missing infrastructure
    for that at the moment, disable async suspend/resume for all of
    the LPSS devices for the time being.

    Link: http://marc.info/?l=linux-acpi&m=141158962321905&w=2
    Fixes: 8ce62f85a81f (ACPI / platform / LPSS: Enable async suspend/resume of LPSS devices)
    Signed-off-by: Li Aubrey
    Signed-off-by: Fu Zhonghui
    Cc: 3.16+ # 3.16+
    [ rjw: Changelog ]
    Signed-off-by: Rafael J. Wysocki

    Fu Zhonghui
     
  • Pull networking fixes from David Miller:
    "Here is a quick pull request primarily meant to address the deconfig
    fallout from changing SCSI_NETLINK from being used via 'select' to
    being used via 'depends'.

    I applied a set of 5 patches written by Michal Marek, and then I
    carefully audited all of the remaining config files, basically:

    1) I scanned every arch config file, and if it mentioned CONFIG_INET
    or CONFIG_UNIX, I made sure it had CONFIG_NET=y

    2) After that, I scanned every arch config file, and if it did not
    have CONFIG_NET=y I made sure it did not reference any networking
    config options.

    Finally, we have some late breaking wireless fixes in here from John
    Linville and co"

    [ And there's a sparc bpf fix snuck in too ]

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
    sparc: bpf_jit: fix loads from negative offsets
    parisc: Update defconfigs which were missing CONFIG_NET.
    powerpc: Update defconfigs which were missing CONFIG_NET.
    s390: Update defconfigs which were missing CONFIG_NET.
    mips: Update some more defconfigs which were missing CONFIG_NET.
    sparc: Set CONFIG_NET=y in defconfigs
    sh: Set CONFIG_NET=y in defconfigs
    powerpc: Set CONFIG_NET=y in defconfigs
    parisc: Set CONFIG_NET=y in defconfigs
    mips: Set CONFIG_NET=y in defconfigs
    brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()
    ath9k: Fix NULL pointer dereference on early irq
    net: rfkill: gpio: Fix clock status
    NFC: st21nfca: Fix potential depmod dependency cycle
    NFC: st21nfcb: Fix depmod dependency cycle
    NFC: microread: Potential overflows in microread_target_discovered()

    Linus Torvalds
     
  • John W. Linville says:

    ====================
    pull request: wireless 2014-09-23

    Please consider pulling this one last batch of fixes intended for the 3.17 stream!

    For the NFC bits, Samuel says:

    "Hopefully not too late for a handful of NFC fixes:

    - 2 potential build failures for ST21NFCA and ST21NFCB, triggered by a
    depmod dependenyc cycle.
    - One potential buffer overflow in the microread driver."

    On top of that...

    Emil Goode provides a fix for a brcmfmac off-by-one regression which
    was introduced in the 3.17 cycle.

    Loic Poulain fixes a polarity mismatch for a variable assignment
    inside of rfkill-gpio.

    Wojciech Dubowik prevents a NULL pointer dereference in ath9k.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Pull PCI fixes from Bjorn Helgaas:
    "Here are a few fixes that should be in v3.17.

    - Reverting "Don't scan random busses" covers up a CardBus regression
    having to do with allocating CardBus bus numbers.

    - Reverting "Make sure bus numbers stay within parents bounds" covers
    up an ACPI _CRS bug that makes us reconfigure a bridge, causing a
    broken device behind it to stop responding.

    - The pciehp timeout change fixes some code we added in v3.17.
    Without the fix, we can send a new hotplug command too early,
    before the timeout has expired.

    I hope for better fixes for the reverts, but those will have to come
    after v3.17"

    * tag 'pci-v3.17-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    PCI: pciehp: Fix pcie_wait_cmd() timeout
    Revert "PCI: Make sure bus number resources stay within their parents bounds"
    Revert "PCI: Don't scan random busses in pci_scan_bridge()"

    Linus Torvalds
     
  • Pull crypto fixes from Herbert Xu:
    "This fixes three issues:

    - if ccp is loaded on a machine without ccp, it will incorrectly
    activate causing all requests to fail. Fixed by preventing ccp
    from loading if hardware isn't available.

    - not all IRQs were enabled for the qat driver, leading to potential
    stalls when it is used

    - disabled buggy AVX CTR implementation in aesni"

    * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    crypto: aesni - disable "by8" AVX CTR optimization
    crypto: ccp - Check for CCP before registering crypto algs
    crypto: qat - Enable all 32 IRQs

    Linus Torvalds
     
  • Pull media fixes from Mauro Carvalho Chehab:
    "For some last time fixes:
    - a regression detected on Kernel 3.16 related to VBI Teletext
    application breakage on drivers using videobuf2 (see
    https://bugzilla.kernel.org/show_bug.cgi?id=84401). The bug was
    noticed on saa7134 (migrated to VB2 on 3.16), but also affects
    em28xx (migrated on 3.9 to VB2);
    - two additional sanity checks at videobuf2;
    - two fixups to restore proper VBI support at the em28xx driver;
    - two Kernel oops fixups (at cx24123 and cx2341x drivers);
    - a bug at adv7604 where an if was doing just the opposite as it
    would be expected;
    - some documentation fixups to match the behavior defined at the
    Kernel"

    * tag 'media/v3.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] em28xx-v4l: get rid of field "users" in struct em28xx_v4l2"
    [media] em28xx: fix VBI handling logic
    [media] DocBook media: improve the poll() documentation
    [media] DocBook media: fix the poll() 'no QBUF' documentation
    [media] vb2: fix VBI/poll regression
    [media] cx2341x: fix kernel oops
    [media] cx24123: fix kernel oops due to missing parent pointer
    [media] adv7604: fix inverted condition
    [media] media/radio: fix radio-miropcm20.c build with io.h header file
    [media] vb2: fix plane index sanity check in vb2_plane_cookie()
    [media] DocBook media: update version number and V4L2 changes
    [media] DocBook media: fix fieldname in struct v4l2_subdev_selection
    [media] vb2: fix vb2 state check when start_streaming fails
    [media] videobuf2-core.h: fix comment
    [media] videobuf2-core: add comments before the WARN_ON
    [media] videobuf2-dma-sg: fix for wrong GFP mask to sg_alloc_table_from_pages

    Linus Torvalds
     

24 Sep, 2014

9 commits

  • Pull bugfixes for md/raid1 from Neil Brown:
    "It is amazing how much easier it is to find bugs when you know one is
    there. Two bug reports resulted in finding 7 bugs!

    All are tagged for -stable. Those that can't cause (rare) data
    corruption, cause lockups.

    Particularly, but not only, fixing new "resync" code"

    * tag 'md/3.17-more-fixes' of git://git.neil.brown.name/md:
    md/raid1: fix_read_error should act on all non-faulty devices.
    md/raid1: count resync requests in nr_pending.
    md/raid1: update next_resync under resync_lock.
    md/raid1: Don't use next_resync to determine how far resync has progressed
    md/raid1: make sure resync waits for conflicting writes to complete.
    md/raid1: clean up request counts properly in close_sync()
    md/raid1: be more cautious where we read-balance during resync.
    md/raid1: intialise start_next_window for READ case to avoid hang

    Linus Torvalds
     
  • There is possibility with misconfigured pins that interrupt occurs instantly
    after setting irq_set_chained_handler() in gpiochip_set_chained_irqchip().
    Now if handler gets called before irq_set_handler_data() the handler gets
    NULL handler data.

    Fix this by moving irq_set_handler_data() call before
    irq_set_chained_handler() in gpiochip_set_chained_irqchip().

    Cc: Stable # 3.15+
    Reviewed-by: Alexandre Courbot
    Signed-off-by: Jarkko Nikula

    Jarkko Nikula
     
  • GPIO direction flags are not getting set because
    an 'if' statement is the wrong way around.

    Cc: Stable # 3.15+
    Signed-off-by: Adrian Hunter
    Acked-by: Alexandre Courbot
    Signed-off-by: Linus Walleij

    Adrian Hunter
     
  • If the ccp is built as a built-in module, then ccp-crypto (whether
    built as a module or a built-in module) will be able to load and
    it will register its crypto algorithms. If the system does not have
    a CCP this will result in -ENODEV being returned whenever a command
    is attempted to be queued by the registered crypto algorithms.

    Add an API, ccp_present(), that checks for the presence of a CCP
    on the system. The ccp-crypto module can use this to determine if it
    should register it's crypto alogorithms.

    Cc: stable@vger.kernel.org
    Reported-by: Scot Doyle
    Signed-off-by: Tom Lendacky
    Tested-by: Scot Doyle
    Signed-off-by: Herbert Xu

    Tom Lendacky
     
  • since commit 31964ffebbb9 ("tty: serial: msm: Remove direct access to GSBI")'
    serial hangs if earlyprintk are enabled.

    This hang is noticed only when the GSBI driver is probed and all the
    earlyprintks before gsbi probe are seen on the console.
    The reason why it hangs is because GSBI driver disables hclk in its
    probe function without realizing that the serial IP might be in use by
    a bootconsole. As gsbi driver disables the clock in probe the
    bootconsole locks up.

    Turning off hclk's could be dangerous if there are system components
    like earlyprintk using the hclk.

    This patch fixes the issue by delegating the clock management to
    probe and remove functions in gsbi rather than disabling the clock in probe.

    More detailed problem description can be found here:
    http://www.spinics.net/lists/linux-arm-msm/msg10589.html

    Tested-by: Linus Walleij
    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: Olof Johansson

    Srinivas Kandagatla
     
  • Pull infiniband/rdma fixes from Roland Dreier:
    "Last late set of InfiniBand/RDMA fixes for 3.17:

    - fixes for the new memory region re-registration support
    - iSER initiator error path fixes
    - grab bag of small fixes for the qib and ocrdma hardware drivers
    - larger set of fixes for mlx4, especially in RoCE mode"

    * tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (26 commits)
    IB/mlx4: Fix VF mac handling in RoCE
    IB/mlx4: Do not allow APM under RoCE
    IB/mlx4: Don't update QP1 in native mode
    IB/mlx4: Avoid accessing netdevice when building RoCE qp1 header
    mlx4: Fix mlx4 reg/unreg mac to work properly with 0-mac addresses
    IB/core: When marshaling uverbs path, clear unused fields
    IB/mlx4: Avoid executing gid task when device is being removed
    IB/mlx4: Fix lockdep splat for the iboe lock
    IB/mlx4: Get upper dev addresses as RoCE GIDs when port comes up
    IB/mlx4: Reorder steps in RoCE GID table initialization
    IB/mlx4: Don't duplicate the default RoCE GID
    IB/mlx4: Avoid null pointer dereference in mlx4_ib_scan_netdevs()
    IB/iser: Bump version to 1.4.1
    IB/iser: Allow bind only when connection state is UP
    IB/iser: Fix RX/TX CQ resource leak on error flow
    RDMA/ocrdma: Use right macro in query AH
    RDMA/ocrdma: Resolve L2 address when creating user AH
    mlx4: Correct error flows in rereg_mr
    IB/qib: Correct reference counting in debugfs qp_stats
    IPoIB: Remove unnecessary port query
    ...

    Linus Torvalds
     
  • Pull parisc fixes from Helge Deller:
    "We avoid using -mfast-indirect-calls for 64bit kernel builds to
    prevent building an unbootable kernel due to latest gcc changes.

    In the pdc_stable/firmware-access driver we fix a few possible stack
    overflows and we now call secure_computing_strict() instead of
    secure_computing() which fixes upcoming SECCOMP patches in the
    for-next trees"

    * 'parisc-3.17-7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
    parisc: Only use -mfast-indirect-calls option for 32-bit kernel builds
    parisc: pdc_stable.c: Avoid potential stack overflows
    parisc: pdc_stable.c: Cleaning up unnecessary use of memset in conjunction with strncpy
    parisc: ptrace: use secure_computing_strict()

    Linus Torvalds
     
  • This reverts commit f23cf8bd5c1f ("efi/x86: efistub: Move shared
    dependencies to ") as well as the x86 parts of commit
    f4f75ad5741f ("efi: efistub: Convert into static library").

    The road leading to these two reverts is long and winding.

    The above two commits were merged during the v3.17 merge window and
    turned the common EFI boot stub code into a static library. This
    necessitated making some symbols global in the x86 boot stub which
    introduced new entries into the early boot GOT.

    The problem was that we weren't fixing up the newly created GOT entries
    before invoking the EFI boot stub, which sometimes resulted in hangs or
    resets. This failure was reported by Maarten on his Macbook pro.

    The proposed fix was commit 9cb0e394234d ("x86/efi: Fixup GOT in all
    boot code paths"). However, that caused issues for Linus when booting
    his Sony Vaio Pro 11. It was subsequently reverted in commit
    f3670394c29f.

    So that leaves us back with Maarten's Macbook pro not booting.

    At this stage in the release cycle the least risky option is to revert
    the x86 EFI boot stub to the pre-merge window code structure where we
    explicitly #include efi-stub-helper.c instead of linking with the static
    library. The arm64 code remains unaffected.

    We can take another swing at the x86 parts for v3.18.

    Conflicts:
    arch/x86/include/asm/efi.h

    Tested-by: Josh Boyer
    Tested-by: Maarten Lankhorst
    Tested-by: Leif Lindholm [arm64]
    Tested-by: Linus Torvalds
    Cc: H. Peter Anvin
    Cc: Ard Biesheuvel ,
    Cc: Ingo Molnar
    Signed-off-by: Matt Fleming

    Matt Fleming
     
  • Pull hwmon fixes from Guenter Roeck:
    - Fix a resource leak in tmp103 driver
    - Add support for two more processors to fam15h_power driver
    - Also fix a bug in the same driver to only report the power level on
    chips which actually support reporting it

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    hwmon: (tmp103) Fix resource leak bug in tmp103 temperature sensor driver
    hwmon: (fam15h_power) Add support for two more processors
    hwmon: (fam15h_power) Make actual power reporting conditional

    Linus Torvalds
     

23 Sep, 2014

4 commits

  • In the brcmf_count_20mhz_channels function we are looping through a list
    of channels received from firmware. Since the index of the first channel
    is 0 the condition leads to an off by one bug. This is causing us to hit
    the WARN_ON_ONCE(1) calls in the brcmu_d11n_decchspec function, which is
    how I discovered the bug.

    Introduced by:
    commit b48d891676f756d48b4d0ee131e4a7a5d43ca417
    ("brcmfmac: rework wiphy structure setup")

    Acked-by: Arend van Spriel
    Signed-off-by: Emil Goode
    Signed-off-by: John W. Linville

    Emil Goode
     
  • Otherwise we may fail to init the second compute ring.

    Noticed-by: Christian König
    Signed-off-by: Alex Deucher
    Cc: stable@vger.kernel.org

    Alex Deucher
     
  • Check the correct bit for audio. Seems like a copy-paste error from the
    start:

    commit 9ed109a7b445e3f073d8ea72f888ec80c0532465
    Author: Daniel Vetter
    Date: Thu Apr 24 23:54:52 2014 +0200

    drm/i915: Track has_audio in the pipe config

    Reported-by: Martin Andersen
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82756
    Cc: stable@vger.kernel.org # 3.16+
    Cc: Daniel Vetter
    Reviewed-by: Daniel Vetter
    Signed-off-by: Jani Nikula

    Jani Nikula
     
  • When the audio stream is paused or suspended we stop the sDMA and when it
    is unpaused/resumed we start the channel without reconfiguring it.
    The omap_dma_stop() clears the link configuration when we pause the dma, but
    it is not setting it back on start. This will result only one audio buffer
    to be played back and the DMA will stop, since the linking is disabled.
    We need to restore the CLINK_CTRL register in case of resume.

    Signed-off-by: Peter Ujfalusi
    Acked-by: Russell King
    Signed-off-by: Vinod Koul

    Peter Ujfalusi