aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromUlrich Spörlein2010-03-029-7/+7
| | | | | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204596
* Document COMPRESS_USER_CORES, and the new %I and %H core formatters.Alfred Perlstein2010-03-021-7/+41
| | | | Notes: svn path=/head/; revision=204595
* include COMPRESS_USER_CORES and gzio in NOTES.Alfred Perlstein2010-03-021-0/+5
| | | | | | | Requested by: Niclas Zeising Notes: svn path=/head/; revision=204594
* put inclusion of net/zlib.c under "device gzio" instead of "zlib" since rightAlfred Perlstein2010-03-021-1/+1
| | | | | | | | | now there is no reason to only include "zlib". Requested by: jhb Notes: svn path=/head/; revision=204593
* Bring in the most recent version of ipfw and dummynet, developedLuigi Rizzo2010-03-0237-2856/+9756
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and tested over the past two months in the ipfw3-head branch. This also happens to be the same code available in the Linux and Windows ports of ipfw and dummynet. The major enhancement is a completely restructured version of dummynet, with support for different packet scheduling algorithms (loadable at runtime), faster queue/pipe lookup, and a much cleaner internal architecture and kernel/userland ABI which simplifies future extensions. In addition to the existing schedulers (FIFO and WF2Q+), we include a Deficit Round Robin (DRR or RR for brevity) scheduler, and a new, very fast version of WF2Q+ called QFQ. Some test code is also present (in sys/netinet/ipfw/test) that lets you build and test schedulers in userland. Also, we have added a compatibility layer that understands requests from the RELENG_7 and RELENG_8 versions of the /sbin/ipfw binaries, and replies correctly (at least, it does its best; sometimes you just cannot tell who sent the request and how to answer). The compatibility layer should make it possible to MFC this code in a relatively short time. Some minor glitches (e.g. handling of ipfw set enable/disable, and a workaround for a bug in RELENG_7's /sbin/ipfw) will be fixed with separate commits. CREDITS: This work has been partly supported by the ONELAB2 project, and mostly developed by Riccardo Panicucci and myself. The code for the qfq scheduler is mostly from Fabio Checconi, and Marta Carbone and Francesco Magno have helped with testing, debugging and some bug fixes. Notes: svn path=/head/; revision=204591
* Correct mfip module dependency on mfi. This allows mfip to be loaded asKonstantin Belousov2010-03-022-0/+2
| | | | | | | | | | module when mfi is a module itself. Reviewed by: jhb, scottl MFC after: 1 week Notes: svn path=/head/; revision=204590
* Do not leak vnode lock when msdosfs mount is updated and specifiedKonstantin Belousov2010-03-021-3/+2
| | | | | | | | | | | | | device is different from the device used to the original mount. Note that update_mp does not need devvp locked, and pmp->pm_devvp cannot be freed meantime. Reported and tested by: pho MFC after: 3 weeks Notes: svn path=/head/; revision=204589
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-026-42/+0
| | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204588
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-021-7/+0
| | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204587
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-021-7/+0
| | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204586
* Always assign WARNS using ?=Ulrich Spörlein2010-03-0221-32/+28
| | | | | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204585
* remove unnecessary casts leftover from a bogus fix to a previous bugLuigi Rizzo2010-03-021-1/+1
| | | | Notes: svn path=/head/; revision=204582
* Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-styleRobert Watson2010-03-023-0/+3
| | | | | | | | | | pts devices when various policy ptys_equal flags are enabled. Submitted by: Estella Mystagic <estella at mystagic.com> MFC after: 1 week Notes: svn path=/head/; revision=204581
* Couple of suggestions from Sam regarding latest commit:Rui Paulo2010-03-027-13/+13
| | | | | | | | | | o rename the new variables to comply with the naming scheme o move the new variables to an AR5212 specific struct o use ahp when available o revert to previous ts_flags check Notes: svn path=/head/; revision=204579
* Add AR9285 sources.Rui Paulo2010-03-021-0/+1
| | | | Notes: svn path=/head/; revision=204578
* - Move rmi_pci_bus_space to header and avoid externRandall Stewart2010-03-025-145/+107
| | | | | | | | | | | | - remove unused and commented code (MIPS_BUS_SPACE_PCI, pic_usb_ack) - use rmi_pci_bus_space for USB too (needs byteswap) - uncomment xls_ehci.c in files.xlr - changes to xls_ehci.c - updated with dev/usb/controller/ehci_*.c as Obtained from: JC - c.jayachandran@gmail.com Notes: svn path=/head/; revision=204577
* Only destroy pm_fatlock on error if it was initialized.Konstantin Belousov2010-03-021-1/+1
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=204576
* Sync with recent changes from luigi - struct ng_ipfw_tag superceededGleb Smirnoff2010-03-021-16/+5
| | | | | | | | by more general ipfw_rule_ref. The latter isn't documented here, since it should be documented in ipfw.4. Notes: svn path=/head/; revision=204574
* MFV of r204563, tzdata2010c:Edwin Groothuis2010-03-021-3/+19
|\ | | | | | | | | | | | | | | Paraguay changes its DST schedule, postponing the March rule to April and modifying the October date. Notes: svn path=/head/; revision=204566
| * Vendor import of tzdata2010cvendor/tzdata/tzdata2010cEdwin Groothuis2010-03-021-3/+19
| | | | | | | | | | | | | | | | | | | | | | Paraguay changes its DST schedule, postponing the March rule to April and modifying the October date. Obtained from: ftp://elsie.nci.nih.gov/pub/ Notes: svn path=/vendor/tzdata/dist/; revision=204563 svn path=/vendor/tzdata/tzdata2010c/; revision=204564; tag=vendor/tzdata/tzdata2010c
* | Some style and language improvements.Alexander Motin2010-03-022-24/+32
| | | | | | | | | | | | | | Submitted by: ru Notes: svn path=/head/; revision=204565
* | -mabi-calls and -msoft-float aren't needed eitherWarner Losh2010-03-021-1/+1
| | | | | | | | | | | | | | Submitted by: jmallet@ Notes: svn path=/head/; revision=204559
* | - Unmark authentication support as a TODO item.Ulf Lilleengen2010-03-021-3/+2
| | | | | | | | Notes: svn path=/head/; revision=204558
* | Update macros for multiple ABI support from NetBSD.Warner Losh2010-03-023-23/+314
| | | | | | | | | | | | | | Also update SZREG define in ucontext Notes: svn path=/head/; revision=204557
* | - Move csup away from contrib/ and into usr.bin/. Software is no longerUlf Lilleengen2010-03-0265-145/+13
| | | | | | | | | | | | | | | | | | contributed, and main development is happening in the FreeBSD repo. Suggested by: joel Notes: svn path=/head/; revision=204556
* | The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-023-9/+0
| | | | | | | | | | | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204555
* | -mno-dsp hasn't been required for a while now.Warner Losh2010-03-021-1/+1
| | | | | | | | Notes: svn path=/head/; revision=204554
* | The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-022-14/+0
| | | | | | | | | | | | | | | | | | | | their software. Approved by: pjd Obtained from: NetBSD Notes: svn path=/head/; revision=204553
* | Merge projects/enhanced_coredumps (r204346) into HEAD:Alfred Perlstein2010-03-0212-29/+943
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enhanced process coredump routines. This brings in the following features: 1) Limit number of cores per process via the %I coredump formatter. Example: if corefilename is set to %N.%I.core AND num_cores = 3, then if a process "rpd" cores, then the corefile will be named "rpd.0.core", however if it cores again, then the kernel will generate "rpd.1.core" until we hit the limit of "num_cores". this is useful to get several corefiles, but also prevent filling the machine with corefiles. 2) Encode machine hostname in core dump name via %H. 3) Compress coredumps, useful for embedded platforms with limited space. A sysctl kern.compress_user_cores is made available if turned on. To enable compressed coredumps, the following config options need to be set: options COMPRESS_USER_CORES device zlib # brings in the zlib requirements. device gzio # brings in the kernel vnode gzip output module. 4) Eventhandlers are fired to indicate coredumps in progress. 5) The imgact sv_coredump routine has grown a flag to pass in more state, currently this is used only for passing a flag down to compress the coredump or not. Note that the gzio facility can be used for generic output of gzip'd streams via vnodes. Obtained from: Juniper Networks Reviewed by: kan Notes: svn path=/head/; revision=204552
* | Bring in more built-in defines from NetBSDWarner Losh2010-03-021-14/+73
| | | | | | | | | | | | | | | | | | | | | | | | a few #defines from JC. # tested only with o32 at the moment Submitted by: C. Jayachandran (CJ) Obtained from: NetBSD Notes: svn path=/head/; revision=204549
* | Add n32 ABI generators...Warner Losh2010-03-024-1/+11
| | | | | | | | | | | | | | Submitted by: neel, jmallet Notes: svn path=/head/; revision=204548
* | Remove taskqueue based interrupt handling. After r204541 msk(4)Pyun YongHyeon2010-03-022-155/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | does not generate excessive interrupts any more so we don't need to have two copies of interrupt handler. While I'm here remove two STAT_PUT_IDX register accesses in LE status event handler. After r204539 msk(4) always sync status LEs so there is no need to resort to reading STAT_PUT_IDX register to know the end of status LE processing. Just trust status LE's ownership bit. Notes: svn path=/head/; revision=204545
* | Document newly added loader tunable and sysctl variable dev.mskc.%d.int_holdoffPyun YongHyeon2010-03-011-1/+7
| | | | | | | | Notes: svn path=/head/; revision=204543
* | calculates the integer square root if a positive integer X is largerWeongyo Jeong2010-03-011-4/+5
| | | | | | | | | | | | | | | | | | than 256 instead of using sqrt_table. Reported by: Joe Marcus Clarke <marcus at freebsd dot org> Notes: svn path=/head/; revision=204542
* | Implement rudimentary interrupt moderation with programmablePyun YongHyeon2010-03-012-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | countdown timer register. The timer resolution may vary among controllers but the value would be represented by core clock cycles. msk(4) will automatically computes number of required clock cycles from given micro-seconds unit. The default interrupt holdoff timer value is 100us which will ensure less than 10k interrupts under load. The timer value can be changed with dev.mskc.0.int_holdoff sysctl node. Note, the interrupt moderation is shared resource on dual-port controllers so you can't use separate interrupt moderation value for each port. This means we can't stop interrupt moderation in driver stop routine. Also have msk_tick() reclaim transmitted Tx buffers as safety belt. With this change there is no need to check missing Tx completion interrupt in watchdog handler, so remove it. Notes: svn path=/head/; revision=204541
* | Make sure to enable flow-control only if established link isPyun YongHyeon2010-03-011-14/+11
| | | | | | | | | | | | | | | | | | | | | | full-duplex. Previously msk(4) used to allow flow-control on 1000baseT half-duplex media. Also GMAC pause is enabled if link partner is capable of handling it. While I'm here use IFM_OPTIONS instead of using IFM_GMASK to check optional flags of link. Notes: svn path=/head/; revision=204540
* | Properly sync status LEs after processing.Pyun YongHyeon2010-03-011-9/+2
| | | | | | | | Notes: svn path=/head/; revision=204539
* | Add PCI ID for MCS9901.Xin LI2010-03-011-0/+2
| | | | | | | | | | | | | | | | | | Submitted by: gcooper PR: kern/144397 MFC after: 1 month Notes: svn path=/head/; revision=204533
* | The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-012-14/+0
| | | | | | | | | | | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204523
* | The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-014-28/+0
| | | | | | | | | | | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204522
* | Properly setup the TX FIFO threshold for AR5416 based chipsets,Rui Paulo2010-03-016-5/+22
| | | | | | | | | | | | | | | | | | including the AR9285. This seems to fix some users's problems. Submitted by: Jorge Boncompte [DTI2] <jorge at dti2.net> Notes: svn path=/head/; revision=204521
* | The NetBSD Foundation has granted permission to remove clause 3 and 4 fromJoel Dahl2010-03-017-49/+0
| | | | | | | | | | | | | | | | | | their software. Obtained from: NetBSD Notes: svn path=/head/; revision=204520
* | Deliver siginfo when signal is generated by thr_kill(2) (SI_USER with properlyBruno Ducrot2010-03-011-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | filled si_uid and si_pid). Reported by: Joel Bertrand <joel.bertrand systella fr> PR: 141956 Reviewed by: kib MFC after: 2 weeks Notes: svn path=/head/; revision=204519
* | Print the contents of the miscellaneous (MISC) register to the console ifJohn Baldwin2010-03-012-0/+4
| | | | | | | | | | | | | | | | | | | | it is valid along with the other register values when a machine check is encountered. MFC after: 1 week Notes: svn path=/head/; revision=204518
* | Prefer vocabulary of 'Current' and 'Limit' to 'Value' and 'Maximum' inRobert Watson2010-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | netstat -Q. MFC after: 6 days Sponsored by: Juniper Networks Notes: svn path=/head/; revision=204515
* | Not all programs including kvm.h include the necessary headers to useRobert Watson2010-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | u_int, so prefer unsigned int. MFC after: 6 days Pointed out by: bz, kib, Mr Tinderbox Notes: svn path=/head/; revision=204511
* | - Add ALI M5228 PATA ID.Alexander Motin2010-03-012-1/+3
| | | | | | | | | | | | | | - Add missed DMA initialization for ALI SATA chips. Notes: svn path=/head/; revision=204509
* | Teach netstat -Q to work with -N and -M by adding libkvm versions of dataRobert Watson2010-03-013-26/+278
| | | | | | | | | | | | | | | | | | | | | | | | query routines. This code is necessarily more fragile in the presence of kernel changes than querying the kernel via sysctl (the default), but useful when investigating crashes or live kernel state via firewire. MFC after: 1 week Sponsored by: Juniper Networks Notes: svn path=/head/; revision=204499
* | Whitespace tweak.Robert Watson2010-03-011-1/+1
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=204498
* | Changes to support crashdump analysis of netisr:Robert Watson2010-03-012-113/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename the netisr protocol registration array, 'np' to 'netisr_proto', in order to reduce the chances of symbol name collisions. It remains statically defined, but it will be looked up by netstat(1). - Move certain internal structure definitions from netisr.c to netisr_internal.h so that netstat(1) can find them. They remain private, and should not be used for any other purpose (for example, they should not be used by kernel modules, which must instead use the public interfaces in netisr.h). - Store a kernel-compiled version of NETISR_MAXPROT in the global variable netisr_maxprot, and export via a sysctl, so that it is available for use by netstat(1). This is especially important for crashdump interpretation, where the size of the workstream structure is determined by the maximum number of protocols compiled into the kernel. MFC after: 1 week Sponsored by: Juniper Networks Notes: svn path=/head/; revision=204497