summaryrefslogtreecommitdiff
path: root/include/linux/agp_backend.h
AgeCommit message (Collapse)Author
2010-11-23agp: kill agp_rebind_memoryDaniel Vetter
Its only user, intel-gtt.c is now gone. Cc: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-11-23agp: kill agp_flush_chipset and corresponding ioctlDaniel Vetter
The intel drm calls the chipset functions now directly. Userspace never called the corresponding ioctl, hence it can be killed, too. Cc: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-06-15agp: drop vmalloc flag.Dave Airlie
Since the code that was too ugly to live is upstream, we can use it now, instead of rolling our own. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-09-27const: mark struct vm_struct_operationsAlexey Dobriyan
* mark struct vm_area_struct::vm_ops as const * mark vm_ops in AGP code But leave TTM code alone, something is fishy there with global vm_ops being used. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-08-03intel-agp: fix sglist allocation to avoid vmalloc()David Woodhouse
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-08-03agp: Add generic support for graphics dma remappingZhenyu Wang
New driver hooks for support graphics memory dma remapping are introduced in this patch. It makes generic code can tell if current device needs dma remapping, then call driver provided interfaces for mapping and unmapping. Change has also been made to handle scratch_page in remapping case. Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-06-19agp: switch AGP to use page array instead of unsigned long arrayDave Airlie
This switches AGP to use an array of pages for tracking the pages allocated to the GART. This should enable GEM on PAE to work a lot better as we can pass highmem pages to the PAT code and it will do the right thing with them. Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-08-12intel/agp: rewrite GTT on resumeKeith Packard
On my Intel chipset (965GM), the GTT is entirely erased across suspend/resume. This patch simply re-plays the current mapping at resume time to restore the table.=20 I noticed this once I started relying on persistent GTT mappings across VT switch in our GEM work -- the old X server and DRM code carefully unbind all memory from the GTT on VT switch, but GEM does not bother. I placed the list management and rewrite code in the generic layer on the assumption that it will be needed on other hardware, but I did not add the rewrite call to anything other than the Intel resume function. Keep a list of current GATT mappings. At resume time, rewrite them into the GATT. This is needed on Intel (at least) as the entire GATT is cleared across suspend/resume. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Keith Packard <keithp@keithp.com> Cc: Dave Jones <davej@codemonkey.org.uk> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-06-19agp: more boolean conversions.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-06-19drivers/char/agp - use boolJoe Perches
Use boolean in AGP instead of having own TRUE/FALSE -- Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-04-30Remove "#ifdef __KERNEL__" checks from unexported headersRobert P. J. Day
Remove the "#ifdef __KERNEL__" tests from unexported header files in linux/include whose entire contents are wrapped in that preprocessor test. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05agp: add chipset flushing support to AGP interfaceDave Airlie
This bumps the AGP interface to 0.103. Certain Intel chipsets contains a global write buffer, and this can require flushing from the drm or X.org to make sure all data has hit RAM before initiating a GPU transfer, due to a lack of coherency with the integrated graphics device and this buffer. This just adds generic support to the AGP interfaces, a follow-on patch will add support to the Intel driver to use this interface. Signed-off-by: Dave Airlie <airlied@redhat.com>
2007-02-03[AGPGART] Allow drm-populated agp memory typesThomas Hellstrom
This patch allows drm to populate an agpgart structure with pages of its own. It's needed for the new drm memory manager which dynamically flips pages in and out of AGP. The patch modifies the generic functions as well as the intel agp driver. The intel drm driver is currently the only one supporting the new memory manager. Other agp drivers may need some minor fixing up once they have a corresponding memory manager enabled drm driver. AGP memory types >= AGP_USER_TYPES are not populated by the agpgart driver, but the drm is expected to do that, as well as taking care of cache- and tlb flushing when needed. It's not possible to request these types from user space using agpgart ioctls. The Intel driver also gets a new memory type for pages that can be bound cached to the intel GTT. Signed-off-by: Thomas Hellstrom <thomas@tungstengraphics.com> Signed-off-by: Dave Jones <davej@redhat.com>
2005-03-02[AGPGART] Fix typo.Dave Jones
From: Joern Heissler Signed-off-by: Dave Jones <davej@redhat.com>
2005-02-23[AGPGART] add agp_find_bridge functionDave Jones
From: Michael Werner <werner@mrcoffee.engr.sgi.com> This patch gives non-generic platforms a method for using platform specific agp_find_bridge functions. Signed-off-by: Mike Werner <werner@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Jones <davej@redhat.com>
2005-02-23[AGPGART] allow multiple backends to be initialized.Dave Jones
From: Michael Werner <werner@mrcoffee.engr.sgi.com> This patch adds support for initializing and addressing multiple AGP bridges using the agpgart driver. In particular, it extends agp_acquire and agp_allocate_memory so that different bridges can be acquired and memory allocated within a specific AGP aperature. From: Brice Goglin <Brice.Goglin@ens-lyon.fr> It seems that memsetting the whole bridge structure to 0 (instead of juste the agp_in_use field) fixes Benoit's problem too. No idea which field was responsible for this. New patch attached. From: Mike Werner <werner@sgi.com> add bridge assignment missed in agp_allocate_memory From: Andi Kleen <ak@suse.de> Here's the correct fix. agp_bridge is defined in drivers/char/agp/agp.h. It's a bit ugly though. Signed-off-by: Mike Werner <werner@sgi.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Jones <davej@redhat.com>
2005-02-23[AGPGART] aper_base can't be signed.Dave Jones
We pass this to remap_pfn_range after shifting it right. Nasty things happen as a result. Signed-off-by: Dave Jones <davej@redhat.com>
2005-01-19[AGPGART] remove leftovers of the inter_module_* drm <-> agp interfaceDave Jones
From: Christoph Hellwig Signed-off-by: Dave Jones <davej@redhat.com>
2003-05-21[AGPGART] Rid AGP/DRM of more typedefs.Dave Jones
2003-04-27[AGPGART] Shrink chipset_type enum (compile fix)Dave Jones
Missing part of hch's last cset.
2003-04-27[AGPGART] Nvidia GART cleanups.Dave Jones
Christoph cleaned up a lot of the mess here. We're back to nearly killing off the chipset_type enum, moved the register definitions to the code that uses it, and given it a proper pci .remove function.
2003-04-25[AGPGART] Move function description comments from headers to the code they ↵Dave Jones
document.
2003-04-25[AGPGART] Merge NVIDIA nForce / nForce2 AGP driver.Dave Jones
Based upon code written by NVIDIA for agpgart 2.4, forward ported and cleaned up slightly by me. This still needs work, and is untested.
2003-04-25[AGPGART] Replace enum users with own methods.Dave Jones
By introducing a few extra functions, we can kill off a few extra members of the enum. More work from Christoph Hellwig.
2003-04-25[AGPGART] Remove unneeded enums from AMD k7 gart driverDave Jones
2003-04-25[AGPGART] Remove useless enums from serverworks gart driverDave Jones
2003-04-25[AGPGART] Remove unused ALi enums.Dave Jones
2003-04-25[AGPGART] Remove unneeded enums from intel gart driver.Dave Jones
2003-04-10[AGPGART] Fold Intel i7x05 GART into intel-agp driver.Dave Jones
Also includes various other fixes from Matt Tolentino
2003-02-27[AGPGART] Add support for Intel 852GM / 855GM and 865GDave Jones
2003-02-10[AGPGART] Remove pointless enums from VIA GART driver.Dave Jones
2003-02-10[AGPGART] alpha agp infrastructureDave Jones
2003-02-06[PATCH] Spelling fixes for consistent, dependent, persistentSteven Cole
This fixes the following common misspellings and their variants. consistant -> consistent dependant -> dependent persistant -> persistent
2003-01-03[AGP] P4X333 uses same northbridge as P4X400Dave Jones
Also renumber it. (The previous patch used the number of the southbridge by mistake)
2003-01-02[AGP] VIA VT8235/P4X400 GART supportDave Jones
(based upon 2.4 patch from Richard Baverstock <beaver@gto.net>)
2003-01-02[AGP] Move the VIA KT400 to its own driver.Dave Jones
Right now its the only VIA AGP 3.0 chipset. At some point in time it may become via-agp3.c, but until then its cleaner to seperate this from the VIA AGP 2.0 driver. The 2.0 driver will still work on a KT400 with a 2.0 compliant graphic card present. If the 2.0 driver finds the bridge in 3.0 mode, it aborts. Likewise, the 3.0 driver will abort if the bridge is in 2.0 mode. Confused yet?
2002-12-13[AGP] Add AGP 3.0 support and I7505 chipset driver.Dave Jones
2002-12-03rework as per Linus' suggestion. Chipset drivers are now seperate modulesDave Jones
that use the pci driver interfaces, and register with the agpgart backend.
2002-11-27add support for two new VIA GARTsDave Jones
2002-11-20[PATCH] Via KT400 agp supportNicolas Mailhot
This adds the KT400 pci ID and lists it as using Via generic setup routines. This patch has been tested with all GL xscreensavers I could find, and been reviewed by Dave Jones (full patch history at http://bugzilla.kernel.org/show_bug.cgi?id=3D14). diff -uNr linux-2.5.47-ac6.orig/drivers/char/agp/agp.c linux-2.5.47-ac6/drivers/char/agp/agp.c
2002-10-07[PATCH] Add ALI 1671 support to AGPGARTDave Jones
2002-09-26[PATCH] Hammer aperture driver for 2.5.38Andi Kleen
Add an AGP driver for the AGP aperture in the northbridge of the AMD Hammer. The AGP driver works for both 32bit and 64bit kernels. It also adds some hooks to the AGP driver to allow the x86-64 GART based IOMMU code to share the aperture with AGP. The hooks are intentionally kept minimalistic. In addition it needs some Config.in hackery, because AGP cannot be modular in this case, because the IOMMU needs to control its startup and it runs early when PCI is initialized. The original AGP driver was done by Dave Jones, I added the IOMMU support.
2002-07-14agpgart: Split agpgart code into separate files.Greg Kroah-Hartman
The majority of this work was done by Dave Jones, I merely converted the driver to the "new" pci api.
2002-05-30[PATCH] agp support for i460 and zx1 cleanupDavid Mosberger
The patch below adds first round of AGP support for the Intel 460 chipset This won't actually build at the moment, but I think you prefer to merge things piecemeal, and this portion of the patch is almost guaranteed to be safe (affects only ia64).
2002-05-30[PATCH] Fix up agpgart.Dave Jones
Don't know what exactly happened, but somehow, the ZX1 support is in your tree twice. This patch drops one of them, and also adds in Intel i845 support to make up for it 8-)
2002-05-08[PATCH] HP ZX1 AGP/DRM support.Dave Jones
From 2.4
2002-04-28[PATCH] ALI 1644 AGP/DRM support.Dave Jones
2002-02-04v2.4.14.1 -> v2.4.14.2Linus Torvalds
- Ivan Kokshaysky: fix alpha dec_and_lock with modules, for alpha config entry - Kai Germaschewski: ISDN updates - Jeff Garzik: network driver updates, sysv fs update - Kai Mäkisara: SCSI tape update - Alan Cox: large drivers merge - Nikita Danilov: reiserfs procfs information - Andrew Morton: ext3 merge - Christoph Hellwig: vxfs livelock fix - Trond Myklebust: NFS updates - Jens Axboe: cpqarray + cciss dequeue fix - Tim Waugh: parport_serial base_baud setting - Matthew Dharm: usb-storage Freecom driver fixes - Dave McCracken: wait4() thread group race fix
2002-02-04v2.4.10.4 -> v2.4.10.5Linus Torvalds
- Keith Owens: module exporting error checking - Greg KH: USB update - Paul Mackerras: clean up wait_init_idle(), ppc prefetch macros - Jan Kara: quota fixes - Abraham vd Merwe: agpgart support for Intel 830M - Jakub Jelinek: ELF loader cleanups - Al Viro: more cleanups - David Miller: sparc64 fix, netfilter fixes - me: tweak resurrected oom handling
2002-02-04v2.4.9.15 -> v2.4.10Linus Torvalds
- Andrew Grover: ACPI update - Al Viro: block devices.. - Andrea Arcangeli: fix list manipulation bogosity - Trond Myklebust: 64-bit file locking fixes - Brad Hards: USB CDC ethernet - Chris Mason: reiserfs speedup - Robert Love: re-merge AMD 761 GART support that was lost in -ac merge - Adam Richter: check pci_module_init() return value