summaryrefslogtreecommitdiffstats
path: root/sys/dev/agp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a new AGP driver for ATI IGP chipsets. The driver is based on reading ofanholt2005-09-172-0/+398
| | | | | | | | | the Linux driver, since specs are unavailable. Many thanks to Adam Kirchhoff for multiple useful testing cycles, and Ralf Wostrack for the final fix to get it working. PR: i386/75251 Submitted by: anholt
* Fix agp_nvidia.c to behave more like the linux driver, fixing DRI on Radeonanholt2005-09-161-11/+20
| | | | | | | | | | | | 9200 according to one responder. The primary issue was not setting some bits to say that the entries were active, but also fix one place where some memory wasn't being used as volatile as it should. While here, change some use of ffs to a relatively short case statement, to make it more obvious what's going on. PR: kern/71638, kern/72372, kern/71547? Submitted by: Andrew J. Caines <A.J.Caines@halplant.com>, Robin Schoonover <end@endif.cjb.net>, Jason Henson <jason@ec.rr.com>
* Make the initialization in the AGPv3 case match that of Linux. Fixes hangs onanholt2005-06-261-8/+28
| | | | | | | X startup with DRI enabled, with a v3-capable card. Tested by: Tom McLaughlin <tmclaugh@sdf.lonestar.org> Approved by: re (scottl)
* Add nForce3-250.obrien2005-04-081-0/+2
|
* nVidia AGP chipsets beyond nForce2 are AMD64-specific.obrien2005-04-022-1/+3
| | | | | | So move the AGP support to there. Submitted by: Jung-uk Kim <jkim@niksun.com>
* Add device id for the Ali M1671 host to AGP bridge.cognet2005-02-271-0/+2
|
* Fix style(9) issues with __P removal.imp2005-02-241-10/+10
| | | | Noticed by: bde
* Return BUS_PROBE_DEFAULT instead of 0.imp2005-02-248-8/+8
|
* Correct the SiS 755 PCI ID. Confirmed against Linux code.anholt2005-02-141-1/+1
| | | | | | PR: kern/76411 Submitted by: Jonathan Fosburgh, jonathan at fosburgh dot org Obtained from: Jung-uk Kim, jkim at niksun.com
* No use for this AMD64 special-case "return NULL;" in probe now that we don'tanholt2005-02-141-2/+0
| | | | do fake "generic" support.
* /* -> /*- for license, minor formatting changesimp2005-01-071-1/+1
|
* [1] Remove the generic bridge support from those drivers that had it. Theanholt2004-12-304-15/+55
| | | | | | | | | | | generic bridge support was biting us more than it helped, whenever a new chipset came out from a vendor and misprogramming it caused strange hangs or corruption. [2] Add a large number of PCI IDs based on what the linux drivers support. Note that the new PCI IDs haven't been tested, they're just *likely* to work. In particular the VIA AGP 8x chipsets are concerning, due to lack of testing, possible issues (kern/69953), and not having a nice "does this bridge say it would do 8x" function. However, this shouldn't make the situation worse, since these chips would have probed in the past anyway.
* Use VM_ALLOC_NOBUSY to eliminate an unneeded vm_page_wakeup() call and thealc2004-10-241-4/+1
| | | | synchronization that one entails.
* Avoid repeated acquisition and release of the vm object lock inside ofalc2004-10-241-5/+6
| | | | | | two loops in agp_generic_bind_memory(). As an intended side-effect, all of the calls to vm_page_wakeup() are now performed with the containing vm object lock held.
* Add PCI ID for VIA K8T800Pro chipset. Tested with agptest and X with DRIanholt2004-10-051-0/+2
| | | | enabled, but not 3D.
* Add support for Intel E7205 AGP.anholt2004-08-221-0/+6
| | | | | PR: kern/69858 Submitted by: Jacobo Arvelo <unix4all at gulic dot org>
* Fix aperture size detection on some ALi chipsets by only using the lowest 4 bitsanholt2004-08-211-4/+4
| | | | | | | | | to check aperture size, avoiding hangs. Maintain the rest of the bits when setting/unsetting ATTBASE. This essentially matches Linux's AGP driver as well. PR: kern/70037 Submitted by: Mark Tinguely <tinguely at casselton dot net> Obtained from: NetBSD
* Apply some stylistic changes based off of kern/70037 (content changes toanholt2004-08-211-10/+10
| | | | follow).
* Unconditionally support the AMD64 GART HW.obrien2004-08-193-15/+1
|
* AMD64 on-CPU GART support.obrien2004-08-165-1/+341
| | | | | | | This also applies to AMD64 HW running 'i386' OS. Submitted by: Jung-uk Kim <jkim@niksun.com> Integration by: obrien
* style.9.obrien2004-08-161-12/+8
|
* Minimal fix to prevent crashes when an AGP v2 card is used with the new v3 VIAanholt2004-08-092-1/+12
| | | | | | | | | | | | | chipsets, based on Linux's via-agp.c. On boot, the system selects which AGP version to use based on the inserted card. If v2 was chosen, the chipset needs to be programmed with the v2 registers still. Also included in kern/69953 are changes to make the programming of the v3 registers match linux, but that will be left out until the need to do so is confirmed (want specs or a tester). PR: kern/69953 Submitted by: Oleg Sharoiko <os@rsu.ru> Tested by: Oleg Sharoiko <os@rsu.ru>, Geoff Speicher <geoff@speicher.org> (full version from PR)
* Add support for the VIA Apollo KT400/400A/600 AGP host bridges which usejhb2004-07-021-0/+3
| | | | | | | the VIA v3 register offsets. PR: 68545 Submitted by: Ariff Abdullah <skywizard@mybsd.org.my>
* Do the dreaded s/dev_t/struct cdev */phk2004-06-162-5/+5
| | | | Bump __FreeBSD_version accordingly.
* Add missing <sys/module.h> includesphk2004-05-308-0/+8
|
* Use __FBSDID.mux2004-05-231-2/+3
|
* In agp_generic_bind_memory(), grab the needed pages before acquiringmux2004-05-231-30/+42
| | | | | | | the agp mutex. We do this because vm_page_grab() called with the VM_ALLOC_RETRY flag can sleep. Pointed out by: alc
* Get rid of a lockmgr consumer by making agp(4) use a standard mutex,mux2004-05-229-20/+11
| | | | | since it's always acquiring the lock exclusively. This was tested with X on an SMP box, with and without WITNESS.
* Plug three lock leaks.mux2004-05-221-0/+3
|
* Add explicit list of SiS AGP chipsets based on Linux kernel's list.anholt2004-05-191-0/+36
| | | | Prompted by: i386/59503
* Different VIA host bridges use different offsets to their AGP configjhb2004-05-132-9/+41
| | | | | | | | | | | registers, so add a register offset array to the softc. We key off the device ID to determine which set of register offsets. Currently the 8385 host bridge used on amd64 is the only bridge to use the AGP3_VIA_* register offsets and all other bridges use the AGP_VIA_* offsets. It is currently unclear if the AGP3_VIA_* offsets are for VIA bridges that implement AGP 3.0 bridges or just for amd64 bridges. Submitted by: Kenneth Culver culverk at sweetdreamsracing dot biz
* Push down the responsibility for zeroing a physical page from thealc2004-04-242-4/+0
| | | | | | | | | | | | | caller to vm_page_grab(). Although this gives VM_ALLOC_ZERO a different meaning for vm_page_grab() than for vm_page_alloc(), I feel such change is necessary to accomplish other goals. Specifically, I want to make the PG_ZERO flag immutable between the time it is allocated by vm_page_alloc() and freed by vm_page_free() or vm_page_free_zero() to avoid locking overheads. Once we gave up on the ability to automatically recognize a zeroed page upon entry to vm_page_free(), the ability to mutate the PG_ZERO flag became useless. Instead, I would like to say that "Once a page becomes valid, its PG_ZERO flag must be ignored."
* Add register definitions for the status and command registers for AGP.imp2004-04-051-0/+22
| | | | | PR: 64846 Submitted by: Samy Al Bahra
* Add the ability to disable agp devices at the loader prompt. Usage isnjl2004-04-037-0/+14
| | | | | | hint.agp.0.disabled="1" Submitted by: jhb
* Before MFC'ing the previous commit, I noticed I'd left out a case.peadar2004-04-031-0/+1
| | | | | | | Add in missing case for i845G in the attach routine. I'll MFC this with the rest of the change after the 4.10 codefreeze lifts. Reviewed By: Doug Rabson
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-173-6/+6
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Recognise the 82845G AGP bridge, and poke it appropriately atpeadar2004-03-131-0/+5
| | | | | | | | | | | | attach/detach time. Assigning the default behaviour to this particular device is incorrect, corrupting the video BIOS aperture, and breaking VESA support in the kernel and XFree86. Reviewed By: dfr MFC after: 1 week PR: kern/62906
* Device megapatch 4/6:phk2004-02-211-0/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 1/6:phk2004-02-211-2/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* This is not a D_TTY driver.phk2004-02-151-1/+0
|
* - Disable AGP on ALI chipsets if aperture size is 0.anholt2003-11-112-0/+9
| | | | | | | | | - Fail in agp_alloc_gatt if the aperture size is 0 instead of panicing in contigmalloc. Reported by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE> Reviewed by: jhb MFC after: 1 week
* Add simple support for AGP 3.0 including enabling 8x mode. The simplejhb2003-10-231-13/+108
| | | | | | | | part of the support is that it still assumes one master and one target where as AGP 3.0 actually supports multiple devices on the bus. Submitted by: Keith Whitwell <keith@tungstengraphics.com> Sponsored by: The Weather Channel
* Use a switch statement on the devid instead of if-else for determing whichjhb2003-10-231-6/+18
| | | | | | code to use to see if the onboard video has been disabled or not. Submitted by: Keith Whitwell <keith@tungstengraphics.com>
* Make the i810 AGP device create a "drmsub" child device. This will be attachedanholt2003-10-021-2/+31
| | | | | | to by the DRM for i8xx devices. Submitted by: Keith Whitwell <keith@tungstengraphics.com>
* Fix a typo in r1.8: The GTLB enable/flush bit is 1<<7, not 1<<8.anholt2003-09-171-1/+1
| | | | | PR: kern/56297 Submitted by: Dan Angelescu <mrhsaacdoh@yahoo.com>
* PCI header files live in dev/pci.mdodd2003-08-231-2/+2
|
* AGP GART driver for NVIDIA nForce/nForce2 chipsets.mdodd2003-08-232-0/+466
|
* Prefer new location of pci include files (which have only been in theimp2003-08-227-14/+14
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Sort the list of PCI ID's in numerical order and fix a whitespace bogon.jhb2003-06-271-4/+4
|
* Add a PCI ID for the Apollo Pro 133A.mdodd2003-06-231-0/+2
| | | | | PR: kern/46983 Submitted by: David Holm <david@realityrift.com>
OpenPOWER on IntegriCloud