1. 04 5月, 2016 3 次提交
  2. 02 5月, 2016 2 次提交
  3. 08 4月, 2016 1 次提交
  4. 24 3月, 2016 1 次提交
  5. 23 3月, 2016 1 次提交
    • S
      cpufreq: powernv: Add sysfs attributes to show throttle stats · 1b028984
      Shilpasri G Bhat 提交于
      Create sysfs attributes to export throttle information in
      /sys/devices/system/cpu/cpuX/cpufreq/throttle_stats directory. The
      newly added sysfs files are as follows:
      
       1)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/turbo_stat
       2)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/sub-turbo_stat
       3)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/unthrottle
       4)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/powercap
       5)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/overtemp
       6)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/supply_fault
       7)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/overcurrent
       8)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/occ_reset
      
      Detailed explanation of each attribute is added to
      Documentation/ABI/testing/sysfs-devices-system-cpu
      Signed-off-by: NShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1b028984
  6. 11 3月, 2016 1 次提交
    • S
      dmaengine: add Qualcomm Technologies HIDMA management driver · 7f8f209f
      Sinan Kaya 提交于
      The Qualcomm Technologies HIDMA device has been designed to support
      virtualization technology. The driver has been divided into two to follow
      the hardware design.
      
      1. HIDMA Management driver
      2. HIDMA Channel driver
      
      Each HIDMA HW consists of multiple channels. These channels share some set
      of common parameters. These parameters are initialized by the management
      driver during power up. Same management driver is used for monitoring the
      execution of the channels. Management driver can change the performance
      behavior dynamically such as bandwidth allocation and prioritization.
      
      The management driver is executed in host context and is the main
      management entity for all channels provided by the device.
      Signed-off-by: NSinan Kaya <okaya@codeaurora.org>
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      7f8f209f
  7. 09 3月, 2016 1 次提交
  8. 05 3月, 2016 1 次提交
  9. 29 2月, 2016 2 次提交
  10. 25 2月, 2016 1 次提交
  11. 23 2月, 2016 2 次提交
  12. 22 2月, 2016 1 次提交
  13. 21 2月, 2016 1 次提交
    • M
      ima: support for kexec image and initramfs · d9ddf077
      Mimi Zohar 提交于
      Add IMA policy support for measuring/appraising the kexec image and
      initramfs. Two new IMA policy identifiers KEXEC_KERNEL_CHECK and
      KEXEC_INITRAMFS_CHECK are defined.
      
      Example policy rules:
      measure func=KEXEC_KERNEL_CHECK
      appraise func=KEXEC_KERNEL_CHECK appraise_type=imasig
      measure func=KEXEC_INITRAMFS_CHECK
      appraise func=KEXEC_INITRAMFS_CHECK appraise_type=imasig
      
      Moving the enumeration to the vfs layer simplified the patches, allowing
      the IMA changes, for the most part, to be separated from the other
      changes.  Unfortunately, passing either a kernel_read_file_id or a
      ima_hooks enumeration within IMA is messy.
      
      Option 1: duplicate kernel_read_file enumeration in ima_hooks
      
      enum kernel_read_file_id {
      	...
              READING_KEXEC_IMAGE,
              READING_KEXEC_INITRAMFS,
              READING_MAX_ID
      
      enum ima_hooks {
      	...
      	KEXEC_KERNEL_CHECK
      	KEXEC_INITRAMFS_CHECK
      
      Option 2: define ima_hooks as extension of kernel_read_file
      eg: enum ima_hooks {
              FILE_CHECK = READING_MAX_ID,
              MMAP_CHECK,
      
      In order to pass both kernel_read_file_id and ima_hooks values, we
      would need to specify a struct containing a union.
      
      struct caller_id {
              union {
                      enum ima_hooks func_id;
                      enum kernel_read_file_id read_id;
              };
      };
      
      Option 3: incorportate the ima_hooks enumeration into kernel_read_file_id,
      perhaps changing the enumeration name.
      
      For now, duplicate the new READING_KEXEC_IMAGE/INITRAMFS in the ima_hooks.
      
      Changelog v4:
      - replaced switch statement with a kernel_read_file_id to an ima_hooks
      id mapping array - Dmitry
      - renamed ima_hook tokens KEXEC_CHECK and INITRAMFS_CHECK to
      KEXEC_KERNEL_CHECK and KEXEC_INITRAMFS_CHECK respectively - Dave Young
      Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
      Acked-by: NPetko Manolov <petkan@mip-labs.com>
      Acked-by: NDmitry Kasatkin <dmitry.kasatkin@huawei.com>
      Cc: Dave Young <dyoung@redhat.com>
      d9ddf077
  14. 13 2月, 2016 1 次提交
  15. 10 2月, 2016 2 次提交
    • G
      firmware: create directory hierarchy for sysfs fw_cfg entries · 246c46eb
      Gabriel Somlo 提交于
      Each fw_cfg entry of type "file" has an associated 56-char,
      nul-terminated ASCII string which represents its name. While
      the fw_cfg device doesn't itself impose any specific naming
      convention, QEMU developers have traditionally used path name
      semantics (i.e. "etc/acpi/rsdp") to descriptively name the
      various fw_cfg "blobs" passed into the guest.
      
      This patch attempts, on a best effort basis, to create a
      directory hierarchy representing the content of fw_cfg file
      names, under /sys/firmware/qemu_fw_cfg/by_name.
      
      Upon successful creation of all directories representing the
      "dirname" portion of a fw_cfg file, a symlink will be created
      to represent the "basename", pointing at the appropriate
      /sys/firmware/qemu_fw_cfg/by_key entry. If a file name is not
      suitable for this procedure (e.g., if its basename or dirname
      components collide with an already existing dirname component
      or basename, respectively) the corresponding fw_cfg blob is
      skipped and will remain available in sysfs only by its selector
      key value.
      Signed-off-by: NGabriel Somlo <somlo@cmu.edu>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      246c46eb
    • G
      firmware: introduce sysfs driver for QEMU's fw_cfg device · 75f3e8e4
      Gabriel Somlo 提交于
      Make fw_cfg entries of type "file" available via sysfs. Entries
      are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders
      named after each entry's selector key. Filename, selector value,
      and size read-only attributes are included for each entry. Also,
      a "raw" attribute allows retrieval of the full binary content of
      each entry.
      
      The fw_cfg device can be instantiated automatically from ACPI or
      the Device Tree, or manually by using a kernel module (or command
      line) parameter, with a syntax outlined in the documentation file.
      Signed-off-by: NGabriel Somlo <somlo@cmu.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      75f3e8e4
  16. 09 2月, 2016 3 次提交
  17. 07 2月, 2016 1 次提交
  18. 31 1月, 2016 1 次提交
  19. 12 1月, 2016 1 次提交
  20. 04 1月, 2016 1 次提交
  21. 27 12月, 2015 1 次提交
    • P
      watchdog: Read device status through sysfs attributes · 33b71126
      Pratyush Anand 提交于
      This patch adds following attributes to watchdog device's sysfs interface
      to read its different status.
      
      * state - reads whether device is active or not
      * identity - reads Watchdog device's identity string.
      * timeout - reads current timeout.
      * timeleft - reads timeleft before watchdog generates a reset
      * bootstatus - reads status of the watchdog device at boot
      * status - reads watchdog device's  internal status bits
      * nowayout - reads whether nowayout feature was set or not
      
      Testing with iTCO_wdt:
       # cd /sys/class/watchdog/watchdog1/
       # ls
      bootstatus  dev  device  identity  nowayout  power  state
      subsystem  timeleft  timeout  uevent
       # cat identity
      iTCO_wdt
       # cat timeout
      30
       # cat state
      inactive
       # echo > /dev/watchdog1
       # cat timeleft
      26
       # cat state
      active
       # cat bootstatus
      0
       # cat nowayout
      0
      Signed-off-by: NPratyush Anand <panand@redhat.com>
      Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      33b71126
  22. 23 12月, 2015 2 次提交
    • M
      IB/cma: Add configfs for rdma_cm · 045959db
      Matan Barak 提交于
      Users would like to control the behaviour of rdma_cm.
      For example, old applications which don't set the
      required RoCE gid type could be executed on RoCE V2
      network types. In order to support this configuration,
      we implement a configfs for rdma_cm.
      
      In order to use the configfs, one needs to mount it and
      mkdir <IB device name> inside rdma_cm directory.
      
      The patch adds support for a single configuration file,
      default_roce_mode. The mode can either be "IB/RoCE v1" or
      "RoCE v2".
      Signed-off-by: NMatan Barak <matanb@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      045959db
    • M
      IB/core: Add gid attributes to sysfs · 470be516
      Matan Barak 提交于
      This patch set adds attributes of net device and gid type to each GID
      in the GID table. Users that use verbs directly need to specify
      the GID index. Since the same GID could have different types or
      associated net devices, users should have the ability to query the
      associated GID attributes. Adding these attributes to sysfs.
      Signed-off-by: NMatan Barak <matanb@mellanox.com>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      470be516
  23. 21 12月, 2015 1 次提交
  24. 19 12月, 2015 1 次提交
  25. 16 12月, 2015 1 次提交
  26. 15 12月, 2015 1 次提交
  27. 08 12月, 2015 1 次提交
  28. 07 12月, 2015 1 次提交
  29. 05 12月, 2015 1 次提交
  30. 04 12月, 2015 2 次提交