From: Zhao, Yong
Sent: Tuesday, May 26, 2020 2:15 AM
To: Quan, Evan ; amd-gfx@lists.freedesktop.org
Cc: Deucher, Alexander
Subject: Re: [PATCH] drm/amd/powerplay: check whether SMU IP is enabled before
access
[AMD Official Use Only - Internal Distribution Only]
Have an improvement s
md.com>>; Zhao, Yong
mailto:yong.z...@amd.com>>; Quan, Evan
mailto:evan.q...@amd.com>>
Subject: [PATCH] drm/amd/powerplay: check whether SMU IP is enabled before
access
Since on early phase of bringup, the SMU IP may be not enabled or
supported. Withou
@lists.freedesktop.org
Cc: Deucher, Alexander ; Zhao, Yong
; Quan, Evan
Subject: [PATCH] drm/amd/powerplay: check whether SMU IP is enabled before
access
Since on early phase of bringup, the SMU IP may be not enabled or
supported. Without this, we may hit null pointer dereference on
accessing smu->a
Since on early phase of bringup, the SMU IP may be not enabled or
supported. Without this, we may hit null pointer dereference on
accessing smu->adev.
Change-Id: I644175e926cd4fef8259f89002d6f8eda04fe42c
Signed-off-by: Evan Quan
---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 266 +-