search for: fail_bio

Displaying 5 results from an estimated 5 matches for "fail_bio".

Did you mean: fail_bios
2014 Feb 10
0
[PATCH] drm/nouveau: support for platform devices
..._type >= NV_50) { > ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40), > @@ -398,9 +423,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) > if (ret) > goto fail_ttm; > > - ret = nouveau_bios_init(dev); > - if (ret) > - goto fail_bios; > + if (pdev) { > + ret = nouveau_bios_init(dev); > + if (ret) > + goto fail_bios; > + } nouveau_bios_init() could also check internally and return 0 if the device isn't a PCI device. One less conditional in this function. > @@ -963,6 +991,25 @@ nouveau_drm_pci_driver...
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
...p_init(drm); + } if (device->card_type >= NV_50) { ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40), @@ -398,9 +423,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) if (ret) goto fail_ttm; - ret = nouveau_bios_init(dev); - if (ret) - goto fail_bios; + if (pdev) { + ret = nouveau_bios_init(dev); + if (ret) + goto fail_bios; + } ret = nouveau_display_create(dev); if (ret) @@ -662,7 +689,6 @@ static int nouveau_pmops_thaw(struct device *dev) static int nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) { - struct pci_...
2014 Feb 01
0
[RFC 02/16] drm/nouveau: basic support for platform devices
...p_init(drm); + } if (device->card_type >= NV_50) { ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40), @@ -398,9 +418,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) if (ret) goto fail_ttm; - ret = nouveau_bios_init(dev); - if (ret) - goto fail_bios; + if (pdev) { + ret = nouveau_bios_init(dev); + if (ret) + goto fail_bios; + } ret = nouveau_display_create(dev); if (ret) @@ -662,7 +684,6 @@ static int nouveau_pmops_thaw(struct device *dev) static int nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) { - struct pci_...
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
...drm->device), 0, (1ULL << 40), >> @@ -398,9 +423,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) >> if (ret) >> goto fail_ttm; >> >> - ret = nouveau_bios_init(dev); >> - if (ret) >> - goto fail_bios; >> + if (pdev) { >> + ret = nouveau_bios_init(dev); >> + if (ret) >> + goto fail_bios; >> + } > > nouveau_bios_init() could also check internally and return 0 if the > device isn't a PCI device. One les...
2014 Feb 01
28
[RFC 00/16] drm/nouveau: initial support for GK20A (Tegra K1)
Hello everyone, GK20A is the Kepler-based GPU used in the upcoming Tegra K1 chips. The following patches perform architectural changes to Nouveau that are necessary to support non-PCI GPUs and add initial support for GK20A. Although the support is still very basic and more user-space changes will be needed to make the full graphics stack run on top of it, we were able to successfully open