drm/amdgpu/psp: Update waiting in psp mode1 reset.
Subsystems (2)
PATCH v2 1/3 drm/amdgpu/psp: Update waiting in psp mode1 reset.
No point in use mdelay unless running from interrupt context (which we are not) This is busy wait which will block the CPU for the entirety of the wait time. Also, reduce wait time to 500ms as it is done in refernce code because it might cause PSP FW timeout issues during XGMI hive reset.
--- drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -1
@@ -557,7 +557,7 @@ static int psp_v11_0_mode1_reset(struct psp_context *psp)/*send the mode 1 reset command*/ WREG32 (offset,GFX_CTRL_CMD_ID_MODE1_RST ); -mdelay (1000 ); +msleep (500 ); offset =SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_33);
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +1 -1
@@ -592,7 +592,7 @@ static int psp_v3_1_mode1_reset(struct psp_context *psp)/*send the mode 1 reset command*/ WREG32 (offset,GFX_CTRL_CMD_ID_MODE1_RST ); -mdelay (1000 ); +msleep (500 ); offset =SOC15_REG_OFFSET (MP0 ,0 , mmMP0_SMN_C2PMSG_33);
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1543601825-17711-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
PATCH v2 2/3 drm/amdgpu: Handle xgmi device removal.
XGMI hive has some resources allocted on device init which needs to be deallocated when the device is unregistered.
v2: Remove creation of dedicated wq for XGMI hive reset.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 20 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 1 + 3 files changed, 24 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -0
@@ -1864,6 +1864,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) {int i, r; +if (adev->gmc.xgmi.num_physical_nodes >1 ) +amdgpu_xgmi_remove_device (adev); +amdgpu_amdkfd_device_fini (adev);amdgpu_device_set_pg_state (adev,AMD_PG_STATE_UNGATE );
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +20 -0
@@ -135,3 +135,23 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)mutex_unlock (&xgmi_mutex);return ret; } + +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev) +{ +struct amdgpu_hive_info *hive; + +if ((adev->asic_type <CHIP_VEGA20 ) || (adev->flags &AMD_IS_APU )) +return ; + +mutex_lock (&xgmi_mutex); + + hive =amdgpu_get_xgmi_hive (adev); +if (!hive) + goto exit; + +if (!(hive->number_devices--)) +mutex_destroy (&hive->hive_lock); + +exit: +mutex_unlock (&xgmi_mutex); +}
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1 -0
@@ -35,5 +35,6 @@ struct amdgpu_hive_info {struct amdgpu_hive_info *amdgpu_get_xgmi_hive (struct amdgpu_device *adev);int amdgpu_xgmi_update_topology (struct amdgpu_hive_info *hive,struct amdgpu_device *adev);int amdgpu_xgmi_add_device (struct amdgpu_device *adev); +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev);#endif
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1543601825-17711-2-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Re: [PATCH v2 2/3] drm/amdgpu: Handle xgmi device removal.
Quoted 32 lines · Andrey Grodzovsky
XGMI hive has some resources allocted on device init which needs to be deallocated when the device is unregistered.
v2: Remove creation of dedicated wq for XGMI hive reset.
Signed-off-by Andrey Grodzovsky <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 20 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 1 + 3 files changed, 24 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-0@@ -1864,6 +1864,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) {int i, r; +if (adev->gmc.xgmi.num_physical_nodes >1 ) +amdgpu_xgmi_remove_device (adev); +amdgpu_amdkfd_device_fini (adev);amdgpu_device_set_pg_state (adev,AMD_PG_STATE_UNGATE );drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c int amdgpu_xgmi_add_device(struct amdgpu_device *adev) · line 144
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +7
-0@@ -135,3 +135,23 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)mutex_unlock (&xgmi_mutex);return ret; } + +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev) +{ +struct amdgpu_hive_info *hive; + +if ((adev->asic_type <CHIP_VEGA20 ) || (adev->flags &AMD_IS_APU )) +return ;
It would be nice to have something better here to check against. This seems kind of fragile. Can we check based on some xgmi related structure?
Alex
Quoted 27 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +13
-0+ +mutex_lock (&xgmi_mutex); + + hive =amdgpu_get_xgmi_hive (adev); +if (!hive) + goto exit; + +if (!(hive->number_devices--)) +mutex_destroy (&hive->hive_lock); + +exit: +mutex_unlock (&xgmi_mutex); +}drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1
-1@@ -35,5 +35,6 @@ struct amdgpu_hive_info {struct amdgpu_hive_info *amdgpu_get_xgmi_hive (struct amdgpu_device *adev);int amdgpu_xgmi_update_topology (struct amdgpu_hive_info *hive,struct amdgpu_device *adev);int amdgpu_xgmi_add_device (struct amdgpu_device *adev); +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev);#endif --2.7.4
Quoted 4 lines
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): CADnq5_MVWqrEMpLHzoO-Eh_YtPBomHnc-k-jfiaF5fg8ziq2ZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH v2 2/3] drm/amdgpu: Handle xgmi device removal.
Quoted 47 lines · Alex Deucher
Quoted 31 lines · Andrey Grodzovsky
XGMI hive has some resources allocted on device init which needs to be deallocated when the device is unregistered.
v2: Remove creation of dedicated wq for XGMI hive reset.
Signed-off-by Andrey Grodzovsky <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 20 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 1 + 3 files changed, 24 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-0@@ -1864,6 +1864,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) {int i, r; +if (adev->gmc.xgmi.num_physical_nodes >1 ) +amdgpu_xgmi_remove_device (adev); +amdgpu_amdkfd_device_fini (adev);amdgpu_device_set_pg_state (adev,AMD_PG_STATE_UNGATE );drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c int amdgpu_xgmi_add_device(struct amdgpu_device *adev) · line 144
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +7
-0@@ -135,3 +135,23 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)mutex_unlock (&xgmi_mutex);return ret; } + +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev) +{ +struct amdgpu_hive_info *hive; + +if ((adev->asic_type <CHIP_VEGA20 ) || (adev->flags &AMD_IS_APU )) +return ;It would be nice to have something better here to check against. This seems kind of fragile. Can we check based on some xgmi related structure?
Quoted 1 line
Alex
This check is same as in amdgpu_xgmi_add_device, i guess we could look if adev->gmc.xgmi.head is empty or not since it's only gets added to hive->device_list if amdgpu_xgmi_add_device was called. Sounds ok ?
Andrey
Quoted 24 lines
Quoted 24 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +13
-0+ +mutex_lock (&xgmi_mutex); + + hive =amdgpu_get_xgmi_hive (adev); +if (!hive) + goto exit; + +if (!(hive->number_devices--)) +mutex_destroy (&hive->hive_lock); + +exit: +mutex_unlock (&xgmi_mutex); +}drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1
-0@@ -35,5 +35,6 @@ struct amdgpu_hive_info {struct amdgpu_hive_info *amdgpu_get_xgmi_hive (struct amdgpu_device *adev);int amdgpu_xgmi_update_topology (struct amdgpu_hive_info *hive,struct amdgpu_device *adev);int amdgpu_xgmi_add_device (struct amdgpu_device *adev); +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev);
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +0
-1#endif --2.7.4
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 8fe853c6-b05b-a6b7-2a74-32d4b7ec836c-5C7GfCeVMHo@public.gmane.org
Re: [PATCH v2 2/3] drm/amdgpu: Handle xgmi device removal.
Quoted 51 lines · Andrey
Quoted 47 lines · Alex Deucher
Quoted 31 lines · Andrey Grodzovsky
XGMI hive has some resources allocted on device init which needs to be deallocated when the device is unregistered.
v2: Remove creation of dedicated wq for XGMI hive reset.
Signed-off-by Andrey Grodzovsky <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 20 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 1 + 3 files changed, 24 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-0@@ -1864,6 +1864,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) {int i, r; +if (adev->gmc.xgmi.num_physical_nodes >1 ) +amdgpu_xgmi_remove_device (adev); +amdgpu_amdkfd_device_fini (adev);amdgpu_device_set_pg_state (adev,AMD_PG_STATE_UNGATE );drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c int amdgpu_xgmi_add_device(struct amdgpu_device *adev) · line 144
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +7
-0@@ -135,3 +135,23 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)mutex_unlock (&xgmi_mutex);return ret; } + +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev) +{ +struct amdgpu_hive_info *hive; + +if ((adev->asic_type <CHIP_VEGA20 ) || (adev->flags &AMD_IS_APU )) +return ;It would be nice to have something better here to check against. This seems kind of fragile. Can we check based on some xgmi related structure?
Quoted 6 lines
Quoted 1 line
Alex
This check is same as in
amdgpu_xgmi_add_device, i guess we could look ifadev->gmc.xgmi.headis empty or not since it's only gets added tohive->device_listifamdgpu_xgmi_add_devicewas called. Sounds ok ?
Sounds good. We should probably fix up the other case as well at some point.
Thanks!
Alex
Quoted 27 lines
Andrey
Quoted 24 lines
Quoted 24 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +13
-0+ +mutex_lock (&xgmi_mutex); + + hive =amdgpu_get_xgmi_hive (adev); +if (!hive) + goto exit; + +if (!(hive->number_devices--)) +mutex_destroy (&hive->hive_lock); + +exit: +mutex_unlock (&xgmi_mutex); +}drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1
-0@@ -35,5 +35,6 @@ struct amdgpu_hive_info {struct amdgpu_hive_info *amdgpu_get_xgmi_hive (struct amdgpu_device *adev);int amdgpu_xgmi_update_topology (struct amdgpu_hive_info *hive,struct amdgpu_device *adev);int amdgpu_xgmi_add_device (struct amdgpu_device *adev); +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev);
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +0
-1#endif --2.7.4
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): CADnq5_OxMO0C=XPshtLGB+dypuk_ZwSRokOg-VQ08que_UtrLA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH v2 2/3] drm/amdgpu: Handle xgmi device removal.
Quoted 57 lines · Alex Deucher
Quoted 50 lines · Andrey
Quoted 47 lines · Alex Deucher
Quoted 31 lines · Andrey Grodzovsky
XGMI hive has some resources allocted on device init which needs to be deallocated when the device is unregistered.
v2: Remove creation of dedicated wq for XGMI hive reset.
Signed-off-by Andrey Grodzovsky <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 20 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 1 + 3 files changed, 24 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-0@@ -1864,6 +1864,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) {int i, r; +if (adev->gmc.xgmi.num_physical_nodes >1 ) +amdgpu_xgmi_remove_device (adev); +amdgpu_amdkfd_device_fini (adev);amdgpu_device_set_pg_state (adev,AMD_PG_STATE_UNGATE );drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c int amdgpu_xgmi_add_device(struct amdgpu_device *adev) · line 144
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +7
-0@@ -135,3 +135,23 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)mutex_unlock (&xgmi_mutex);return ret; } + +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev) +{ +struct amdgpu_hive_info *hive; + +if ((adev->asic_type <CHIP_VEGA20 ) || (adev->flags &AMD_IS_APU )) +return ;It would be nice to have something better here to check against. This seems kind of fragile. Can we check based on some xgmi related structure?
Quoted 5 lines
Quoted 1 line
Alex
This check is same as in
amdgpu_xgmi_add_device, i guess we could look ifadev->gmc.xgmi.headis empty or not since it's only gets added tohive->device_listifamdgpu_xgmi_add_devicewas called. Sounds ok ?
Quoted 5 lines
Sounds good. We should probably fix up the other case as well at some point.
Thanks!
Alex
The other case is in amdgpu_xgmi_add_device - at the beginning - just avoids XGMI code path for non VEGA20 dGPUs - how can we avoid this check ?
Andrey
Quoted 26 lines
Quoted 26 lines
Andrey
Quoted 23 lines
Quoted 23 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +13
-0+ +mutex_lock (&xgmi_mutex); + + hive =amdgpu_get_xgmi_hive (adev); +if (!hive) + goto exit; + +if (!(hive->number_devices--)) +mutex_destroy (&hive->hive_lock); + +exit: +mutex_unlock (&xgmi_mutex); +}drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1
-0@@ -35,5 +35,6 @@ struct amdgpu_hive_info {struct amdgpu_hive_info *amdgpu_get_xgmi_hive (struct amdgpu_device *adev);int amdgpu_xgmi_update_topology (struct amdgpu_hive_info *hive,struct amdgpu_device *adev);int amdgpu_xgmi_add_device (struct amdgpu_device *adev); +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev);
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +0
-1#endif --2.7.4
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): b328c89f-9743-258b-c2a2-27f0f38b1610-5C7GfCeVMHo@public.gmane.org
Re: [PATCH v2 2/3] drm/amdgpu: Handle xgmi device removal.
Quoted 60 lines · Andrey
Quoted 57 lines · Alex Deucher
Quoted 55 lines · Andrey
Quoted 47 lines · Alex Deucher
Quoted 31 lines · Andrey Grodzovsky
XGMI hive has some resources allocted on device init which needs to be deallocated when the device is unregistered.
v2: Remove creation of dedicated wq for XGMI hive reset.
Signed-off-by Andrey Grodzovsky <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 20 ++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h | 1 + 3 files changed, 24 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-0@@ -1864,6 +1864,9 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev) {int i, r; +if (adev->gmc.xgmi.num_physical_nodes >1 ) +amdgpu_xgmi_remove_device (adev); +amdgpu_amdkfd_device_fini (adev);amdgpu_device_set_pg_state (adev,AMD_PG_STATE_UNGATE );drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c int amdgpu_xgmi_add_device(struct amdgpu_device *adev) · line 144
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +7
-0@@ -135,3 +135,23 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev)mutex_unlock (&xgmi_mutex);return ret; } + +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev) +{ +struct amdgpu_hive_info *hive; + +if ((adev->asic_type <CHIP_VEGA20 ) || (adev->flags &AMD_IS_APU )) +return ;It would be nice to have something better here to check against. This seems kind of fragile. Can we check based on some xgmi related structure?
Quoted 1 line
Alex
This check is same as in
amdgpu_xgmi_add_device, i guess we could look ifadev->gmc.xgmi.headis empty or not since it's only gets added tohive->device_listifamdgpu_xgmi_add_devicewas called. Sounds ok ?
Quoted 9 lines
Quoted 5 lines
Sounds good. We should probably fix up the other case as well at some point.
Thanks!
Alex
The other case is in
amdgpu_xgmi_add_device- at the beginning - just avoids XGMI code path for non VEGA20 dGPUs - how can we avoid this check ?
Maybe something like adev->gmc.xgmi.supported and set it in soc15_set_ip_blocks() for vega20. We should do something similar for ras. That way for new asics we only need to set the variable rather than updating asic checks scattered around the code.
Alex
Quoted 29 lines
Andrey
Quoted 26 lines
Quoted 26 lines
Andrey
Quoted 23 lines
Quoted 23 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +13
-0+ +mutex_lock (&xgmi_mutex); + + hive =amdgpu_get_xgmi_hive (adev); +if (!hive) + goto exit; + +if (!(hive->number_devices--)) +mutex_destroy (&hive->hive_lock); + +exit: +mutex_unlock (&xgmi_mutex); +}drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +1
-0@@ -35,5 +35,6 @@ struct amdgpu_hive_info {struct amdgpu_hive_info *amdgpu_get_xgmi_hive (struct amdgpu_device *adev);int amdgpu_xgmi_update_topology (struct amdgpu_hive_info *hive,struct amdgpu_device *adev);int amdgpu_xgmi_add_device (struct amdgpu_device *adev); +void amdgpu_xgmi_remove_device (struct amdgpu_device *adev);
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h +0
-1#endif --2.7.4
_______________________________________________
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
PATCH v2 3/3 drm/amdgpu: Implement concurrent asic reset for XGMI.
In reply to a message not in the archiveUse per hive wq to concurrently send reset commands to all nodes in the hive.
v2:
Switch to system_highpri_wq after dropping dedicated queue. Fix non XGMI code path KASAN error.
Stop the hive reset for each node loop if there is a reset failure on any of the nodes.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 44 ++++++++++++++++++++++++++---- 2 files changed, 41 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +2 -0
@@ -910,7 +910,9 @@ struct amdgpu_device {bool in_gpu_reset;struct mutex lock_reset;struct amdgpu_doorbell_index doorbell_index; +int asic_reset_res; +struct work_struct xgmi_reset_work; };static inline struct amdgpu_device *amdgpu_ttm_adev (struct ttm_bo_device *bdev)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +39 -5
69 lines not on this page · raw message
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx