drm/amdgpu/SRIOV: Only reset hw.status for target IP
Subsystems (2)
PATCH 1/1 drm/amdgpu/SRIOV: Only reset hw.status for target IP
From: Jiange Zhao <[email protected]>
In the old way, when doing IH hw_init, PSP, nv_common and GMC hw.status would be reset to false, even though their hw_init have been done. In the next step, fw_loading, PSP would do hw_init again.
In the new way, only reset hw.status to false for the target IP in the list. In this way, PSP will only do hw_init once.
--- 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
@@ -2352,11 +2352,11 @@ static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev)for (j =0 ; j < adev->num_ip_blocks; j++) { block = &adev->ip_blocks[j]; - block->status.hw = false;if (block->version->type != ip_order[i] || !block->status.valid)continue ; + block->status.hw = false; r = block->version->funcs->hw_init (adev);DRM_INFO ("RE-INIT-early: %s %s\n" , block->version->funcs->name, r?"failed" :"succeeded" );if (r)
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]
Ping.
@Deng, Emily<mailto:[email protected]> @Liu, Monk<mailto:[email protected]>, can you help review this patch?
Thanks!
Jiange
________________________________
From: Zhao, Jiange <[email protected]>
Sent: Tuesday, October 29, 2019 3:43 PM
To: [email protected] <[email protected]>
Cc: Deng, Emily <[email protected]>; Liu, Monk <[email protected]>; Chang, HaiJun <[email protected]>; Zhao, Jiange <[email protected]>
Subject: [PATCH] drm/amdgpu/SRIOV: Only reset hw.status for target IP
From: Jiange Zhao <[email protected]>
In the old way, when doing IH hw_init, PSP, nv_common and GMC hw.status would be reset to false, even though their hw_init have been done. In the next step, fw_loading, PSP would do hw_init again.
In the new way, only reset hw.status to false for the target IP in the list. In this way, PSP will only do hw_init once.
--- 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
@@ -2352,11 +2352,11 @@ static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev)for (j =0 ; j < adev->num_ip_blocks; j++) { block = &adev->ip_blocks[j]; - block->status.hw = false;if (block->version->type != ip_order[i] || !block->status.valid)continue ; + block->status.hw = false; r = block->version->funcs->hw_init (adev);DRM_INFO ("RE-INIT-early: %s %s\n" , block->version->funcs->name, r?"failed" :"succeeded" );if (r)
--
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): MN2PR12MB3056C5DBA2AD474DB9A005C7E1600-rweVpJHSKTp9X0xwABXpTwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Hi Jiange
You need to send the patch to amd-gfx for review if it intend to go drm-next branch
For gibraltar branch your patch is -1 by CI
_____________________________________
Monk Liu|GPU Virtualization Team |AMD
[sig-cloud-gpu]
From: Zhao, Jiange <[email protected]>
Sent: Wednesday, October 30, 2019 10:26 AM
To: Zhao, Jiange <[email protected]>; [email protected]
Cc: Deng, Emily <[email protected]>; Liu, Monk <[email protected]>; Chang, HaiJun <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/SRIOV: Only reset hw.status for target IP
Ping.
@Deng, Emily<mailto:[email protected]> @Liu, Monk<mailto:[email protected]>, can you help review this patch?
Thanks!
Jiange
________________________________
From: Zhao, Jiange <[email protected]<mailto:[email protected]>>
Sent: Tuesday, October 29, 2019 3:43 PM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Deng, Emily <[email protected]<mailto:[email protected]>>; Liu, Monk <[email protected]<mailto:[email protected]>>; Chang, HaiJun <[email protected]<mailto:[email protected]>>; Zhao, Jiange <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdgpu/SRIOV: Only reset hw.status for target IP
From: Jiange Zhao <[email protected]<mailto:[email protected]>>
In the old way, when doing IH hw_init, PSP, nv_common and GMC hw.status would be reset to false, even though their hw_init have been done. In the next step, fw_loading, PSP would do hw_init again.
In the new way, only reset hw.status to false for the target IP in the list. In this way, PSP will only do hw_init once.
--- 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
@@ -2352,11 +2352,11 @@ static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev)for (j =0 ; j < adev->num_ip_blocks; j++) { block = &adev->ip_blocks[j]; - block->status.hw = false;if (block->version->type != ip_order[i] || !block->status.valid)continue ; + block->status.hw = false; r = block->version->funcs->hw_init (adev);DRM_INFO ("RE-INIT-early: %s %s\n" , block->version->funcs->name, r?"failed" :"succeeded" );if (r)
--
2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx