1. 11 10月, 2022 1 次提交
    • B
      drm/amdgpu: Fix SDMA engine resume issue under SRIOV · e5da6519
      Bokun Zhang 提交于
      - Under SRIOV, SDMA engine is shared between VFs. Therefore,
        we will not stop SDMA during hw_fini. This is not an issue
        with normal dirver loading and unloading.
      
      - However, when we put the SDMA engine to suspend state and resume
        it, the issue starts to show up. Something could attempt to use
        that SDMA engine to clear or move memory before the engine is
        initialized since the DRM entity is still there.
      
      - Therefore, we will call sdma_v5_2_enable(false) during hw_fini,
        and if we are under SRIOV, we will call sdma_v5_2_enable(true)
        afterwards to allow other VFs to use SDMA. This way, the DRM
        entity of SDMA engine is emptied and it will follow the flow
        of resume code path.
      Tested-by: NBokun Zhang <Bokun.Zhang@amd.com>
      Signed-off-by: NBokun Zhang <Bokun.Zhang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      e5da6519
  2. 07 10月, 2022 7 次提交
  3. 30 9月, 2022 2 次提交
  4. 29 9月, 2022 30 次提交