Skip to contentSkip to conversation

drm/amd/powerplay: print the pptable provider

PATCH In review Yuan, Xiaojie 2 participants 2 messages Oct 30, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/powerplay: print the pptable provider

---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +2 -0
index 7e882999abad..0f7504ae2395 100644
@@ -368,6 +368,7 @@ int smu_v11_0_setup_pptable(struct smu_context *smu)
 	version_major = le16_to_cpu(hdr->header.header_version_major);
 	version_minor = le16_to_cpu(hdr->header.header_version_minor);
 	if (version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) {
+		pr_info("use driver provided pptable %d\n", smu->smu_table.boot_values.pp_table_id);
 		switch (version_minor) {
 		case 0:
 			ret = smu_v11_0_set_pptable_v2_0(smu, &table, &size);
@@ -384,6 +385,7 @@ int smu_v11_0_setup_pptable(struct smu_context *smu)
 			return ret;
 
 	} else {
+		pr_info("use vbios provided pptable\n");
 		index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
 						    powerplayinfo);
 
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by
#2 lore raw

also you can put this information in sysfs "amdgpu_pm_info" .

Best Regards,
Kevin

________________________________
From: Yuan, Xiaojie <[email protected]>
Sent: Wednesday, October 30, 2019 4:19 PM
To: [email protected] <[email protected]>
Cc: Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Feng, Kenneth <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH] drm/amd/powerplay: print the pptable provider

---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +2 -0
index 7e882999abad..0f7504ae2395 100644
@@ -368,6 +368,7 @@ int smu_v11_0_setup_pptable(struct smu_context *smu)
         version_major = le16_to_cpu(hdr->header.header_version_major);
         version_minor = le16_to_cpu(hdr->header.header_version_minor);
         if (version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) {
+               pr_info("use driver provided pptable %d\n", smu->smu_table.boot_values.pp_table_id);
                 switch (version_minor) {
                 case 0:
                         ret = smu_v11_0_set_pptable_v2_0(smu, &table, &size);
@@ -384,6 +385,7 @@ int smu_v11_0_setup_pptable(struct smu_context *smu)
                         return ret;
 
         } else {
+               pr_info("use vbios provided pptable\n");
                 index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1,
                                                     powerplayinfo);
 

--
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx