Skip to contentSkip to conversation

drm/amdgpu/soc21: don't remap HDP registers for SR-IOV

PATCH In review Alex Deucher 3 participants 3 messages Sep 6, 2023 – Sep 8, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/soc21: don't remap HDP registers for SR-IOV

This matches the behavior for soc15 and nv.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +1 -1
index ef297b41623b..2ecc8c9a078b 100644
@@ -778,7 +778,7 @@ static int soc21_common_hw_init(void *handle)
 	 * for the purpose of expose those registers
 	 * to process space
 	 */
-	if (adev->nbio.funcs->remap_hdp_registers)
+	if (adev->nbio.funcs->remap_hdp_registers && !amdgpu_sriov_vf(adev))
 		adev->nbio.funcs->remap_hdp_registers(adev);
 	/* enable the doorbell aperture */
 	adev->nbio.funcs->enable_doorbell_aperture(adev, true);
Signature · 1 line
2.41.0
Acked-by on v1 1/1
#1 lore raw

Am 06.09.23 um 17:36 schrieb Alex Deucher:

Quoted 3 lines

This matches the behavior for soc15 and nv.

Quoted 17 lines
---
  drivers/gpu/drm/amd/amdgpu/soc21.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +1 -1
index ef297b41623b..2ecc8c9a078b 100644
@@ -778,7 +778,7 @@ static int soc21_common_hw_init(void *handle)
  	 * for the purpose of expose those registers
  	 * to process space
  	 */
-	if (adev->nbio.funcs->remap_hdp_registers)
+	if (adev->nbio.funcs->remap_hdp_registers && !amdgpu_sriov_vf(adev))
  		adev->nbio.funcs->remap_hdp_registers(adev);
  	/* enable the doorbell aperture */
  	adev->nbio.funcs->enable_doorbell_aperture(adev, true);

A message that is not in the archive (sent off-list or not yet received): DS0PR12MB8813BE64575EA3D952425B6AF4EDA@DS0PR12MB8813.namprd12.prod.outlook.com

Reviewed-by Timmy Tsai
#3 lore raw

[AMD Official Use Only - General]

________________________________
From: amd-gfx <[email protected]> on behalf of Alex Deucher <[email protected]>
Sent: Wednesday, September 6, 2023 11:36 AM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/soc21: don't remap HDP registers for SR-IOV

This matches the behavior for soc15 and nv.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +1 -1
index ef297b41623b..2ecc8c9a078b 100644
@@ -778,7 +778,7 @@ static int soc21_common_hw_init(void *handle)
          * for the purpose of expose those registers
          * to process space
          */
-       if (adev->nbio.funcs->remap_hdp_registers)
+       if (adev->nbio.funcs->remap_hdp_registers && !amdgpu_sriov_vf(adev))
                 adev->nbio.funcs->remap_hdp_registers(adev);
         /* enable the doorbell aperture */
         adev->nbio.funcs->enable_doorbell_aperture(adev, true);

--
2.41.0