1. 25 8月, 2021 7 次提交
  2. 21 8月, 2021 2 次提交
    • M
      drm/amdgpu: Cancel delayed work when GFXOFF is disabled · 90a92662
      Michel Dänzer 提交于
      schedule_delayed_work does not push back the work if it was already
      scheduled before, so amdgpu_device_delay_enable_gfx_off ran ~100 ms
      after the first time GFXOFF was disabled and re-enabled, even if GFXOFF
      was disabled and re-enabled again during those 100 ms.
      
      This resulted in frame drops / stutter with the upcoming mutter 41
      release on Navi 14, due to constantly enabling GFXOFF in the HW and
      disabling it again (for getting the GPU clock counter).
      
      To fix this, call cancel_delayed_work_sync when the disable count
      transitions from 0 to 1, and only schedule the delayed work on the
      reverse transition, not if the disable count was already 0. This makes
      sure the delayed work doesn't run at unexpected times, and allows it to
      be lock-free.
      
      v2:
      * Use cancel_delayed_work_sync & mutex_trylock instead of
        mod_delayed_work.
      v3:
      * Make amdgpu_device_delay_enable_gfx_off lock-free (Christian König)
      v4:
      * Fix race condition between amdgpu_gfx_off_ctrl incrementing
        adev->gfx.gfx_off_req_count and amdgpu_device_delay_enable_gfx_off
        checking for it to be 0 (Evan Quan)
      
      Cc: stable@vger.kernel.org
      Reviewed-by: NEvan Quan <evan.quan@amd.com>
      Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> # v3
      Acked-by: Christian König <christian.koenig@amd.com> # v3
      Signed-off-by: NMichel Dänzer <mdaenzer@redhat.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      90a92662
    • C
      drm/amdgpu: use the preferred pin domain after the check · 9deb0b3d
      Christian König 提交于
      For some reason we run into an use case where a BO is already pinned
      into GTT, but should be pinned into VRAM|GTT again.
      
      Handle that case gracefully as well.
      Reviewed-by: NShashank Sharma <Shashank.sharma@amd.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      9deb0b3d
  3. 19 8月, 2021 6 次提交
  4. 17 8月, 2021 5 次提交
  5. 12 8月, 2021 2 次提交
  6. 10 8月, 2021 5 次提交
  7. 07 8月, 2021 1 次提交
  8. 06 8月, 2021 12 次提交