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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>

Reviewed-by: Christian König <christian.koenig@xxxxxxx> 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:




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux