drm/amdgpu/bu: Add use_mtype_cc_wa module param
authorGraham Sider <Graham.Sider@amd.com>
Mon, 6 Feb 2023 19:04:42 +0000 (14:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:59:03 +0000 (09:59 -0400)
commit895797d9193b38e759bc01268a8e3887e521f682
tree73797e8e8d06b8cbe881acb0ecd593d5ff85a805
parent2e8cc5d317d12f7fb4f66361a3ce5427f0abe2cd
drm/amdgpu/bu: Add use_mtype_cc_wa module param

By default, set use_mtype_cc_wa to 1 to set PTE coherence flag MTYPE_CC
instead of MTYPE_RW by default. This is required for the time being to
mitigate a bug causing XCCs to hit stale data due to TCC marking fully
dirty lines as exclusive.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c