Release memory of table_context->driver_pptable and
table_context->ppt_information when smu hw fini.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
 {
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
        struct smu_context *smu = &adev->smu;
+       struct smu_table_context *table_context = &smu->smu_table;
        int ret = 0;
 
        if (adev->asic_type < CHIP_VEGA20)
                return -EINVAL;
 
+       if (!table_context->driver_pptable)
+               return -EINVAL;
+       kfree(table_context->driver_pptable);
+
        ret = smu_fini_fb_allocations(smu);
        if (ret)
                return ret;