Skip to content
Snippets Groups Projects
  1. Jan 17, 2019
  2. Jul 18, 2018
  3. Jul 05, 2018
  4. Jun 28, 2018
  5. Jun 01, 2018
  6. May 15, 2018
  7. Mar 23, 2018
  8. Feb 19, 2018
  9. Feb 08, 2018
  10. Jan 10, 2018
  11. Mar 30, 2017
  12. Nov 29, 2016
  13. Nov 23, 2016
  14. Sep 22, 2016
  15. Aug 09, 2016
  16. Jul 29, 2016
  17. Jul 07, 2016
  18. Apr 27, 2016
  19. Mar 09, 2016
  20. Feb 09, 2016
  21. Dec 21, 2015
  22. Oct 20, 2015
    • Lukas Wunner's avatar
      vga_switcheroo: Constify vga_switcheroo_handler · 5d170139
      Lukas Wunner authored
      
      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: default avatarLukas Wunner <lukas@wunner.de>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com&gt;.>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      5d170139
  23. Oct 02, 2015
  24. Jun 04, 2015
  25. Sep 15, 2014
  26. Apr 22, 2014
  27. Apr 17, 2014
  28. Feb 27, 2014
  29. Dec 31, 2013
    • Rafael J. Wysocki's avatar
      ACPIPHP / radeon / nouveau: Fix VGA switcheroo problem related to hotplug · f244d8b6
      Rafael J. Wysocki authored
      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=64891
      
      
      Reported-and-tested-by: default avatarMike Lothian <mike@fireburn.co.uk>
      Reported-and-tested-by: default avatar <madcatx@atlas.cz>
      Reported-and-tested-by: default avatarJoaquí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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: 3.12+ <stable@vger.kernel.org> # 3.12+
      f244d8b6
  30. Nov 14, 2013
    • Rafael J. Wysocki's avatar
      ACPI: Eliminate the DEVICE_ACPI_HANDLE() macro · 3a83f992
      Rafael J. Wysocki authored
      
      Since DEVICE_ACPI_HANDLE() is now literally identical to
      ACPI_HANDLE(), replace it with the latter everywhere and drop its
      definition from include/acpi.h.
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3a83f992
    • Rafael J. Wysocki's avatar
      ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node · 7b199811
      Rafael J. Wysocki authored
      
      Modify struct acpi_dev_node to contain a pointer to struct acpi_device
      associated with the given device object (that is, its ACPI companion
      device) instead of an ACPI handle corresponding to it.  Introduce two
      new macros for manipulating that pointer in a CONFIG_ACPI-safe way,
      ACPI_COMPANION() and ACPI_COMPANION_SET(), and rework the
      ACPI_HANDLE() macro to take the above changes into account.
      Drop the ACPI_HANDLE_SET() macro entirely and rework its users to
      use ACPI_COMPANION_SET() instead.  For some of them who used to
      pass the result of acpi_get_child() directly to ACPI_HANDLE_SET()
      introduce a helper routine acpi_preset_companion() doing an
      equivalent thing.
      
      The main motivation for doing this is that there are things
      represented by struct acpi_device objects that don't have valid
      ACPI handles (so called fixed ACPI hardware features, such as
      power and sleep buttons) and we would like to create platform
      device objects for them and "glue" them to their ACPI companions
      in the usual way (which currently is impossible due to the
      lack of valid ACPI handles).  However, there are more reasons
      why it may be useful.
      
      First, struct acpi_device pointers allow of much better type checking
      than void pointers which are ACPI handles, so it should be more
      difficult to write buggy code using modified struct acpi_dev_node
      and the new macros.  Second, the change should help to reduce (over
      time) the number of places in which the result of ACPI_HANDLE() is
      passed to acpi_bus_get_device() in order to obtain a pointer to the
      struct acpi_device associated with the given "physical" device,
      because now that pointer is returned by ACPI_COMPANION() directly.
      Finally, the change should make it easier to write generic code that
      will build both for CONFIG_ACPI set and unset without adding explicit
      compiler directives to it.
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com> # on Haswell
      Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: Aaron Lu <aaron.lu@intel.com> # for ATA and SDIO part
      7b199811
  31. Nov 01, 2013
Loading