search for: nouveau_agp_init

Displaying 9 results from an estimated 9 matches for "nouveau_agp_init".

2014 Feb 10
0
[PATCH] drm/nouveau: support for platform devices
...her than requiring callers to check explicitly? > @@ -384,8 +407,10 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) > if (nv_device(drm->device)->chipset == 0xc1) > nv_mask(device, 0x00088080, 0x00000800, 0x00000000); > > - nouveau_vga_init(drm); > - nouveau_agp_init(drm); > + if (pdev) { > + nouveau_vga_init(drm); > + nouveau_agp_init(drm); > + } Same here. And if you make the above change, then nouveau_agp_init() will do the right thing already. > if (device->card_type >= NV_50) { > ret = nouveau_vm_new(nv_device(drm->devic...
2013 Oct 27
3
[PATCH] drm/nouveau/agp: add a quirk list to limit agp modes
...rate & 0x7); } @@ -90,7 +124,7 @@ nouveau_agp_reset(struct nouveau_drm *drm) if (ret) return; - mode.mode = get_agp_mode(drm, info.mode); + mode.mode = get_agp_mode(drm, &info); mode.mode &= ~PCI_AGP_COMMAND_FW; ret = drm_agp_enable(dev, mode); @@ -139,7 +173,7 @@ nouveau_agp_init(struct nouveau_drm *drm) } /* see agp.h for the AGPSTAT_* modes available */ - mode.mode = get_agp_mode(drm, info.mode); + mode.mode = get_agp_mode(drm, &info); ret = drm_agp_enable(dev, mode); if (ret) { -- 1.8.1.5
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
...oesn't init anything, but allows * agp code access to registers */ @@ -384,8 +407,10 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) if (nv_device(drm->device)->chipset == 0xc1) nv_mask(device, 0x00088080, 0x00000800, 0x00000000); - nouveau_vga_init(drm); - nouveau_agp_init(drm); + if (pdev) { + nouveau_vga_init(drm); + nouveau_agp_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 fai...
2013 Oct 28
0
[PATCH] drm/nouveau/agp: add a quirk list to limit agp modes
...au_agp_reset(struct nouveau_drm *drm) > if (ret) > return; > > - mode.mode = get_agp_mode(drm, info.mode); > + mode.mode = get_agp_mode(drm, &info); > mode.mode &= ~PCI_AGP_COMMAND_FW; > > ret = drm_agp_enable(dev, mode); > @@ -139,7 +173,7 @@ nouveau_agp_init(struct nouveau_drm *drm) > } > > /* see agp.h for the AGPSTAT_* modes available */ > - mode.mode = get_agp_mode(drm, info.mode); > + mode.mode = get_agp_mode(drm, &info); > > ret = drm_agp_enable(dev, mode); > if (ret) { >
2014 Feb 01
0
[RFC 02/16] drm/nouveau: basic support for platform devices
...oesn't init anything, but allows * agp code access to registers */ @@ -384,8 +402,10 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) if (nv_device(drm->device)->chipset == 0xc1) nv_mask(device, 0x00088080, 0x00000800, 0x00000000); - nouveau_vga_init(drm); - nouveau_agp_init(drm); + if (pdev) { + nouveau_vga_init(drm); + nouveau_agp_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 fai...
2013 Aug 27
0
[PATCH 5/9] drm/nouveau: Add install/remove semantics for event handlers
...ice, 0x00088080, 0x00000800, 0x00000000); + disp = nouveau_disp(device); + for (i = 0; i < ARRAY_SIZE(drm->vblank); i++) { + nouveau_event_handler_install(disp->vblank, i, + nouveau_drm_vblank_handler, + NULL, &drm->vblank[i]); + } + nouveau_vga_init(drm); nouveau_agp_init(drm); @@ -404,6 +411,8 @@ static int nouveau_drm_unload(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); + struct nouveau_disp *disp = nouveau_disp(drm->device); + int i; nouveau_fbcon_fini(dev); nouveau_accel_fini(drm); @@ -420,6 +429,10 @@ nouveau_drm_unload(st...
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
...gt; >> @@ -384,8 +407,10 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) >> if (nv_device(drm->device)->chipset == 0xc1) >> nv_mask(device, 0x00088080, 0x00000800, 0x00000000); >> >> - nouveau_vga_init(drm); >> - nouveau_agp_init(drm); >> + if (pdev) { >> + nouveau_vga_init(drm); >> + nouveau_agp_init(drm); >> + } > > Same here. And if you make the above change, then nouveau_agp_init() > will do the right thing already. Indeed, we can probably check drm_devic...
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
2013 Aug 27
11
[PATCH 0/9] drm/nouveau: Cleanup event/handler design
This series was originally motivated by a deadlock, introduced in commit 1d7c71a3e2f77336df536855b0efd2dc5bdeb41b 'drm/nouveau/disp: port vblank handling to event interface', due to inverted lock order between nouveau_drm_vblank_enable() and nouveau_drm_vblank_handler() (the complete lockdep report is included in the patch 4/5 changelog). Because this series fixes the vblank event