1. 25 Jan, 2017 9 commits
    • Mike Leach's avatar
      coresight: etm4x: Fix enabling of cycle accurate tracing in perf. · ae3fabcd
      Mike Leach authored
      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: default avatarMike Leach <mike.leach@linaro.org>
      Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ae3fabcd
    • Wang Nan's avatar
      coresight: fix kernel panic caused by invalid CPU · f0944463
      Wang Nan authored
      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: default avatarWang 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: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
      Cc: stable <stable@vger.kernel.org> # 4.10
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f0944463
    • Stefano Babic's avatar
      VME: restore bus_remove function causing incomplete module unload · 9797484b
      Stefano Babic authored
      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: default avatarMartyn Welch <martyn@welchs.me.uk>
      Cc: devel@driverdev.osuosl.org
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Cc: stable <stable@vger.kernel.org> # 4.9
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9797484b
    • Juerg Haefliger's avatar
      lkdtm: Fix Oops when unloading the module · 9ba60573
      Juerg Haefliger authored
      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: default avatarJuerg Haefliger <juerg.haefliger@hpe.com>
      Acked-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9ba60573
    • Julia Lawall's avatar
      eeprom: fix platform_no_drv_owner.cocci warnings · 8ade6039
      Julia Lawall authored
      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: default avatarJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8ade6039
    • Colin Ian King's avatar
      eeprom: fix memory leak on buf when failed allocation of csraddr_str · acf50ec7
      Colin Ian King authored
      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: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      acf50ec7
    • Michal Simek's avatar
      char: xilinx_hwicap: Remove pointless local variables · 3c84dc7e
      Michal Simek authored
      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: default avatarDavid Binderman <dcb314@hotmail.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3c84dc7e
    • Greg Kroah-Hartman's avatar
      Merge tag 'extcon-next-for-4.11' of... · 36bebcff
      Greg Kroah-Hartman authored
      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
    • Roger Quadros's avatar
      extcon: palmas: Use dev_dbg macro for the debug messages · 567ab5a8
      Roger Quadros authored
      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: default avatarRoger Quadros <rogerq@ti.com>
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      567ab5a8
  2. 20 Jan, 2017 16 commits
  3. 19 Jan, 2017 12 commits
  4. 16 Jan, 2017 3 commits