[PATCH] drm/amdgpu: Fix regression crash on boot.
Christian König
ckoenig.leichtzumerken at gmail.com
Mon Sep 16 19:36:33 UTC 2019
Am 16.09.19 um 21:35 schrieb Andrey Grodzovsky:
> Regression on Vega20 caused by 0d9a80213829e092c1a85166b660ebf2c7af573e.
> Not setting BO ptr to null will confuse amdgpu_bo_create_reserved.
>
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 51d64a6..1dfb1be 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -1387,7 +1387,7 @@ int amdgpu_ras_reserve_bad_pages(struct amdgpu_device *adev)
> struct amdgpu_ras *con = amdgpu_ras_get_context(adev);
> struct ras_err_handler_data *data;
> uint64_t bp;
> - struct amdgpu_bo *bo;
> + struct amdgpu_bo *bo = NULL;
> int i, ret = 0;
>
> if (!con || !con->eh_data)
More information about the amd-gfx
mailing list