Re: [PATCH] drm/amd/powerplay: check whether SMU IP is enabled before access

2020-05-26 Thread Wang, Kevin(Yang)
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

RE: [PATCH] drm/amd/powerplay: check whether SMU IP is enabled before access

2020-05-25 Thread Quan, Evan
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

Re: [PATCH] drm/amd/powerplay: check whether SMU IP is enabled before access

2020-05-25 Thread Zhao, Yong
@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

[PATCH] drm/amd/powerplay: check whether SMU IP is enabled before access

2020-05-24 Thread Evan Quan
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 +-