Improve RAS ACA code to avoid binding unsupported RAS blocks,
thus avoiding invalid ACA Bank to ACA Bank cache,
and also reduce system memory consumption.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu
Add ACA support for jpeg v4.0.3.
Signed-off-by: Yang Wang
Reviewed-by: Hawking Zhang
---
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 86
1 file changed, 86 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
v1:
Add ACA support for vcn v4.0.3.
v2:
- split VCN ACA(v1) to 2 parts: vcn and jpeg.
- move mmSMNAID_AID0_MCA_SMU to amdgpu_aca.h file.
v3:
- split JPEG ACA to another patch.
Signed-off-by: Yang Wang
Reviewed-by: Hawking Zhang
---
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 85
move common ACA ipid defines into amdgpu_aca.h file.
Signed-off-by: Yang Wang
Reviewed-by: Hawking Zhang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 5 +
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 4
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 1 -
3 files changed, 5 insertions(+), 5
fix ACA bank count boundary check error.
Fixes: f5e4cc8461c4 ("drm/amdgpu: implement RAS ACA driver framework")
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgp
- skip to print CE ACA log.
- optimize ACA log print for MCA.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 21 -
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c
b/drivers/gpu/drm/amd/amdgpu
Add list empty check to avoid null pointer issues in some corner cases.
- list_for_each_entry_safe()
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c
b/drivers/gpu/drm
Skip rlc firmware validation to ignore firmware header size mismatch issues.
Refs: 49e133c973ce ("drm/amdgpu: Fix the null pointer when load rlc firmware")
Fixes: e1c6c2c1099f ("drm/amdgpu: refine gfx10 firmware loading")
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/am
- amdgpu_ras_error_statistic_ue_count()
- amdgpu_ras_error_statistic_ce_count()
- amdgpu_ras_error_statistic_de_count()
The parameter 'err_addr' is no longer used since following patch.
Fixes: efc4009da0dc ("drm/amdgpu: Remove unused code")
Signed-off-by: Yang Wang
---
- amdgpu_ras_error_statistic_ue_count()
- amdgpu_ras_error_statistic_ce_count()
- amdgpu_ras_error_statistic_de_count()
The parameter 'err_addr' is no longer used since following patch.
Fixes: efc4009da0dc ("drm/amdgpu: Remove unused code")
Signed-off-by: Yang Wang
---
add amdgpu ras POSION_CREATION event id support.
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 17 ++---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm
RAS_EVENT_TYPE_FATAL.
v4:
rename amdgpu_ras_get_recovery_event() to
amdgpu_ras_get_fatal_error_event().
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 101
add amdgpu ras 'event_state' sysfs device attribute support
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 56 +++--
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 7 +++-
2 files changed, 58 insertions(+), 5 deletion
add amdgpu ras POSION_CONSUMPTION event id support.
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 16 +---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 15
remove redundant semicolons in RAS_EVENT_LOG to avoid
code format check warning.
Fixes: 951c09c88fca ("drm/amdgpu: fix compiler 'side-effect' check issue for
RAS_EVENT_LOG()")
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 2 +-
1 file change
add amdgpu ras 'event_state' sysfs device attribute support
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 56 +++--
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 7 +++-
2 files changed, 58 insertions(+), 5 deletions(-)
diff --git a/drivers/g
add amdgpu ras POSION_CONSUMPTION event id support.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 16 +---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 15 ---
3 files changed
v1:
- use unified event id to manage ras events
- add a new function amdgpu_ras_query_error_status_with_event() to accept
event type as parameter.
v2:
add a warn log to show the location of function failure
when calling amdgpu_ras_mark_event(). (Tao Zhou)
Signed-off-by: Yang Wang
---
drivers
add amdgpu ras POSION_CREATION event id support.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 17 ++---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
- use unified event id to manage ras events
- add a new function amdgpu_ras_query_error_status_with_event() to accept
event type as parameter.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 4 +-
drivers/gpu/drm/amd
add amdgpu ras POSION_CREATION event id support.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 17 ++---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
add amdgpu ras 'event_state' sysfs device attribute support
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 56 +++--
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 7 +++-
2 files changed, 58 insertions(+), 5 deletions(-)
diff --git a/drivers/g
add amdgpu ras POSION_CONSUMPTION event id support.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 16 +---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 1 +
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 15 ---
3 files changed
602.670189] ? __schedule+0x37d/0xb30
[ 602.670191] process_one_work+0x176/0x350
[ 602.670194] worker_thread+0x2f7/0x420
[ 602.670197] ?
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 11 ++-
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 2 +-
2 files changed, 7 insert
602.669929] amdgpu_ras_query_error_status+0xf3/0x620 [amdgpu]
[ 602.670014] ? srso_alias_return_thunk+0x5/0xfbef5
[ 602.670017] amdgpu_ras_log_on_err_counter+0xe1/0x170 [amdgpu]
[ 602.670103] amdgpu_ras_do_recovery+0xd2/0x2c0 [amdgpu]
[ 602.670187] ? srso_alias_return_thunk+0x5/0
Signed-off-by:
adjust the function position to better match aca/mca fini code in ras_fini().
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 28 ++---
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
b/drivers
refine gfx12 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 22 ++
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
index 6419f98e32b6
refine gfx10 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 25 -
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index 3b0d8d3af58a
refine gfx11 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 26 --
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 0a9cbb550194
refine gfx9 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 45 -
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 11 +++---
2 files changed, 26 insertions(+), 30 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
b
refine gfx8 firmware loadin
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 69 +--
1 file changed, 33 insertions(+), 36 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 2f0e72caee1a
refine gfx7 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 27 +--
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index 8f19b6ae8d5b
refine gfx6 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 19 +--
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
index d0992ce9fb47
refine vpe firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 49881073ff58..bad232859972 100644
refine gmc firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 14 --
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 7 ++-
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 6 ++
3 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/drivers/gpu
refine pmfw/smu firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 8 +++-
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 6 +-
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 6 +-
drivers/gpu/drm/amd/pm/swsmu/smu13
refine vcn firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 5e2b7c340724..8d65b096db90
refine sdma firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | 8
drivers/gpu/drm/amd/amdgpu/cik_sdma.c| 11 ++-
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 11 ++-
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 11 ++-
4
refine imu firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 10 --
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | 10 --
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
b/drivers/gpu/drm/amd
refine psp firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 26 +++--
1 file changed, 7 insertions(+), 19 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 6d1911773043
v1:
refine mes firmware loading
v2:
use dev_info instead of DRM_INFO
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
refine isp firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
index 2a3f4668cb9b..215bae809153 100644
Adding formatting string feature to improve function flexibility.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 30 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 3 ++-
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu
Adding variable parameter support to function amdgpu_firmware_request()
to improve function flexibility.
Yang Wang (18):
drm/amdgpu: enhance amdgpu_ucode_request() function flexibility
drm/amdgpu: refine gpu_info firmware loading
drm/amdgpu: refine isp firmware loading
drm/amdgpu: refine
refine gpu_info firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 6711836054f9
refine gfx12 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 22 ++
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
index 6419f98e32b6
refine gfx9 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 45 -
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 11 +++---
2 files changed, 26 insertions(+), 30 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
b
refine gfx11 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 26 --
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 72676bfbac8c
refine gfx10 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 25 -
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index 632061b25867
refine gfx8 firmware loadin
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 69 +--
1 file changed, 33 insertions(+), 36 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 2f0e72caee1a
refine gfx7 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 27 +--
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index 8f19b6ae8d5b
refine gmc firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 14 --
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 7 ++-
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 6 ++
3 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/drivers/gpu
refine gfx6 firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 19 +--
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
index d0992ce9fb47
refine sdma firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | 8
drivers/gpu/drm/amd/amdgpu/cik_sdma.c| 11 ++-
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 11 ++-
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 11 ++-
4
refine vpe firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
index 49881073ff58..bad232859972 100644
refine imu firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 10 --
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | 10 --
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
b/drivers/gpu/drm/amd
refine vcn firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 5e2b7c340724..8d65b096db90
refine gpu_info firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 6711836054f9
refine pmfw/smu firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 8 +++-
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 6 +-
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 6 +-
drivers/gpu/drm/amd/pm/swsmu/smu13
refine isp firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
index 2a3f4668cb9b..215bae809153 100644
refine mes firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
index 62edf6328566..9194a53b7c14 100644
Adding formatting string feature to improve function flexibility.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 30 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 3 ++-
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu
refine psp firmware loading
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 26 +++--
1 file changed, 7 insertions(+), 19 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 6d1911773043
fix typo "info.ue_count" in amdgpu_ras_aca_sysfs_read() function.
Fixes: edd67b5417f5 ("drm/amdgpu: add aca deferred error type support")
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a
fix ACA no query result after gpu reset.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 7 ---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 1 -
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 9 -
3 files changed, 4 insertions(+), 13 deletions(-)
diff --git a
modify the lock type to 'spinlock' to avoid schedule issue
in interrupt context.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 11 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 2 +-
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/drive
modify the lock type to 'spinlock' to avoid schedule issue
in interrupt context.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 19 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 3 ++-
2 files changed, 11 insertions(+), 11 deletions(-)
di
Use debug_mask=0x10 (BIT.4) param to help enable RAS ACA driver.
(RAS ACA is disabled by default.)
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 3 ++-
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++
3 files changed, 9
create a new helper function to avoid compiler 'side-effect'
check about RAS_EVENT_LOG() macro.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 18 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 13 ++---
2 files changed, 24 insert
Fix null pointer issue when unload driver in SRIOV mode.
Adjust the function position to ensure that the amdgpu_mca/aca_xxx_init()
related functions can be initialized properly.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 14 --
1 file changed, 8
This patch is used to solve the problem of incorrect parsing of error counts.
When the UE trigger gpu is reset, the driver will attempt to parse all possible
ras blocks.
For ras blocks that are not supported by the current ASIC, the driver should
ignore this error.
Signed-off-by: Yang Wang
skip to create 'xxx_err_count' node when ACA is enabled.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 1e
because the ue valid mca count will only be cleared after gpu reset,
so only dump mca log on the first time to get mca bank after receive RAS
interrupt.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 28 +
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h
v1:
because SMU CE valid mca bank will be cleared after reading,
this patch adds mca cache at the driver level to ensure that the mca bank is
not lost.
v2:
refine amdgpu_mca_init/fini/reset() function name.
v3:
add mca_cache.lock support
only add CE bank to mca bank cache.
Signed-off-by: Yang
- Refine mca driver code.
- Centralize mca bank dispatch code logic.
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 97 ++---
1 file changed, 55 insertions(+), 42 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
- remove unused callback functions.
- make part of mca functions static and refine the function order.
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 199 --
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 16 --
.../drm/amd
- Refine mca driver code.
- Centralize mca bank dispatch code logic.
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 96 ++---
1 file changed, 53 insertions(+), 43 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
v1:
because SMU CE valid mca bank will be cleared after reading,
this patch adds mca cache at the driver level to ensure that the mca bank is
not lost.
v2:
refine amdgpu_mca_init/fini/reset() function name.
v3:
add mca_cache.lock support
only add CE bank to mca bank cache.
Signed-off-by: Yang
- remove unused callback functions.
- make part of mca functions static and refine the function order.
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 199 --
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 16 --
.../drm/amd
add ACA error query support for umc_v12_0.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 +++---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 4
drivers/gpu/drm/amd/amdgpu/umc_v12_0.c | 18 ++
3 files changed, 21 insertions(+), 7 deletions
add new aca smu callback parse_error_code{} to avoid specific asic check
in amdgpu_aca.c file
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 23 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 1 +
.../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
centralize all pp_dpm_xxx attr nodes into
pp_dpm_clk_default_attr_update() function.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 207 -
1 file changed, 115 insertions(+), 92 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b
refine function signature of amdgpu_aca_get_error_data();
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 8 +++-
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 6 +-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c
add a new enumeration type to identify device attribute node,
this method is relatively more efficient compared with 'strcmp' in
update_attr() function.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 4 +--
drivers/gpu/drm/amd/pm/inc/amdgpu
add ras event id support for ACA.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 29 ++---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 11 +-
3 files changed, 23 insertions(+), 19 deletions
skip call ras_late_init if ras is not enabled.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 7d4a1bc30277..4ea35648fdfe 100644
} errors statistic since from gpu load
Signed-off-by: Yang Wang
Reviewed-by: Hawking Zhang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 32 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | 3 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 203 +++
drivers/gpu/drm/amd/amdgpu
the dce dpm is not available on gfx 11.0.3 sriov device.
Signed-off-by: Yang Wang
Reviewed-by: Kenneth Feng
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 47 +-
1 file changed, 34 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers
v1:
enabel pp_od_clk_voltage node for gfx 9.4.3 SRIOV and BM.
v2:
add onevf check for gfx 9.4.3
v3:
refine code check order to make function clearly.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 32 +-
1 file changed, 27 insertions(+), 5
v1:
enabel pp_od_clk_voltage node for gfx 9.4.3 SRIOV and BM.
v2:
add onevf check for gfx 9.4.3
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 35 +-
1 file changed, 30 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
enabel pp_od_clk_voltage node for gfx 9.4.3 SRIOV and BM.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 29 -
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
Add new types to distinguish between ACA error type and smu mca type.
e.g.:
the ACA_ERROR_TYPE_DEFERRED is not matched any smu mca valid bank
channel, so add new type 'aca_smu_type' to distinguish aca error type
and smu mca type.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/
fix bank error type issue.
Fixes: ecee078c8d169 ("drm/amdgpu: implement RAS ACA driver framework")
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
di
send smu rma reason event to smu in ras eeprom driver.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
index
implement smu send rma reason function for smu v13.0.6
Signed-off-by: Yang Wang
Reviewed-by: Tao Zhou
---
drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 15 ++
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 1 +
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 10
use helper macro HW_ERR to instead of Hardwareare error string.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 12 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu
- move aca init/fini function into ras init/fini to adapt gpu reset
sequence.
- add new function amdgpu_aca_reset()
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c| 7 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.h| 1 +
drivers/gpu/drm/amd/amdgpu
add aca sysfs remove support.
Fixes: d06f6ed6bcc6 ("drm/amdgpu: add aca sysfs support")
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 18 +++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgp
skip call ras_late_init callback if ras block is not supported.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
update smu v13.0.6 message to allow guest driver set gfx clock.
Signed-off-by: Yang Wang
---
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
b/drivers/gpu/drm/amd
1 - 100 of 205 matches
Mail list logo