1. 27 5月, 2022 1 次提交
  2. 19 5月, 2022 1 次提交
  3. 06 5月, 2022 1 次提交
  4. 04 5月, 2022 2 次提交
  5. 28 4月, 2022 1 次提交
    • A
      drm/amdgpu: don't runtime suspend if there are displays attached (v3) · f95af4a9
      Alex Deucher 提交于
      We normally runtime suspend when there are displays attached if they
      are in the DPMS off state, however, if something wakes the GPU
      we send a hotplug event on resume (in case any displays were connected
      while the GPU was in suspend) which can cause userspace to light
      up the displays again soon after they were turned off.
      
      Prior to
      commit 087451f3 ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's."),
      the driver took a runtime pm reference when the fbdev emulation was
      enabled because we didn't implement proper shadowing support for
      vram access when the device was off so the device never runtime
      suspended when there was a console bound.  Once that commit landed,
      we now utilize the core fb helper implementation which properly
      handles the emulation, so runtime pm now suspends in cases where it did
      not before.  Ultimately, we need to sort out why runtime suspend in not
      working in this case for some users, but this should restore similar
      behavior to before.
      
      v2: move check into runtime_suspend
      v3: wake ups -> wakeups in comment, retain pm_runtime behavior in
          runtime_idle callback
      
      Fixes: 087451f3 ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")
      Link: https://lore.kernel.org/r/20220403132322.51c90903@darkstar.example.org/Tested-by: NMichele Ballabio <ballabio.m@gmail.com>
      Reviewed-by: NEvan Quan <evan.quan@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      f95af4a9
  6. 22 4月, 2022 1 次提交
    • A
      drm/amdgpu: don't runtime suspend if there are displays attached (v3) · 4020c228
      Alex Deucher 提交于
      We normally runtime suspend when there are displays attached if they
      are in the DPMS off state, however, if something wakes the GPU
      we send a hotplug event on resume (in case any displays were connected
      while the GPU was in suspend) which can cause userspace to light
      up the displays again soon after they were turned off.
      
      Prior to
      commit 087451f3 ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's."),
      the driver took a runtime pm reference when the fbdev emulation was
      enabled because we didn't implement proper shadowing support for
      vram access when the device was off so the device never runtime
      suspended when there was a console bound.  Once that commit landed,
      we now utilize the core fb helper implementation which properly
      handles the emulation, so runtime pm now suspends in cases where it did
      not before.  Ultimately, we need to sort out why runtime suspend in not
      working in this case for some users, but this should restore similar
      behavior to before.
      
      v2: move check into runtime_suspend
      v3: wake ups -> wakeups in comment, retain pm_runtime behavior in
          runtime_idle callback
      
      Fixes: 087451f3 ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")
      Link: https://lore.kernel.org/r/20220403132322.51c90903@darkstar.example.org/Tested-by: NMichele Ballabio <ballabio.m@gmail.com>
      Reviewed-by: NEvan Quan <evan.quan@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      4020c228
  7. 14 4月, 2022 1 次提交
    • K
      drm/amdgpu: Ensure HDA function is suspended before ASIC reset · 887f75cf
      Kai-Heng Feng 提交于
      DP/HDMI audio on AMD PRO VII stops working after S3:
      [  149.450391] amdgpu 0000:63:00.0: amdgpu: MODE1 reset
      [  149.450395] amdgpu 0000:63:00.0: amdgpu: GPU mode1 reset
      [  149.450494] amdgpu 0000:63:00.0: amdgpu: GPU psp mode1 reset
      [  149.983693] snd_hda_intel 0000:63:00.1: refused to change power state from D0 to D3hot
      [  150.003439] amdgpu 0000:63:00.0: refused to change power state from D0 to D3hot
      ...
      [  155.432975] snd_hda_intel 0000:63:00.1: CORB reset timeout#2, CORBRP = 65535
      
      The offending commit is daf8de08 ("drm/amdgpu: always reset the asic in
      suspend (v2)"). Commit 34452ac3 ("drm/amdgpu: don't use BACO for
      reset in S3 ") doesn't help, so the issue is something different.
      
      Assuming that to make HDA resume to D0 fully realized, it needs to be
      successfully put to D3 first. And this guesswork proves working, by
      moving amdgpu_asic_reset() to noirq callback, so it's called after HDA
      function is in D3.
      
      Fixes: daf8de08 ("drm/amdgpu: always reset the asic in suspend (v2)")
      Signed-off-by: NKai-Heng Feng <kai.heng.feng@canonical.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      887f75cf
  8. 09 4月, 2022 1 次提交
  9. 08 4月, 2022 1 次提交
    • K
      drm/amdgpu: Ensure HDA function is suspended before ASIC reset · 9e051720
      Kai-Heng Feng 提交于
      DP/HDMI audio on AMD PRO VII stops working after S3:
      [  149.450391] amdgpu 0000:63:00.0: amdgpu: MODE1 reset
      [  149.450395] amdgpu 0000:63:00.0: amdgpu: GPU mode1 reset
      [  149.450494] amdgpu 0000:63:00.0: amdgpu: GPU psp mode1 reset
      [  149.983693] snd_hda_intel 0000:63:00.1: refused to change power state from D0 to D3hot
      [  150.003439] amdgpu 0000:63:00.0: refused to change power state from D0 to D3hot
      ...
      [  155.432975] snd_hda_intel 0000:63:00.1: CORB reset timeout#2, CORBRP = 65535
      
      The offending commit is daf8de08 ("drm/amdgpu: always reset the asic in
      suspend (v2)"). Commit 34452ac3 ("drm/amdgpu: don't use BACO for
      reset in S3 ") doesn't help, so the issue is something different.
      
      Assuming that to make HDA resume to D0 fully realized, it needs to be
      successfully put to D3 first. And this guesswork proves working, by
      moving amdgpu_asic_reset() to noirq callback, so it's called after HDA
      function is in D3.
      
      Fixes: daf8de08 ("drm/amdgpu: always reset the asic in suspend (v2)")
      Signed-off-by: NKai-Heng Feng <kai.heng.feng@canonical.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      9e051720
  10. 26 3月, 2022 1 次提交
  11. 05 3月, 2022 1 次提交
  12. 03 3月, 2022 1 次提交
  13. 25 2月, 2022 2 次提交
  14. 24 2月, 2022 3 次提交
  15. 23 2月, 2022 1 次提交
  16. 18 2月, 2022 2 次提交
  17. 17 2月, 2022 1 次提交
  18. 08 2月, 2022 1 次提交
  19. 03 2月, 2022 4 次提交
  20. 28 1月, 2022 1 次提交
  21. 26 1月, 2022 4 次提交
  22. 15 1月, 2022 5 次提交
  23. 08 1月, 2022 1 次提交
  24. 31 12月, 2021 1 次提交
  25. 30 12月, 2021 1 次提交