aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* This change adds reliability for Ethernet trunks built with ng_one2many:Gleb Smirnoff2005-01-082-0/+37
| | | | | | | | | | | | | - Introduce another ng_ether(4) callback ng_ether_link_state_p, which is called from if_link_state_change(), every time link is changed. - In ng_ether_link_state() send netgraph control message notifying of link state change to a node connected to "lower" hook. Reviewed by: sam MFC after: 2 weeks Notes: svn path=/head/; revision=139903
* In total violation of at least 4 sections in the ACPI spec, some systemsNate Lawson2005-01-081-19/+26
| | | | | | | | | | | | place device objects in \ (in this case, PCI links.) Work around this by starting our probe from \. To avoid attaching system scope objects, explicitly skip them. (I think it's an ACPI-CA bug that \_SB and \_TZ have device and thermal object types.) Thanks to pjd@ for testing. MFC after: 2 weeks Notes: svn path=/head/; revision=139900
* Break out of loop earlier if it is not timeout.David Xu2005-01-081-1/+1
| | | | Notes: svn path=/head/; revision=139899
* Annotate that pfs_exit() always acquires and releases two mutexes forRobert Watson2005-01-081-0/+4
| | | | | | | | every process exist, even if procfs isn't mounted. And one of those mutexes is Giant. No immediate thoughts on fixing this. Notes: svn path=/head/; revision=139896
* In acct_process(), do a lockless read of acctvp to see if it's NULLRobert Watson2005-01-081-1/+12
| | | | | | | | | | | before deciding to do more expensive locking to account for process exit. This acceptable minor race avoids two mutex operations in that highly common case of accounting not being enabled. MFC after: 2 weeks Notes: svn path=/head/; revision=139895
* Elminate 1 LOR (actually a recursive mutex grab) involving ipfilter whereDarren Reed2005-01-081-25/+2
| | | | | | | | we loop through all the list of NICs (struct ifnet), holding the lock on it and then do a name lookup with ifunit() whilst holding it. Notes: svn path=/head/; revision=139894
* In kern_wait(), let the compiler copy the rusage structure rather thanRobert Watson2005-01-081-1/+1
| | | | | | | an explicit bcopy() -- it probably does a better job. Notes: svn path=/head/; revision=139893
* Revert local experiment which leaked into commit.Poul-Henning Kamp2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139888
* Fix compilation of DEVICE_POLLING code.Poul-Henning Kamp2005-01-072-6/+6
| | | | Notes: svn path=/head/; revision=139887
* Comment typo.Giorgos Keramidas2005-01-071-1/+1
| | | | | | | | PR: kern/75923 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> Notes: svn path=/head/; revision=139866
* Fix support for machines with default MP Table configurations:John Baldwin2005-01-071-18/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix the MP Table pci bridge drivers to not probe the configuration table unless we actually have one. Machines using a default configuration do not have such a table. - Only allow default configuration types of 5 (ISA + PCI) and 6 (EISA + PCI) as the others are not likely to work. Types 1 through 4 use an external APIC (probably with 80486 processors) which we certainly do not support, and type 7 uses an MCA bus which has not been tested with the new MP Table code. - Correct the fact that the single I/O APIC in a default configuration has an ID of 2, not 0. - Fix off by one errors in setting the bus types from the default_data[] arrays for default configurations. - Explicitly configure each of the 16 interrupt pins on the sole I/O APIC when using a default configuration. This is especially helpful for type 6 (EISA + PCI) since the EISA interrupts need to have their polarity programmed based on the values in the ELCR. Much thanks to the submitter and tester who endured several rounds of testing to get this fixed. MFC after: 1 week Tested by: Georg Schwarz georg dot schwarz at freenet dot de Notes: svn path=/head/; revision=139864
* Introduce bus_dmamap_load_mbuf_sg(). Instead of taking a callback arg, thisScott Long2005-01-075-26/+111
| | | | | | | | | | cuts to the chase and fills in a provided s/g list. This is meant to optimize out the cost of the callback since the callback doesn't serve much purpose for mbufs since mbuf loads will never be deferred. This is just for amd64 and i386 at the moment, other arches will be coming shortly. Notes: svn path=/head/; revision=139840
* Fix typo from previous commit.Scott Long2005-01-071-0/+1
| | | | Notes: svn path=/head/; revision=139839
* Add a default driver to attach to the "hidden" scsi channels of the DellScott Long2005-01-071-0/+62
| | | | | | | | PERC 3 controllers. This is needed to keep the PM code from powering them down. Notes: svn path=/head/; revision=139836
* Transfer responsibility for freeing the page taken from the cacheAlan Cox2005-01-071-19/+17
| | | | | | | | | | | | | | queue and (possibly) unlocking the containing object from vm_page_alloc() to vm_page_select_cache(). Recent optimizations to vm_map_pmap_enter() (see vm_map.c revisions 1.362 and 1.363) and pmap_enter_quick() have resulted in panic()s because vm_page_alloc() mistakenly unlocked objects that had not been locked by vm_page_select_cache(). Reported by: Peter Holm and Kris Kennaway Notes: svn path=/head/; revision=139835
* Fix typos from previous commit.Scott Long2005-01-072-0/+2
| | | | Notes: svn path=/head/; revision=139834
* Adjust two of my comments to the new world order: Indent protection inColin Percival2005-01-071-2/+2
| | | | | | | the first column is performed using /**, not /*-. Notes: svn path=/head/; revision=139831
* /* -> /*- for license, minor formatting changes, insert COPYRIGHT into filesWarner Losh2005-01-0718-24/+202
| | | | Notes: svn path=/head/; revision=139827
* /* -> /*- for license, minor formatting changes, separate for KAMEWarner Losh2005-01-0768-91/+91
| | | | Notes: svn path=/head/; revision=139826
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-07426-453/+480
| | | | Notes: svn path=/head/; revision=139825
* Add FreeBSD tagWarner Losh2005-01-071-1/+3
| | | | Notes: svn path=/head/; revision=139824
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-07519-571/+785
| | | | Notes: svn path=/head/; revision=139823
* Return correct value in the lock routine.Peter Grehan2005-01-071-2/+2
| | | | Notes: svn path=/head/; revision=139819
* These are no longer relevant. They are scripts for extracting hintsWarner Losh2005-01-074-456/+0
| | | | | | | | | from 4.x kernel config files. User's wishing to upgrade from 4.x to 6 will need to go through 5.x, or grab this script from there. These scripts will remain in RELENG_5... Notes: svn path=/head/; revision=139817
* This is no longer supported, so remove it from the tree.Warner Losh2005-01-071-17/+0
| | | | Notes: svn path=/head/; revision=139816
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-0733-33/+43
| | | | Notes: svn path=/head/; revision=139815
* We no longer recurse the mutex.Poul-Henning Kamp2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139810
* If we get an interrupt and the interface is down, return before wePoul-Henning Kamp2005-01-072-9/+5
| | | | | | | | grab the lock. This should help a tiny bit on machines where unused if_sis interfaces share IRQ. Notes: svn path=/head/; revision=139809
* Don't tweak DSP on the ..16 chips.Poul-Henning Kamp2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139808
* Fix for an issue with excessive collisions in half duplex mode.Poul-Henning Kamp2005-01-061-0/+8
| | | | Notes: svn path=/head/; revision=139807
* Nail the short cable problem the exact way National says it should be.Poul-Henning Kamp2005-01-061-19/+14
| | | | Notes: svn path=/head/; revision=139806
* Simplify and fix bugs in rx/tx ring cleanup.Poul-Henning Kamp2005-01-061-24/+21
| | | | Notes: svn path=/head/; revision=139805
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-0689-93/+97
| | | | Notes: svn path=/head/; revision=139804
* Expand COPYRIGHT inline, per Matthew Dillon's earlier approval.Warner Losh2005-01-061-4/+24
| | | | Notes: svn path=/head/; revision=139803
* Rewrite the rx/tx ring initialization to use pointers instead of arrays.Poul-Henning Kamp2005-01-061-45/+34
| | | | Notes: svn path=/head/; revision=139802
* Eliminate a bunch of unnecessary prototypes.Poul-Henning Kamp2005-01-061-54/+12
| | | | Notes: svn path=/head/; revision=139801
* Move the module related stuff to the bottom of the file. This willPoul-Henning Kamp2005-01-061-30/+30
| | | | | | | allow us to save prototypes. Notes: svn path=/head/; revision=139800
* /* -> /*- for license, add FreeBSD tagWarner Losh2005-01-0631-32/+48
| | | | Notes: svn path=/head/; revision=139799
* Make sure to clear any pending interrupts when we stop the interface.Poul-Henning Kamp2005-01-061-0/+1
| | | | Notes: svn path=/head/; revision=139798
* Close a theoretical race: By the time the watchdog comes aroundPoul-Henning Kamp2005-01-061-1/+5
| | | | | | | the interface may have been stopped, so we should not restart it. Notes: svn path=/head/; revision=139797
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-06262-525/+659
| | | | Notes: svn path=/head/; revision=139790
* Remove left over include file from stallion driver.Warner Losh2005-01-061-122/+0
| | | | Notes: svn path=/head/; revision=139789
* Expand indirect reference to BSD license with the current one.Warner Losh2005-01-061-2/+22
| | | | Notes: svn path=/head/; revision=139788
* This doesn't seem to have been used since 386BSD daysWarner Losh2005-01-061-4/+0
| | | | Notes: svn path=/head/; revision=139787
* Bit 0 of td_flags is now used by the priority borrowing flag, so removeJohn Baldwin2005-01-061-1/+0
| | | | | | | the unused placeholder constant. Notes: svn path=/head/; revision=139786
* Revise the part of vm_pageout_scan() that moves pages from the cacheAlan Cox2005-01-061-12/+31
| | | | | | | | | queue to the free queue. With this change, if a page from the cache queue belongs to a locked object, it is simply skipped over rather than moved to the inactive queue. Notes: svn path=/head/; revision=139779
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-0664-95/+105
| | | | Notes: svn path=/head/; revision=139778
* Add dol FreeBSD dol and /*+ize licenseWarner Losh2005-01-063-3/+9
| | | | Notes: svn path=/head/; revision=139777
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-0667-68/+70
| | | | Notes: svn path=/head/; revision=139776
* Introduce new startup level SI_SUB_NETGRAPH that is afterMaksim Yevmenkin2005-01-062-1/+2
| | | | | | | | | | | | | | | | | SI_SUB_INIT_IF but before SI_SUB_DRIVERS. Make Netgraph(4) framework initialize at SI_SUB_NETGRAPH level. This does not address the bigger problem: MODULE_DEPEND does not seem to work when modules are compiled in the kernel, but it fixes the problem with Netgraph Bluetooth device drivers reported by a few folks. PR: i386/69876 Reviewed by: julian, rik, scottl MFC after: 3 days Notes: svn path=/head/; revision=139774