mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu/sriov:don't load psp fw during gpu reset
At least for SRIOV we found reload PSP fw during gpu reset cause PSP hang. Signed-off-by: Monk Liu <Monk.Liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3224a12b90
commit
55981bd2e8
|
@ -255,15 +255,18 @@ static int psp_asd_load(struct psp_context *psp)
|
||||||
|
|
||||||
static int psp_hw_start(struct psp_context *psp)
|
static int psp_hw_start(struct psp_context *psp)
|
||||||
{
|
{
|
||||||
|
struct amdgpu_device *adev = psp->adev;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = psp_bootloader_load_sysdrv(psp);
|
if (!amdgpu_sriov_vf(adev) || !adev->in_sriov_reset) {
|
||||||
if (ret)
|
ret = psp_bootloader_load_sysdrv(psp);
|
||||||
return ret;
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
ret = psp_bootloader_load_sos(psp);
|
ret = psp_bootloader_load_sos(psp);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
ret = psp_ring_create(psp, PSP_RING_TYPE__KM);
|
ret = psp_ring_create(psp, PSP_RING_TYPE__KM);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in New Issue