drm/amd: Add HDP flush during jpeg init
authorTimmy Tsai <timmtsai@amd.com>
Thu, 31 Aug 2023 17:31:31 +0000 (13:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 16:24:28 +0000 (12:24 -0400)
commit2fa73a101cd812bceb9d865fee296fc1057541a2
tree190f336b78afa783e03c54795b2b84b4424ab7b2
parentbb0f84293e61f052f96f8bec75844b43ea2e3822
drm/amd: Add HDP flush during jpeg init

During jpeg init, CPU writes to frame buffer which can be cached by HDP,
occasionally causing invalid header to be sent to MMSCH.  Perform HDP flush
after writing to frame buffer before continuing with jpeg init sequence.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timmy Tsai <timmtsai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c