1. 31 1月, 2013 1 次提交
    • M
      efi: Make 'efi_enabled' a function to query EFI facilities · 83e68189
      Matt Fleming 提交于
      Originally 'efi_enabled' indicated whether a kernel was booted from
      EFI firmware. Over time its semantics have changed, and it now
      indicates whether or not we are booted on an EFI machine with
      bit-native firmware, e.g. 64-bit kernel with 64-bit firmware.
      
      The immediate motivation for this patch is the bug report at,
      
          https://bugs.launchpad.net/ubuntu-cdimage/+bug/1040557
      
      which details how running a platform driver on an EFI machine that is
      designed to run under BIOS can cause the machine to become
      bricked. Also, the following report,
      
          https://bugzilla.kernel.org/show_bug.cgi?id=47121
      
      details how running said driver can also cause Machine Check
      Exceptions. Drivers need a new means of detecting whether they're
      running on an EFI machine, as sadly the expression,
      
          if (!efi_enabled)
      
      hasn't been a sufficient condition for quite some time.
      
      Users actually want to query 'efi_enabled' for different reasons -
      what they really want access to is the list of available EFI
      facilities.
      
      For instance, the x86 reboot code needs to know whether it can invoke
      the ResetSystem() function provided by the EFI runtime services, while
      the ACPI OSL code wants to know whether the EFI config tables were
      mapped successfully. There are also checks in some of the platform
      driver code to simply see if they're running on an EFI machine (which
      would make it a bad idea to do BIOS-y things).
      
      This patch is a prereq for the samsung-laptop fix patch.
      
      Cc: David Airlie <airlied@linux.ie>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Dave Jiang <dave.jiang@intel.com>
      Cc: Olof Johansson <olof@lixom.net>
      Cc: Peter Jones <pjones@redhat.com>
      Cc: Colin Ian King <colin.king@canonical.com>
      Cc: Steve Langasek <steve.langasek@canonical.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      83e68189
  2. 07 1月, 2013 1 次提交
    • M
      drm/radeon: add quirk for d3 delay during switcheroo poweron for apple macbooks · d1f9809e
      Maarten Lankhorst 提交于
      vga-switcheroo with apple-gmux does not switch correctly on my system. The PCI
      configuration space is not restored correctly, resulting in MSI not working after switch.
      
      Only useful item in dmesg is:
      
      [   33.922807] radeon 0000:01:00.0: Refused to change power state, currently in D3
      
      I did some testing, dumping the difference in ms between first succesful switch
      from D3 to D0, and it seems that there is slightly more than 20 ms difference when
      the device is re-enabled through vga-switcheroo.
      
      So bump the re-enable d3 delay to 20 ms to handle this, which fixes msi not working
      on my system after switcheroo-ing. Default d3_delay value is PCI_PM_D3_WAIT, 10 ms.
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@canonical.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      d1f9809e
  3. 20 12月, 2012 3 次提交
  4. 14 12月, 2012 1 次提交
  5. 24 10月, 2012 1 次提交
  6. 16 10月, 2012 1 次提交
  7. 27 9月, 2012 1 次提交
  8. 21 9月, 2012 3 次提交
  9. 30 8月, 2012 2 次提交
  10. 13 8月, 2012 1 次提交
  11. 18 7月, 2012 2 次提交
  12. 17 7月, 2012 3 次提交
  13. 21 6月, 2012 3 次提交
  14. 23 5月, 2012 1 次提交
  15. 17 5月, 2012 1 次提交
  16. 13 5月, 2012 1 次提交
  17. 10 5月, 2012 5 次提交
  18. 04 5月, 2012 1 次提交
  19. 03 5月, 2012 3 次提交
  20. 12 4月, 2012 1 次提交
  21. 21 3月, 2012 3 次提交
  22. 01 2月, 2012 1 次提交