Commit 51258acd authored by Le Ma's avatar Le Ma Committed by Alex Deucher

drm/amdgpu: move debug options init prior to amdgpu device init

To bring debug options into effect in early initialization phase
Signed-off-by: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d20e1aec
...@@ -2234,6 +2234,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev, ...@@ -2234,6 +2234,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, ddev); pci_set_drvdata(pdev, ddev);
amdgpu_init_debug_options(adev);
ret = amdgpu_driver_load_kms(adev, flags); ret = amdgpu_driver_load_kms(adev, flags);
if (ret) if (ret)
goto err_pci; goto err_pci;
...@@ -2314,8 +2316,6 @@ static int amdgpu_pci_probe(struct pci_dev *pdev, ...@@ -2314,8 +2316,6 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
amdgpu_get_secondary_funcs(adev); amdgpu_get_secondary_funcs(adev);
} }
amdgpu_init_debug_options(adev);
return 0; return 0;
err_pci: err_pci:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment