Skip to contentSkip to conversation

drm/amd/amdgpu/sriov disable all ip hw status by default

PATCH In review Jack Zhang 2 participants 2 messages Apr 27, 2021

Subsystems (2)
lore
Share & tools
lore

Jack Zhang

author
#0 lore raw

PATCH 1/1 drm/amd/amdgpu/sriov disable all ip hw status by default

Disable all ip's hw status to false before any hw_init. Only set it to true until its hw_init is executed.

The old 5.9 branch has this change but somehow the 5.11 kernrel does not have this fix.

Without this change, sriov tdr have gfx IB test fail.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
index eef54b265ffd..5cb171c2273c 100644
@@ -2843,7 +2843,7 @@ static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev)
 		AMD_IP_BLOCK_TYPE_IH,
 	};
 
-	for (i = 0; i < ARRAY_SIZE(ip_order); i++) {
+	for (i = 0; i < adev->num_ip_blocks; i++) {
 		int j;
 		struct amdgpu_ip_block *block;
 
Signature · 6 lines
2.25.1

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

[AMD Official Use Only - Internal Distribution Only]

Quoted 37 lines

-----Original Message-----
From: Jack Zhang <[email protected]>
Sent: Tuesday, April 27, 2021 6:03 PM
To: [email protected]; Liu, Monk <[email protected]>; Deng, Emily <[email protected]>; Chen, JingWen <[email protected]>
Cc: Zhang, Jack (Jian) <[email protected]>
Subject: [PATCH] drm/amd/amdgpu/sriov disable all ip hw status by default

Disable all ip's hw status to false before any hw_init. Only set it to true until its hw_init is executed.

The old 5.9 branch has this change but somehow the 5.11 kernrel does not have this fix.

Without this change, sriov tdr have gfx IB test fail.

---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -2
index eef54b265ffd..5cb171c2273c 100644
@@ -2843,7 +2843,7 @@ static int
 amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev)
 AMD_IP_BLOCK_TYPE_IH,
 };
 
-for (i = 0; i < ARRAY_SIZE(ip_order); i++) {
+for (i = 0; i < adev->num_ip_blocks; i++) {
 int j;
 struct amdgpu_ip_block *block;
 
--
Quoted 1 line

2.25.1

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