1. 17 2月, 2017 2 次提交
  2. 09 1月, 2017 1 次提交
  3. 13 12月, 2016 1 次提交
    • P
      drm/nouveau/bl: Assign different names to interfaces · db1a0ae2
      Pierre Moreau 提交于
      Currently, every backlight interface created by Nouveau uses the same name,
      nv_backlight. This leads to a sysfs warning as it tries to create an already
      existing folder. This patch adds a incremented number to the name, but keeps
      the initial name as nv_backlight, to avoid possibly breaking userspace; the
      second interface will be named nv_backlight1, and so on.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86539
      
      v2:
      * Switch to using ida for generating unique IDs, as suggested by Ilia Mirkin;
      * Allocate backlight name on the stack, as suggested by Ilia Mirkin;
      * Move `nouveau_get_backlight_name()` to avoid forward declaration, as
        suggested by Ilia Mirkin;
      * Fix reference to bug report formatting, as reported by Nick Tenney.
      
      v3:
      * Define a macro for the size of the backlight name, to avoid defining
        it multiple times;
      * Use snprintf in place of sprintf.
      
      v4:
      * Do not create similarly named interfaces when reaching the maximum
        amount of unique names, but fail instead, as pointed out by Lukas Wunner
      Signed-off-by: NPierre Moreau <pierre.morrow@free.fr>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      db1a0ae2
  4. 28 11月, 2016 1 次提交
  5. 07 11月, 2016 2 次提交
  6. 12 10月, 2016 1 次提交
    • M
      drm/nouveau/drm/nouveau: add a LED driver for the NVIDIA logo · 8d021d71
      Martin Peres 提交于
      We received a donation of a Titan which has this useless feature
      allowing users to control the brightness of the LED behind the
      logo of NVIDIA. In the true spirit of open source, let's expose
      that to the users of very expensive cards!
      
      This patch hooks up this LED/PWM to the LED subsystem which allows
      blinking it in sync with cpu/disk/network/whatever activity (heartbeat
      is quite nice!). Users may also implement some breathing effect or
      morse code support in the userspace if they feel like it.
      
      v2:
       - surround the use of the LED framework with ifdef CONFIG_LEDS_CLASS
      
      v3:
       - avoid using ifdefs everywhere, follow the recommendations of
         /doc/Documentation/CodingStyle. Suggested by Emil Velikov.
      
      v4 (Ben):
       - squashed series of fixes from ml
      Signed-off-by: NMartin Peres <martin.peres@free.fr>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      8d021d71
  7. 22 9月, 2016 1 次提交
  8. 12 8月, 2016 1 次提交
  9. 14 7月, 2016 3 次提交
  10. 24 6月, 2016 2 次提交
  11. 22 6月, 2016 1 次提交
    • D
      drm: Lobotomize set_busid nonsense for !pci drivers · a3257256
      Daniel Vetter 提交于
      We already have a fallback in place to fill out the unique from
      dev->unique, which is set to something reasonable in drm_dev_alloc.
      
      Which means we only need to have a special set_busid for pci devices,
      to be able to care the backwards compat code for drm 1.1 around, which
      libdrm still needs.
      
      While developing and testing this patch things blew up in really
      interesting ways, and the code is rather confusing in naming things
      between the kernel code, ioctl #defines and libdrm. For the next brave
      dragon slayer, document all this madness properly in the userspace
      interface section of gpu.tmpl.
      
      v2: Make drm_dev_set_unique static and update kerneldoc.
      
      v3: Entire rewrite, plus document what's going on for posterity in the
      gpu docbook uapi section.
      
      v4: Drop accidental amdgpu hunk (Emil).
      
      v5: Drop accidental omapdrm vblank counter change (Emil).
      
      v6: Rebase on top of the sphinx conversion.
      
      Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
      Cc: Emil Velikov <emil.l.velikov@gmail.com>
      Tested-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (virt_gpu)
      Reviewed-by: NEmil Velikov <emil.l.velikov@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      a3257256
  12. 01 6月, 2016 1 次提交
  13. 31 5月, 2016 1 次提交
    • L
      vga_switcheroo: Add helper for deferred probing · b00e5334
      Lukas Wunner 提交于
      So far we've got one condition when DRM drivers need to defer probing
      on a dual GPU system and it's coded separately into each of the relevant
      drivers. As suggested by Daniel Vetter, deduplicate that code in the
      drivers and move it to a new vga_switcheroo helper. This yields better
      encapsulation of concepts and lets us add further checks in a central
      place. (The existing check pertains to pre-retina MacBook Pros and an
      additional check is expected to be needed for retinas.)
      
      One might be tempted to check deferred probing conditions in
      vga_switcheroo_register_client(), but this is usually called fairly late
      during driver load. The GPU is fully brought up and ready for switching
      at that point. On boot the ->probe hook is potentially called dozens of
      times until it finally succeeds, and each time we'd repeat bringup and
      teardown of the GPU, lengthening boot time considerably and cluttering
      logfiles. A separate helper is therefore needed which can be called
      right at the beginning of the ->probe hook.
      
      Note that amdgpu currently does not call this helper as the AMD GPUs
      built into MacBook Pros are only supported by radeon so far.
      
      v2: This helper could eventually be used by audio clients as well,
          so rephrase kerneldoc to refer to "client" instead of "GPU"
          and move the single existing check in an if block specific
          to PCI_CLASS_DISPLAY_VGA devices. Move documentation on
          that check from kerneldoc to a comment. (Daniel Vetter)
      
      v3: Mandate in kerneldoc that registration of client shall only
          happen after calling this helper. (Daniel Vetter)
      
      v4: Rebase on 412c8f7d ("drm/radeon: Return -EPROBE_DEFER when
          amdkfd not loaded")
      
      v5: Some Optimus GPUs use PCI_CLASS_DISPLAY_3D, make sure those are
          matched as well. (Emil Velikov)
      
      v6: The if-condition referring to PCI_BASE_CLASS_DISPLAY may be
          considered a functional change. Move to a separate commit to
          keep this a pure refactoring change. (Emil Velikov, Jani Nikula)
      
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Ben Skeggs <bskeggs@redhat.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NLukas Wunner <lukas@wunner.de>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/575885fd440c2b13c3f19ddf44360cfbbff35f50.1464685538.git.lukas@wunner.de
      b00e5334
  14. 20 5月, 2016 1 次提交
  15. 30 3月, 2016 1 次提交
  16. 14 3月, 2016 3 次提交
  17. 09 2月, 2016 1 次提交
  18. 11 1月, 2016 7 次提交
  19. 15 12月, 2015 2 次提交
  20. 03 11月, 2015 2 次提交
  21. 16 10月, 2015 1 次提交
  22. 07 10月, 2015 1 次提交
  23. 28 8月, 2015 3 次提交