1. 13 2月, 2013 9 次提交
  2. 03 2月, 2013 1 次提交
  3. 01 2月, 2013 1 次提交
  4. 30 1月, 2013 4 次提交
  5. 29 1月, 2013 1 次提交
  6. 28 1月, 2013 2 次提交
  7. 26 1月, 2013 4 次提交
  8. 24 1月, 2013 4 次提交
  9. 22 1月, 2013 7 次提交
    • S
      ACPI: Check MSR valid bit before using P-state frequencies · 9855d8ce
      Stefan Bader 提交于
      To fix incorrect P-state frequencies which can happen on
      some AMD systems f594065f
         "ACPI: Add fixups for AMD P-state figures"
      introduced a quirk to obtain the correct values by reading
      from AMD specific MSRs.
      
      This did cause a regression when running a kernel using that
      quirk under Xen which does (currently) not pass through MSR
      reads to the HW. Instead the guest gets a 0 in return.
      And this seems to cause a failure to initialize the ondemand
      governour (hard to say for sure as all P-states appear to run
      at the same frequency).
      
      While this should also be fixed in the hypervisor (to allow
      a guest to read that MSR), this patch is intended to work
      around the issue in the meantime. In discussion it turned out
      that indeed real HW/BIOSes may choose to not set the valid bit
      and thus mark the P-state as invalid. So this could be considered
      a fix for broken BIOSes that also works around the issue on Xen.
      Signed-off-by: NStefan Bader <stefan.bader@canonical.com>
      Cc: 3.7+ <stable@vger.kernel.org>
      Acked-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9855d8ce
    • R
      ACPI / PM: Fix device power state value after transitions to D3cold · e5656271
      Rafael J. Wysocki 提交于
      When a transition to the D3cold power state is requested,
      acpi_device_set_power() first carries out a transition to D3hot and
      then turns off the device's power resources.  However, it fails to
      update the device's power.state field appropriately and D3hot is
      stored in it as a result.
      
      Fix this, but make sure that the device's power state will be
      D3hot if its power resources cannot be turned off in the final
      step.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e5656271
    • R
      ACPI / PM: Use string "D3cold" to represent ACPI_STATE_D3_COLD · 898fee4f
      Rafael J. Wysocki 提交于
      Make acpi_power_state_string() return "D3cold" as the string
      representation of ACPI power state D3cold instead of "D3" returned
      currently, which is confusing.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      898fee4f
    • R
      ACPI / PM: Sanitize checks in acpi_power_on_resources() · 87e753b0
      Rafael J. Wysocki 提交于
      After the only user of acpi_power_on_resources(),
      acpi_bus_init_power(), has been changed to avoid calling it
      for state equal to ACPI_STATE_D3_COLD, it doesn't have to special
      case that state any more.
      
      For this reason, modify the checks in acpi_power_on_resources()
      so that it returns -EINVAL for ACPI_STATE_D3_COLD as it should.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      87e753b0
    • R
      ACPI / PM: Always evaluate _PSn after setting power resources · e78adb75
      Rafael J. Wysocki 提交于
      The ACPI specitication (ACPI 5, Sections 7.2.8 - 7.2.11) requires
      that the _PSn (n = 0..3) method, if present, be executed after the
      power resources for the given device power state have been set
      appropriately.  However, acpi_device_set_power() does that only
      if the new power state is going to be higher-power (lower-number)
      than the power state the device is in already.  Otherwise, the
      ordering is reverse to protect against situations in which _PSn
      might access device registers unavailable after configuring the
      power resources for power state Dn (D3 meaning D3hot).
      
      Such situations are very unlikely to happen, though, and _PSn may
      actually be implemented with the assumption that power resources
      have been configured for power state Dn in advance, so change the
      code to follow the specification literally.
      
      This change was previously porposed in a different form by Lv Zheng.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e78adb75
    • R
      ACPI / PM: Introduce helper for executing _PSn methods · 9c0f45e3
      Rafael J. Wysocki 提交于
      To reduce code duplication between acpi_device_set_power() and
      acpi_bus_init_power(), introduce a new helper function for executing
      ACPI devices' _PSn (n = 0..3) methods, acpi_dev_pm_explicit_set().
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9c0f45e3
    • R
      ACPI / PM: Make acpi_bus_init_power() more robust · a2367807
      Rafael J. Wysocki 提交于
      The ACPI specification requires the _PSC method to be present under
      a device object if its power state cannot be inferred from the states
      of power resources used by it (ACPI 5, Section 7.6.2).  However, it
      also requires that (for power states D0-D2 and D3hot) if the _PSn
      (n = 0, 1, 2, 3) method is present under the device object, it also
      must be executed after the power resources have been set
      appropriately for the device to go into power state Dn (D3 means
      D3hot in this case).  Thus it is not clear from the specification
      whether or not the _PSn method should be executed if the initial
      configuraion of power resources used by the device indicates power
      state Dn and the _PSC method is not present.
      
      The current implementation of acpi_bus_init_power() is based on the
      assumption that it should not be necessary to execute _PSn in the
      above situation, but experience shows that in fact that assumption
      need not be satisfied.  For this reason, make acpi_bus_init_power()
      always execute _PSn if the initial configuration of device power
      resources indicates power state Dn.
      Reported-and-tested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a2367807
  10. 20 1月, 2013 5 次提交
  11. 19 1月, 2013 2 次提交