Skip to contentSkip to conversation

drm/amd/sriov no need to config GECC for sriov

PATCH In review Jack Zhang 3 participants 4 messages Apr 14, 2021

Subsystems (2)
lore
Share & tools
lore

Jack Zhang

author
#0 lore raw

PATCH 1/1 drm/amd/sriov no need to config GECC for sriov

No need to config GECC feature here for sriov Leave the host drvier to do the configuration job.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
index 123ab3156f5a..7bdf93716fbf 100644
@@ -567,7 +567,7 @@ static int psp_boot_config_set(struct amdgpu_device *adev)
 	struct psp_context *psp = &adev->psp;
 	struct psp_gfx_cmd_resp *cmd = psp->cmd;
 
-	if (adev->asic_type != CHIP_SIENNA_CICHLID)
+	if (adev->asic_type != CHIP_SIENNA_CICHLID || amdgpu_sriov_vf(adev))
 		return 0;
 
 	memset(cmd, 0, sizeof(struct psp_gfx_cmd_resp));
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

Regards,
Hawking
-----Original Message-----
From: Jack Zhang <[email protected]>
Sent: Wednesday, April 14, 2021 17:04
To: [email protected]; Yang, Stanley <[email protected]>; Clements, John <[email protected]>; Zhang, Hawking <[email protected]>
Cc: Zhang, Jack (Jian) <[email protected]>
Subject: [PATCH] drm/amd/sriov no need to config GECC for sriov

No need to config GECC feature here for sriov Leave the host drvier to do the configuration job.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
index 123ab3156f5a..7bdf93716fbf 100644
@@ -567,7 +567,7 @@ static int psp_boot_config_set(struct amdgpu_device *adev)
 	struct psp_context *psp = &adev->psp;
 	struct psp_gfx_cmd_resp *cmd = psp->cmd;
 
-	if (adev->asic_type != CHIP_SIENNA_CICHLID)
+	if (adev->asic_type != CHIP_SIENNA_CICHLID || amdgpu_sriov_vf(adev))
 		return 0;
 
 	memset(cmd, 0, sizeof(struct psp_gfx_cmd_resp));

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

Reviewed-by Hawking Zhang on v1 1/1
#2 lore raw
In reply to Jack Zhang

[AMD Official Use Only - Internal Distribution Only]

Regards,
Stanley

Quoted 32 lines

-----Original Message-----
From: Jack Zhang <[email protected]>
Sent: Wednesday, April 14, 2021 5:04 PM
To: [email protected]; Yang, Stanley <[email protected]>; Clements, John <[email protected]>; Zhang, Hawking <[email protected]>
Cc: Zhang, Jack (Jian) <[email protected]>
Subject: [PATCH] drm/amd/sriov no need to config GECC for sriov

No need to config GECC feature here for sriov Leave the host drvier to do the configuration job.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
index 123ab3156f5a..7bdf93716fbf 100644
@@ -567,7 +567,7 @@ static int psp_boot_config_set(struct amdgpu_device
 *adev)
 	struct psp_context *psp = &adev->psp;
 	struct psp_gfx_cmd_resp *cmd = psp->cmd;
 
-	if (adev->asic_type != CHIP_SIENNA_CICHLID)
+	if (adev->asic_type != CHIP_SIENNA_CICHLID ||
 amdgpu_sriov_vf(adev))
 		return 0;
Quoted 3 lines

memset(cmd, 0, sizeof(struct psp_gfx_cmd_resp));
--
2.25.1

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

#3 lore raw
In reply to Jack Zhang

[AMD Official Use Only - Internal Distribution Only]

Stanley.Yang <[email protected]>

Regards,
Stanley

Quoted 32 lines

-----Original Message-----
From: Jack Zhang <[email protected]>
Sent: Wednesday, April 14, 2021 5:04 PM
To: [email protected]; Yang, Stanley <[email protected]>; Clements, John <[email protected]>; Zhang, Hawking <[email protected]>
Cc: Zhang, Jack (Jian) <[email protected]>
Subject: [PATCH] drm/amd/sriov no need to config GECC for sriov

No need to config GECC feature here for sriov Leave the host drvier to do the configuration job.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
index 123ab3156f5a..7bdf93716fbf 100644
@@ -567,7 +567,7 @@ static int psp_boot_config_set(struct amdgpu_device
 *adev)
 	struct psp_context *psp = &adev->psp;
 	struct psp_gfx_cmd_resp *cmd = psp->cmd;
 
-	if (adev->asic_type != CHIP_SIENNA_CICHLID)
+	if (adev->asic_type != CHIP_SIENNA_CICHLID ||
 amdgpu_sriov_vf(adev))
 		return 0;
Quoted 3 lines

memset(cmd, 0, sizeof(struct psp_gfx_cmd_resp));
--
2.25.1

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