drm/amd/powerplay: initlialize smu->is_apu is false by default
authorKevin Wang <kevin1.wang@amd.com>
Fri, 27 Sep 2019 06:52:10 +0000 (14:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:04 +0000 (09:11 -0500)
the member of is_apu in smu_context need to initlialize by default.

set default value is false (dGPU)

for patch:
drm/amd/powerplay: bypass dpm_context null pointer check guard
for some smu series

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 7b995b0834ebd4f9c43639ab7bf78d2f0674dc0a..6a64f765fcd42ee60bdde875adeab680a4da37f8 100644 (file)
@@ -712,6 +712,7 @@ static int smu_early_init(void *handle)
 
        smu->adev = adev;
        smu->pm_enabled = !!amdgpu_dpm;
+       smu->is_apu = false;
        mutex_init(&smu->mutex);
 
        return smu_set_funcs(adev);