1. 08 2月, 2016 4 次提交
  2. 07 2月, 2016 6 次提交
  3. 21 1月, 2016 1 次提交
  4. 13 1月, 2016 1 次提交
  5. 11 1月, 2016 3 次提交
  6. 08 1月, 2016 2 次提交
  7. 05 1月, 2016 1 次提交
  8. 08 12月, 2015 1 次提交
  9. 25 11月, 2015 1 次提交
    • M
      kbuild: Allow to specify composite modules with modname-m · cf4f2193
      Michal Marek 提交于
      This allows to write
      
        drm-$(CONFIG_AGP) += drm_agpsupport.o
      
      without having to handle CONFIG_AGP=y vs. CONFIG_AGP=m. Only support
      this syntax for modules, since built-in code depending on something
      modular cannot work and init/Makefile actually relies on the current
      semantics. There are a few drivers which adapted to the current
      semantics out of necessity; these are fixed to also work when the
      respective subsystem is modular.
      
      Acked-by: Peter Chen <peter.chen@freescale.com> [chipidea]
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      cf4f2193
  10. 24 11月, 2015 2 次提交
    • A
      cxl: use correct operator when writing pcie config space values · 48f0f6b7
      Andrew Donnellan 提交于
      When writing a value to config space, cxl_pcie_write_config() calls
      cxl_pcie_config_info() to obtain a mask and shift value, shifts the new
      value accordingly, then uses the mask to combine the shifted value with the
      existing value at the address as part of a read-modify-write pattern.
      
      Currently, we use a logical OR operator rather than a bitwise OR operator,
      which means any use of this function results in an incorrect value being
      written. Replace the logical OR operator with a bitwise OR operator so the
      value is written correctly.
      Reported-by: NMichael Ellerman <mpe@ellerman.id.au>
      Cc: stable@vger.kernel.org
      Fixes: 6f7f0b3d ("cxl: Add AFU virtual PHB and kernel API")
      Signed-off-by: NAndrew Donnellan <andrew.donnellan@au1.ibm.com>
      Acked-by: NIan Munsie <imunsie@au1.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      48f0f6b7
    • V
      cxl: Fix possible idr warning when contexts are released · 1b5df59e
      Vaibhav Jain 提交于
      An idr warning is reported when a context is release after the capi card
      is unbound from the cxl driver via sysfs. Below are the steps to
      reproduce:
      
      1. Create multiple afu contexts in an user-space application using libcxl.
      2. Unbind capi card from cxl using command of form
         echo <capi-card-pci-addr> > /sys/bus/pci/drivers/cxl-pci/unbind
      3. Exit/kill the application owning afu contexts.
      
      After above steps a warning message is usually seen in the kernel logs
      of the form "idr_remove called for id=<context-id> which is not
      allocated."
      
      This is caused by the function cxl_release_afu which destroys the
      contexts_idr table. So when a context is release no entry for context pe
      is found in the contexts_idr table and idr code prints this warning.
      
      This patch fixes this issue by increasing & decreasing the ref-count on
      the afu device when a context is initialized or when its freed
      respectively. This prevents the afu from being released until all the
      afu contexts have been released. The patch introduces two new functions
      namely cxl_afu_get/put that manage the ref-count on the afu device.
      
      Also the patch removes code inside cxl_dev_context_init that increases ref
      on the afu device as its guaranteed to be alive during this function.
      Reported-by: NIan Munsie <imunsie@au1.ibm.com>
      Signed-off-by: NVaibhav Jain <vaibhav@linux.vnet.ibm.com>
      Acked-by: NIan Munsie <imunsie@au1.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      1b5df59e
  11. 07 11月, 2015 1 次提交
  12. 29 10月, 2015 3 次提交
    • S
      lkdtm: fix ACCESS_USERSPACE test · 2cb202c1
      Stephen Smalley 提交于
      Add a copy_to_user() call to the ACCESS_USERSPACE test
      prior to attempting direct dereferencing of the user
      address to ensure the page is present.  Otherwise,
      a fault occurs on arm kernels even prior to the introduction
      of CONFIG_CPU_SW_DOMAIN_PAN, and there is no difference in
      behavior for CONFIG_CPU_SW_DOMAIN_PAN=n vs CONFIG_CPU_SW_DOMAIN_PAN=y.
      
      Before this change, for any value of CONFIG_CPU_SW_DOMAIN_PAN:
      lkdtm: Performing direct entry ACCESS_USERSPACE
      lkdtm: attempting bad read at b6fe8000
      Unable to handle kernel paging request at virtual address b6fe8000
      
      After this change, for CONFIG_CPU_SW_DOMAIN_PAN=n:
      lkdtm: Performing direct entry ACCESS_USERSPACE
      lkdtm: attempting bad read at b6efc000
      lkdtm: attempting bad write at b6efc000
      
      After this change, for CONFIG_CPU_SW_DOMAIN_PAN=y:
      lkdtm: Performing direct entry ACCESS_USERSPACE
      lkdtm: attempting bad read at b6f7d000
      Unhandled fault: page domain fault (0x01b) at 0xb6f7d000
      ...
      Signed-off-by: NStephen Smalley <sds@tycho.nsa.gov>
      Acked-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2cb202c1
    • T
      mei: bus: set the device name before running fixup · 213dd193
      Tomas Winkler 提交于
      The mei bus fixup use dev_xxx services for printing
      to kernel log so we need to setup the device name
      prior to running fixup hooks.
      Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      213dd193
    • T
      mei: bus: use correct lock ordering · 2da55cfd
      Tomas Winkler 提交于
      The correct lock order is
        cl_bus_lock
          device_lock
            me_clients_rwsem
      
      This order was violated in bus rescan and remove routines
      when me_client_rwsem was locked before cl_bus_lock.
      
      Chain exists of:
      [    4.321653]   &dev->device_lock --> &dev->me_clients_rwsem -->
      &dev->cl_bus_lock
      [    4.321653]
      [    4.321679]  Possible unsafe locking scenario:
      [    4.321679]
      [    4.321693]        CPU0                    CPU1
      [    4.321701]        ----                    ----
      [    4.321709]   lock(&dev->cl_bus_lock);
      [    4.321720]
      lock(&dev->me_clients_rwsem);
      [    4.321733]                                lock(&dev->cl_bus_lock);
      [    4.321745]   lock(&dev->device_lock);
      [    4.321755]
      [    4.321755]  *** DEADLOCK ***
      [    4.321755]
      Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2da55cfd
  13. 28 10月, 2015 1 次提交
  14. 27 10月, 2015 1 次提交
  15. 26 10月, 2015 1 次提交
  16. 24 10月, 2015 1 次提交
  17. 19 10月, 2015 1 次提交
  18. 18 10月, 2015 9 次提交