1. 08 12月, 2022 1 次提交
  2. 20 10月, 2022 1 次提交
    • A
      drm/amdgpu: fix sdma doorbell init ordering on APUs · 50b0e4d4
      Alex Deucher 提交于
      Commit 8795e182 ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()")
      uncovered a bug in amdgpu that required a reordering of the driver
      init sequence to avoid accessing a special register on the GPU
      before it was properly set up leading to an PCI AER error.  This
      reordering uncovered a different hw programming ordering dependency
      in some APUs where the SDMA doorbells need to be programmed before
      the GFX doorbells. To fix this, move the SDMA doorbell programming
      back into the soc15 common code, but use the actual doorbell range
      values directly rather than the values stored in the ring structure
      since those will not be initialized at this point.
      
      This is a partial revert, but with the doorbell assignment
      fixed so the proper doorbell index is set before it's used.
      
      Fixes: e3163bc8 ("drm/amdgpu: move nbio sdma_doorbell_range() into sdma code for vega")
      Acked-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: skhan@linuxfoundation.org
      Cc: stable@vger.kernel.org
      50b0e4d4
  3. 11 10月, 2022 2 次提交
  4. 29 9月, 2022 2 次提交
  5. 15 9月, 2022 2 次提交
    • A
      drm/amdgpu: move nbio sdma_doorbell_range() into sdma code for vega · e3163bc8
      Alex Deucher 提交于
      This mirrors what we do for other asics and this way we are
      sure the sdma doorbell range is properly initialized.
      
      There is a comment about the way doorbells on gfx9 work that
      requires that they are initialized for other IPs before GFX
      is initialized.  However, the statement says that it applies to
      multimedia as well, but the VCN code currently initializes
      doorbells after GFX and there are no known issues there.  In my
      testing at least I don't see any problems on SDMA.
      
      This is a prerequisite for fixing the Unsupported Request error
      reported through AER during driver load.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=216373
      
      The error was unnoticed before and got visible because of the commit
      referenced below. This doesn't fix anything in the commit below, rather
      fixes the issue in amdgpu exposed by the commit. The reference is only
      to associate this commit with below one so that both go together.
      
      Fixes: 8795e182 ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()")
      Acked-by: NChristian König <christian.koenig@amd.com>
      Reviewed-by: NLijo Lazar <lijo.lazar@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@vger.kernel.org
      e3163bc8
    • A
      drm/amdgpu: move nbio sdma_doorbell_range() into sdma code for vega · 59c43748
      Alex Deucher 提交于
      This mirrors what we do for other asics and this way we are
      sure the sdma doorbell range is properly initialized.
      
      There is a comment about the way doorbells on gfx9 work that
      requires that they are initialized for other IPs before GFX
      is initialized.  However, the statement says that it applies to
      multimedia as well, but the VCN code currently initializes
      doorbells after GFX and there are no known issues there.  In my
      testing at least I don't see any problems on SDMA.
      
      This is a prerequisite for fixing the Unsupported Request error
      reported through AER during driver load.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=216373
      
      The error was unnoticed before and got visible because of the commit
      referenced below. This doesn't fix anything in the commit below, rather
      fixes the issue in amdgpu exposed by the commit. The reference is only
      to associate this commit with below one so that both go together.
      
      Fixes: 8795e182 ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()")
      Acked-by: NChristian König <christian.koenig@amd.com>
      Reviewed-by: NLijo Lazar <lijo.lazar@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      59c43748
  6. 31 8月, 2022 1 次提交
  7. 04 5月, 2022 1 次提交
  8. 26 4月, 2022 1 次提交
  9. 09 4月, 2022 1 次提交
  10. 16 3月, 2022 1 次提交
  11. 03 3月, 2022 5 次提交
  12. 18 2月, 2022 2 次提交
  13. 15 2月, 2022 3 次提交
  14. 12 2月, 2022 1 次提交
  15. 19 1月, 2022 1 次提交
  16. 15 1月, 2022 1 次提交
    • Y
      drm/amdgpu: Modify sdma block to fit for the unified ras block data and ops · bdc4292b
      yipechai 提交于
      1.Modify sdma block to fit for the unified ras block data and ops.
      2.Change amdgpu_sdma_ras_funcs to amdgpu_sdma_ras, and the corresponding variable name remove _funcs suffix.
      3.Remove the const flag of sdma ras variable so that sdma ras block can be able to be inserted into amdgpu device ras block link list.
      4.Invoke amdgpu_ras_register_ras_block function to register sdma ras block into amdgpu device ras block link list.
      5.Remove the redundant code about sdma in amdgpu_ras.c after using the unified ras block.
      6.Fill unified ras block .name .block .ras_late_init and .ras_fini for all of sdma versions. If .ras_late_init and .ras_fini had been defined by the selected sdma version, the defined functions will take effect; if not defined, default fill them with amdgpu_sdma_ras_late_init and amdgpu_sdma_ras_fini.
      
      v2: squash in warning fix (Alex)
      Signed-off-by: Nyipechai <YiPeng.Chai@amd.com>
      Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
      Reviewed-by: NJohn Clements <john.clements@amd.com>
      Reviewed-by: NTao Zhou <tao.zhou1@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      bdc4292b
  17. 05 10月, 2021 3 次提交
  18. 01 7月, 2021 2 次提交
  19. 21 5月, 2021 1 次提交
    • L
      drm/amd/amdgpu/sdma_v4_0: Realign functions with their headers · 47a6c676
      Lee Jones 提交于
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:764: warning: expecting prototype for sdma_v4_0_page_ring_set_wptr(). Prototype was for sdma_v4_0_ring_set_wptr() instead
       drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:830: warning: expecting prototype for sdma_v4_0_ring_set_wptr(). Prototype was for sdma_v4_0_page_ring_set_wptr() instead
      
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Sumit Semwal <sumit.semwal@linaro.org>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: linux-media@vger.kernel.org
      Cc: linaro-mm-sig@lists.linaro.org
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      47a6c676
  20. 29 4月, 2021 2 次提交
  21. 24 4月, 2021 1 次提交
  22. 10 4月, 2021 1 次提交
  23. 24 3月, 2021 4 次提交