1. 18 5月, 2011 1 次提交
    • R
      PM / Hibernate: Add sysfs knob to control size of memory for drivers · ddeb6487
      Rafael J. Wysocki 提交于
      Martin reports that on his system hibernation occasionally fails due
      to the lack of memory, because the radeon driver apparently allocates
      too much of it during the device freeze stage.  It turns out that the
      amount of memory allocated by radeon during hibernation (and
      presumably during system suspend too) depends on the utilization of
      the GPU (e.g. hibernating while there are two KDE 4 sessions with
      compositing enabled causes radeon to allocate more memory than for
      one KDE 4 session).
      
      In principle it should be possible to use image_size to make the
      memory preallocation mechanism free enough memory for the radeon
      driver, but in practice it is not easy to guess the right value
      because of the way the preallocation code uses image_size.  For this
      reason, it seems reasonable to allow users to control the amount of
      memory reserved for driver allocations made after the hibernate
      preallocation, which currently is constant and amounts to 1 MB.
      
      Introduce a new sysfs file, /sys/power/reserved_size, whose value
      will be used as the amount of memory to reserve for the
      post-preallocation reservations made by device drivers, in bytes.
      For backwards compatibility, set its default (and initial) value to
      the currently used number (1 MB).
      
      References: https://bugzilla.kernel.org/show_bug.cgi?id=34102Reported-and-tested-by: NMartin Steigerwald <Martin@Lichtvoll.de>
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      ddeb6487
  2. 17 5月, 2011 1 次提交
  3. 30 4月, 2011 2 次提交
    • M
      driver: Google Memory Console · e561bc45
      Mike Waychison 提交于
      This patch introduces the 'memconsole' driver.
      
      Our firmware gives us access to an in-memory log of the firmware's
      output.   This gives us visibility in a data-center of headless machines
      as to what the firmware is doing.
      
      The memory console is found by the driver by finding a header block in
      the EBDA.  The buffer is then copied out, and is exported to userland in
      the file /sys/firmware/log.
      Signed-off-by: NSan Mehat <san@google.com>
      Signed-off-by: NMike Waychison <mikew@google.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e561bc45
    • M
      driver: Google EFI SMI · 74c5b31c
      Mike Waychison 提交于
      The "gsmi" driver bridges userland with firmware specific routines for
      accessing hardware.
      
      Currently, this driver only supports NVRAM and eventlog information.
      Deprecated functions have been removed from the driver, though their
      op-codes are left in place so that they are not re-used.
      
      This driver works by trampolining into the firmware via the smi_command
      outlined in the FADT table.  Three protocols are used due to various
      limitations over time, but all are included herein.
      
      This driver should only ever load on Google boards, identified by either
      a "Google, Inc." board vendor string in DMI, or "GOOGLE" in the OEM
      strings of the FADT ACPI table.  This logic happens in
      gsmi_system_valid().
      Signed-off-by: NDuncan Laurie <dlaurie@google.com>
      Signed-off-by: NAaron Durbin <adurbin@google.com>
      Signed-off-by: NMike Waychison <mikew@google.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      74c5b31c
  4. 20 4月, 2011 2 次提交
  5. 05 4月, 2011 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 28 3月, 2011 4 次提交
  8. 23 3月, 2011 2 次提交
  9. 22 3月, 2011 3 次提交
  10. 16 3月, 2011 1 次提交
    • C
      mmc: export eMMC4.4 enhanced area details to sysfs · 709de99d
      Chuanxiao Dong 提交于
      Enhanced area feature is a new feature defined in eMMC4.4 standard. This
      user data area provides higher performance/reliability, at the expense
      of using twice the effective media space due to the area using SLC.
      
      The MMC driver now reads out the enhanced area offset and size and adds
      them to the device attributes in sysfs. Enabling the enhanced area can
      only be done once, and should be done in manufacturing. To use this
      feature, bit ERASE_GRP_DEF should also be set.
      
      Documentation/ABI/testing/sysfs-devices-mmc describes the two new
      attributes.
      Signed-off-by: NChuanxiao Dong <chuanxiao.dong@intel.com>
      Reviewed-by: NChris Ball <cjb@laptop.org>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      709de99d
  11. 15 3月, 2011 1 次提交
    • R
      PM: Do not create wakeup sysfs files for devices that cannot wake up · cb8f51bd
      Rafael J. Wysocki 提交于
      Currently, wakeup sysfs attributes are created for all devices,
      regardless of whether or not they are wakeup-capable.  This is
      excessive and complicates wakeup device identification from user
      space (i.e. to identify wakeup-capable devices user space has to read
      /sys/devices/.../power/wakeup for all devices and see if they are not
      empty).
      
      Fix this issue by avoiding to create wakeup sysfs files for devices
      that cannot wake up the system from sleep states (i.e. whose
      power.can_wakeup flags are unset during registration) and modify
      device_set_wakeup_capable() so that it adds (or removes) the relevant
      sysfs attributes if a device's wakeup capability status is changed.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      cb8f51bd
  12. 14 3月, 2011 1 次提交
  13. 12 3月, 2011 1 次提交
  14. 05 3月, 2011 1 次提交
    • N
      PCI: Export ACPI _DSM provided firmware instance number and string name to sysfs · 6058989b
      Narendra_K@Dell.com 提交于
      This patch exports ACPI _DSM (Device Specific Method) provided firmware
      instance number and string name of PCI devices as defined by 'PCI
      Firmware Specification Revision 3.1' section 4.6.7.( DSM for Naming a
      PCI or PCI Express Device Under Operating Systems) to sysfs.
      
      New files created are:
        /sys/bus/pci/devices/.../label which contains the firmware name for
      the device in question, and
        /sys/bus/pci/devices/.../acpi_index which contains the firmware device type
      instance for the given device.
      
      cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/acpi_index
      1
      cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/label
      Embedded Broadcom 5709C NIC 1
      
      cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/acpi_index
      2
      cat /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/label
      Embedded Broadcom 5709C NIC 2
      
      The ACPI _DSM provided firmware 'instance number' and 'string name' will
      be given priority if the firmware also provides 'SMBIOS type 41 device
      type instance and string'.
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      Signed-off-by: NJordan Hargrave <jordan_hargrave@dell.com>
      Signed-off-by: NNarendra K <narendra_k@dell.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      6058989b
  15. 26 2月, 2011 1 次提交
  16. 22 2月, 2011 1 次提交
  17. 17 2月, 2011 1 次提交
  18. 05 2月, 2011 1 次提交
    • P
      drivers:misc: ti-st: move from rfkill to sysfs · ec60d0ad
      Pavan Savoy 提交于
      The communication between ST KIM and UIM was interfaced
      over the /dev/rfkill device node.
      Move the interface to a simpler less abusive sysfs entry
      mechanism and document it in Documentation/ABI/testing/
      under sysfs-platform-kim.
      
      Shared transport driver would now read the UART details
      originally received by bootloader or firmware as platform
      data.
      The data read will be shared over sysfs entries for the user-space
      UIM or other n/w manager/plugins to be read, and assist the driver
      by opening up the UART, setting the baud-rate and installing the
      line discipline.
      Signed-off-by: NPavan Savoy <pavan_savoy@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ec60d0ad
  19. 04 2月, 2011 1 次提交
  20. 03 2月, 2011 1 次提交
  21. 24 1月, 2011 1 次提交
    • M
      can: at91_can: make can_id of mailbox 0 configurable · 3a5655a5
      Marc Kleine-Budde 提交于
      Due to a chip bug (errata 50.2.6.3 & 50.3.5.3 in
      "AT91SAM9263 Preliminary 6249H-ATARM-27-Jul-09") the contents of mailbox
      0 may be send under certain conditions (even if disabled or in rx mode).
      
      The workaround in the errata suggests not to use the mailbox and load it
      with an unused identifier.
      
      This patch implements the second part of the workaround. A sysfs entry
      "mb0_id" is introduced. While the interface is down it can be used to
      configure the can_id of mailbox 0. The default value id 0x7ff.
      
      In order to use an extended can_id add the CAN_EFF_FLAG (0x80000000U)
      to the can_id. Example:
      
      - standard id 0x7ff:
      echo 0x7ff      > /sys/class/net/can0/mb0_id
      
      - extended id 0x1fffffff:
      echo 0x9fffffff > /sys/class/net/can0/mb0_id
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      Acked-by: NWolfgang Grandegger <wg@grandegger.com>
      Acked-by: NKurt Van Dijck <kurt.van.dijck@eia.be>
      For the Documentation-part:
      Acked-by: NWolfram Sang <w.sang@pengutronix.de>
      3a5655a5
  22. 20 1月, 2011 1 次提交
  23. 14 1月, 2011 1 次提交
  24. 12 1月, 2011 1 次提交
  25. 08 1月, 2011 3 次提交
  26. 29 12月, 2010 1 次提交
    • T
      pstore: new filesystem interface to platform persistent storage · ca01d6dd
      Tony Luck 提交于
      Some platforms have a small amount of non-volatile storage that
      can be used to store information useful to diagnose the cause of
      a system crash.  This is the generic part of a file system interface
      that presents information from the crash as a series of files in
      /dev/pstore.  Once the information has been seen, the underlying
      storage is freed by deleting the files.
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      ca01d6dd
  27. 17 12月, 2010 2 次提交
  28. 02 12月, 2010 1 次提交
  29. 25 11月, 2010 1 次提交
    • C
      asus-laptop: add wimax and wwan support · ba1ff5be
      Corentin Chary 提交于
      Asus UL30A has a 3G chip, but the radio is disabled by default.
      The DSDT also reference a WIMAX device, which is not present on this model.
      
      This patch adds two new files: wwan and wimax to control WWAN and
      WIMAX devices. It does not use rfkill, because like WLED and BLED,
      we don't know yet that the two ACPI functions will always control the
      radio, they may control only the leds on some hardware.
      
      We may add rfkill switchs later.
      Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      ba1ff5be