Skip to contentSkip to conversation

drm/amdgpu/SRIOV: SRIOV VF doesn't support BACO

PATCH In review [email protected] 2 participants 2 messages Oct 28, 2019 1 message not in the archive

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

PATCH 1/1 drm/amdgpu/SRIOV: SRIOV VF doesn't support BACO

From: Jiange Zhao <[email protected]>

SRIOV VF doesn't support BACO.

Only PF with BACO capability can do it.

---
 drivers/gpu/drm/amd/amdgpu/nv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -1
index 22ab1955b923..a55a2e83fb19 100644
@@ -299,7 +299,7 @@ nv_asic_reset_method(struct amdgpu_device *adev)
 {
 	struct smu_context *smu = &adev->smu;
 
-	if (smu_baco_is_support(smu))
+	if (!amdgpu_sriov_vf(adev) && smu_baco_is_support(smu))
 		return AMD_RESET_METHOD_BACO;
 	else
 		return AMD_RESET_METHOD_MODE1;
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of [email protected] <[email protected]>
Sent: Monday, October 28, 2019 6:14 AM
To: [email protected] <[email protected]>
Cc: Deng, Emily <[email protected]>; Zhao, Jiange <[email protected]>; Nieto, David M <[email protected]>
Subject: [PATCH] drm/amdgpu/SRIOV: SRIOV VF doesn't support BACO

From: Jiange Zhao <[email protected]>

SRIOV VF doesn't support BACO.

Only PF with BACO capability can do it.

---
 drivers/gpu/drm/amd/amdgpu/nv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/nv.c +1 -1
index 22ab1955b923..a55a2e83fb19 100644
@@ -299,7 +299,7 @@ nv_asic_reset_method(struct amdgpu_device *adev)
 {
         struct smu_context *smu = &adev->smu;
 
-       if (smu_baco_is_support(smu))
+       if (!amdgpu_sriov_vf(adev) && smu_baco_is_support(smu))
                 return AMD_RESET_METHOD_BACO;
         else
                 return AMD_RESET_METHOD_MODE1;

--
2.20.1

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx