OpenCloudOS-Kernel/drivers/char/agp
Daniel Vetter ebb7c78d35 agp/intel-gtt: Only register fake agp driver for gen1
The fake agp driver for the intel graphics gart is only needed for ums
support. And we ditched that a long time ago:

commit 03dae59c72
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Jul 23 16:27:25 2014 +0200

    drm/i915: Ditch UMS config option

With this there's no longer the problem that 2 drivers (fake agp
driver and the drm/i915 driver) fight over the same piece, which fixes
apparent dma leaks detected by CONFIG_DMA_API_DEBUG.

Note that the leak isn't real since intel-gtt refcounts and will tear
down eventually. But the debug code assumes that when the i915 driver
unbinds from the pci device everything should be gone. Which isn't the
case if we have intel-agp enabled - userspace might need it. But by
ditching this intel-gtt setup and teardown is completely tied to the
livetime of the "real" driver.

While at it untangle the init ordering a bit - the fake agp wouldn't
be initialized correctly if i915.ko loads first. Which isn't a problem
since when i915 loads in kms mode you won't need the fake agp support
needed by the ums driver ...

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93793
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1453901881-26425-3-git-send-email-daniel.vetter@ffwll.ch
2016-02-11 11:38:35 +01:00
..
Kconfig drm/i915: Make AGP support optional 2013-11-08 18:37:32 +01:00
Makefile drm/i915: Make AGP support optional 2013-11-08 18:37:32 +01:00
agp.h agp: change agp_free_page_array to use kvfree 2015-01-29 12:37:41 +10:00
ali-agp.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00
alpha-agp.c PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) 2013-06-05 13:49:36 -06:00
amd-k7-agp.c agp: Use pci_resource_start() to get CPU physical address for BAR 2014-01-07 11:36:35 -07:00
amd64-agp.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00
ati-agp.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00
backend.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00
compat_ioctl.c agp: kill agp_flush_chipset and corresponding ioctl 2010-11-23 20:14:45 +00:00
compat_ioctl.h agp: kill agp_flush_chipset and corresponding ioctl 2010-11-23 20:14:45 +00:00
efficeon-agp.c agp: Support 64-bit APBASE 2014-01-06 17:49:22 -07:00
frontend.c agp: remove read/write stubs 2014-08-02 06:43:51 +10:00
generic.c agp: change agp_free_page_array to use kvfree 2015-01-29 12:37:41 +10:00
hp-agp.c [IA64] agp/hp-agp: Allow binding user memory to the AGP GART 2011-08-23 13:31:59 -07:00
i460-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
intel-agp.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00
intel-agp.h agp/intel: Use pci_bus_address() to get GTTADR bus address 2014-01-07 11:37:12 -07:00
intel-gtt.c agp/intel-gtt: Only register fake agp driver for gen1 2016-02-11 11:38:35 +01:00
isoch.c agp: use dev_printk when possible 2008-08-12 10:13:38 +10:00
nvidia-agp.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00
parisc-agp.c parisc: agp/parisc-agp: allow binding of user memory to the AGP GART 2013-07-31 23:42:00 +02:00
sgi-agp.c drivers/char: delete non-required instances of include <linux/init.h> 2014-02-07 15:10:19 -08:00
sis-agp.c agp: Support 64-bit APBASE 2014-01-06 17:49:22 -07:00
sworks-agp.c Drivers: char: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
uninorth-agp.c agp/uninorth: fix a memleak in create_gatt_table 2015-10-02 22:57:59 +10:00
via-agp.c agp: Fix up email address & attributions in AGP MODULE_AUTHOR tags 2014-12-23 20:03:10 +10:00