summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - most all includes (#include <>) migrate to the sctp_os_bsd.h filerrs2007-01-1828-883/+193
| | | | | | | | | | | | | | | - Finally all splxx() are removed - Count error fixed in mapping array which might cause a wrong cumack generation. - Invariants around panic for case D + printf when no invariants. - one-to-one model race condition fixed by using a pre-formed connection and then completing the work so accept won't happen on a non-formed association. - Some additional paranoia checks in sctp_output. - Locks that were missing in the accept code. Approved by: gnn
* Add support for LINUX_O_DIRECT, LINUX_O_DIRECT and LINUX_O_NOFOLLOW flagskib2007-01-181-17/+46
| | | | | | | | | | to open() [1]. Improve locking for accessing session control structures [2]. Try to document (most likely harmless) races in the code [3]. Based on submission by: Intron (intron at intron ac) [1] Reviewed by: jhb [2] Discussed with: netchild, rwatson, jhb [3]
* Fix definitions of kilobits etc.ru2007-01-181-21/+25
| | | | | | PR: bin/106116 Nudged by: Rostislav Krasny MFC after: 3 days
* Set topology change propagation on all ports _except_ the caller.thompsa2007-01-181-1/+1
|
* Revert previous change.rodrigc2007-01-181-1/+1
| | | | Requested by: kan
* Oops... Revert previous commit because "installathon" is really a contest'sdelphij2007-01-181-1/+1
| | | | name and not a typo.
* Fix a typo.delphij2007-01-181-1/+1
| | | | Submitted by: applecom at inbox ru
* Forward declare __pcpu as a pointer type instead of an array type torodrigc2007-01-181-1/+1
| | | | eliminate GCC 4.1 error: "array type has incomplete element type".
* Document the loader tunables which control hard process memory limits.bms2007-01-171-1/+21
| | | | Reviewed by: ru
* Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.delphij2007-01-176-8/+8
|
* Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.delphij2007-01-177-10/+10
|
* "If I only had a brain..."des2007-01-171-1/+1
| | | | MFC after: 3 weeks
* Correct errors in previous commit. I didn't realize that ${CPUTYPE} isdes2007-01-171-6/+6
| | | | | | | | passed unmodified to gcc. Therefore, "prescott" should be used for Prescott, Nocona, Core and Core 2 CPUs when building 32-bit code, and "nocona" should be used for Prescott, Nocona and Core 2 CPUs when building 64-bit code. MFC after: 3 weeks
* - Add a small section on boot-time configuration.joel2007-01-171-3/+30
| | | | | | | - Add more Xrefs. - Fix minor nits. Reviewed by: ru
* On i386, make "prescott" an alias for "nocona" (instead of the other waydes2007-01-172-6/+11
| | | | | | | | | around), and introduce "core", along with the alias "core2". All of these enable SSE3. On amd64, add "core2" (enables SSE3). MFC after: 3 weeks
* Fix a buffer overflow iff USB_DEBUG is set, hw.usb.ums.debug is > 5 and themarkus2007-01-171-3/+4
| | | | | | | | | total size of all input reports is < 6. PR: usb/106435 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: emax (mentor) MFC after: 3 days
* Add PCI Id's for upcoming controllers.scottl2007-01-171-1/+3
| | | | | Obtained from: LSI Corp. MFC After: 3 days
* Add 3436 file system regression tests in 184 files.pjd2007-01-17189-0/+7978
| | | | | | | | | | | | | | | | | Almost all regression tests are based on very flexible fstest tool. They verify correctness (POSIX conformance) of almost all file system-related system calls. The motivation behind this work is my ZFS port and POSIX, who doesn't provide free test suites. Runs on: FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS To try it out: # cd fstest # make # find tests/* -type d | xargs prove
* Create bus dma tags for both the PCI bus and the IXP425 root bus. Set thecognet2007-01-174-4/+31
| | | | | | | | PCI bus' one as the default one, and explicitely use the other one for non-PCI devices. This is needed because the PCI bus can only address 64MB of RAM, while some IXP425 boards have 128MB or more, and most of the PCI drivers do not bother providing the parent dma tag.
* - Add bounce pages for arm, largely based on the i386 implementation.cognet2007-01-175-33/+632
| | | | | | | - Add a default parent dma tag, similar to what has been done for sparc64. - Before invalidating the dcache in POSTREAD, save the bits which are in the same cachelines than our buffers, but not part of it, and restore them after the invalidation.
* Add a 3rd entry in the cache, which keeps the end positiontrhodes2007-01-162-3/+19
| | | | | | | | | | from just before extending a file. This has the desired effect of keeping the write speed constant. And yes, that helps a lot copying large files always at full speed now, and I have seen improvements using benchmarks/bonnie. Stolen from: NetBSD Reviewed by: bde
* Remove hptlock from the static witness table, now that it's a regular sleepssouhlal2007-01-161-1/+0
| | | | mutex.
* Resurrect upa(4), now used for the subordinate/slave UPA bridge andmarius2007-01-162-0/+515
| | | | | | | | bus hanging off from the Fireplane/Safari bus in some USIII machines. This is part 3/4 of allowing creator(4) to work in these machines. The little info needed on how to configure the bridge and to work around the incorrect values contained in the `interrupts' properties of its children were obtained form OpenSolaris.
* - Merge sys/sparc64/creator/creator_upa.c into sys/dev/fb/creator.c.marius2007-01-165-647/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The separate bus front-end was inherited from the OpenBSD creator(4), which at that time had a mainbus(4) (for USI/II machines, which use an UPA interconnection bus as the nexus) and an upa(4) (for USIII machines, which use a subordinate/slave UPA bus hanging off from the Fireplane/Safari interconnection bus) front-end. With FreeBSD and newbus there is/will be no need to have two separate bus front-ends for these busses, so we can easily coallapse the shared front-end and the back-end into a single source file (note that the FreeBSD creator_upa.c was misnomer anyway; based on what it actually attached to that should have been creator_nexus.c), actually OpenBSD meanwhile also has moved to a shared front-end and a single source file. Due to the low-level console support creator.c also wasn't free from bus related things before. While at it, also split sys/sparc64/creator/creator.h into a sys/dev/fb/creatorreg.h that only contains register macros and move the structures to the top of sys/dev/fb/creator.c as suggested by style(9) so creator(4) is no longer scattered over two directories. - Use OF_decode_addr()/sparc64_fake_bustag() to obtain the bus tags and handles for the low-level console support instead of hardcoding support for AFB/FFB hanging off from nexus(4) only. This is part 2/4 of allowing creator(4) to work in USIII machines (which have a UPA bus hanging off from the Fireplane/Safari bus reflected by the nexus), which already makes it work as the low-level console there. - Allocate resources in the bus attach routine regardless of whether creator(4) is used as for the low-level console and thus the required bus tags and handles have been already obtained or not so the resources are marked as taken in the respective RMAN. - For both obtaining the bus tags and handles for the low-level console support as well as allocating the corresponding resources in the regular bus attach routine don't bother to get all for the maximum of 24 register banks but only (for) the two tag/handle pairs required for providing the video interface for syscons(4) support. If we can't allocate the rest of them just limit the memory range accessible via creator_fb_mmap() accordingly. - Sanity check the memory range spanned by the first and last resources and the resources in between as far as possible, as the XFree86/Xorg sunffb(4) expects to be able to access the whole region, even though the backing resources are actually non-continuous. Limit and check the memory range accessible via creator_fb_mmap() accordingly. - Reduce the size of buffers for OFW properties to what they actually need to hold. - Rename some tables to creator_<foo> for consistency. - Also for the sizes in the creator_fb_mmap() mapping table entries use macros for consistency, add macros for the remaining register banks for completeness.
* Teach OF_decode_addr() about the bus space used for devices on themarius2007-01-161-1/+5
| | | | | | | | nexus (which might or might not reflect an UPA interconnection bus; accordingly UPA_BUS_SPACE should be renamed to NEXUS_BUS_SPACE at a later point) and subordinate/slave UPA busses. This is part 1/4 of allowing creator(4) to work in USIII machines (which have a UPA bus hanging off from the Fireplane/Safari bus reflected by the nexus).
* o In re_newbuf() and re_encap() if re_dma_map_desc() aborts the mappingmarius2007-01-162-48/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | operation as it ran out of free descriptors or if there are too many segments in the first place, call bus_dmamap_unload() in order to unload the already loaded segments. For trying to map the defragmented mbuf (chain) in re_encap() this introduces re_dma_map_desc() setting arg.rl_maxsegs to 0 as a new failure mode. Previously we just ignored this case, corrupting our view of the TX ring. o In re_txeof(): - Don't clear IFF_DRV_OACTIVE unless there are at least 4 free TX descriptors. Further down the road re_encap() will bail if there aren't at least 4 free TX descriptors, causing re_start() to abort and prepend the dequeued mbuf again so it makes no sense to pretend we could process mbufs again when in fact we won't. While at it replace this magic 4 with a macro RL_TX_DESC_THLD throughout this driver. - Don't cancel the watchdog timeout as soon as there's at least one free TX descriptor but instead only if all descriptors have been handled. It's perfectly normal, especially in the DEVICE_POLLING case, that re_txeof() is called when only a part of the enqueued TX descriptors have been handled, causing the watchdog to be disarmed prematurely. o In re_encap(): - If m_defrag() fails just drop the packet like other NIC drivers do. This should only happen when there's a mbuf shortage, in which case it was possible to end up with an IFQ full of packets which couldn't be processed as they couldn't be defragmented as they were taking up all the mbufs themselves. This includes adjusting re_start() to not trying to prepend the mbuf (chain) if re_encap() has freed it. - Remove dupe initialization of members of struct rl_dmaload_arg to values that didn't change since trying to process the fragmented mbuf chain. While at it remove an unused member from struct rl_dmaload_arg. o In re_start() remove a abandoned, banal comment. The corresponding code was moved to re_attach() some time ago. With these changes re(4) now survives one day (until stopped) of hammering out packets here. Reviewed by: yongari MFC after: 2 weeks
* Fix a typo in a comment, introduced in rev. 1.19.brueffer2007-01-161-1/+1
|
* Disable MSI for the Intel 845 and 865 chipsets and update comment forjhb2007-01-161-1/+3
| | | | E7210 to note it is the same devid as the 875 chipset.
* Fix a spelling error. heirarchy -> hierarchy.mpp2007-01-161-1/+1
| | | | Obtained from: OpenBSD
* Fix a spelling error in some comments. heirarchy -> hierarchy.mpp2007-01-161-2/+2
| | | | Obtained from: OpenBSD
* o Remove duplicate #include <errno.h>.maxim2007-01-161-1/+0
| | | | Obtained from: NetBSD (submitted by Slava Semushin)
* Correct driver_t brgphy_driver, which was forgotten from the last commit.jkim2007-01-161-1/+1
|
* Fix the subvendor ID for PCI-PCI bridges.jhb2007-01-162-5/+11
| | | | | | | | | | | - Retire the PCI_SUB*_1 constants and don't try to read a subvendor ID out of them. There isn't a standard subvendor ID field for PCI-PCI bridges. Instead, the dword at offset 0x34 is actually mostly reserved except for the LSB which is the capabilities pointer. - Add support for the PCI-PCI bridge subvendor ID capability (13) and use it to set the subvendor ID for PCI-PCI bridges. MFC after: 1 month
* Remove duplicate variable initialization.jhb2007-01-161-1/+0
| | | | | CID: 1706 Found by: Coverity Prevent (tm)
* Avoid infinite loop if nicmp6 and nip6 are not on the same mbuf.ume2007-01-161-1/+2
| | | | | | NetBSD PR 34994+35333 MFC after: 3 days
* When we try to set set-gid bit with chmod(2) on a file, which we own, but ourpjd2007-01-161-1/+5
| | | | | | effective group ID (and any of our group) doesn't match the group ID of the file, we get EPERM. This doesn't conform POSIX. POSIX requires that we should return 0, but silently clear the set-gid bit.
* Fix typo in a comment.joel2007-01-161-1/+1
|
* Removes useless (flags | ) KASSERT. The ^ one that actuallyrrs2007-01-161-6/+1
| | | | | | | | does what we want. Submitted by: Li Xin delphij@delphij.net Reviewed by: rrs Approved by: gnn
* Add French dvorak keymap that supports accents. Based on Francismurray2007-01-163-1/+159
| | | | | | | Leboutte's french layout. Submitted by: Clement Pillias <clementpillias@nerim.net> MFC after: 1 week
* Provide a more accurate description of the size of the ports collection.murray2007-01-161-1/+1
|
* Move MII model and revision into softc.jkim2007-01-161-14/+24
|
* Fix warning by adding extra parentheseskmacy2007-01-161-1/+1
|
* Document that uniq(1) limits input line length to LINE_MAX characters.keramida2007-01-151-0/+4
| | | | | | PR: docs/107578 Submitted by: Jan Schaumann, jschauma.at.netmeister.org MFC after: 3 days
* Check the return value of bus_setup_intr() when setting up themarius2007-01-151-10/+12
| | | | | | | over-temperature and power-fail interrupts. Suggested by: Coverity Prevent (CID 683) MFC after: 1 week
* - Move Ethernet@WireSpeed and jumbo frame configurations to separatejkim2007-01-151-48/+60
| | | | | | | functions. The idea is taken from OpenBSD. - Set/clear jumbo frame configurations for bge(4). - Re-add BCM5750 PHY workaround for bce(4), which was mistakenly removed from the previous commit.
* - Fix BCM5754 support found in Dell PowerEdge SC440.jkim2007-01-154-41/+85
| | | | | | | | | | | - Move some PHY bug detections from brgphy.c to if_bge.c. - Do not penalize working PHYs. - Re-arrange bge_flags roughly by their categories. - Fix minor style(9) nits. PR: kern/107257 Obtained from: OpenBSD Tested by: Mike Hibler <mike at flux dot utah dot edu>
* Rewrite the udf_read() routine to use a file vnode instead of the devvp vnode.pav2007-01-151-24/+52
| | | | | | | | | | | | The code is modelled after cd9660, including support for simple read-ahead courtesy of clustered read. Fix udf_strategy to DTRT. This change fixes sendfile(2) not to send out garbage. Reviewed by: scottl MFC after: 1 month
* Clean up some debug prints from last commit and move one under boot -v.njl2007-01-151-6/+5
| | | | Reminded by: bruno
* Add a missing mutex unlock to an error path.scottl2007-01-151-0/+1
| | | | | Submitted by: Yuxiang Luo PR: 107943
* Tidy up formatting and some wording.ru2007-01-152-43/+65
|
OpenPOWER on IntegriCloud