drm/amd/pm: invalidate hdp before CPU access the memory written by GPU
authorEvan Quan <evan.quan@amd.com>
Fri, 27 Nov 2020 02:57:22 +0000 (10:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:01:24 +0000 (23:01 -0500)
commit0339258bd9dc811a8ac232c3ed9131ebd9972404
tree2a0e7cd65643aa757a327d90378bf3df1502f762
parentb7a1f38256da93086fc0c30c986de4b729899148
drm/amd/pm: invalidate hdp before CPU access the memory written by GPU

To eliminate the possible influence by outdated HDP read cache.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c