diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-05-04 14:28:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-11 12:31:26 -0400 |
commit | 88a907d67c03e80a71c49681bbccf3bfebe74ab4 (patch) | |
tree | b9eaf3e2d814cd91b3bef3cda7879bbab05ea301 /drivers | |
parent | cb9e59d7e999c68b79f23d6016b08fc5d0bb8a8d (diff) |
drm/amd/amdgpu: Add name field to amd_ip_funcs (v2)
Add name that we can print out in kernel messages
to aid in debugging.
v2: drop DAL changes for upstream
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
32 files changed, 33 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c index 49838dfe9bda..252edba16e36 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | |||
@@ -480,6 +480,7 @@ static int acp_set_powergating_state(void *handle, | |||
480 | } | 480 | } |
481 | 481 | ||
482 | const struct amd_ip_funcs acp_ip_funcs = { | 482 | const struct amd_ip_funcs acp_ip_funcs = { |
483 | .name = "acp_ip", | ||
483 | .early_init = acp_early_init, | 484 | .early_init = acp_early_init, |
484 | .late_init = NULL, | 485 | .late_init = NULL, |
485 | .sw_init = acp_sw_init, | 486 | .sw_init = acp_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 0d44e6a41eda..5889c897b6ab 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1196,7 +1196,7 @@ static int amdgpu_early_init(struct amdgpu_device *adev) | |||
1196 | if (r == -ENOENT) { | 1196 | if (r == -ENOENT) { |
1197 | adev->ip_block_status[i].valid = false; | 1197 | adev->ip_block_status[i].valid = false; |
1198 | } else if (r) { | 1198 | } else if (r) { |
1199 | DRM_ERROR("early_init %d failed %d\n", i, r); | 1199 | DRM_ERROR("early_init of IP block <%s> failed %d\n", adev->ip_blocks[i].funcs->name, r); |
1200 | return r; | 1200 | return r; |
1201 | } else { | 1201 | } else { |
1202 | adev->ip_block_status[i].valid = true; | 1202 | adev->ip_block_status[i].valid = true; |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index be565955bcc7..6bd961fb43dc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -304,6 +304,7 @@ static int amdgpu_pp_soft_reset(void *handle) | |||
304 | } | 304 | } |
305 | 305 | ||
306 | const struct amd_ip_funcs amdgpu_pp_ip_funcs = { | 306 | const struct amd_ip_funcs amdgpu_pp_ip_funcs = { |
307 | .name = "amdgpu_powerplay", | ||
307 | .early_init = amdgpu_pp_early_init, | 308 | .early_init = amdgpu_pp_early_init, |
308 | .late_init = amdgpu_pp_late_init, | 309 | .late_init = amdgpu_pp_late_init, |
309 | .sw_init = amdgpu_pp_sw_init, | 310 | .sw_init = amdgpu_pp_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c index 31b38bd67215..ea407db1fbcf 100644 --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |||
@@ -6402,6 +6402,7 @@ static int ci_dpm_set_powergating_state(void *handle, | |||
6402 | } | 6402 | } |
6403 | 6403 | ||
6404 | const struct amd_ip_funcs ci_dpm_ip_funcs = { | 6404 | const struct amd_ip_funcs ci_dpm_ip_funcs = { |
6405 | .name = "ci_dpm", | ||
6405 | .early_init = ci_dpm_early_init, | 6406 | .early_init = ci_dpm_early_init, |
6406 | .late_init = ci_dpm_late_init, | 6407 | .late_init = ci_dpm_late_init, |
6407 | .sw_init = ci_dpm_sw_init, | 6408 | .sw_init = ci_dpm_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c index 68e569853c95..07bc795a4ca9 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik.c +++ b/drivers/gpu/drm/amd/amdgpu/cik.c | |||
@@ -2232,6 +2232,7 @@ static int cik_common_set_powergating_state(void *handle, | |||
2232 | } | 2232 | } |
2233 | 2233 | ||
2234 | const struct amd_ip_funcs cik_common_ip_funcs = { | 2234 | const struct amd_ip_funcs cik_common_ip_funcs = { |
2235 | .name = "cik_common", | ||
2235 | .early_init = cik_common_early_init, | 2236 | .early_init = cik_common_early_init, |
2236 | .late_init = NULL, | 2237 | .late_init = NULL, |
2237 | .sw_init = cik_common_sw_init, | 2238 | .sw_init = cik_common_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c index 7e750a459499..845c21b1b2ee 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c | |||
@@ -415,6 +415,7 @@ static int cik_ih_set_powergating_state(void *handle, | |||
415 | } | 415 | } |
416 | 416 | ||
417 | const struct amd_ip_funcs cik_ih_ip_funcs = { | 417 | const struct amd_ip_funcs cik_ih_ip_funcs = { |
418 | .name = "cik_ih", | ||
418 | .early_init = cik_ih_early_init, | 419 | .early_init = cik_ih_early_init, |
419 | .late_init = NULL, | 420 | .late_init = NULL, |
420 | .sw_init = cik_ih_sw_init, | 421 | .sw_init = cik_ih_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c index 8d69c6555e02..df824f80ac07 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_sdma.c | |||
@@ -1223,6 +1223,7 @@ static int cik_sdma_set_powergating_state(void *handle, | |||
1223 | } | 1223 | } |
1224 | 1224 | ||
1225 | const struct amd_ip_funcs cik_sdma_ip_funcs = { | 1225 | const struct amd_ip_funcs cik_sdma_ip_funcs = { |
1226 | .name = "cik_sdma", | ||
1226 | .early_init = cik_sdma_early_init, | 1227 | .early_init = cik_sdma_early_init, |
1227 | .late_init = NULL, | 1228 | .late_init = NULL, |
1228 | .sw_init = cik_sdma_sw_init, | 1229 | .sw_init = cik_sdma_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c index bf1847b28d9c..fa4449e126e6 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_dpm.c | |||
@@ -2230,6 +2230,7 @@ static void cz_dpm_powergate_vce(struct amdgpu_device *adev, bool gate) | |||
2230 | } | 2230 | } |
2231 | 2231 | ||
2232 | const struct amd_ip_funcs cz_dpm_ip_funcs = { | 2232 | const struct amd_ip_funcs cz_dpm_ip_funcs = { |
2233 | .name = "cz_dpm", | ||
2233 | .early_init = cz_dpm_early_init, | 2234 | .early_init = cz_dpm_early_init, |
2234 | .late_init = cz_dpm_late_init, | 2235 | .late_init = cz_dpm_late_init, |
2235 | .sw_init = cz_dpm_sw_init, | 2236 | .sw_init = cz_dpm_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_ih.c b/drivers/gpu/drm/amd/amdgpu/cz_ih.c index 874b92899797..863cb16f6126 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_ih.c | |||
@@ -396,6 +396,7 @@ static int cz_ih_set_powergating_state(void *handle, | |||
396 | } | 396 | } |
397 | 397 | ||
398 | const struct amd_ip_funcs cz_ih_ip_funcs = { | 398 | const struct amd_ip_funcs cz_ih_ip_funcs = { |
399 | .name = "cz_ih", | ||
399 | .early_init = cz_ih_early_init, | 400 | .early_init = cz_ih_early_init, |
400 | .late_init = NULL, | 401 | .late_init = NULL, |
401 | .sw_init = cz_ih_sw_init, | 402 | .sw_init = cz_ih_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c index 578328860396..be1cf388c2ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | |||
@@ -3499,6 +3499,7 @@ static int dce_v10_0_set_powergating_state(void *handle, | |||
3499 | } | 3499 | } |
3500 | 3500 | ||
3501 | const struct amd_ip_funcs dce_v10_0_ip_funcs = { | 3501 | const struct amd_ip_funcs dce_v10_0_ip_funcs = { |
3502 | .name = "dce_v10_0", | ||
3502 | .early_init = dce_v10_0_early_init, | 3503 | .early_init = dce_v10_0_early_init, |
3503 | .late_init = NULL, | 3504 | .late_init = NULL, |
3504 | .sw_init = dce_v10_0_sw_init, | 3505 | .sw_init = dce_v10_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c index 60bfeb1b956e..b722aa055492 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | |||
@@ -3559,6 +3559,7 @@ static int dce_v11_0_set_powergating_state(void *handle, | |||
3559 | } | 3559 | } |
3560 | 3560 | ||
3561 | const struct amd_ip_funcs dce_v11_0_ip_funcs = { | 3561 | const struct amd_ip_funcs dce_v11_0_ip_funcs = { |
3562 | .name = "dce_v11_0", | ||
3562 | .early_init = dce_v11_0_early_init, | 3563 | .early_init = dce_v11_0_early_init, |
3563 | .late_init = NULL, | 3564 | .late_init = NULL, |
3564 | .sw_init = dce_v11_0_sw_init, | 3565 | .sw_init = dce_v11_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index c73993472059..c087f930d67e 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |||
@@ -3424,6 +3424,7 @@ static int dce_v8_0_set_powergating_state(void *handle, | |||
3424 | } | 3424 | } |
3425 | 3425 | ||
3426 | const struct amd_ip_funcs dce_v8_0_ip_funcs = { | 3426 | const struct amd_ip_funcs dce_v8_0_ip_funcs = { |
3427 | .name = "dce_v8_0", | ||
3427 | .early_init = dce_v8_0_early_init, | 3428 | .early_init = dce_v8_0_early_init, |
3428 | .late_init = NULL, | 3429 | .late_init = NULL, |
3429 | .sw_init = dce_v8_0_sw_init, | 3430 | .sw_init = dce_v8_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/fiji_dpm.c b/drivers/gpu/drm/amd/amdgpu/fiji_dpm.c index 6d133450d3cc..245cabf06575 100644 --- a/drivers/gpu/drm/amd/amdgpu/fiji_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/fiji_dpm.c | |||
@@ -143,6 +143,7 @@ static int fiji_dpm_set_powergating_state(void *handle, | |||
143 | } | 143 | } |
144 | 144 | ||
145 | const struct amd_ip_funcs fiji_dpm_ip_funcs = { | 145 | const struct amd_ip_funcs fiji_dpm_ip_funcs = { |
146 | .name = "fiji_dpm", | ||
146 | .early_init = fiji_dpm_early_init, | 147 | .early_init = fiji_dpm_early_init, |
147 | .late_init = NULL, | 148 | .late_init = NULL, |
148 | .sw_init = fiji_dpm_sw_init, | 149 | .sw_init = fiji_dpm_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c index 0014a9ceaf29..92d8061efaf4 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | |||
@@ -4894,6 +4894,7 @@ static int gfx_v7_0_set_powergating_state(void *handle, | |||
4894 | } | 4894 | } |
4895 | 4895 | ||
4896 | const struct amd_ip_funcs gfx_v7_0_ip_funcs = { | 4896 | const struct amd_ip_funcs gfx_v7_0_ip_funcs = { |
4897 | .name = "gfx_v7_0", | ||
4897 | .early_init = gfx_v7_0_early_init, | 4898 | .early_init = gfx_v7_0_early_init, |
4898 | .late_init = gfx_v7_0_late_init, | 4899 | .late_init = gfx_v7_0_late_init, |
4899 | .sw_init = gfx_v7_0_sw_init, | 4900 | .sw_init = gfx_v7_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 7525f99858f1..7886228b8318 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -6066,6 +6066,7 @@ static int gfx_v8_0_priv_inst_irq(struct amdgpu_device *adev, | |||
6066 | } | 6066 | } |
6067 | 6067 | ||
6068 | const struct amd_ip_funcs gfx_v8_0_ip_funcs = { | 6068 | const struct amd_ip_funcs gfx_v8_0_ip_funcs = { |
6069 | .name = "gfx_v8_0", | ||
6069 | .early_init = gfx_v8_0_early_init, | 6070 | .early_init = gfx_v8_0_early_init, |
6070 | .late_init = gfx_v8_0_late_init, | 6071 | .late_init = gfx_v8_0_late_init, |
6071 | .sw_init = gfx_v8_0_sw_init, | 6072 | .sw_init = gfx_v8_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c index 48e4800eafcc..1feb6439cb0b 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | |||
@@ -1261,6 +1261,7 @@ static int gmc_v7_0_set_powergating_state(void *handle, | |||
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | const struct amd_ip_funcs gmc_v7_0_ip_funcs = { | 1263 | const struct amd_ip_funcs gmc_v7_0_ip_funcs = { |
1264 | .name = "gmc_v7_0", | ||
1264 | .early_init = gmc_v7_0_early_init, | 1265 | .early_init = gmc_v7_0_early_init, |
1265 | .late_init = gmc_v7_0_late_init, | 1266 | .late_init = gmc_v7_0_late_init, |
1266 | .sw_init = gmc_v7_0_sw_init, | 1267 | .sw_init = gmc_v7_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 53c3339e2cfd..9945d5bbf1fe 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |||
@@ -1423,6 +1423,7 @@ static int gmc_v8_0_set_powergating_state(void *handle, | |||
1423 | } | 1423 | } |
1424 | 1424 | ||
1425 | const struct amd_ip_funcs gmc_v8_0_ip_funcs = { | 1425 | const struct amd_ip_funcs gmc_v8_0_ip_funcs = { |
1426 | .name = "gmc_v8_0", | ||
1426 | .early_init = gmc_v8_0_early_init, | 1427 | .early_init = gmc_v8_0_early_init, |
1427 | .late_init = gmc_v8_0_late_init, | 1428 | .late_init = gmc_v8_0_late_init, |
1428 | .sw_init = gmc_v8_0_sw_init, | 1429 | .sw_init = gmc_v8_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/iceland_dpm.c b/drivers/gpu/drm/amd/amdgpu/iceland_dpm.c index 57a96132a8a2..460bc8ad37e6 100644 --- a/drivers/gpu/drm/amd/amdgpu/iceland_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/iceland_dpm.c | |||
@@ -157,6 +157,7 @@ static int iceland_dpm_set_powergating_state(void *handle, | |||
157 | } | 157 | } |
158 | 158 | ||
159 | const struct amd_ip_funcs iceland_dpm_ip_funcs = { | 159 | const struct amd_ip_funcs iceland_dpm_ip_funcs = { |
160 | .name = "iceland_dpm", | ||
160 | .early_init = iceland_dpm_early_init, | 161 | .early_init = iceland_dpm_early_init, |
161 | .late_init = NULL, | 162 | .late_init = NULL, |
162 | .sw_init = iceland_dpm_sw_init, | 163 | .sw_init = iceland_dpm_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c index 5c4001e2538e..39bfc52d0b42 100644 --- a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c | |||
@@ -394,6 +394,7 @@ static int iceland_ih_set_powergating_state(void *handle, | |||
394 | } | 394 | } |
395 | 395 | ||
396 | const struct amd_ip_funcs iceland_ih_ip_funcs = { | 396 | const struct amd_ip_funcs iceland_ih_ip_funcs = { |
397 | .name = "iceland_ih", | ||
397 | .early_init = iceland_ih_early_init, | 398 | .early_init = iceland_ih_early_init, |
398 | .late_init = NULL, | 399 | .late_init = NULL, |
399 | .sw_init = iceland_ih_sw_init, | 400 | .sw_init = iceland_ih_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c index bc7997b649c0..b45f54714574 100644 --- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c | |||
@@ -3238,6 +3238,7 @@ static int kv_dpm_set_powergating_state(void *handle, | |||
3238 | } | 3238 | } |
3239 | 3239 | ||
3240 | const struct amd_ip_funcs kv_dpm_ip_funcs = { | 3240 | const struct amd_ip_funcs kv_dpm_ip_funcs = { |
3241 | .name = "kv_dpm", | ||
3241 | .early_init = kv_dpm_early_init, | 3242 | .early_init = kv_dpm_early_init, |
3242 | .late_init = kv_dpm_late_init, | 3243 | .late_init = kv_dpm_late_init, |
3243 | .sw_init = kv_dpm_sw_init, | 3244 | .sw_init = kv_dpm_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c index 27ca46d16bc4..6be2c0faa1bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | |||
@@ -1230,6 +1230,7 @@ static int sdma_v2_4_set_powergating_state(void *handle, | |||
1230 | } | 1230 | } |
1231 | 1231 | ||
1232 | const struct amd_ip_funcs sdma_v2_4_ip_funcs = { | 1232 | const struct amd_ip_funcs sdma_v2_4_ip_funcs = { |
1233 | .name = "sdma_v2_4", | ||
1233 | .early_init = sdma_v2_4_early_init, | 1234 | .early_init = sdma_v2_4_early_init, |
1234 | .late_init = NULL, | 1235 | .late_init = NULL, |
1235 | .sw_init = sdma_v2_4_sw_init, | 1236 | .sw_init = sdma_v2_4_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c index 278b1fe35385..b3dab09205af 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | |||
@@ -1542,6 +1542,7 @@ static int sdma_v3_0_set_powergating_state(void *handle, | |||
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | const struct amd_ip_funcs sdma_v3_0_ip_funcs = { | 1544 | const struct amd_ip_funcs sdma_v3_0_ip_funcs = { |
1545 | .name = "sdma_v3_0", | ||
1545 | .early_init = sdma_v3_0_early_init, | 1546 | .early_init = sdma_v3_0_early_init, |
1546 | .late_init = NULL, | 1547 | .late_init = NULL, |
1547 | .sw_init = sdma_v3_0_sw_init, | 1548 | .sw_init = sdma_v3_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c b/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c index 552f0f42a39f..b7615cefcac4 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c | |||
@@ -143,6 +143,7 @@ static int tonga_dpm_set_powergating_state(void *handle, | |||
143 | } | 143 | } |
144 | 144 | ||
145 | const struct amd_ip_funcs tonga_dpm_ip_funcs = { | 145 | const struct amd_ip_funcs tonga_dpm_ip_funcs = { |
146 | .name = "tonga_dpm", | ||
146 | .early_init = tonga_dpm_early_init, | 147 | .early_init = tonga_dpm_early_init, |
147 | .late_init = NULL, | 148 | .late_init = NULL, |
148 | .sw_init = tonga_dpm_sw_init, | 149 | .sw_init = tonga_dpm_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c index 55cdab849089..f036af937fbc 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c | |||
@@ -417,6 +417,7 @@ static int tonga_ih_set_powergating_state(void *handle, | |||
417 | } | 417 | } |
418 | 418 | ||
419 | const struct amd_ip_funcs tonga_ih_ip_funcs = { | 419 | const struct amd_ip_funcs tonga_ih_ip_funcs = { |
420 | .name = "tonga_ih", | ||
420 | .early_init = tonga_ih_early_init, | 421 | .early_init = tonga_ih_early_init, |
421 | .late_init = NULL, | 422 | .late_init = NULL, |
422 | .sw_init = tonga_ih_sw_init, | 423 | .sw_init = tonga_ih_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c index abd37a7eb4c6..46a397654837 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | |||
@@ -739,6 +739,7 @@ static int uvd_v4_2_set_powergating_state(void *handle, | |||
739 | } | 739 | } |
740 | 740 | ||
741 | const struct amd_ip_funcs uvd_v4_2_ip_funcs = { | 741 | const struct amd_ip_funcs uvd_v4_2_ip_funcs = { |
742 | .name = "uvd_v4_2", | ||
742 | .early_init = uvd_v4_2_early_init, | 743 | .early_init = uvd_v4_2_early_init, |
743 | .late_init = NULL, | 744 | .late_init = NULL, |
744 | .sw_init = uvd_v4_2_sw_init, | 745 | .sw_init = uvd_v4_2_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c index 1c1a0e2c7e0f..b96486c09250 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | |||
@@ -791,6 +791,7 @@ static int uvd_v5_0_set_powergating_state(void *handle, | |||
791 | } | 791 | } |
792 | 792 | ||
793 | const struct amd_ip_funcs uvd_v5_0_ip_funcs = { | 793 | const struct amd_ip_funcs uvd_v5_0_ip_funcs = { |
794 | .name = "uvd_v5_0", | ||
794 | .early_init = uvd_v5_0_early_init, | 795 | .early_init = uvd_v5_0_early_init, |
795 | .late_init = NULL, | 796 | .late_init = NULL, |
796 | .sw_init = uvd_v5_0_sw_init, | 797 | .sw_init = uvd_v5_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index d015cb0c9eb5..892bdac4bb21 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | |||
@@ -895,6 +895,7 @@ static int uvd_v6_0_set_powergating_state(void *handle, | |||
895 | } | 895 | } |
896 | 896 | ||
897 | const struct amd_ip_funcs uvd_v6_0_ip_funcs = { | 897 | const struct amd_ip_funcs uvd_v6_0_ip_funcs = { |
898 | .name = "uvd_v6_0", | ||
898 | .early_init = uvd_v6_0_early_init, | 899 | .early_init = uvd_v6_0_early_init, |
899 | .late_init = NULL, | 900 | .late_init = NULL, |
900 | .sw_init = uvd_v6_0_sw_init, | 901 | .sw_init = uvd_v6_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c index 95f6e579427d..45d92aceb485 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | |||
@@ -567,6 +567,7 @@ static int vce_v2_0_set_powergating_state(void *handle, | |||
567 | } | 567 | } |
568 | 568 | ||
569 | const struct amd_ip_funcs vce_v2_0_ip_funcs = { | 569 | const struct amd_ip_funcs vce_v2_0_ip_funcs = { |
570 | .name = "vce_v2_0", | ||
570 | .early_init = vce_v2_0_early_init, | 571 | .early_init = vce_v2_0_early_init, |
571 | .late_init = NULL, | 572 | .late_init = NULL, |
572 | .sw_init = vce_v2_0_sw_init, | 573 | .sw_init = vce_v2_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index 55b35daa1ac9..30e8099e94c5 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | |||
@@ -674,6 +674,7 @@ static int vce_v3_0_set_powergating_state(void *handle, | |||
674 | } | 674 | } |
675 | 675 | ||
676 | const struct amd_ip_funcs vce_v3_0_ip_funcs = { | 676 | const struct amd_ip_funcs vce_v3_0_ip_funcs = { |
677 | .name = "vce_v3_0", | ||
677 | .early_init = vce_v3_0_early_init, | 678 | .early_init = vce_v3_0_early_init, |
678 | .late_init = NULL, | 679 | .late_init = NULL, |
679 | .sw_init = vce_v3_0_sw_init, | 680 | .sw_init = vce_v3_0_sw_init, |
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index b7da094f8bf9..2c88d0b66cf3 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c | |||
@@ -1408,6 +1408,7 @@ static int vi_common_set_powergating_state(void *handle, | |||
1408 | } | 1408 | } |
1409 | 1409 | ||
1410 | const struct amd_ip_funcs vi_common_ip_funcs = { | 1410 | const struct amd_ip_funcs vi_common_ip_funcs = { |
1411 | .name = "vi_common", | ||
1411 | .early_init = vi_common_early_init, | 1412 | .early_init = vi_common_early_init, |
1412 | .late_init = NULL, | 1413 | .late_init = NULL, |
1413 | .sw_init = vi_common_sw_init, | 1414 | .sw_init = vi_common_sw_init, |
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index ea9ee4644139..6080951d539d 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h | |||
@@ -143,6 +143,8 @@ enum amd_pm_state_type { | |||
143 | }; | 143 | }; |
144 | 144 | ||
145 | struct amd_ip_funcs { | 145 | struct amd_ip_funcs { |
146 | /* Name of IP block */ | ||
147 | char *name; | ||
146 | /* sets up early driver state (pre sw_init), does not configure hw - Optional */ | 148 | /* sets up early driver state (pre sw_init), does not configure hw - Optional */ |
147 | int (*early_init)(void *handle); | 149 | int (*early_init)(void *handle); |
148 | /* sets up late driver/hw state (post hw_init) - Optional */ | 150 | /* sets up late driver/hw state (post hw_init) - Optional */ |
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c index aba587cfce81..9f2d4069a5f3 100644 --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c | |||
@@ -340,6 +340,7 @@ static int pp_resume(void *handle) | |||
340 | } | 340 | } |
341 | 341 | ||
342 | const struct amd_ip_funcs pp_ip_funcs = { | 342 | const struct amd_ip_funcs pp_ip_funcs = { |
343 | .name = "powerplay", | ||
343 | .early_init = pp_early_init, | 344 | .early_init = pp_early_init, |
344 | .late_init = NULL, | 345 | .late_init = NULL, |
345 | .sw_init = pp_sw_init, | 346 | .sw_init = pp_sw_init, |