Skip to content

Commit 51258ac

Browse files
lema1-devalexdeucher
authored andcommitted
drm/amdgpu: move debug options init prior to amdgpu device init
To bring debug options into effect in early initialization phase Signed-off-by: Le Ma <le.ma@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d20e1ae commit 51258ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,6 +2234,8 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
22342234

22352235
pci_set_drvdata(pdev, ddev);
22362236

2237+
amdgpu_init_debug_options(adev);
2238+
22372239
ret = amdgpu_driver_load_kms(adev, flags);
22382240
if (ret)
22392241
goto err_pci;
@@ -2314,8 +2316,6 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
23142316
amdgpu_get_secondary_funcs(adev);
23152317
}
23162318

2317-
amdgpu_init_debug_options(adev);
2318-
23192319
return 0;
23202320

23212321
err_pci:

0 commit comments

Comments
 (0)