drm/amdgpu: add protype for print ip state
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 16 Apr 2024 11:00:50 +0000 (16:30 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:39 +0000 (17:22 -0400)
Add the protoype for print ip state to be used
to print the registers in devcoredump during
a gpu reset.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
64 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_umsch_mm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/cik_ih.c
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/cz_ih.c
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/iceland_ih.c
drivers/gpu/drm/amd/amdgpu/ih_v6_0.c
drivers/gpu/drm/amd/amdgpu/ih_v6_1.c
drivers/gpu/drm/amd/amdgpu/ih_v7_0.c
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c
drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
drivers/gpu/drm/amd/amdgpu/nv.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
drivers/gpu/drm/amd/amdgpu/si.c
drivers/gpu/drm/amd/amdgpu/si_dma.c
drivers/gpu/drm/amd/amdgpu/si_ih.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc21.c
drivers/gpu/drm/amd/amdgpu/tonga_ih.c
drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
drivers/gpu/drm/amd/amdgpu/vi.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/include/amd_shared.h
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c

index 34a62033a388cef09899abac09c6fafe42e1d0de..bf6c4a0d0525240d98634d6bc5f65f8a29ceeb9e 100644 (file)
@@ -638,6 +638,7 @@ static const struct amd_ip_funcs acp_ip_funcs = {
        .set_clockgating_state = acp_set_clockgating_state,
        .set_powergating_state = acp_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version acp_ip_block = {
index d877d96e4afe5dffa664131c7e9d221c6ae8b865..e01c1c8e64c403ffc80b82643d97963fbee47385 100644 (file)
@@ -879,6 +879,7 @@ static const struct amd_ip_funcs umsch_mm_v4_0_ip_funcs = {
        .suspend = umsch_mm_suspend,
        .resume = umsch_mm_resume,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version umsch_mm_v4_0_ip_block = {
index d1dc91009c0ed234c2126a785a43708d4254c92b..e30eecd02ae1c11e40c8bdbc394263020649b85f 100644 (file)
@@ -659,6 +659,7 @@ static const struct amd_ip_funcs amdgpu_vkms_ip_funcs = {
        .set_clockgating_state = amdgpu_vkms_set_clockgating_state,
        .set_powergating_state = amdgpu_vkms_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version amdgpu_vkms_ip_block = {
index 884de42553a634db56759c415587701562fda088..cf1d5d462b676ac49ba082d0629c8033f3ec214b 100644 (file)
@@ -2211,6 +2211,7 @@ static const struct amd_ip_funcs cik_common_ip_funcs = {
        .set_clockgating_state = cik_common_set_clockgating_state,
        .set_powergating_state = cik_common_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ip_block_version cik_common_ip_block =
index 676f3f612fde443eec426c96a73b16e1fa5e8f50..576baa9dbb0e1caf3b1ea19f4f483cdba1f1cd63 100644 (file)
@@ -436,6 +436,7 @@ static const struct amd_ip_funcs cik_ih_ip_funcs = {
        .set_clockgating_state = cik_ih_set_clockgating_state,
        .set_powergating_state = cik_ih_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs cik_ih_funcs = {
index 36b386e9c4f1ea9e2d5976501d8b93c3ceb6cdc5..6948ebda0fa2a35e8d55ceff294a6df47b052631 100644 (file)
@@ -1229,6 +1229,7 @@ static const struct amd_ip_funcs cik_sdma_ip_funcs = {
        .set_clockgating_state = cik_sdma_set_clockgating_state,
        .set_powergating_state = cik_sdma_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs cik_sdma_ring_funcs = {
index 958c84a6af7e6e506cfc54e302d1a7621e40ab0e..0726437873845954303b58f3fae00a0f99282f32 100644 (file)
@@ -434,6 +434,7 @@ static const struct amd_ip_funcs cz_ih_ip_funcs = {
        .set_clockgating_state = cz_ih_set_clockgating_state,
        .set_powergating_state = cz_ih_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs cz_ih_funcs = {
index 7a32ca7d6fc4c15a43717a308228559efbce93d9..b44fce44c066429f0d0197c5a8fef46322676a6d 100644 (file)
@@ -3334,6 +3334,7 @@ static const struct amd_ip_funcs dce_v10_0_ip_funcs = {
        .set_clockgating_state = dce_v10_0_set_clockgating_state,
        .set_powergating_state = dce_v10_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static void
index 67c01e137facbe83149b3d3c2361b7453c470f13..80b2e7f79acf2fdf3fa6913282109257f7ef7dcd 100644 (file)
@@ -3465,6 +3465,7 @@ static const struct amd_ip_funcs dce_v11_0_ip_funcs = {
        .set_clockgating_state = dce_v11_0_set_clockgating_state,
        .set_powergating_state = dce_v11_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static void
index 209cd44bbcecfb1b4f66e56a8ff697597a6c70ad..db20012600f5e26cc4981a4740262dfe6b378e0c 100644 (file)
@@ -3155,6 +3155,7 @@ static const struct amd_ip_funcs dce_v6_0_ip_funcs = {
        .set_clockgating_state = dce_v6_0_set_clockgating_state,
        .set_powergating_state = dce_v6_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static void
index fff7f4f766b299a05b9e52b8a160923d8230f4a8..5b56100ec9022cba61941bc4c552c5e6b046d084 100644 (file)
@@ -3243,6 +3243,7 @@ static const struct amd_ip_funcs dce_v8_0_ip_funcs = {
        .set_clockgating_state = dce_v8_0_set_clockgating_state,
        .set_powergating_state = dce_v8_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static void
index c0cc3dd32f464fdfc069fa1d056aae4cd062d52d..78019c2d21e4a7fb8b484760565fea9815c8afc6 100644 (file)
@@ -9299,6 +9299,7 @@ static const struct amd_ip_funcs gfx_v10_0_ip_funcs = {
        .set_powergating_state = gfx_v10_0_set_powergating_state,
        .get_clockgating_state = gfx_v10_0_get_clockgating_state,
        .dump_ip_state = gfx_v10_ip_dump,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v10_0_ring_funcs_gfx = {
index e9e5b0eb536e1d668e03e48aee0e68b182f71d5a..ad6431013c7386c2621821917c22892e54df2e38 100644 (file)
@@ -6170,6 +6170,7 @@ static const struct amd_ip_funcs gfx_v11_0_ip_funcs = {
        .set_powergating_state = gfx_v11_0_set_powergating_state,
        .get_clockgating_state = gfx_v11_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v11_0_ring_funcs_gfx = {
index 559250c8a147f9ed0403037ce587efac0ec3bf5e..d0992ce9fb474ddd9e9a926fa8efa0996bceed7c 100644 (file)
@@ -3458,6 +3458,7 @@ static const struct amd_ip_funcs gfx_v6_0_ip_funcs = {
        .set_clockgating_state = gfx_v6_0_set_clockgating_state,
        .set_powergating_state = gfx_v6_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v6_0_ring_funcs_gfx = {
index 81f7ab0dc135b88e57a1ab1629e57c5fc8e18107..541dbd70d8c751c4c8c2b57d6e339a35cc3121af 100644 (file)
@@ -4978,6 +4978,7 @@ static const struct amd_ip_funcs gfx_v7_0_ip_funcs = {
        .set_clockgating_state = gfx_v7_0_set_clockgating_state,
        .set_powergating_state = gfx_v7_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v7_0_ring_funcs_gfx = {
index 522cbd45dd46792f624f1dd5872bfd51f0505731..2f0e72caee1af9bb8d016214bfda07b6acc68e31 100644 (file)
@@ -6879,6 +6879,7 @@ static const struct amd_ip_funcs gfx_v8_0_ip_funcs = {
        .set_powergating_state = gfx_v8_0_set_powergating_state,
        .get_clockgating_state = gfx_v8_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v8_0_ring_funcs_gfx = {
index d3fc04a0281a47596efb17a11cff4148fb30a8e7..3c8c5abf35abde5525814c7db6d35c67a4528e58 100644 (file)
@@ -6857,6 +6857,7 @@ static const struct amd_ip_funcs gfx_v9_0_ip_funcs = {
        .set_powergating_state = gfx_v9_0_set_powergating_state,
        .get_clockgating_state = gfx_v9_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_gfx = {
index 6190f51bf489bd485ed16110b96f87f9f4e2df99..0e429b7ed03621b931982ab586c0484c536bcdce 100644 (file)
@@ -4017,6 +4017,7 @@ static const struct amd_ip_funcs gfx_v9_4_3_ip_funcs = {
        .set_powergating_state = gfx_v9_4_3_set_powergating_state,
        .get_clockgating_state = gfx_v9_4_3_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs gfx_v9_4_3_ring_funcs_compute = {
index 060e54b8fffffb9723415a12abf5ea2ef3b4f9e1..3e38d8bfcb690b98755865f223776f370651c70c 100644 (file)
@@ -1116,6 +1116,7 @@ static const struct amd_ip_funcs gmc_v6_0_ip_funcs = {
        .set_clockgating_state = gmc_v6_0_set_clockgating_state,
        .set_powergating_state = gmc_v6_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_gmc_funcs gmc_v6_0_gmc_funcs = {
index 534825022ddd0da2ae677c10ae9a29ef62fce4e9..85df8fc8106560fc30187e08ab723c8ddfc13b78 100644 (file)
@@ -1355,6 +1355,7 @@ static const struct amd_ip_funcs gmc_v7_0_ip_funcs = {
        .set_clockgating_state = gmc_v7_0_set_clockgating_state,
        .set_powergating_state = gmc_v7_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_gmc_funcs gmc_v7_0_gmc_funcs = {
index aba787e1386a84c7bdc1b820d5c0a6fced7a7145..fc97757e33d93814a8f4a22309b0873a471bc141 100644 (file)
@@ -1718,6 +1718,7 @@ static const struct amd_ip_funcs gmc_v8_0_ip_funcs = {
        .set_powergating_state = gmc_v8_0_set_powergating_state,
        .get_clockgating_state = gmc_v8_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_gmc_funcs gmc_v8_0_gmc_funcs = {
index 2d6f969266b8cdbda20f97ff777f733cd372cf54..07984f7c3ae773a16f4b4668824f39ac4eb2a723 100644 (file)
@@ -426,6 +426,7 @@ static const struct amd_ip_funcs iceland_ih_ip_funcs = {
        .set_clockgating_state = iceland_ih_set_clockgating_state,
        .set_powergating_state = iceland_ih_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs iceland_ih_funcs = {
index 77b5068b7be5108c02435c56701bb44f986c63f0..3cb64c8f71758941137c23f621c9e42f216ccc33 100644 (file)
@@ -771,6 +771,7 @@ static const struct amd_ip_funcs ih_v6_0_ip_funcs = {
        .set_powergating_state = ih_v6_0_set_powergating_state,
        .get_clockgating_state = ih_v6_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs ih_v6_0_funcs = {
index fc2c27a199c6ae54999519d6c39a667c8ddc3d43..0fbf5fa7b0f87f6ffd73d9b0005e2930b75565e2 100644 (file)
@@ -776,6 +776,7 @@ static const struct amd_ip_funcs ih_v6_1_ip_funcs = {
        .set_powergating_state = ih_v6_1_set_powergating_state,
        .get_clockgating_state = ih_v6_1_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs ih_v6_1_funcs = {
index 31ed5030169bd49bbd6cf04de8115b075852a5ae..aa6235dd4f2b0b10a76f26778140ef62bcea2f73 100644 (file)
@@ -750,6 +750,7 @@ static const struct amd_ip_funcs ih_v7_0_ip_funcs = {
        .set_powergating_state = ih_v7_0_set_powergating_state,
        .get_clockgating_state = ih_v7_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs ih_v7_0_funcs = {
index 698c5d4b7484ea4a9c3fb7140b094fb491313191..ef3e42f6b8411c91a31113e1943038d6ee24e910 100644 (file)
@@ -760,6 +760,7 @@ static const struct amd_ip_funcs jpeg_v2_0_ip_funcs = {
        .set_clockgating_state = jpeg_v2_0_set_clockgating_state,
        .set_powergating_state = jpeg_v2_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v2_0_dec_ring_vm_funcs = {
index 0a9a2d58e3ee1bab0594897e3a17a5594f51bd2e..afeaf3c64e27803591c83265b3504b26e46ea171 100644 (file)
@@ -633,6 +633,7 @@ static const struct amd_ip_funcs jpeg_v2_5_ip_funcs = {
        .set_clockgating_state = jpeg_v2_5_set_clockgating_state,
        .set_powergating_state = jpeg_v2_5_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amd_ip_funcs jpeg_v2_6_ip_funcs = {
@@ -654,6 +655,7 @@ static const struct amd_ip_funcs jpeg_v2_6_ip_funcs = {
        .set_clockgating_state = jpeg_v2_5_set_clockgating_state,
        .set_powergating_state = jpeg_v2_5_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v2_5_dec_ring_vm_funcs = {
index e03d46151ae36844bbc327b600f0553e77381b77..1c7cf4800bf7bb9570a0198f9f3743f2be26c8a2 100644 (file)
@@ -558,6 +558,7 @@ static const struct amd_ip_funcs jpeg_v3_0_ip_funcs = {
        .set_clockgating_state = jpeg_v3_0_set_clockgating_state,
        .set_powergating_state = jpeg_v3_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v3_0_dec_ring_vm_funcs = {
index f142cb200552c43b0b363d7174decf82299b4e1b..237fe5df5a8fb567521b5964c5c5bdfdb1cadad4 100644 (file)
@@ -720,6 +720,7 @@ static const struct amd_ip_funcs jpeg_v4_0_ip_funcs = {
        .set_clockgating_state = jpeg_v4_0_set_clockgating_state,
        .set_powergating_state = jpeg_v4_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v4_0_dec_ring_vm_funcs = {
index bc3a6f16f4bff87b58db9c4246a6212dedfed661..d66af11aa66c7064207967b165434a3664efffe9 100644 (file)
@@ -1054,6 +1054,7 @@ static const struct amd_ip_funcs jpeg_v4_0_3_ip_funcs = {
        .set_clockgating_state = jpeg_v4_0_3_set_clockgating_state,
        .set_powergating_state = jpeg_v4_0_3_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v4_0_3_dec_ring_vm_funcs = {
index ee29c97721ec199e9af91e15b1e889e3f29983d1..da6bb9022b804275edbc9bc9a8a75c479aa3ccf9 100644 (file)
@@ -763,6 +763,7 @@ static const struct amd_ip_funcs jpeg_v4_0_5_ip_funcs = {
        .set_clockgating_state = jpeg_v4_0_5_set_clockgating_state,
        .set_powergating_state = jpeg_v4_0_5_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v4_0_5_dec_ring_vm_funcs = {
index f5664c92d10d0d76d10265149f93aeb93d5c82a9..64c856bfe0cbb847ee4413bc95d463a08e0fadd3 100644 (file)
@@ -514,6 +514,7 @@ static const struct amd_ip_funcs jpeg_v5_0_0_ip_funcs = {
        .set_clockgating_state = jpeg_v5_0_0_set_clockgating_state,
        .set_powergating_state = jpeg_v5_0_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs jpeg_v5_0_0_dec_ring_vm_funcs = {
index 4ed0429cf4f7a4e072afe119e6c097968ec50feb..a626bf904926018e67eb95486b5134fb5814b5bf 100644 (file)
@@ -1177,6 +1177,7 @@ static const struct amd_ip_funcs mes_v10_1_ip_funcs = {
        .suspend = mes_v10_1_suspend,
        .resume = mes_v10_1_resume,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version mes_v10_1_ip_block = {
index bb7318c2d652bb4b9cb4d607208b19961f5c0447..5c08ad234439e83f62a87fd3f1b23d381eb525f1 100644 (file)
@@ -1405,6 +1405,7 @@ static const struct amd_ip_funcs mes_v11_0_ip_funcs = {
        .suspend = mes_v11_0_suspend,
        .resume = mes_v11_0_resume,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version mes_v11_0_ip_block = {
index 550c5ca4ea03b40ca841b9742da38da8e124e1c8..b281462093f117085fc15643b65ff85d8751db77 100644 (file)
@@ -714,6 +714,7 @@ static const struct amd_ip_funcs navi10_ih_ip_funcs = {
        .set_powergating_state = navi10_ih_set_powergating_state,
        .get_clockgating_state = navi10_ih_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs navi10_ih_funcs = {
index d7d3b972392b2e6b018fbe982be1feb440c3731a..b5303cd3cb534a21b831b773c9272cd8a31ae17e 100644 (file)
@@ -1132,4 +1132,5 @@ static const struct amd_ip_funcs nv_common_ip_funcs = {
        .set_powergating_state = nv_common_set_powergating_state,
        .get_clockgating_state = nv_common_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
index 0fd46ed1f67dc6c0da0cfa015bc597c5401d1420..ac8a9b9b3e521c4624290c1345ec7e3cf531478c 100644 (file)
@@ -1114,6 +1114,7 @@ static const struct amd_ip_funcs sdma_v2_4_ip_funcs = {
        .set_clockgating_state = sdma_v2_4_set_clockgating_state,
        .set_powergating_state = sdma_v2_4_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs sdma_v2_4_ring_funcs = {
index a3b8f1d807ed4a68914225adf99af4b518f35e17..b8ebdc4ae6f60158a7874ee3f623597c2cf1a0fb 100644 (file)
@@ -1554,6 +1554,7 @@ static const struct amd_ip_funcs sdma_v3_0_ip_funcs = {
        .set_powergating_state = sdma_v3_0_set_powergating_state,
        .get_clockgating_state = sdma_v3_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs sdma_v3_0_ring_funcs = {
index b5b15dba9a769775e92a0685371b14bf8bdb62ea..85235470e872c86d1d61ee332383140d2ab4c5cd 100644 (file)
@@ -2707,6 +2707,7 @@ static const struct amd_ip_funcs si_common_ip_funcs = {
        .set_clockgating_state = si_common_set_clockgating_state,
        .set_powergating_state = si_common_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ip_block_version si_common_ip_block =
index fd8f28fdee1a59bf8b6f01f7adc6eafbefabda05..11db5b75583218b379eff99eb0e44bd485632103 100644 (file)
@@ -709,6 +709,7 @@ static const struct amd_ip_funcs si_dma_ip_funcs = {
        .set_clockgating_state = si_dma_set_clockgating_state,
        .set_powergating_state = si_dma_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs si_dma_ring_funcs = {
index 3b7427f5a6c9d2c9304ec9b391bbe55ae67f87a6..5237395e4fab5e74c2a063fa2c3ef1dc2a45ef98 100644 (file)
@@ -297,6 +297,7 @@ static const struct amd_ip_funcs si_ih_ip_funcs = {
        .set_clockgating_state = si_ih_set_clockgating_state,
        .set_powergating_state = si_ih_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs si_ih_funcs = {
index 6ba6c96c91c844ad1d40b69495eaead7d8219ec0..a5d3c66b586894bcea90d21cf97e63eb6aaec168 100644 (file)
@@ -1502,4 +1502,5 @@ static const struct amd_ip_funcs soc15_common_ip_funcs = {
        .set_powergating_state = soc15_common_set_powergating_state,
        .get_clockgating_state= soc15_common_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
index 40e7ab0716cdf8dc39f001e5be91c9b969433b59..27c26e42120ece392ebb33516653046a63840903 100644 (file)
@@ -986,4 +986,5 @@ static const struct amd_ip_funcs soc21_common_ip_funcs = {
        .set_powergating_state = soc21_common_set_powergating_state,
        .get_clockgating_state = soc21_common_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
index 794a1f7bc2ca6bbc0d4298e3136de5d1c7bb2a38..24d49d813607f7fb68393da1f2b3a78f95d862c0 100644 (file)
@@ -487,6 +487,7 @@ static const struct amd_ip_funcs tonga_ih_ip_funcs = {
        .set_clockgating_state = tonga_ih_set_clockgating_state,
        .set_powergating_state = tonga_ih_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ih_funcs tonga_ih_funcs = {
index 1e232ed23102439380f85e3b3a0ffcc9b8ee4e33..805d6662c88b6d91b02679bca4be56325dc953c0 100644 (file)
@@ -820,6 +820,7 @@ static const struct amd_ip_funcs uvd_v3_1_ip_funcs = {
        .set_clockgating_state = uvd_v3_1_set_clockgating_state,
        .set_powergating_state = uvd_v3_1_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version uvd_v3_1_ip_block = {
index 48bcf41e55588c661fc59f159f80256e96f3f90d..3f19c606f4de5187397077a4f7eae74ac723f690 100644 (file)
@@ -770,6 +770,7 @@ static const struct amd_ip_funcs uvd_v4_2_ip_funcs = {
        .set_clockgating_state = uvd_v4_2_set_clockgating_state,
        .set_powergating_state = uvd_v4_2_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs uvd_v4_2_ring_funcs = {
index 838b7d720c52ee2af7ebbb1f6851a98d3f5405ff..efd903c21d48eb7fbf7bf505d459f3a81b66356b 100644 (file)
@@ -878,6 +878,7 @@ static const struct amd_ip_funcs uvd_v5_0_ip_funcs = {
        .set_powergating_state = uvd_v5_0_set_powergating_state,
        .get_clockgating_state = uvd_v5_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs uvd_v5_0_ring_funcs = {
index 036378f5f53f969520394a76c692026d359f8842..495de506845540c68534ea9cead558b3662f85a5 100644 (file)
@@ -1546,6 +1546,7 @@ static const struct amd_ip_funcs uvd_v6_0_ip_funcs = {
        .set_powergating_state = uvd_v6_0_set_powergating_state,
        .get_clockgating_state = uvd_v6_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs uvd_v6_0_ring_phys_funcs = {
index 2178cf5a27b7fc9a8f32a24f5c58a0c1eb836681..66fada199bda233aa0ffcad230feaf570679e0a8 100644 (file)
@@ -627,6 +627,7 @@ static const struct amd_ip_funcs vce_v2_0_ip_funcs = {
        .set_clockgating_state = vce_v2_0_set_clockgating_state,
        .set_powergating_state = vce_v2_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs vce_v2_0_ring_funcs = {
index 0f0d4b0d50cb4cf31ffc8ff67ddfe565ab99c289..32517c364cf7a1367d8296edacbb02856b2ec427 100644 (file)
@@ -914,6 +914,7 @@ static const struct amd_ip_funcs vce_v3_0_ip_funcs = {
        .set_powergating_state = vce_v3_0_set_powergating_state,
        .get_clockgating_state = vce_v3_0_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs vce_v3_0_ring_phys_funcs = {
index 7ff5d05744549f3742fd858d92c11ad482add723..cb253bd3a2a2da5fae07d04ed1579688f435c5c0 100644 (file)
@@ -1903,6 +1903,7 @@ static const struct amd_ip_funcs vcn_v1_0_ip_funcs = {
        .set_clockgating_state = vcn_v1_0_set_clockgating_state,
        .set_powergating_state = vcn_v1_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 /*
index 4df1b75f971a1166435241c31d171282e51d1be4..f18fd61c435e6a14059d243f100f9629eac89966 100644 (file)
@@ -2009,6 +2009,7 @@ static const struct amd_ip_funcs vcn_v2_0_ip_funcs = {
        .set_clockgating_state = vcn_v2_0_set_clockgating_state,
        .set_powergating_state = vcn_v2_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ring_funcs vcn_v2_0_dec_ring_vm_funcs = {
index d91c3154641bb7f7c531e8c7057fc8684283f809..baec14bde2a20049ec6888c75bd5786b42db248b 100644 (file)
@@ -1902,6 +1902,7 @@ static const struct amd_ip_funcs vcn_v2_5_ip_funcs = {
        .set_clockgating_state = vcn_v2_5_set_clockgating_state,
        .set_powergating_state = vcn_v2_5_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amd_ip_funcs vcn_v2_6_ip_funcs = {
@@ -1923,6 +1924,7 @@ static const struct amd_ip_funcs vcn_v2_6_ip_funcs = {
         .set_clockgating_state = vcn_v2_5_set_clockgating_state,
         .set_powergating_state = vcn_v2_5_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version vcn_v2_5_ip_block =
index 98b7d2d0536e07f08f6e54af4a71b638c3e2ceb3..6b31cf4b8aac74bd1020e740112d562cf1326c8b 100644 (file)
@@ -2232,6 +2232,7 @@ static const struct amd_ip_funcs vcn_v3_0_ip_funcs = {
        .set_clockgating_state = vcn_v3_0_set_clockgating_state,
        .set_powergating_state = vcn_v3_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version vcn_v3_0_ip_block = {
index 122fec3be96f157bcfc86a13863f1803ae56bcfb..ac1b8ead03b3bb72250f8b1518300294e0a77373 100644 (file)
@@ -2132,6 +2132,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = {
        .set_clockgating_state = vcn_v4_0_set_clockgating_state,
        .set_powergating_state = vcn_v4_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version vcn_v4_0_ip_block = {
index 599b6466183ef9d140e2ecf35f53b658a98e96de..2279d8fce03d48913d4f84e5d5fb2d0b83bb7e7d 100644 (file)
@@ -1661,6 +1661,7 @@ static const struct amd_ip_funcs vcn_v4_0_3_ip_funcs = {
        .set_clockgating_state = vcn_v4_0_3_set_clockgating_state,
        .set_powergating_state = vcn_v4_0_3_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version vcn_v4_0_3_ip_block = {
index 8b1e5bc9fb6960b7350366ca8f084b5d53c96446..81fb99729f37d917510d8e50655ae81167aa0b32 100644 (file)
@@ -1754,6 +1754,7 @@ static const struct amd_ip_funcs vcn_v4_0_5_ip_funcs = {
        .set_clockgating_state = vcn_v4_0_5_set_clockgating_state,
        .set_powergating_state = vcn_v4_0_5_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version vcn_v4_0_5_ip_block = {
index 6d6aa02af4f5f2c43e3a8a211c8d2920d55748a4..b9455b6efa1723f0dec260201c9111ae1bd0b91d 100644 (file)
@@ -1330,6 +1330,7 @@ static const struct amd_ip_funcs vcn_v5_0_0_ip_funcs = {
        .set_clockgating_state = vcn_v5_0_0_set_clockgating_state,
        .set_powergating_state = vcn_v5_0_0_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version vcn_v5_0_0_ip_block = {
index a04aa6833fc5a29b55f41a10d8af04ea363104ac..d39c670f622046d37b7ee14bae88eaf10f1147d4 100644 (file)
@@ -2059,6 +2059,7 @@ static const struct amd_ip_funcs vi_common_ip_funcs = {
        .set_powergating_state = vi_common_set_powergating_state,
        .get_clockgating_state = vi_common_get_clockgating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 static const struct amdgpu_ip_block_version vi_common_ip_block =
index fd58d0acc47a8a3f6aca3692a81e71b4fea16417..f174b6376168788f0f466665148a186e331cebec 100644 (file)
@@ -3122,6 +3122,7 @@ static const struct amd_ip_funcs amdgpu_dm_funcs = {
        .set_clockgating_state = dm_set_clockgating_state,
        .set_powergating_state = dm_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version dm_ip_block = {
index 9884f6c48a7dc960d1156275d278de958e66a3b5..7536c173a546912b9273c5fe69be3670869bfbe6 100644 (file)
@@ -24,6 +24,7 @@
 #define __AMD_SHARED_H__
 
 #include <drm/amd_asic_type.h>
+#include <drm/drm_print.h>
 
 
 #define AMD_MAX_USEC_TIMEOUT           1000000  /* 1000 ms */
@@ -322,6 +323,7 @@ struct amd_ip_funcs {
                                     enum amd_powergating_state state);
        void (*get_clockgating_state)(void *handle, u64 *flags);
        void (*dump_ip_state)(void *handle);
+       void (*print_ip_state)(void *handle, struct drm_printer *p);
 };
 
 
index 8c07f8c7f3ab36520b73ad158d6bf2d5394dbfeb..6bb42d04b2479af90a63548dfbafeca633436091 100644 (file)
@@ -3317,6 +3317,7 @@ static const struct amd_ip_funcs kv_dpm_ip_funcs = {
        .set_clockgating_state = kv_dpm_set_clockgating_state,
        .set_powergating_state = kv_dpm_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version kv_smu_ip_block = {
index c312b93323267815c26ee6a280ba2f6d25e2fa1f..f245fc0bc6d36ea615248ae4a13bf92a61cfc4bd 100644 (file)
@@ -8061,6 +8061,7 @@ static const struct amd_ip_funcs si_dpm_ip_funcs = {
        .set_clockgating_state = si_dpm_set_clockgating_state,
        .set_powergating_state = si_dpm_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version si_smu_ip_block =
index c63474ee17a755851ae78a89a217600bfb76ae70..5fb21a0508cd993acccf18cf632955740878590e 100644 (file)
@@ -303,6 +303,7 @@ static const struct amd_ip_funcs pp_ip_funcs = {
        .set_clockgating_state = pp_set_clockgating_state,
        .set_powergating_state = pp_set_powergating_state,
        .dump_ip_state = NULL,
+       .print_ip_state = NULL,
 };
 
 const struct amdgpu_ip_block_version pp_smu_ip_block =