summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Temporary unhook ntp from the build until the missing net/libopts/Makefilebz2008-08-221-1/+1
| | | | is in place. The TB is too busy sending mails.
* A suspended thread can, in fact, be swapped out. Thus,jhb2008-08-222-15/+28
| | | | | | | | thread_unsuspend_one() needs to optionally wakeup the swapper. Since we hold the thread lock for that entire function, however, we have to push that requirement up into the caller. Found by: rwatson
* Use |= rather than += when aggregrating requests to wakeup the swapper.jhb2008-08-221-2/+2
| | | | | What we really want is an inclusive or of all the requests, and += can in theory roll over to 0.
* Add myself there.roberto2008-08-221-0/+1
|
* Update the various files to sync with vendor import of 4.2.4p5.roberto2008-08-2213-106/+326
| | | | | | | | sntp includes a copy of libopts in itself in vendor code, rewrite the Makefile to compile and use only one copy. It is an internal library, not installed. MFC after: 2 weeks
* Merge ntpd & friends 4.2.4p5 from vendor/ntp/dist into head. Next commitroberto2008-08-22563-55122/+193226
|\ | | | | | | | | | | will update usr.sbin/ntp to match this. MFC after: 2 weeks
| * Import ntp 4.2.4p5 in the vendor code area. Far too many changes to list here,roberto2008-08-18563-55124/+193221
| | | | | | | | | | | | | | please see CommitLog for detailed changes. XXX html/build/hints/solaris.xtra.4095849 is not being imported as it conflicts with the detect-merge-conflict.sh script in our repo.
| * Flatten the dist and various 4.n.n trees in preparation of future ntp imports.roberto2008-08-17724-0/+0
| |
* | Add myself.trasz2008-08-221-0/+2
| | | | | | | | Approved by: rwatson
* | Back FreeBSD(98)'s copyright to 2003.nyan2008-08-221-1/+1
| |
* | Fix pts(4) error codes when slave device is closed.ed2008-08-221-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike pre-MPSAFE TTY, the pts(4) driver always returned ENXIO when a read() or write() was performed on a pseudo-terminal master device when the slave device was not opened. The old implementation had different semantics: - When the slave device had not been opened yet, read() and write() just blocked. - When the slave device had been closed, a read() call would return 0 bytes length. - When the slave device had been closed, a write() call would return EIO. Change the new implementation to return 0 and EIO as well. We don't implement the first rule, but I suspect this is not needed, because routines like openpty() also open the slave device node. posix_openpt() users also do similar things. Reported by: rink Tested by: rink
* | Add -fno-omit-frame-pointer to CFLAGS used to compile crt1.c on amd64.kib2008-08-221-0/+1
| | | | | | | | | | | | | | | | | | | | For gcc' __builtin_frame_address() to work, all call frames need to save frame pointer. In particular, this is important for the upper frame that should terminate the chain. No objections from: jhb PR: amd64/126543 MFC after: 1 week
* | Add a new sysctl node 'dev.bfe.N.stats' that shows various MACyongari2008-08-222-53/+300
| | | | | | | | | | | | | | | | counters for Rx/Tx statistics. Various counters in ifnet is also updated with these hardware counters. Tested by: kib, Gleb Kurtsou gleb.kurtsou at gmail dot com Ulrich Spoerlein uspoerlein at gmail dot com
* | Prevent VSTART flooding when turning on software flow control.ed2008-08-221-1/+1
| | | | | | | | | | | | | | | | It turned out we transmitted VSTART after each successful read on a TTY when software flow control was turned on. This was because of a very evil bug where we tested the TF_HIWAT_IN flag the other way around. Reported by: Christian Weisgerber <naddy mips inka de>
* | Because bfe(4) knows interrupt mask value there is no need to readyongari2008-08-221-6/+4
| | | | | | | | | | | | | | | | | | interrupt mask register again. This saves one register access per each interrupt. Also don't try to process frames when driver is not running. Tested by: kib, Gleb Kurtsou gleb.kurtsou at gmail dot com Ulrich Spoerlein uspoerlein at gmail dot com
* | Comment a couple of places where bsdcpio and gcpio 2.9 disagree.kientzle2008-08-223-2/+10
| | | | | | | | | | | | The number of blocks read from ustar archives is just an implementation difference. The failure of bsdcpio to emit a block count to stderr in -p mode is a real bug in bsdcpio.
* | Extend the support for PCI-e memory mapped configuration space access:jhb2008-08-225-39/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename pciereg_cfgopen() to pcie_cfgregopen() and expose it to the rest of the kernel. It now also accepts parameters via function arguments rather than global variables. - Add a notion of minimum and maximum bus numbers and reject requests for an out of range bus. - Add more range checks on slot/func/reg/bytes parameters to the cfg reg read/write routines. Don't panic on any invalid parameters, just fail the request (writes do nothing, reads return -1). This matches the behavior of the other cfg mechanisms. - Port the memory mapped configuration space access to amd64. On amd64 we simply use the direct map (via pmap_mapdev()) for the memory mapped window. - During acpi_attach() just after loading the ACPI tables, check for a MCFG table. If it exists, call pciereg_cfgopen() on each subtable (memory mapped window). For now we only support windows for domain 0 that start with bus 0. This removes the need for more chipset-specific quirks in the MD code. - Remove the chipset-specific quirks for the Intel 5000P/V/Z chipsets since these machines should all have MCFG tables via ACPI. - Updated pci_cfgregopen() to DTRT if ACPI had invoked pcie_cfgregopen() earlier. MFC after: 2 weeks
* | The newc-format verification is now a little smarter aboutkientzle2008-08-221-9/+24
| | | | | | | | | | | | following the archive structure. In particular, it no longer crashes if you run it against GNU cpio 2.9 (although it does still complain a lot more than it should).
* | Minor cleanup of the -q test: Assert that stdout/stderr are empty for eachkientzle2008-08-221-3/+9
| | | | | | | | extraction.
* | Don't clean before running tests.kientzle2008-08-221-1/+1
| |
* | Explain how the test_option_q test works.kientzle2008-08-221-0/+15
| |
* | Test for -q (aka --fast-read).kientzle2008-08-223-1/+106
| | | | | | | | Fix the error uncovered by this test.
* | Remove bfe_link in softc and introduce two new flags to markyongari2008-08-222-12/+21
| | | | | | | | | | | | | | | | | | link state and detach request. While I'm here make sure established link is IFM_10_T or IFM_100_TX as bfe(4) just supports 10/100Mbps media. Tested by: kib, Gleb Kurtsou gleb.kurtsou at gmail dot com Ulrich Spoerlein uspoerlein at gmail dot com
* | Add the Decision Computer Inc, PCCOM 8-port serial card.thompsa2008-08-221-0/+6
| | | | | | | | | | PR: kern/69730 Submitted by: Darrin Smith
* | Add the VScom PCI-100L card.thompsa2008-08-221-0/+6
| | | | | | | | | | PR: kern/72352 Submitted by: Thomas Nystrom
* | Add the Avlab Technology PCI IO 4S-850 4 port serial card.thompsa2008-08-211-0/+6
| | | | | | | | | | PR: kern/110797 Submitted by: Trevor Roydhouse
* | Add comments on NOARGS, NODEF, and NOPROTO.obrien2008-08-212-0/+15
| |
* | The results for test 2 here are short enough to just be included inline.kientzle2008-08-212-8/+3
| | | | | | | | | | There's no need to go through the hassle of having a checked-in uuencoded reference file for comparison.
* | Add support for the Alcor Card Reader (9361)remko2008-08-212-0/+5
| | | | | | | | | | | | | | PR: 124656 Submitted by: Vincent Francois <vincentfrancois dot pro at gmail dot com> Approved by: imp (mentor, implicit) MFC after: 1 week
* | Add a "CACHING" section regarding the internal caching of kernel variablesjhb2008-08-211-0/+8
| | | | | | | | and the ability to clear that cache.
* | Merge the relevant information of man4.i386/ichwd.4 into man4/ichwd.4rpaulo2008-08-213-84/+25
| | | | | | | | | | | | | | | | and remove ichwd(4) man page from man4.i386. Submitted by: gavin Reviewed by: des, me Approved by: des
* | Remove comments and #ifdef notyet'd code relating to directly dispatchingrwatson2008-08-211-17/+0
| | | | | | | | | | | | | | | | the IP multicast input code from the output path; we don't allow reentrance of the input path from the IP output path, it must use the netisr due to potential lock recursion. MFC after: 3 days
* | Increase cryptotest tool initialization vector (IV) size.raj2008-08-211-1/+1
| | | | | | | | | | | | | | | | This fixes potential out-of-bound accesses when testing ciphers with block size greater than 8 bytes (e.g. AES). Submitted by: Bartlomiej Sieka tur ! semihalf dot com Discussed with: pjd, sam
* | Adapt mxge shims to detect phys contig jumbo framesgallatin2008-08-211-1/+2
| | | | | | | | | | | | in RELENG_7 MFC after: 3 days
* | Properly lock proctree_lock before locking the process while accounting.ed2008-08-211-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | During the import of the MPSAFE TTY layer (r181905), I changed acct_process() to lock proctree_lock instead of SESS_LOCK, because s_ttyp is now locked using proctree_lock. One of the things I forgot, was to lock it before we PROC_LOCK. Commit this patch, written by kib@. To ensure we hold proctree_lock as short as possible, obtaining `ac_tty' has now been made the first step of filling `acct'. Reported by: Kevin <kevinxlinuz 163 com> Solved by: kib
* | Use the SCHEME_ knobs rather than knowing what they expand to.obrien2008-08-211-2/+2
| | | | | | | | Reviewed by: des
* | Lockf was exiting with status 1 if the command did not exit normally.dwmalone2008-08-212-1/+6
| | | | | | | | | | | | | | This is easy to confuse with the actual exit status of the program. Instead exit with EX_SOFTWARE if the command doesn't exit normally. MFC after: 1 month
* | Add some more tests to verify that "./foo" matches "foo" but "/foo" does not.kientzle2008-08-214-1/+76
| |
* | Always display the unedited pathname in -t output.kientzle2008-08-214-21/+12
| | | | | | | | | | | | | | I would like to provide a way to preview the effects of pathname edits, but pattern selection has to happen against the unedited path, so it seems that we have to show people the unedited path to help in designing selection patterns.
* | o Sort includes and add <endian.h> to support endianness.yongari2008-08-212-371/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Removed unneeded header files. o bus_dma(9) fix: - created parent tag with 1GB dma address limit with no alignment restrictions. - set 4096 alignment limit for Tx/Rx descriptor rings. - separate Rx buffer tag from Tx buffer tag such that Tx tag allows up-to 16 segments while Rx buffer tag only allows single segment. - it seems the controller has no alignment restrictions on Tx/Rx buffers. Remove ETHER_ALIGN alignment restriction in Tx/Rx buffers. - created a spare Rx dma map which would be used to cope with failure of loading a dma map. - make sure to load full Tx/Rx descriptor size for Tx/Rx descriptor dma maps, previously bfe(4) used to load single descriptor size for each descriptor rings. I have no idea how it could be run without problems. - don't blindly cast bus_addr_t type to 32bits in bfe_dma_map(). - created bfe_dma_free() to free allocated dma memory/tags. - make sure to invoke bus_dmamap_sync(9) before/after processing descriptor rings/buffers. Because the hardware has severe dma address space limitation, bounce-buffers would be always used on systems with more than 1GB memory during descriptors/buffers access. - added Tx descriptor ring initialization function, bfe_list_tx_init(). - moved producer/consumer index initialization to bfe_list_tx_init() and bfe_list_rx_init() from bfe_chip_reset(). - added bfe_discard_buf() which will update loaded descriptors without unloading/reloading the dma map to speed up error recovery. - implemented Tx side bus_dmamap_load_mbuf_sg(9). The number of segments allowed was chosen to be 16 which should be enough for non-TSO capable hardwares. Setting SOF bit of Tx descriptor is done in the last to avoid potential race. - don't give up sending frames in bfe_start() until the hardware lacks free descriptors. - added XXX comment to second kick command and possible workaround. - implemented Rx side bus_dmamap_load_mbuf_sg(9). - removed bfe_dma_map_desc() as it's not needed anymore after the conversion to bus_dmamap_load_mbuf_sg(9). - added endianness support. With this change bfe(4) should work on any architectures that can create bounce buffers within 1GB address range. - add missing bus_dmamap_sync() in bfe_tx_eof()/bfe_rx_eof(). o Use PCI_BAR instead of hardcoded value to set BARs. Simplified register access with bus_write_4(9)/bus_read_4(9) and removed bfe_btag, bfe_bhandle, bfe_vhandle in softc as it's not used anymore. o Reorder device detach logic such that bfe_detach() is also used for handling driver attach failure case. o Remove unnecessary KASSERT in bfe_detach(). o Remove bfe_rx_cnt, bfe_up, bfe_vpd_prodname, bfe_vpd_readonly in softc. It's not used at all. o Remove BFE_RX_RING_SIZE/BFE_RX_RING_SIZE/BFE_LINK_DOWN. Tested by: kib, Gleb Kurtsou gleb.kurtsou at gmail dot com Ulrich Spoerlein uspoerlein at gmail dot com
* | Fix boot time pmap_growkernel panic for case where vm is allocated >= 768Mkmacy2008-08-211-1/+3
| | | | | | | | MFC after: 1 month
* | For reasons that I have not delved in to Xen 3.2 netback now does header ↵kmacy2008-08-211-21/+38
| | | | | | | | | | | | | | | | | | splitting so packets > 128 bytes are now split in to multiple buffer. This fixes netfront to handle multiple buffers per rx packet. MFC after: 1 month
* | Move man pages out of man4.i386. Most of them are applicable to amd64rpaulo2008-08-2112-12/+23
| | | | | | | | | | | | | | | | | | too, so, instead of descending to the i386 directory, we add some magic to the parent Makefile. These man pages refer to drivers that I'm aware that work on amd64. Most likely there are more, but I'll deal with them later. Approved by: brueffer, philip, takawata
* | Cope with the file rename by changing rc variables.rpaulo2008-08-211-4/+4
| |
* | Fix a small typo in the pstat(8) manual page.ed2008-08-201-1/+1
| | | | | | | | | | The second LOW column of the pstat(8) command refers to the low watermark of the output queue.
* | fix typo in previous commit breaking bootupkmacy2008-08-201-1/+1
| | | | | | | | pointed out by: Takahashi Yoshihiro nyan@
* | The config space registers holding the upper 32-bits of the prefetchablejhb2008-08-202-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | memory area's base and limit are optional. The low 4-bits of the "low" prefetchable registers indicates whether or not a 32-bit or 64-bit region is supported. The PCI-PCI driver had been assuming that all bridges supported a 64-bit region (and thus the two upper 32-bit registers). Fix the driver to only use those registers if the low 4-bits of the "low" registers indicate that a 64-bit region is supported. The PCI-PCI bridge in the XBox happens to be a bridge that only supports a 32-bit region. Reported by: rink MFC after: 1 week
* | - Add support for memory mapped PCI config space access on Intel 915GMjhb2008-08-201-3/+23
| | | | | | | | | | | | | | | | | | | | | | and 5000P/V/Z chipsets. - If the base address of the config space BAR is above 4GB for some reason and this isn't a PAE kernel, then warn about this (under bootverbose) and don't use the BAR. PR: kern/126525 Submitted by: Arthur Hartwig @ Nokia MFC after: 2 weeks
* | Use switch statements instead of if-else for enabling PCI-express configjhb2008-08-201-3/+9
| | | | | | | | | | | | space support. MFC after: 1 week
* | cpio should restore file flags and ACLs when they're availablekientzle2008-08-201-0/+2
| |
OpenPOWER on IntegriCloud