drm/amdgpu: Make UTCL2 snoop CPU caches
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Tue, 20 Dec 2022 20:37:57 +0000 (15:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:50:59 +0000 (09:50 -0400)
commit7a7aaab021a6772b29c81c22db9f4d2d8cd66ecd
treec242ed5a1d5a7d130e37bb0b4d105cba3906731b
parent85b45b60722f506322393320bb6cc195378f2e4f
drm/amdgpu: Make UTCL2 snoop CPU caches

On AMD APP APUs, to make UTCL2 snoop CPU caches, its not sufficient to
rely on xgmi connected flag so add the logic to use is_app_apu to
program the PDE_REQUEST_PHYSICAL bit correctly for gfxhub and mmhub
both.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c