23 Feb, 2017

5 commits


12 Jan, 2017

3 commits

  • commit e09ee853c92011860a4bd2fbdf6126f60fc16bd3 upstream.

    The credentials handling was pushed to the write handlers
    but error handling wasn't done properly.
    Move write callbacks to completion queue to destroy them
    and to notify a blocked writer about the failure

    Fixes: 136698e535cd1 (mei: push credentials inside the irq write handler)
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     
  • commit 5026c9cb0744a9cd40242743ca91a5d712f468c6 upstream.

    Adjust function name in KDoc.

    Fixes: d49dc5e76fc9 (mei: bus: use mei_cldev_ prefix for the API functions)
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     
  • commit 967b274e02e18c9fbb4d19b96a89bd0afbc77b7a upstream.

    Parameter renaming to fop_type was not reflected in KDoc

    Fixes: 3030dc0564594 (mei: add wrapper for queuing control commands)
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     

09 Jan, 2017

2 commits

  • commit 9ff2007bea1f1bfc53ac0bc7ccf8200bb275fd52 upstream.

    Add MEI Lewisburg PCH IDs for Purley based workstations.

    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • commit d5f8e166c25750adc147b0adf64a62a91653438a upstream.

    pm_runtime_autosuspend can take synchronous or asynchronous
    paths, Because we are calling pm_runtime_mark_last_busy just before
    this most of the cases it takes the asynchronous way. However,
    when the FW or driver resets during already running runtime suspend,
    the call will result in calling to the driver's rpm callback and results
    in a deadlock on device_lock.
    The simplest fix is to replace pm_runtime_autosuspend with
    asynchronous pm_request_autosuspend.

    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     

01 Nov, 2016

1 commit

  • NFC version reply size checked against only header size, not against
    full message size. That may lead potentially to uninitialized memory access
    in version data.

    That leads to warnings when version data is accessed:
    drivers/misc/mei/bus-fixup.c: warning: '*((void *)&ver+11)' may be used uninitialized in this function [-Wuninitialized]: => 212:2

    Reported in
    Build regressions/improvements in v4.9-rc3
    https://lkml.org/lkml/2016/10/30/57

    Fixes: 59fcd7c63abf (mei: nfc: Initial nfc implementation)
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     

30 Oct, 2016

1 commit

  • Pull char/misc driver fixes from Greg KH:
    "Here are a few small char/misc driver fixes for reported issues.

    The "biggest" are two binder fixes for reported issues that have been
    shipping in Android phones for a while now, the others are various
    fixes for reported problems.

    And there's a MAINTAINERS update for good measure.

    All have been in linux-next with no reported issues"

    * tag 'char-misc-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    MAINTAINERS: Add entry for genwqe driver
    VMCI: Doorbell create and destroy fixes
    GenWQE: Fix bad page access during abort of resource allocation
    vme: vme_get_size potentially returning incorrect value on failure
    extcon: qcom-spmi-misc: Sync the extcon state on interrupt
    hv: do not lose pending heartbeat vmbus packets
    mei: txe: don't clean an unprocessed interrupt cause.
    ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct
    ANDROID: binder: Add strong ref checks

    Linus Torvalds
     

29 Oct, 2016

1 commit

  • Pull powerpc fixes from Michael Ellerman:
    "Fixes marked for stable:
    - Convert cmp to cmpd in idle enter sequence (Segher Boessenkool)
    - cxl: Fix leaking pid refs in some error paths (Vaibhav Jain)
    - Re-fix race condition between going idle and entering guest (Paul Mackerras)
    - Fix race condition in setting lock bit in idle/wakeup code (Paul Mackerras)
    - radix: Use tlbiel only if we ever ran on the current cpu (Aneesh Kumar K.V)
    - relocation, register save fixes for system reset interrupt (Nicholas Piggin)

    Fixes for code merged this cycle:
    - Fix CONFIG_ALIVEC typo in restore_tm_state() (Valentin Rothberg)
    - KVM: PPC: Book3S HV: Fix build error when SMP=n (Michael Ellerman)"

    * tag 'powerpc-4.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
    powerpc/64s: relocation, register save fixes for system reset interrupt
    powerpc/mm/radix: Use tlbiel only if we ever ran on the current cpu
    powerpc/process: Fix CONFIG_ALIVEC typo in restore_tm_state()
    powerpc/64: Fix race condition in setting lock bit in idle/wakeup code
    powerpc/64: Re-fix race condition between going idle and entering guest
    cxl: Fix leaking pid refs in some error paths
    powerpc: Convert cmp to cmpd in idle enter sequence
    KVM: PPC: Book3S HV: Fix build error when SMP=n

    Linus Torvalds
     

28 Oct, 2016

3 commits

  • This change consists of two changes:

    1) If vmci_doorbell_create is called when neither guest nor
    host personality as been initialized, vmci_get_context_id
    will return VMCI_INVALID_ID. In that case, we should fail
    the create call.
    2) In doorbell destroy, we assume that vmci_guest_code_active()
    has the same return value on create and destroy. That may not
    be the case, so we may end up with the wrong refcount.
    Instead, destroy should check explicitly whether the doorbell
    is in the index table as an indicator of whether the guest
    code was active at create time.

    Reviewed-by: Adit Ranadive
    Signed-off-by: Jorgen Hansen
    Signed-off-by: Greg Kroah-Hartman

    Jorgen Hansen
     
  • When interrupting an application which was allocating DMAable
    memory, it was possible, that the DMA memory was deallocated
    twice, leading to the error symptoms below.

    Thanks to Gerald, who analyzed the problem and provided this
    patch.

    I agree with his analysis of the problem: ddcb_cmd_fixups() ->
    genwqe_alloc_sync_sgl() (fails in f/lpage, but sgl->sgl != NULL
    and f/lpage maybe also != NULL) -> ddcb_cmd_cleanup() ->
    genwqe_free_sync_sgl() (double free, because sgl->sgl != NULL and
    f/lpage maybe also != NULL)

    In this scenario we would have exactly the kind of double free that
    would explain the WARNING / Bad page state, and as expected it is
    caused by broken error handling (cleanup).

    Using the Ubuntu git source, tag Ubuntu-4.4.0-33.52, he was able to reproduce
    the "Bad page state" issue, and with the patch on top he could not reproduce
    it any more.

    ------------[ cut here ]------------
    WARNING: at /build/linux-o03cxz/linux-4.4.0/arch/s390/include/asm/pci_dma.h:141
    Modules linked in: qeth_l2 ghash_s390 prng aes_s390 des_s390 des_generic sha512_s390 sha256_s390 sha1_s390 sha_common genwqe_card qeth crc_itu_t qdio ccwgroup vmur dm_multipath dasd_eckd_mod dasd_mod
    CPU: 2 PID: 3293 Comm: genwqe_gunzip Not tainted 4.4.0-33-generic #52-Ubuntu
    task: 0000000032c7e270 ti: 00000000324e4000 task.ti: 00000000324e4000
    Krnl PSW : 0404c00180000000 0000000000156346 (dma_update_cpu_trans+0x9e/0xa8)
    R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0 EA:3
    Krnl GPRS: 00000000324e7bcd 0000000000c3c34a 0000000027628298 000000003215b400
    0000000000000400 0000000000001fff 0000000000000400 0000000116853000
    07000000324e7b1e 0000000000000001 0000000000000001 0000000000000001
    0000000000001000 0000000116854000 0000000000156402 00000000324e7a38
    Krnl Code: 000000000015633a: 95001000 cli 0(%r1),0
    000000000015633e: a774ffc3 brc 7,1562c4
    #0000000000156342: a7f40001 brc 15,156344
    >0000000000156346: 92011000 mvi 0(%r1),1
    000000000015634a: a7f4ffbd brc 15,1562c4
    000000000015634e: 0707 bcr 0,%r7
    0000000000156350: c00400000000 brcl 0,156350
    0000000000156356: eb7ff0500024 stmg %r7,%r15,80(%r15)
    Call Trace:
    ([] dma_update_trans+0x90/0x228)
    [] s390_dma_unmap_pages+0x64/0x160
    [] s390_dma_free+0x62/0x98
    [] __genwqe_free_consistent+0x56/0x70 [genwqe_card]
    [] genwqe_free_sync_sgl+0xf8/0x160 [genwqe_card]
    [] ddcb_cmd_cleanup+0x86/0xa8 [genwqe_card]
    [] do_execute_ddcb+0x110/0x348 [genwqe_card]
    [] genwqe_ioctl+0x51c/0xc20 [genwqe_card]
    [] do_vfs_ioctl+0x3b2/0x518
    [] SyS_ioctl+0xa4/0xb8
    [] system_call+0xd6/0x264
    [] 0x3ff9e8e520a
    Last Breaking-Event-Address:
    [] dma_update_cpu_trans+0x9a/0xa8
    ---[ end trace 35996336235145c8 ]---
    BUG: Bad page state in process jbd2/dasdb1-8 pfn:3215b
    page:000003d100c856c0 count:-1 mapcount:0 mapping: (null) index:0x0
    flags: 0x3fffc0000000000()
    page dumped because: nonzero _count

    Signed-off-by: Gerald Schaefer
    Signed-off-by: Frank Haverkamp
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Gerald Schaefer
     
  • Would like to have this be a decimal number.

    Link: http://lkml.kernel.org/r/20161026134746.GA30169@sgi.com
    Signed-off-by: Dimitri Sivanich
    Reported-by: Uwe Kleine-König
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dimitri Sivanich
     

25 Oct, 2016

1 commit

  • SEC registers are not accessible when the TXE device is in low power
    state, hence the SEC interrupt cannot be processed if device is not
    awake.

    In some rare cases entrance to low power state (aliveness off) and input
    ready bits can be signaled at the same time, resulting in communication
    stall as input ready won't be signaled again after waking up. To resolve
    this IPC_HHIER_SEC bit in HHISR_REG should not be cleaned if the
    interrupt is not processed.

    Cc: stable@vger.kernel.org
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     

24 Oct, 2016

1 commit

  • In some error paths in functions cxl_start_context and
    afu_ioctl_start_work pid references to the current & group-leader tasks
    can leak after they are taken. This patch fixes these error paths to
    release these pid references before exiting the error path.

    Fixes: 7b8ad495d592 ("cxl: Fix DSI misses when the context owning task exits")
    Cc: stable@vger.kernel.org # v4.5+
    Reviewed-by: Andrew Donnellan
    Reported-by: Frederic Barrat
    Signed-off-by: Vaibhav Jain
    Acked-by: Frederic Barrat
    Signed-off-by: Michael Ellerman

    Vaibhav Jain
     

22 Oct, 2016

1 commit

  • Pull powerpc fixes from Michael Ellerman:
    "Fixes marked for stable:
    - Prevent unlikely crash in copro_calculate_slb() (Frederic Barrat)
    - cxl: Prevent adapter reset if an active context exists (Vaibhav Jain)

    Fixes for code merged this cycle:
    - Fix boot on systems with uncompressed kernel image (Heiner Kallweit)
    - Drop dump_numa_memory_topology() (Michael Ellerman)
    - Fix numa topology console print (Aneesh Kumar K.V)
    - Ignore the pkey system calls for now (Stephen Rothwell)"

    * tag 'powerpc-4.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
    powerpc: Ignore the pkey system calls for now
    powerpc: Fix numa topology console print
    powerpc/mm: Drop dump_numa_memory_topology()
    cxl: Prevent adapter reset if an active context exists
    powerpc/boot: Fix boot on systems with uncompressed kernel image
    powerpc/mm: Prevent unlikely crash in copro_calculate_slb()

    Linus Torvalds
     

19 Oct, 2016

2 commits

  • This removes the 'write' and 'force' from get_user_pages() and replaces
    them with 'gup_flags' to make the use of FOLL_FORCE explicit in callers
    as use of this flag can result in surprising behaviour (and hence bugs)
    within the mm subsystem.

    Signed-off-by: Lorenzo Stoakes
    Acked-by: Christian König
    Acked-by: Jesper Nilsson
    Acked-by: Michal Hocko
    Reviewed-by: Jan Kara
    Signed-off-by: Linus Torvalds

    Lorenzo Stoakes
     
  • This patch prevents resetting the cxl adapter via sysfs in presence of
    one or more active cxl_context on it. This protects against an
    unrecoverable error caused by PSL owning a dirty cache line even after
    reset and host tries to touch the same cache line. In case a force reset
    of the card is required irrespective of any active contexts, the int
    value -1 can be stored in the 'reset' sysfs attribute of the card.

    The patch introduces a new atomic_t member named contexts_num inside
    struct cxl that holds the number of active context attached to the card
    , which is checked against '0' before proceeding with the reset. To
    prevent against a race condition where a context is activated just after
    reset check is performed, the contexts_num is atomically set to '-1'
    after reset-check to indicate that no more contexts can be activated on
    the card anymore.

    Before activating a context we atomically test if contexts_num is
    non-negative and if so, increment its value by one. In case the value of
    contexts_num is negative then it indicates that the card is about to be
    reset and context activation is error-ed out at that point.

    Fixes: 62fa19d4b4fd ("cxl: Add ability to reset the card")
    Cc: stable@vger.kernel.org # v4.0+
    Acked-by: Frederic Barrat
    Reviewed-by: Andrew Donnellan
    Signed-off-by: Vaibhav Jain
    Signed-off-by: Michael Ellerman

    Vaibhav Jain
     

11 Oct, 2016

1 commit

  • Pull more vfs updates from Al Viro:
    ">rename2() work from Miklos + current_time() from Deepa"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    fs: Replace current_fs_time() with current_time()
    fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps
    fs: Replace CURRENT_TIME with current_time() for inode timestamps
    fs: proc: Delete inode time initializations in proc_alloc_inode()
    vfs: Add current_time() api
    vfs: add note about i_op->rename changes to porting
    fs: rename "rename2" i_op to "rename"
    vfs: remove unused i_op->rename
    fs: make remaining filesystems use .rename2
    libfs: support RENAME_NOREPLACE in simple_rename()
    fs: support RENAME_NOREPLACE for local filesystems
    ncpfs: fix unused variable warning

    Linus Torvalds
     

08 Oct, 2016

2 commits

  • Pull powerpc updates from Michael Ellerman:
    "Highlights:
    - Major rework of Book3S 64-bit exception vectors (Nicholas Piggin)
    - Use gas sections for arranging exception vectors et. al.
    - Large set of TM cleanups and selftests (Cyril Bur)
    - Enable transactional memory (TM) lazily for userspace (Cyril Bur)
    - Support for XZ compression in the zImage wrapper (Oliver
    O'Halloran)
    - Add support for bpf constant blinding (Naveen N. Rao)
    - Beginnings of upstream support for PA Semi Nemo motherboards
    (Darren Stevens)

    Fixes:
    - Ensure .mem(init|exit).text are within _stext/_etext (Michael
    Ellerman)
    - xmon: Don't use ld on 32-bit (Michael Ellerman)
    - vdso64: Use double word compare on pointers (Anton Blanchard)
    - powerpc/nvram: Fix an incorrect partition merge (Pan Xinhui)
    - powerpc: Fix usage of _PAGE_RO in hugepage (Christophe Leroy)
    - powerpc/mm: Update FORCE_MAX_ZONEORDER range to allow hugetlb w/4K
    (Aneesh Kumar K.V)
    - Fix memory leak in queue_hotplug_event() error path (Andrew
    Donnellan)
    - Replay hypervisor maintenance interrupt first (Nicholas Piggin)

    Various performance optimisations (Anton Blanchard):
    - Align hot loops of memset() and backwards_memcpy()
    - During context switch, check before setting mm_cpumask
    - Remove static branch prediction in atomic{, 64}_add_unless
    - Only disable HAVE_EFFICIENT_UNALIGNED_ACCESS on POWER7 little
    endian
    - Set default CPU type to POWER8 for little endian builds

    Cleanups & features:
    - Sparse fixes/cleanups (Daniel Axtens)
    - Preserve CFAR value on SLB miss caused by access to bogus address
    (Paul Mackerras)
    - Radix MMU fixups for POWER9 (Aneesh Kumar K.V)
    - Support for setting used_(vsr|vr|spe) in sigreturn path (for CRIU)
    (Simon Guo)
    - Optimise syscall entry for virtual, relocatable case (Nicholas
    Piggin)
    - Optimise MSR handling in exception handling (Nicholas Piggin)
    - Support for kexec with Radix MMU (Benjamin Herrenschmidt)
    - powernv EEH fixes (Russell Currey)
    - Suprise PCI hotplug support for powernv (Gavin Shan)
    - Endian/sparse fixes for powernv PCI (Gavin Shan)
    - Defconfig updates (Anton Blanchard)
    - KVM: PPC: Book3S HV: Migrate pinned pages out of CMA (Balbir Singh)
    - cxl: Flush PSL cache before resetting the adapter (Frederic Barrat)
    - cxl: replace loop with for_each_child_of_node(), remove unneeded
    of_node_put() (Andrew Donnellan)
    - Fix HV facility unavailable to use correct handler (Nicholas
    Piggin)
    - Remove unnecessary syscall trampoline (Nicholas Piggin)
    - fadump: Fix build break when CONFIG_PROC_VMCORE=n (Michael
    Ellerman)
    - Quieten EEH message when no adapters are found (Anton Blanchard)
    - powernv: Add PHB register dump debugfs handle (Russell Currey)
    - Use kprobe blacklist for exception handlers & asm functions
    (Nicholas Piggin)
    - Document the syscall ABI (Nicholas Piggin)
    - MAINTAINERS: Update cxl maintainers (Michael Neuling)
    - powerpc: Remove all usages of NO_IRQ (Michael Ellerman)

    Minor cleanups:
    - Andrew Donnellan, Christophe Leroy, Colin Ian King, Cyril Bur,
    Frederic Barrat, Pan Xinhui, PrasannaKumar Muralidharan, Rui Teng,
    Simon Guo"

    * tag 'powerpc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (156 commits)
    powerpc/bpf: Add support for bpf constant blinding
    powerpc/bpf: Implement support for tail calls
    powerpc/bpf: Introduce accessors for using the tmp local stack space
    powerpc/fadump: Fix build break when CONFIG_PROC_VMCORE=n
    powerpc: tm: Enable transactional memory (TM) lazily for userspace
    powerpc/tm: Add TM Unavailable Exception
    powerpc: Remove do_load_up_transact_{fpu,altivec}
    powerpc: tm: Rename transct_(*) to ck(\1)_state
    powerpc: tm: Always use fp_state and vr_state to store live registers
    selftests/powerpc: Add checks for transactional VSXs in signal contexts
    selftests/powerpc: Add checks for transactional VMXs in signal contexts
    selftests/powerpc: Add checks for transactional FPUs in signal contexts
    selftests/powerpc: Add checks for transactional GPRs in signal contexts
    selftests/powerpc: Check that signals always get delivered
    selftests/powerpc: Add TM tcheck helpers in C
    selftests/powerpc: Allow tests to extend their kill timeout
    selftests/powerpc: Introduce GPR asm helper header file
    selftests/powerpc: Move VMX stack frame macros to header file
    selftests/powerpc: Rework FPU stack placement macros and move to header file
    selftests/powerpc: Check for VSX preservation across userspace preemption
    ...

    Linus Torvalds
     
  • Pull i2c updates from Wolfram Sang:
    "Here is the 4.9 pull request from I2C including:

    - centralized error messages when registering to the core
    - improved lockdep annotations to prevent false positives
    - DT support for muxes, gates, and arbitrators
    - bus speeds can now be obtained from ACPI
    - i2c-octeon got refactored and now supports ThunderX SoCs, too
    - i2c-tegra and i2c-designware got a bigger bunch of updates
    - a couple of standard driver fixes and improvements"

    * 'i2c/for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (71 commits)
    i2c: axxia: disable clks in case of failure in probe
    i2c: octeon: thunderx: Limit register access retries
    i2c: uniphier-f: fix misdetection of incomplete STOP condition
    gpio: pca953x: variable 'id' was used twice
    i2c: i801: Add support for Kaby Lake PCH-H
    gpio: pca953x: fix an incorrect lockdep warning
    i2c: add a warning to i2c_adapter_depth()
    lockdep: make MAX_LOCKDEP_SUBCLASSES unconditionally visible
    i2c: export i2c_adapter_depth()
    i2c: rk3x: Fix variable 'min_total_ns' unused warning
    i2c: rk3x: Fix sparse warning
    i2c / ACPI: Do not touch an I2C device if it belongs to another adapter
    i2c: octeon: Fix high-level controller status check
    i2c: octeon: Avoid sending STOP during recovery
    i2c: octeon: Fix set SCL recovery function
    i2c: rcar: add support for r8a7796 (R-Car M3-W)
    i2c: imx: make bus recovery through pinctrl optional
    i2c: meson: add gxbb compatible string
    i2c: uniphier-f: set the adapter to master mode when probing
    i2c: uniphier-f: avoid WARN_ON() of clk_disable() in failure path
    ...

    Linus Torvalds
     

04 Oct, 2016

3 commits

  • Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use
    for_each_child_of_node() rather than a hand-coded for loop.

    Remove the useless of_node_put(afu_np) call after the loop, where it's
    guaranteed that afu_np == NULL.

    Reported-by: SF Markus Elfring
    Reported-by: Julia Lawall
    Signed-off-by: Andrew Donnellan
    Reviewed-by: Frederic Barrat
    Signed-off-by: Michael Ellerman

    Andrew Donnellan
     
  • If the capi link is going down while the PSL owns a dirty cache line,
    any access from the host for that data could lead to an Uncorrectable
    Error.

    So when resetting the capi adapter through sysfs, make sure the PSL
    cache is flushed. It won't help if there are any active Process
    Elements on the card, as the cache would likely get new dirty cache
    lines immediately, but if resetting an idle adapter, it should avoid
    any bad surprises from data left over from terminated Process Elements.

    Signed-off-by: Frederic Barrat
    Reviewed-by: Andrew Donnellan
    Acked-by: Ian Munsie
    Signed-off-by: Michael Ellerman

    Frederic Barrat
     
  • Pull char/misc driver updates from Greg KH:
    "Here's the "big" char and misc driver update for 4.9-rc1.

    Lots of little things here, all over the driver tree for subsystems
    that flow through me. Nothing major that I can discern, full details
    are in the shortlog.

    All have been in the linux-next tree with no reported issues"

    * tag 'char-misc-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (144 commits)
    drivers/misc/hpilo: Changes to support new security states in iLO5 FW
    at25: fix debug and error messaging
    misc/genwqe: ensure zero initialization
    vme: fake: remove unexpected unlock in fake_master_set()
    vme: fake: mark symbols static where possible
    spmi: pmic-arb: Return an error code if sanity check fails
    Drivers: hv: get rid of id in struct vmbus_channel
    Drivers: hv: make VMBus bus ids persistent
    mcb: Add a dma_device to mcb_device
    mcb: Enable PCI bus mastering by default
    mei: stop the stall timer worker if not needed
    clk: probe common clock drivers earlier
    vme: fake: fix build for 64-bit dma_addr_t
    ttyprintk: Neaten and simplify printing
    mei: me: add kaby point device ids
    coresight: tmc: mark symbols static where possible
    coresight: perf: deal with error condition properly
    Drivers: hv: hv_util: Avoid dynamic allocation in time synch
    fpga manager: Add hardware dependency to Zynq driver
    Drivers: hv: utils: Support TimeSync version 4.0 protocol samples.
    ...

    Linus Torvalds
     

28 Sep, 2016

1 commit

  • CURRENT_TIME macro is not appropriate for filesystems as it
    doesn't use the right granularity for filesystem timestamps.
    Use current_time() instead.

    CURRENT_TIME is also not y2038 safe.

    This is also in preparation for the patch that transitions
    vfs timestamps to use 64 bit time and hence make them
    y2038 safe. As part of the effort current_time() will be
    extended to do range checks. Hence, it is necessary for all
    file system timestamps to use current_time(). Also,
    current_time() will be transitioned along with vfs to be
    y2038 safe.

    Note that whenever a single call to current_time() is used
    to change timestamps in different inodes, it is because they
    share the same time granularity.

    Signed-off-by: Deepa Dinamani
    Reviewed-by: Arnd Bergmann
    Acked-by: Felipe Balbi
    Acked-by: Steven Whitehouse
    Acked-by: Ryusuke Konishi
    Acked-by: David Sterba
    Signed-off-by: Al Viro

    Deepa Dinamani
     

27 Sep, 2016

4 commits

  • Changes to support new security states of the iLO5 firmware.

    - use BAR5 for CCB's for iLO5
    - simplification of error handling

    Signed-off-by: Mark Rusk
    Signed-off-by: David Altobelli
    Signed-off-by: Greg Kroah-Hartman

    Rusk, Mark
     
  • The patch does the following:
    - fixes specifiers and removes explicit casting of the parameters
    - joins literals to one line
    - increases readability of the parameters

    Signed-off-by: Andy Shevchenko
    Signed-off-by: Greg Kroah-Hartman

    Andy Shevchenko
     
  • Genwqe uses dma_alloc_coherent and depends on zero initialized memory. On
    one occasion it ueses an explicit memset on others it uses un-initialized
    memory.

    This bug was covered because some archs actually return zero initialized
    memory when using dma_alloc_coherent but this is by no means guaranteed.
    Simply switch to dma_zalloc_coherent.

    Signed-off-by: Sebastian Ott
    Signed-off-by: Frank Haverkamp
    Signed-off-by: Greg Kroah-Hartman

    Sebastian Ott
     
  • The stall timer worker checks periodically if there is a stalled i/o
    transaction. The issue with the current implementation is that the timer
    is ticking also when there is no pending i/o transaction.
    This patch provides a simple change that prevents rescheduling
    of the delayed work when there is no pending i/o.

    Cc: Andy Lutomirski
    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     

13 Sep, 2016

1 commit

  • When set_sl_ops() is called, the adapter data structure is not fully
    initialized yet. Therefore the device name is not showing up in the
    trace. Fix is simply to get the device name from the pci_dev
    structure.

    Fixes: 6d382616ac22 ("cxl: Abstract the differences between the PSL and XSL")
    Signed-off-by: Frederic Barrat
    Signed-off-by: Michael Ellerman

    Frederic Barrat
     

12 Sep, 2016

1 commit


07 Sep, 2016

1 commit

  • The hardened usercopy is now consistently avoiding checks against const
    sizes, since we really only want to perform runtime bounds checking
    on lengths that weren't known at build time. To test the hardened usercopy
    code, we must force the length arguments to be seen as non-const.

    Signed-off-by: Kees Cook

    Kees Cook
     

05 Sep, 2016

1 commit


04 Sep, 2016

1 commit

  • Pull char/misc driver fixes from Greg KH:
    "Here are a number of small driver fixes for 4.8-rc5.

    The largest thing here is deleting an obsolete driver,
    drivers/misc/bh1780gli.c, as the functionality of it was replaced by
    an iio driver a while ago.

    The other fixes are things that have been reported, or reverts of
    broken stuff (the binder change). All of these changes have been in
    linux-next for a while with no reported issues"

    * tag 'char-misc-4.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    thunderbolt: Don't declare Falcon Ridge unsupported
    thunderbolt: Add support for INTEL_FALCON_RIDGE_2C controller.
    thunderbolt: Fix resume quirk for Falcon Ridge 4C.
    lkdtm: Mark lkdtm_rodata_do_nothing() notrace
    mei: me: disable driver on SPT SPS firmware
    Revert "android: binder: fix dangling pointer comparison"
    drivers/iio/light/Kconfig: SENSORS_BH1780 cleanup
    android: binder: fix dangling pointer comparison
    misc: delete bh1780 driver

    Linus Torvalds
     

31 Aug, 2016

3 commits

  • The EG20T has 4 UART blocks. The clock source for the UART block is
    configured to receive a clock from an external pin by default.

    An internal 25MHz clock in the EG20T can also be used as a clock source
    for the clock.

    The MIPS based Boston platform ties the external clock pin down and relies
    on the internal clock source for the UART to function.

    Boston is based on device tree.

    Add a quirk to allow Boston to be detected via device tree and set the
    correct clock source for UART.

    Signed-off-by: Zubair Lutfullah Kakakhel
    Signed-off-by: Greg Kroah-Hartman

    Zubair Lutfullah Kakakhel
     
  • The default prefetch value for the eg20t device is hard coded to
    0x000affaa.

    Add support for an alternative to be read from DT if available

    Signed-off-by: Zubair Lutfullah Kakakhel
    Signed-off-by: Greg Kroah-Hartman

    Zubair Lutfullah Kakakhel
     
  • Since it should always be ok for normal users to operate the accelerator,
    it makes sense to change it in our driver, rather than adding udev rules
    for all Linux distributions.

    Signed-off-by: Frank Haverkamp
    Reviewed-by: Gabriel Krisman Bertazi
    Signed-off-by: Greg Kroah-Hartman

    Frank Haverkamp