An error occurred fetching the project authors.
  1. 18 May, 2020 1 commit
    • Jiange Zhao's avatar
      drm/amdgpu: Add autodump debugfs node for gpu reset v8 · 728e7e0c
      Jiange Zhao authored
      When GPU got timeout, it would notify an interested part
      of an opportunity to dump info before actual GPU reset.
      
      A usermode app would open 'autodump' node under debugfs system
      and poll() for readable/writable. When a GPU reset is due,
      amdgpu would notify usermode app through wait_queue_head and give
      it 10 minutes to dump info.
      
      After usermode app has done its work, this 'autodump' node is closed.
      On node closure, amdgpu gets to know the dump is done through
      the completion that is triggered in release().
      
      There is no write or read callback because necessary info can be
      obtained through dmesg and umr. Messages back and forth between
      usermode app and amdgpu are unnecessary.
      
      v2: (1) changed 'registered' to 'app_listening'
          (2) add a mutex in open() to prevent race condition
      
      v3 (chk): grab the reset lock to avoid race in autodump_open,
                rename debugfs file to amdgpu_autodump,
                provide autodump_read as well,
                style and code cleanups
      
      v4: add 'bool app_listening' to differentiate situations, so that
          the node can be reopened; also, there is no need to wait for
          completion when no app is waiting for a dump.
      
      v5: change 'bool app_listening' to 'enum amdgpu_autodump_state'
          add 'app_state_mutex' for race conditions:
      	(1)Only 1 user can open this file node
      	(2)wait_dump() can only take effect after poll() executed.
      	(3)eliminated the race condition between release() and
      	   wait_dump()
      
      v6: removed 'enum amdgpu_autodump_state' and 'app_state_mutex'
          removed state checking in amdgpu_debugfs_wait_dump
          Improve on top of version 3 so that the node can be reopened.
      
      v7: move reinit_completion into open() so that only one user
          can open it.
      
      v8: remove complete_all() from amdgpu_debugfs_wait_dump().
      Signed-off-by: default avatarJiange Zhao <Jiange.Zhao@amd.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      728e7e0c
  2. 08 May, 2020 1 commit
  3. 06 May, 2020 1 commit
  4. 05 May, 2020 1 commit
  5. 30 Apr, 2020 1 commit
    • Evan Quan's avatar
      drm/amdgpu: put the audio codec into suspend state before gpu reset V3 · 3f12acc8
      Evan Quan authored
      At default, the autosuspend delay of audio controller is 3S. If the
      gpu reset is triggered within 3S(after audio controller idle),
      the audio controller may be unable into suspended state. Then
      the sudden gpu reset will cause some audio errors. The change
      here is targeted to resolve this.
      
      However if the audio controller is in use when the gpu reset
      triggered, this change may be still not enough to put the
      audio controller into suspend state. Under this case, the
      gpu reset will still proceed but there will be a warning
      message printed("failed to suspend display audio").
      
      V2: limit this for BACO and mode1 reset only
      V3: try 1st to use pm_runtime_autosuspend_expiration() to
          query how much time is left. Use default setting on
          failure
      Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      3f12acc8
  6. 28 Apr, 2020 2 commits
  7. 27 Apr, 2020 3 commits
  8. 22 Apr, 2020 10 commits
  9. 14 Apr, 2020 1 commit
  10. 13 Apr, 2020 3 commits
  11. 09 Apr, 2020 9 commits
  12. 08 Apr, 2020 1 commit
  13. 01 Apr, 2020 6 commits