Skip to content

Add ras sw_init

Hawking Zhang amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11drm/amdgpu: Move jpeg ras block init to ras sw_initdrivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c +1 more+36 -151 reply
2/11drm/amdgpu: Move vcn ras block init to ras sw_initdrivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c +1 more+36 -150 replies
3/11drm/amdgpu: Init gfx ras block when ras is supporteddrivers/gpu/drm/amd/amdgpu/gfx_v11_0.c drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c+12 -61 reply
4/11drm/amdgpu: Init sdma ras block when ras is supporteddrivers/gpu/drm/amd/amdgpu/sdma_v4_0.c drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c+20 -60 replies
5/11drm/amdgpu: Move umc ras block init to gmc ras sw_initdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +4 more+58 -640 replies
6/11drm/amdgpu: Move mmhub ras block init to ras sw_initdrivers/gpu/drm/amd/amdgpu/Makefile drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c +2 more+58 -100 replies
7/11drm/amdgpu: Move hdp ras block init to ras sw_initdrivers/gpu/drm/amd/amdgpu/Makefile drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c +3 more+59 -90 replies
8/11drm/amdgpu: Rework mca ras sw_initdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h +3 more+111 -541 reply
9/11drm/amdgpu: Rework xgmi_wafl_pcs ras sw_initdrivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1 more+37 -81 reply
10/11drm/amdgpu: Rework pcie_bif ras sw_initdrivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c+36 -41 reply
11/11drm/amdgpu: drop ras check at asic level for new blocksdrivers/gpu/drm/amd/amdgpu/amdgpu_ras.c+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] Add ras sw_init

We are moving from soc ras to ip ras to address issues as follows
- RAS sw block init is mixed in early_init and sw_init
- RAS cap check is mixed with both soc check and ip check.

RAS cap check is now only avaialble in amdgpu_ras_init, based on the cap query from bios. RAS sw block init is all moved to ras sw_init and follows ip based ras cap check from amdgpu_ras_init, instead of the check in soc level.

Hawking Zhang (11):
drm/amdgpu: Move jpeg ras block init to ras sw_init drm/amdgpu: Move vcn ras block init to ras sw_init drm/amdgpu: Init gfx ras block when ras is supported drm/amdgpu: Init sdma ras block when ras is supported drm/amdgpu: Move umc ras block init to gmc ras sw_init drm/amdgpu: Move mmhub ras block init to ras sw_init drm/amdgpu: Move hdp ras block init to ras sw_init drm/amdgpu: Rework mca ras sw_init
drm/amdgpu: Rework xgmi_wafl_pcs ras sw_init drm/amdgpu: Rework pcie_bif ras sw_init drm/amdgpu: drop ras check at asic level for new blocks

 drivers/gpu/drm/amd/amdgpu/Makefile       |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c   | 64 ++++++++++++++++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h   |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c   | 48 +++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.h   |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c  | 29 +++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h  |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c   | 72 +++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h   |  9 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c | 46 +++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h |  2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c  | 23 ++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h  |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c   | 19 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c   | 30 ++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h   |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c   | 29 +++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h   |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c  | 28 +++++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h  |  1 +
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c    |  9 ++-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c     |  9 ++-
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c    | 26 ++------
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c    | 21 ++-----
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c     | 59 +++++++------------
 drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c     |  5 --
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c    | 10 +++-
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c    | 10 +++-
 drivers/gpu/drm/amd/amdgpu/mca_v3_0.c     | 44 +-------------
 drivers/gpu/drm/amd/amdgpu/mca_v3_0.h     |  4 +-
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c    |  9 ++-
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c  |  8 +++
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c    |  9 ++-
 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c     | 10 +++-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c     | 10 +++-
 35 files changed, 462 insertions(+), 193 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c
Signature · 1 line
2.17.1