OSDN Git Service

drm/amd/powerplay: fix the issue of checking on message mapping
authorHuang Rui <ray.huang@amd.com>
Mon, 25 Feb 2019 11:43:00 +0000 (19:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:02 +0000 (15:04 -0500)
commit04cfc0c80d8a9a727929b589954757823c22e445
tree654cbb7dff8a1effdbcd0ce48c0eadf32498a292
parentd4631cba9ebe6743df123e7c99372dfb2f840d1f
drm/amd/powerplay: fix the issue of checking on message mapping

The vega20_message_map[index] scope should be in PPSMC_Message_Count not in
SMU_MSG_MAX_COUNT.

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