1. 31 8月, 2016 1 次提交
  2. 30 7月, 2016 4 次提交
  3. 20 5月, 2016 1 次提交
  4. 09 2月, 2016 1 次提交
  5. 25 11月, 2015 1 次提交
  6. 21 10月, 2015 1 次提交
    • L
      vga_switcheroo: Constify vga_switcheroo_handler · 5d170139
      Lukas Wunner 提交于
      vga_switcheroo_client_ops has always been declared const since its
      introduction with 26ec685f ("vga_switcheroo: Introduce struct
      vga_switcheroo_client_ops").
      
      Do so for vga_switcheroo_handler as well.
      
       drivers/gpu/drm/amd/amdgpu/amdgpu.ko:
         6 .rodata       00009888
      - 19 .data         00001f00
      + 19 .data         00001ee0
       drivers/gpu/drm/nouveau/nouveau.ko:
         6 .rodata       000460b8
        17 .data         00018fe0
       drivers/gpu/drm/radeon/radeon.ko:
      -  7 .rodata       00030944
      +  7 .rodata       00030964
      - 21 .data         0000d6a0
      + 21 .data         0000d678
       drivers/platform/x86/apple-gmux.ko:
      -  7 .rodata       00000140
      +  7 .rodata       00000160
      - 11 .data         000000e0
      + 11 .data         000000b8
      
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Darren Hart <dvhart@linux.intel.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NLukas Wunner <lukas@wunner.de>
      Reviewed-by: Christian König <christian.koenig@amd.com>.
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      5d170139
  7. 28 8月, 2015 1 次提交
  8. 16 9月, 2014 1 次提交
  9. 02 5月, 2014 1 次提交
  10. 21 2月, 2014 1 次提交
  11. 23 1月, 2014 1 次提交
  12. 05 1月, 2014 2 次提交
  13. 31 12月, 2013 1 次提交
    • R
      ACPIPHP / radeon / nouveau: Fix VGA switcheroo problem related to hotplug · f244d8b6
      Rafael J. Wysocki 提交于
      The changes in the ACPI-based PCI hotplug (ACPIPHP) subsystem made
      during the 3.12 development cycle uncovered a problem with VGA
      switcheroo that on some systems, when the device-specific method
      (ATPX in the radeon case, _DSM in the nouveau case) is used to turn
      off the discrete graphics, the BIOS generates ACPI hotplug events for
      that device and those events cause ACPIPHP to attempt to remove the
      device from the system (they are events for a device that was present
      previously and is not present any more, so that's what should be done
      according to the spec).  Then, the system stops functioning correctly.
      
      Since the hotplug events in question were simply silently ignored
      previously, the least intrusive way to address that problem is to
      make ACPIPHP ignore them again.  For this purpose, introduce a new
      ACPI device flag, no_hotplug, and modify ACPIPHP to ignore hotplug
      events for PCI devices whose ACPI companions have that flag set.
      Next, make the radeon and nouveau switcheroo detection code set the
      no_hotplug flag for the discrete graphics' ACPI companion.
      
      Fixes: bbd34fcd (ACPI / hotplug / PCI: Register all devices under the given bridge)
      References: https://bugzilla.kernel.org/show_bug.cgi?id=61891
      References: https://bugzilla.kernel.org/show_bug.cgi?id=64891Reported-and-tested-by: NMike Lothian <mike@fireburn.co.uk>
      Reported-and-tested-by: <madcatx@atlas.cz>
      Reported-and-tested-by: NJoaquín Aramendía <samsagax@gmail.com>
      Cc: Alex Deucher <alexdeucher@gmail.com>
      Cc: Dave Airlie <airlied@linux.ie>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: 3.12+ <stable@vger.kernel.org> # 3.12+
      f244d8b6
  14. 07 12月, 2013 1 次提交
    • L
      ACPI: Clean up inclusions of ACPI header files · 8b48463f
      Lv Zheng 提交于
      Replace direct inclusions of <acpi/acpi.h>, <acpi/acpi_bus.h> and
      <acpi/acpi_drivers.h>, which are incorrect, with <linux/acpi.h>
      inclusions and remove some inclusions of those files that aren't
      necessary.
      
      First of all, <acpi/acpi.h>, <acpi/acpi_bus.h> and <acpi/acpi_drivers.h>
      should not be included directly from any files that are built for
      CONFIG_ACPI unset, because that generally leads to build warnings about
      undefined symbols in !CONFIG_ACPI builds.  For CONFIG_ACPI set,
      <linux/acpi.h> includes those files and for CONFIG_ACPI unset it
      provides stub ACPI symbols to be used in that case.
      
      Second, there are ordering dependencies between those files that always
      have to be met.  Namely, it is required that <acpi/acpi_bus.h> be included
      prior to <acpi/acpi_drivers.h> so that the acpi_pci_root declarations the
      latter depends on are always there.  And <acpi/acpi.h> which provides
      basic ACPICA type declarations should always be included prior to any other
      ACPI headers in CONFIG_ACPI builds.  That also is taken care of including
      <linux/acpi.h> as appropriate.
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Acked-by: Bjorn Helgaas <bhelgaas@google.com> (drivers/pci stuff)
      Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> (Xen stuff)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8b48463f
  15. 15 11月, 2013 1 次提交
  16. 08 11月, 2013 1 次提交
  17. 24 9月, 2013 1 次提交
    • Z
      nouveau_acpi: convert acpi_get_handle() to acpi_has_method() · 187b5b5d
      Zhang Rui 提交于
      acpi_has_method() is a new ACPI API introduced to check
      the existence of an ACPI control method.
      
      It can be used to replace acpi_get_handle() in the case that
      1. the calling function doesn't need the ACPI handle of the control method.
      and
      2. the calling function doesn't care the reason why the method is unavailable.
      
      Convert acpi_get_handle() to acpi_has_method()
      in drivers/gpu/drm/nouveau/nouveau_acpi.c in this patch.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      CC: Ben Skeggs <bskeggs@redhat.com>
      CC: Dave Airlie <airlied@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      187b5b5d
  18. 29 8月, 2013 1 次提交
    • D
      nouveau: add runtime PM support (v0.9) · 5addcf0a
      Dave Airlie 提交于
      This hooks nouveau up to the runtime PM system to enable
      dynamic power management for secondary GPUs in switchable
      and optimus laptops.
      
      a) rewrite suspend/resume printks to hide them during dynamic s/r
      to avoid cluttering logs
      b) add runtime pm suspend to irq handler, crtc display, ioctl handler,
      connector status,
      c) handle hdmi audio dynamic power on/off using magic register.
      
      v0.5:
      make sure we hit D3 properly
      fix fbdev_set_suspend locking interaction, we only will poweroff if we have no
      active crtcs/fbcon anyways.
      add reference for active crtcs.
      sprinkle mark last busy for autosuspend timeout
      
      v0.6:
      allow more flexible debugging - to avoid log spam
      add option to enable/disable dynpm
      got to D3Cold
      
      v0.7:
      add hdmi audio support.
      
      v0.8:
      call autosuspend from idle, so pci config space access doesn't go straight
      back to sleep, this makes starting X faster.
      only signal usage if we actually handle the irq, otherwise usb keeps us awake.
      fix nv50 display active powerdown
      
      v0.9:
      use masking function to enable hdmi audio
      set busy when we fail to suspend
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      5addcf0a
  19. 29 11月, 2012 1 次提交
  20. 03 10月, 2012 5 次提交
  21. 18 8月, 2012 1 次提交
  22. 24 5月, 2012 1 次提交
    • A
      drm/nouveau: Check dsm on switcheroo unregister · 2f3787aa
      Andreas Heider 提交于
      Currently vga_switcheroo_unregister_handler is called unconditionally when
      nouveau is unloaded, even when nouveau never registered a handler. This
      interferes with other switcheroo handlers, as vga_switcheroo doesn't check who
      called unregister_handler, but simply unregisters the current handler. This
      patch adds a check so unregister is only called if a handler was registered by
      nouveau before.
      Signed-off-by: NAndreas Heider <andreas@meetr.de>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      2f3787aa
  23. 03 5月, 2012 1 次提交
  24. 13 1月, 2012 2 次提交
  25. 20 6月, 2011 1 次提交
  26. 09 5月, 2011 1 次提交
  27. 04 5月, 2011 2 次提交
  28. 05 1月, 2011 1 次提交
  29. 24 9月, 2010 1 次提交
  30. 26 7月, 2010 1 次提交