1. 25 1月, 2017 9 次提交
    • M
      coresight: etm4x: Fix enabling of cycle accurate tracing in perf. · ae3fabcd
      Mike Leach 提交于
      Using perf record 'cyclacc' option in cs_etm event was not setting up cycle
      accurate trace correctly.
      
      Corrects bit set in TRCCONFIGR to enable cycle accurate trace.
      Programs TRCCCCTLR with a valid threshold value as required by ETMv4 spec.
      Signed-off-by: NMike Leach <mike.leach@linaro.org>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ae3fabcd
    • W
      coresight: fix kernel panic caused by invalid CPU · f0944463
      Wang Nan 提交于
      Commit d52c9750 ("coresight: reset "enable_sink" flag when need be")
      caused a kernel panic because of the using of an invalid value: after
      'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid,
      causes following 'cpu_to_node' access invalid memory area.
      
      This patch brings the deleted 'cpu = cpumask_first(mask)' back.
      
      Panic log:
      
       $ perf record -e cs_etm// ls
      
       Unable to handle kernel paging request at virtual address fffe801804af4f10
       pgd = ffff8017ce031600
       [fffe801804af4f10] *pgd=0000000000000000, *pud=0000000000000000
       Internal error: Oops: 96000004 [#1] SMP
       Modules linked in:
       CPU: 33 PID: 1619 Comm: perf Not tainted 4.7.1+ #16
       Hardware name: Huawei Taishan 2280 /CH05TEVBA, BIOS 1.10 11/24/2016
       task: ffff8017cb0c8400 ti: ffff8017cb154000 task.ti: ffff8017cb154000
       PC is at tmc_alloc_etf_buffer+0x60/0xd4
       LR is at tmc_alloc_etf_buffer+0x44/0xd4
       pc : [<ffff000008633df8>] lr : [<ffff000008633ddc>] pstate: 60000145
       sp : ffff8017cb157b40
       x29: ffff8017cb157b40 x28: 0000000000000000
       ...skip...
       7a60: ffff000008c64dc8 0000000000000006 0000000000000253 ffffffffffffffff
       7a80: 0000000000000000 0000000000000000 ffff0000080872cc 0000000000000001
       [<ffff000008633df8>] tmc_alloc_etf_buffer+0x60/0xd4
       [<ffff000008632b9c>] etm_setup_aux+0x1dc/0x1e8
       [<ffff00000816eed4>] rb_alloc_aux+0x2b0/0x338
       [<ffff00000816a5e4>] perf_mmap+0x414/0x568
       [<ffff0000081ab694>] mmap_region+0x324/0x544
       [<ffff0000081abbe8>] do_mmap+0x334/0x3e0
       [<ffff000008191150>] vm_mmap_pgoff+0xa4/0xc8
       [<ffff0000081a9a30>] SyS_mmap_pgoff+0xb0/0x22c
       [<ffff0000080872e4>] sys_mmap+0x18/0x28
       [<ffff0000080843f0>] el0_svc_naked+0x24/0x28
       Code: 912040a5 d0001c00 f873d821 911c6000 (b8656822)
       ---[ end trace 98933da8f92b0c9a ]---
      Signed-off-by: NWang Nan <wangnan0@huawei.com>
      Cc: Xia Kaixu <xiakaixu@huawei.com>
      Cc: Li Zefan <lizefan@huawei.com>
      Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Fixes: d52c9750 ("coresight: reset "enable_sink" flag when need be")
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Cc: stable <stable@vger.kernel.org> # 4.10
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f0944463
    • S
      VME: restore bus_remove function causing incomplete module unload · 9797484b
      Stefano Babic 提交于
      Commit 050c3d52 ("vme: make core
      vme support explicitly non-modular") dropped the remove function
      because it appeared as if it was for removal of the bus, which is
      not supported.
      
      However, vme_bus_remove() is called when a VME device is removed
      from the bus and not when the bus is removed; as it calls the VME
      device driver's cleanup function.  Without this function, the
      remove() in the VME device driver is never called and VME device
      drivers cannot be reloaded again.
      
      Here we restore the remove function that was deleted in that
      commit, and the reference to the function in the bus structure.
      
      Fixes: 050c3d52 ("vme: make core vme support explicitly non-modular")
      Cc: Manohar Vanga <manohar.vanga@gmail.com>
      Acked-by: NMartyn Welch <martyn@welchs.me.uk>
      Cc: devel@driverdev.osuosl.org
      Signed-off-by: NStefano Babic <sbabic@denx.de>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Cc: stable <stable@vger.kernel.org> # 4.9
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9797484b
    • J
      lkdtm: Fix Oops when unloading the module · 9ba60573
      Juerg Haefliger 提交于
      No jprobe is registered when the module is loaded without specifying a
      crashpoint that uses a jprobe. At the moment, we unconditionally try to
      unregister the jprobe on module unload which results in an Oops. Add a
      check to fix this.
      Signed-off-by: NJuerg Haefliger <juerg.haefliger@hpe.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9ba60573
    • J
      eeprom: fix platform_no_drv_owner.cocci warnings · 8ade6039
      Julia Lawall 提交于
      No need to set .owner here. The core will do it.
      
      Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
      
      CC: Serge Semin <fancer.lancer@gmail.com>
      Signed-off-by: NJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8ade6039
    • C
      eeprom: fix memory leak on buf when failed allocation of csraddr_str · acf50ec7
      Colin Ian King 提交于
      The error return path When csraddr_str fails to free buf, causing a
      memory leak. Fix this by returning via the free_buf label that
      performs the necessary cleanup.
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      acf50ec7
    • M
      char: xilinx_hwicap: Remove pointless local variables · 3c84dc7e
      Michal Simek 提交于
      Remove unused variables which generates these warnings:
      [linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c:301]: (style)
      Variable 'num_writes' is modified but its new value is never used.
      [linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c:356]: (style)
      Variable 'read_count' is modified but its new value is never used.
      Reported-by: NDavid Binderman <dcb314@hotmail.com>
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3c84dc7e
    • G
      Merge tag 'extcon-next-for-4.11' of... · 36bebcff
      Greg Kroah-Hartman 提交于
      Merge tag 'extcon-next-for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into char-misc-next
      
      Chanwoo writes:
      
      Update extcon for 4.11
      
      Detailed description for this pull request:
      1. Add the new extcon driver.
      - Intel INT3496 ACPI USB id detection driver detects whether
        EXTCON_USB_HOST is attached or detached. (extcon-intel-int3496.c)
      
      2. Add the new type of external connector.
      - EXTCON_CHG_USB_PD (USB Power Delivery) provides the increased
        power more than 7.5W to device with larger power demand.
      
      3. Add the description for EXTCON_CHG_USB_(SDP|ACA|SLOW|FAST)
      - EXTCON_CHG_USB_SDP should always appear together with EXTCON_USB
      - EXTCON_CHG_USB_ACA would normally appear with EXTCON_USB_HOST.
      - EXTCON_CHG_USB_SLOW can provide at least 500mA of current at 5V
      - EXTCON_CHG_USB_FAST can provide at least 1A of current at 5V.
      
      4. Modify the connector name of EXTCON_USB_HOST
      - "USB_HOST" -> "USB-HOST"
      
      5. Update the extcon core
      - Move the private extcon structure into driver/extcon directory.
        The 'struct extcon_dev' should be only handled by extcon core
        to prevent the direct access and to maintain the integrity of it.
      - Remove the ambigous operation of extcon_register_notifier()
        in case of the 'extcon_dev' instance is NULL. The user of
        extcon_register_notifier() have to specify the correct instance
        of the provider extcon driver.
      
      6. Update the extcon drivers and fix the minor issues
      - Update the extcon-axp288 driver to remove the unncessary code.
      - Add pinctrl operation during suspend mode to extcon-usb-gpio driver.
      - Clean up the extcon-arizona/adc-jack driver.
      - Use the dev_dbg() for debug messsage on extcon-palmas driver.
      - Return the error code on failure of extcon_sync()
      36bebcff
    • R
      extcon: palmas: Use dev_dbg macro for the debug messages · 567ab5a8
      Roger Quadros 提交于
      User is not interested in USB cable events appearing on the
      console. Use dev_dbg() instead of dev_info() for these events.
      Signed-off-by: NRoger Quadros <rogerq@ti.com>
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      567ab5a8
  2. 20 1月, 2017 16 次提交
  3. 19 1月, 2017 12 次提交
  4. 17 1月, 2017 1 次提交
  5. 16 1月, 2017 2 次提交
    • L
      Linux 4.10-rc4 · 49def185
      Linus Torvalds 提交于
      49def185
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace · 99421c1c
      Linus Torvalds 提交于
      Pull namespace fixes from Eric Biederman:
       "This tree contains 4 fixes.
      
        The first is a fix for a race that can causes oopses under the right
        circumstances, and that someone just recently encountered.
      
        Past that are several small trivial correct fixes. A real issue that
        was blocking development of an out of tree driver, but does not appear
        to have caused any actual problems for in-tree code. A potential
        deadlock that was reported by lockdep. And a deadlock people have
        experienced and took the time to track down caused by a cleanup that
        removed the code to drop a reference count"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        sysctl: Drop reference added by grab_header in proc_sys_readdir
        pid: fix lockdep deadlock warning due to ucount_lock
        libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount
        mnt: Protect the mountpoint hashtable with mount_lock
      99421c1c