[PATCH] drm/amdgpu: Fix firmware UCODE_ID_STORAGE issue

Yu, Xiangliang Xiangliang.Yu at amd.com
Tue Apr 11 05:36:32 UTC 2017


Reviewed-by: Xiangliang Yu <Xiangliang.Yu at amd.com>


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Trigger Huang
> Sent: Monday, April 10, 2017 2:46 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Huang, Ray <Ray.Huang at amd.com>; Huang, Trigger
> <Trigger.Huang at amd.com>
> Subject: [PATCH] drm/amdgpu: Fix firmware UCODE_ID_STORAGE issue
> 
> In Tonga's virtualization environment, for firmware UCODE_ID_STORAGE,
> there is no actual firmware data, but we still need alloc a BO and tell the BO's
> mc address to HW, or world switch will hang on VFs.
> 
> Signed-off-by: Trigger Huang <trigger.huang at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> index a1891c9..b7307b0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
> @@ -383,7 +383,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device
> *adev)
>  	 * ucode info here
>  	 */
>  	if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP)
> -		adev->firmware.max_ucodes =
> AMDGPU_UCODE_ID_MAXIMUM - 4;
> +		adev->firmware.max_ucodes =
> AMDGPU_UCODE_ID_MAXIMUM - 3;
>  	else
>  		adev->firmware.max_ucodes =
> AMDGPU_UCODE_ID_MAXIMUM;
> 
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list