[PATCH 3/3] drm/amdgpu: move debug options init prior to amdgpu device init

Christian König ckoenig.leichtzumerken at gmail.com
Wed Jan 10 08:49:57 UTC 2024


Am 09.01.24 um 11:13 schrieb Le Ma:
> To bring debug options into effect in early initialization phase
>
> Signed-off-by: Le Ma <le.ma at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com> for this one and 
#1 in the series.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> index 3e0e39a1b5ba..b67ffc3a9a3f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> @@ -2234,6 +2234,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
>   
>   	pci_set_drvdata(pdev, ddev);
>   
> +	amdgpu_init_debug_options(adev);
> +
>   	ret = amdgpu_driver_load_kms(adev, flags);
>   	if (ret)
>   		goto err_pci;
> @@ -2314,8 +2316,6 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
>   			amdgpu_get_secondary_funcs(adev);
>   	}
>   
> -	amdgpu_init_debug_options(adev);
> -
>   	return 0;
>   
>   err_pci:



More information about the amd-gfx mailing list