mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
drm/nouveau: create pci device once
HW isn't touched anymore (aside from detection) until the first nvif_device has been allocated, so we no longer need a separate probe-only step before kicking efifb (etc) off the HW. Signed-off-by: Ben Skeggs <bskeggs@nvidia.com> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-5-bskeggs@nvidia.com
This commit is contained in:
parent
448359c1ce
commit
c0bfe34330
|
|
@ -839,23 +839,16 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
|
||||||
/* We need to check that the chipset is supported before booting
|
/* We need to check that the chipset is supported before booting
|
||||||
* fbdev off the hardware, as there's no way to put it back.
|
* fbdev off the hardware, as there's no way to put it back.
|
||||||
*/
|
*/
|
||||||
ret = nvkm_device_pci_new(pdev, nouveau_config, "error",
|
ret = nvkm_device_pci_new(pdev, nouveau_config, nouveau_debug,
|
||||||
true, false, 0, &device);
|
true, true, ~0ULL, &device);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
nvkm_device_del(&device);
|
|
||||||
|
|
||||||
/* Remove conflicting drivers (vesafb, efifb etc). */
|
/* Remove conflicting drivers (vesafb, efifb etc). */
|
||||||
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver_pci);
|
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver_pci);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = nvkm_device_pci_new(pdev, nouveau_config, nouveau_debug,
|
|
||||||
true, true, ~0ULL, &device);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
pci_set_master(pdev);
|
pci_set_master(pdev);
|
||||||
|
|
||||||
if (nouveau_atomic)
|
if (nouveau_atomic)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user