summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Really really fix typo this time.bms2004-10-191-1/+0
|
* Fix typo sc -> dev.bms2004-10-191-1/+1
|
* Detach the Rhine completely on shutdown, rather than merely stopping itbms2004-10-191-3/+1
| | | | | | | | as the original logic did. This fixes a race with vr_intr() which was masked on UP systems and manifested on SMP systems. PR: kern/62889 MFC after: 1 day
* fix (for me) the problems where if_de gets really slow after timejmg2004-10-181-21/+0
| | | | | | | (usually taking 20 seconds to transmit a packet).. no longer fall back to only transmitting one packet (instead of the entire queue) after we have processed the entire send queue... I have no idea why we didn't start seeing this problem ~6 years ago when this code was introduced...
* Fix sis, bfe and ndis in the same way dc was fixed:mlaier2004-10-081-8/+12
| | | | | | | Do not tell the hardware to send when there were no packets enqueued. Found and reviewed by: green MFC after: 1 days
* Add PCI ID for VIA K8T800Pro chipset. Tested with agptest and X with DRIanholt2004-10-051-0/+2
| | | | enabled, but not 3D.
* Read the MAC address in the EEPROM in the correct byte order. Thismux2004-10-011-4/+4
| | | | | | | | | | is a no-op on little endian architectures, but fixes getting the MAC address for some dc(4) cards on big endian architectures. This is a RELENG_5 candidate. Tested by: gallatin (powerpc), marius (sparc64) First version of the patch written by: gallatin
* Add ALTQ support for dc(4), based upon a mostly-working patch from mlaier.green2004-10-011-15/+21
|
* Conditionalize IFF_NEEDSGIANT, like everything else here, on IS_MPSAFE.green2004-10-011-2/+3
| | | | | The driver doesn't look any less safe without Giant than with, and works with IS_MPSAFE set to 1 here, so others should probably test it as such.
* fix jumbo frames as much as they can be fixed for re. We now cap the MTUjmg2004-09-281-1/+18
| | | | | | | | | | | to 7422 since it appears that the 8169S can't transmit anything larger.. The 8169S can receive full jumbo frames, but we don't have an mru to let the upper layers know this... add fixup so that this driver should work on alignment constrained platforms (!i386 && !amd64) MFC after: 5 days
* style: Move the { back to the else line to match the }.johan2004-09-261-2/+2
| | | | | Discussed with: glebius X-MFC after: 5.3-Release
* Prefer C99's __func__ over GCC's __FUNCTION__.stefanf2004-09-221-2/+1
|
* fix misspelling of TX...jmg2004-09-191-1/+1
| | | | | Submitted by: Johan Karlsson MFC after: 3 days
* comment requirement that rx/tx descriptor counts must be equal due tojmg2004-09-191-3/+8
| | | | | | | | shared code... define rx descriptor count in terms of tx align defines MFC after: 3 days
* Fix oversight reported by Norikatsu Shigemura for the "sym" driverse2004-09-101-0/+1
| | | | | | | | (which was derived from the "ncr" driver) and add a MODULE_DEPEND on "cam". MT5 candidate, IMHO. MFC after: 1 week
* Do not call xl_init_locked() unconditionally when we are bringed UP. Callglebius2004-09-091-2/+3
| | | | | | | | | | | it only if we weren't UP before. In some cases xl_init causes long media re-negotiation, and ppp(8) fails to open PPPoE connection because it sets IFF_UP every time before opening PPPoE connection. PR: kern/69133 Patch by: mdodd Approved by: wpaul, julian (mentor) MFC after: 1 week
* Fix a couple of typos in commentsbrueffer2004-09-061-4/+4
| | | | MFC after: 3 days
* Tag a last set of PCI network interfaces as IFF_NEEDSGIANT until theyrwatson2004-08-286-6/+12
| | | | are either locked down or demonstrated MPSAFE.
* Add support Corega CG-LAPCIGT Gigabit Ethernet(8169S)sanpei2004-08-281-0/+5
| | | | | | PR: [FreeBSD-users-jp 80667] Submitted by: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp> MFC after: 1 week
* if_dc includes locking, but that locking is disabled by a #ifdefrwatson2004-08-251-1/+2
| | | | | | | | by default. As such, mark if_dc as IFF_NEEDSGIANT until such time as appropriate locking review and testing can take place, and the locking can be enabled by default. RELENG_5 candidate.
* 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).
* fix LOR's in sk. Original patch from dwhite. This moves the memoryjmg2004-08-202-44/+56
| | | | | | | allocation earlier on in sk_attach so we don't have to lock until a bit later. PR: 69752
* put function's name at begining of column...jmg2004-08-201-1/+2
|
* add pci id for Belkin F5D5005 Gigabit ethernet card.jmg2004-08-202-0/+11
|
* 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
|
* - Make OF_getetheraddr() honour the "local-mac-address?" system configmarius2004-08-141-1/+1
| | | | | | | | | | | | | | | variable. If set to "true" OF_getetheraddr() will now return the unique MAC address stored in the "local-mac-address" property of the device's OFW node if present and the host address/system default MAC address if the node doesn't doesn't have such a property. If set to "false" the host address will be returned for all devices like before this change. This brings the behaviour of device drivers for NICs with OFW support/ FCode, i.e. dc(4) for on-board DM9102A on Sun machines, gem(4) and hme(4), regarding "local-mac-address?" in line with NetBSD and Solaris. The man pages of the respective drivers will be updated separately to reflect this change. - Remove OF_getetheraddr2() which was used as a stopgap in dc(4). Its functionality is now part of OF_getetheraddr().
* Since the if_de driver doesn't contain locking, mark it asrwatson2004-08-131-1/+1
| | | | | IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant when running debug.mpsafenet=1.
* Revert rev 1.93 and replace it by grabbing the vr lock before callingscottl2004-08-111-2/+2
| | | | | | mii_pollstat(). The previous was causing the vr lock to recurse. PR: kern/70189
* 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)
* Fix rl(4)'s lock behavior upon deinitialization. I would get a panicgreen2004-08-091-5/+6
| | | | when kldunloading due to its private locking being acquired recursively.
* Acquire vr lock before entering vr_setcfg() in vr_miibus_statchg(),rwatson2004-08-071-0/+2
| | | | | | since vr_setcfg() expects it. Reported by: Mike Bristow <mike@urgle.com>
* Do not attempt to clean up data that has not been initialized yet.roam2004-08-061-2/+4
| | | | | | | This fixes two kernel panics on boot when the xl driver fails to allocate bus/port/memory resources. Reviewed by: silence on -net
* Unbreak DEVICE_POLLING build / LINT. Sorry!mlaier2004-08-021-1/+1
| | | | Submitted by: roam
* Second part of ALTQ driver modifications, covering:mlaier2004-08-011-5/+7
| | | | | | | | | | an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4) Please help testing: http://people.freebsd.org/~mlaier/ALTQ_driver/ Tested by: Vaidas Damosevicius (an, ath, wi) Roman Divacky (vr) Submitted by: yongari (hme)
* Update for the KDB framework:marcel2004-07-101-1/+2
| | | | o Call kdb_enter() instead of Debugger().
* Further improve locking in xl(4):bms2004-07-091-21/+34
| | | | | | | | | | | | | | - Avoid an additional lock acquire/release when leaving xl_intr(), by changing xl_start*() to xl_start*_locked(), and calling the appropriate routine by chip revision (as the DMA descriptors are different). - Simplify the appropriate routines now that they are called with the lock held. This should save a significant amount of CPU cycles spent on servicing each interrupt for both UP and SMP whilst remaining MPSAFE. Tested by: rwatson
* Apply the long-overdue hatchet of style(9) death to this file.bms2004-07-091-458/+547
|
* Further locking improvements for vr(4):bms2004-07-091-46/+69
| | | | | | | | | | | | - Add *_locked() entry points as needed to avoid unnecessary lock thrashing. - Use these entry points wisely. - Only acquire the lock once when servicing an interrupt. - Check 'suspended' on interrupt to avoid racing detach. - Correct a mis-spelled comment. - Don't take the lock in vr_reset() to avoid lock thrashing in attach. - Comment this. Reviewed by: -net (silence)
* Add a 'suspended' flag to softc so that we can avoid races on detach.bms2004-07-091-0/+1
|
* Actually turn on driver locking in xl(4).bms2004-07-091-10/+0
|
* Further rl(4) locking improvements:bms2004-07-091-48/+71
| | | | | | | | | | | - Avoid unnecessary re-acquisition elsewhere by adding *_locked() entry points as needed. - Correct locking for the DEVICE_POLLING case. - Hold the driver lock for the entire duration of interrupt servicing, to avoid unneeded, expensive re-acquisition; use *_locked() entry points as needed. Reviewed by: -net (silence)
* Whitespace nitbms2004-07-051-1/+1
|
* Eliminate redundant return keywords.bms2004-07-051-29/+0
|
* Whitespace pass.bms2004-07-051-40/+39
|
OpenPOWER on IntegriCloud