]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/powerplay: print the pptable provider
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Wed, 30 Oct 2019 03:38:53 +0000 (11:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:47 +0000 (16:27 -0500)
So we know where the tables came from.

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index ba4bcd76287b5b121108495d8a1b0a24ffea6046..e859bb1132ac9c3fd202bd9d8d373e97130cc2f8 100644 (file)
@@ -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);