1. 11 3月, 2015 1 次提交
  2. 12 2月, 2015 2 次提交
  3. 10 2月, 2015 1 次提交
  4. 07 2月, 2015 1 次提交
    • J
      samsung-laptop: enable better lid handling · b0dcaf4f
      Julijonas Kikutis 提交于
      Some Samsung laptops with SABI3 delay the sleep for 10 seconds after
      the lid is closed and do not wake up from sleep after the lid is opened.
      A SABI command is needed to enable the better behavior.
      
      Command = 0x6e, d0 = 0x81 enables this behavior. Returns d0 = 0x01.
      Command = 0x6e, d0 = 0x80 disables this behavior. Returns d0 = 0x00.
      
      Command = 0x6d and any d0 queries the state. This returns:
      d0 = 0x00000*01, d1 = 0x00, d2 = 0x00, d3 = 0x0* when it is enabled.
      d0 = 0x00000*00, d1 = 0x00, d2 = 0x00, d3 = 0x0* when it is disabled.
      Where * is 0 - laptop has never slept or hibernated after switch on,
                 1 - laptop has hibernated just before,
                 2 - laptop has slept just before.
      
      Patch addresses bug https://bugzilla.kernel.org/show_bug.cgi?id=75901 .
      It adds a sysfs attribute lid_handling with a description and also an
      addition to the quirks structure to enable the mode by default.
      
      A user with another laptop in the bug report says that "power button has
      to be pressed twice to wake the machine" when he or she enabled the mode
      manually using the SABI command. Therefore, it is enabled by default
      only for the single laptop that I have tested.
      Signed-off-by: NJulijonas Kikutis <julijonas.kikutis@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      b0dcaf4f
  5. 06 2月, 2015 1 次提交
    • I
      cxl: Export optional AFU configuration record in sysfs · b087e619
      Ian Munsie 提交于
      An AFU may optionally contain one or more PCIe like configuration
      records, which can be used to identify the AFU.
      
      This patch adds support for exposing the raw config space and the
      vendor, device and class code under sysfs. These will appear in a
      subdirectory of the AFU device corresponding with the configuration
      record number, e.g.
      
      cat /sys/class/cxl/afu0.0/cr0/vendor
      0x1014
      
      cat /sys/class/cxl/afu0.0/cr0/device
      0x4350
      
      cat /sys/class/cxl/afu0.0/cr0/class
      0x120000
      
      hexdump -C /sys/class/cxl/afu0.0/cr0/config
      00000000  14 10 50 43 00 00 00 00  06 00 00 12 00 00 00 00  |..PC............|
      00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      *
      00000100
      
      These files behave in much the same way as the equivalent files for PCI
      devices, with one exception being that the config file is currently
      read-only and restricted to the root user. It is not necessarily
      required to be this strict, but we currently do not have a compelling
      use-case to make it writable and/or world-readable, so I erred on the
      side of being restrictive.
      Signed-off-by: NIan Munsie <imunsie@au1.ibm.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      b087e619
  6. 02 2月, 2015 1 次提交
  7. 31 1月, 2015 1 次提交
  8. 30 1月, 2015 2 次提交
  9. 28 1月, 2015 5 次提交
  10. 24 1月, 2015 1 次提交
  11. 22 1月, 2015 4 次提交
  12. 20 1月, 2015 1 次提交
  13. 13 1月, 2015 1 次提交
  14. 10 1月, 2015 1 次提交
  15. 09 1月, 2015 1 次提交
  16. 26 12月, 2014 1 次提交
  17. 22 12月, 2014 1 次提交
  18. 12 12月, 2014 1 次提交
  19. 11 12月, 2014 1 次提交
  20. 04 12月, 2014 1 次提交
  21. 03 12月, 2014 1 次提交
  22. 27 11月, 2014 1 次提交
  23. 22 11月, 2014 3 次提交
  24. 08 11月, 2014 1 次提交
    • S
      drivers: base: support cpu cache information interface to userspace via sysfs · 246246cb
      Sudeep Holla 提交于
      This patch adds initial support for providing processor cache information
      to userspace through sysfs interface. This is based on already existing
      implementations(x86, ia64, s390 and powerpc) and hence the interface is
      intended to be fully compatible.
      
      The main purpose of this generic support is to avoid further code
      duplication to support new architectures and also to unify all the existing
      different implementations.
      
      This implementation maintains the hierarchy of cache objects which reflects
      the system's cache topology. Cache devices are instantiated as needed as
      CPUs come online. The cache information is replicated per-cpu even if they are
      shared. A per-cpu array of cache information maintained is used mainly for
      sysfs-related book keeping.
      
      It also implements the shared_cpu_map attribute, which is essential for
      enabling both kernel and user-space to discover the system's overall cache
      topology.
      
      This patch also add the missing ABI documentation for the cacheinfo sysfs
      interface already, which is well defined and widely used.
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      Reviewed-by: NStephen Boyd <sboyd@codeaurora.org>
      Tested-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: linux-api@vger.kernel.org
      Cc: linux390@de.ibm.com
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-ia64@vger.kernel.org
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: linux-s390@vger.kernel.org
      Cc: x86@kernel.org
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      246246cb
  25. 07 11月, 2014 2 次提交
    • A
      usb: gadget: hid: add configfs support · 21a9476a
      Andrzej Pietrasiewicz 提交于
      Make the hid function available for gadgets composed with configfs.
      Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      21a9476a
    • P
      PCI: Allow numa_node override via sysfs · 63692df1
      Prarit Bhargava 提交于
      NUMA systems with ACPI normally describe the physical topology via _PXM
      methods.  But many BIOSes don't implement _PXM, which leaves the kernel
      with no way to discover the device topology, which reduces performance
      because we can't put memory and processes close to the device.
      
      The NUMA node of a PCI device is already exported in the sysfs "numa_node"
      file.  Make that file writable so users can workaround the lack of _PXM
      methods in the BIOS.  For example:
      
        echo 3 > /sys/devices/pci0000:ff/0000:03:1f.3/numa_node
      
      sets the node for PCI device 0000:03:1f.3.
      
      Writing the file emits a FW_BUG warning to encourage users to request
      firmware updates.  It also taints the kernel with TAINT_FIRMWARE_WORKAROUND
      because overriding the node incorrectly can cause performance issues.
      
      [bhelgaas: changelog, documentation text]
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      CC: Myron Stowe <mstowe@redhat.com>
      CC: Alexander Ducyk <alexander.h.duyck@redhat.com>
      CC: Jiang Liu <jiang.liu@linux.intel.com>
      63692df1
  26. 06 11月, 2014 2 次提交
  27. 25 10月, 2014 1 次提交