Skip to contentSkip to conversation

drm/amdgpu: Move read of snoop register from guest to host

PATCH New Masha Grinman 1 participant 1 message Apr 3, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Move read of snoop register from guest to host

From: Masha Grinman <[email protected]>

Change-Id: I1d5773ffa6187a961994b3403d4cde5b1641369f

---
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c +3 -0
index a54e7b929295..6dc3896fd61f 100644
@@ -221,6 +221,9 @@ static void mmhub_v1_8_init_snoop_override_regs(struct amdgpu_device *adev)
 	uint32_t distance = regDAGB1_WRCLI_GPU_SNOOP_OVERRIDE -
 			    regDAGB0_WRCLI_GPU_SNOOP_OVERRIDE;
 
+	if (amdgpu_sriov_vf(adev))
+                return;
+
 	inst_mask = adev->aid_mask;
 	for_each_inst(i, inst_mask) {
 		for (j = 0; j < 5; j++) { /* DAGB instances */
Signature · 1 line
2.34.1