1. 28 9月, 2022 1 次提交
  2. 22 6月, 2022 1 次提交
  3. 19 5月, 2022 2 次提交
  4. 03 2月, 2022 2 次提交
  5. 01 2月, 2022 2 次提交
  6. 25 8月, 2021 1 次提交
  7. 24 8月, 2021 1 次提交
  8. 06 8月, 2021 2 次提交
    • R
      drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled · 8d70136e
      Randy Dunlap 提交于
      'pm_suspend_target_state' is only available when CONFIG_PM_SLEEP
      is set/enabled. OTOH, when both SUSPEND and HIBERNATION are not set,
      PM_SLEEP is not set, so this variable cannot be used.
      
      ../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function ‘amdgpu_acpi_is_s0ix_active’:
      ../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: ‘pm_suspend_target_state’ undeclared (first use in this function); did you mean ‘__KSYM_pm_suspend_target_state’?
          return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 __KSYM_pm_suspend_target_state
      
      Also use shorter IS_ENABLED(CONFIG_foo) notation for checking the
      2 config symbols.
      
      Fixes: 91e27371 ("drm/amdgpu: Check pmops for desired suspend state")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-next@vger.kernel.org
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      8d70136e
    • R
      drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled · 5706cb3c
      Randy Dunlap 提交于
      'pm_suspend_target_state' is only available when CONFIG_PM_SLEEP
      is set/enabled. OTOH, when both SUSPEND and HIBERNATION are not set,
      PM_SLEEP is not set, so this variable cannot be used.
      
      ../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function ‘amdgpu_acpi_is_s0ix_active’:
      ../drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:1046:11: error: ‘pm_suspend_target_state’ undeclared (first use in this function); did you mean ‘__KSYM_pm_suspend_target_state’?
          return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 __KSYM_pm_suspend_target_state
      
      Also use shorter IS_ENABLED(CONFIG_foo) notation for checking the
      2 config symbols.
      
      Fixes: 91e27371 ("drm/amdgpu: Check pmops for desired suspend state")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Christian König <christian.koenig@amd.com>
      Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-next@vger.kernel.org
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      5706cb3c
  9. 29 7月, 2021 1 次提交
  10. 28 7月, 2021 3 次提交
  11. 02 6月, 2021 2 次提交
  12. 28 5月, 2021 2 次提交
  13. 22 5月, 2021 2 次提交
  14. 11 5月, 2021 1 次提交
  15. 24 3月, 2021 1 次提交
  16. 11 3月, 2021 1 次提交
  17. 04 3月, 2021 1 次提交
  18. 03 3月, 2021 1 次提交
  19. 16 12月, 2020 1 次提交
  20. 14 11月, 2020 1 次提交
  21. 10 10月, 2020 2 次提交
    • Y
      drm/amdgpu: Fix invalid number of character '{' in amdgpu_acpi_init · 9c27bc97
      Ye Bin 提交于
      Fix follow warning:
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: ''.
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: CONFIG_ACPI...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: 'CONFIG_ACPI'.
      ......
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: CONFIG_X86...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: 'CONFIG_X86'.
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: _X86_...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: '_X86_'.
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: __linux__...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: '__linux__'.
      
      Fixes: 97d798b2 ("drm/amdgpu: simplify ATIF backlight handling")
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NYe Bin <yebin10@huawei.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      9c27bc97
    • Y
      drm/amdgpu: Fix invalid number of character '{' in amdgpu_acpi_init · 84900719
      Ye Bin 提交于
      Fix follow warning:
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: ''.
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: CONFIG_ACPI...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: 'CONFIG_ACPI'.
      ......
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: CONFIG_X86...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: 'CONFIG_X86'.
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: _X86_...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: '_X86_'.
      Checking drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: __linux__...
      [drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:770]: (error) Invalid number
      of character '{' when these macros are defined: '__linux__'.
      
      Fixes: 97d798b2 ("drm/amdgpu: simplify ATIF backlight handling")
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NYe Bin <yebin10@huawei.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      84900719
  22. 25 8月, 2020 1 次提交
  23. 29 5月, 2020 1 次提交
  24. 06 5月, 2020 1 次提交
  25. 11 6月, 2019 1 次提交
  26. 06 5月, 2019 1 次提交
  27. 06 12月, 2018 1 次提交
  28. 27 11月, 2018 2 次提交
  29. 11 10月, 2018 1 次提交
    • L
      drm/amdgpu: Suppress keypresses from ACPI_VIDEO events · 582f58de
      Lyude Paul 提交于
      Currently we return NOTIFY_DONE for any event which we don't think is
      ours. However, many laptops will send more then just an ATIF event and
      will also send an ACPI_VIDEO_NOTIFY_PROBE event as well. Since we don't
      check for this, we return NOTIFY_DONE which causes a keypress for the
      ACPI event to be propogated to userspace. This is the equivalent of
      someone pressing the display key on a laptop every time there's a
      hotplug event.
      
      So, check for ACPI_VIDEO_NOTIFY_PROBE events and suppress keypresses
      from them.
      Signed-off-by: NLyude Paul <lyude@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      582f58de