]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amd/powerplay: add placeholder of smu_initialize_pptable
authorHuang Rui <ray.huang@amd.com>
Tue, 4 Dec 2018 09:27:10 +0000 (17:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:54 +0000 (15:03 -0500)
This patch adds placeholder of smu_initialize_pptable for smu.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 145435f05bc28c9ae8ddcd422172adc91fbc7752..d6ecd6337ba4c7dafe013186bb9747504cd72c10 100644 (file)
@@ -59,6 +59,25 @@ static int smu_early_init(void *handle)
        return 0;
 }
 
+static int smu_initialize_pptable(struct smu_context *smu)
+{
+       /* TODO */
+       return 0;
+}
+
+static int smu_smc_table_sw_init(struct smu_context *smu)
+{
+       int ret;
+
+       ret = smu_initialize_pptable(smu);
+       if (ret) {
+               pr_err("Failed to init smu_initialize_pptable!\n");
+               return ret;
+       }
+
+       return 0;
+}
+
 static int smu_sw_init(void *handle)
 {
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
@@ -74,6 +93,12 @@ static int smu_sw_init(void *handle)
                return ret;
        }
 
+       ret = smu_smc_table_sw_init(smu);
+       if (ret) {
+               pr_err("Failed to sw init smc table!\n");
+               return ret;
+       }
+
        return 0;
 }