summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Commit step 1 of the vimage project, (network stack)bz2008-08-17139-2370/+2859
| | | | | | | | | | | | | | | | | | | | | | | | virtualization work done by Marko Zec (zec@). This is the first in a series of commits over the course of the next few weeks. Mark all uses of global variables to be virtualized with a V_ prefix. Use macros to map them back to their global names for now, so this is a NOP change only. We hope to have caught at least 85-90% of what is needed so we do not invalidate a lot of outstanding patches again. Obtained from: //depot/projects/vimage-commit2/... Reviewed by: brooks, des, ed, mav, julian, jamie, kris, rwatson, zec, ... (various people I forgot, different versions) md5 (with a bit of help) Sponsored by: NLnet Foundation, The FreeBSD Foundation X-MFC after: never V_Commit_Message_Reviewed_By: more people than the patch
* Update a comment about not numbering pci busses. This may soon beimp2008-08-171-7/+9
| | | | OBE, but was sitting around in one of my trees for a while...
* LRO combined packets can actually be bridged as long as all the interfaces alsothompsa2008-08-161-5/+6
| | | | | | support TSO, this can always be disabled manually if undesirable. Pointed out by: gallatin
* Remove useless #if 1.imp2008-08-161-2/+0
|
* Prevent crashes due to unlocked access to hash buckets in two sysctls.alfred2008-08-161-0/+4
| | | | | | | | | Use CACHE_LOCK to prevent crashes. Sysctls fixed: debug.hashstat.nchash and debug.hashstat.rawnchash. Obtained from: Juniper Networks MFC After: 1 week
* Call in to xen for privileged aspects of context switchingkmacy2008-08-161-6/+18
| | | | MFC after: 1 month
* SCSI_DELAY is specified in milliseconds, not seconds.ken2008-08-161-1/+1
| | | | | Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com> MFC after: 1 week
* Add some sysctl reporting for most pci_pci bridges. We now reportimp2008-08-162-3/+21
| | | | | | | | | | | | | domain, pribus (the primary bus, eg the bus that this chip is on), secbus (the secondary bus, eg the bus immediately behind this chip) and subbus (the number of the highest bus behind this chip). Normally, this information is reported via bootverbose parameters, but that's hard to use for debugging in some cases. This adds reading of pribus to make this happen. In addition, change the narrow types to u_int to allow for easier reporting via sysctl for domain, secbus and subbus. This should have no effect, but if it does, please let me know.
* Fix a regression introduced in r179289 splitting up ip6_savecontrol()bz2008-08-163-8/+17
| | | | | | | | | | | | into v4-only vs. v6-only inp_flags processing. When ip6_savecontrol_v4() is called from ip6_savecontrol() we were not passing back the **mp thus the information will be missing in userland. Istead of going with a *** as suggested in the PR we are returning **mp now and passing in the v4only flag as a pointer argument. PR: kern/126349 Reviewed by: rwatson, dwmalone
* disable PREEMPTION pending bug fixes to i386/xen/pmap.ckmacy2008-08-151-2/+4
| | | | MFC after: 1 month
* Call in to xen for fpu handling when XEN is setkmacy2008-08-151-1/+10
| | | | MFC after: 1 month
* Import check for xen features.kmacy2008-08-151-0/+24
| | | | MFC after: 1 month
* Add flag to indicate to xen support code that threads are running (and thus ↵kmacy2008-08-151-0/+3
| | | | | | we can block). MFC after: 1 month
* Integrate configuration bits for compling xen.kmacy2008-08-155-9/+186
| | | | MFC after: 1 month
* Integrate support for xen in to i386 common code.kmacy2008-08-1516-17/+687
| | | | MFC after: 1 month
* Improve the glimpse target: don't index .svn and compile directories.philip2008-08-151-0/+4
| | | | Suggested by: brooks
* Convert the snp(4) driver to use cdevpriv.ed2008-08-151-66/+46
| | | | | | | | | | | | | Now we have a single /dev/snp device node, which can be opened by watch(8) multiple times. Even though snp(4) will be dead as of next week, it's nice having this in SVN, because: - We may want to MFC it to RELENG_7. - By the time we fix snp(4) again, it's already there, existing watch(8) binaries should already work. Just like bpf(4), I'm adding a symlink from snp0 to snp to remain binary compatible.
* Introduce a new loader tunable "hw.ata.ata_dma_check_80pin", defaulting to 1.philip2008-08-153-1/+13
| | | | | | | | | This can be used to disable the 80pin cable check on systems which forget to set the bit -- such as certain laptops and Soekris boards. PR: kern/114605 (somewhat reworked) Submitted by: marck MFC after: 1 week
* Add strcspn to libkern for use by xenbus routines. Will add to buildkmacy2008-08-152-0/+73
| | | | in separate commit.
* Compile fixes for xen build.kmacy2008-08-1515-166/+223
| | | | MFC after: 1 month.
* Move wb driver from sys/pci to sys/dev/wb.imp2008-08-144-3/+3
|
* Move pcn driver from sys/pci to sys/dev/pcn.imp2008-08-144-3/+3
|
* Move the ste driver from sys/pci to sys/dev/ste.imp2008-08-144-3/+3
|
* Move the tl driver form sys/pci to sys/dev/tl.imp2008-08-144-3/+3
|
* Fix a typo: jme -> agekevlo2008-08-141-1/+1
|
* cosmetic changes and style fixesmarius2008-08-1319-252/+255
|
* Use int32_t/int16_t instead of int/short as sys/net/bpf_filter.c does.jkim2008-08-132-8/+8
|
* - Remove unnecessary jump instruction(s) when offset(s) is/are zero(s).jkim2008-08-134-156/+168
| | | | - Constantly use conditional jumps for unsigned integers.
* In the case of POWERFAIL_NMI, remove the Giant acquisitions because theyattilio2008-08-131-4/+0
| | | | | | can lead to a deadlock if the thread owning the Giant lock is interrupted by the NMI. Instead, tollerate a small race on the x86 architecture.
* Introduce some WITNESS improvements:attilio2008-08-133-492/+1068
| | | | | | | | | | | | | | | | | | | | | | | | | | - Speedup the lock orderings lookup modifying the witness graph from a linked tree to a matrix. A table lookup caches the lock orderings in order to make a O(1) access for them. Any witness object has an unique index withing this lookup cache table. - Reduce the lock contention on w_mtx acquiring it only when the LOR actually happens and not in a sane case. In order to do this don't totally flush lock lists (per-CPU spinlocks list and per-thread sleeplocks list) but check for ll_count anytime we need to have to verify allocations sanity. - Introduce the function witness_thread_exit() in the witness namespace which should verify a thread doesn't hold any witness occurrence why exiting. - Rename the sysctl debug.witness.graphs into debug.witness.fullgraph and add debug.witness.badstacks which prints out stacks for LOR revealed. This is implemented using the stack(9) support, which makes WITNESS to be dependent by the STACK option or by the DDB (including STACK) option. - Fix style(9) for src/sys/kern/subr_witness.c The hash table approach has been developed by Ilya Maykov on the behalf of Isilon Systems which kindly released the patch. Jeff Roberson, ported the patch to -CURRENT and fixed w_mtx contention, on the behalf of Nokia. Submitted by: Ilya Maykov <ivmaykov at gmail dot com> (Isilon Systems), jeff Sponsored by: Nokia
* Bump __FreeBSD_version to 800043, because of the bpf(4) change.ed2008-08-131-1/+1
| | | | | | | | | | | | bpf(4) now uses cdevpriv to distinguish multiple file descriptors, where it used to be implemented using device cloning. Ports like libpcap properly detect the change in their configure scripts, but it doesn't hurt to increase __FreeBSD_version. While there, change the bpf(4) manual page to refer to /dev/bpf instead of /dev/bpfN. Requested by: mlaier
* Fix REDZONE(9) on amd64 and perhaps other 64 bit targets -- ensure the spaceemaste2008-08-131-0/+2
| | | | | | | that redzone adds to the allocation for storing its metadata is at least as large as the metadata that it will store there. Submitted by: Nima Misaghian
* Attach the cpufreq child devices with specific orders to enforce relativejhb2008-08-135-5/+5
| | | | | | | | | | | | | | priority of some of the drivers that manage the same state (e.g. ichss0 vs est0). Specifically, powernow, est, and p4tcc are added at order 10, ichss at order 20, and smist at order 30. Previously, some laptops were seeing both ichss0 and est0 attaching and stomping on each other. XXX: This isn't quite ideal, but works with the existing hacks, I think what we really want instead is a single "speedstep0" device for CPUs that the ichss, est, and smist drivers probe (but with differing priorities). MFC after: 1 week
* Change bpf(4) to use the cdevpriv API.ed2008-08-131-80/+62
| | | | | | | | | | | | | | | | | | Right now the bpf(4) driver uses the cloning API to generate /dev/bpf%u. When an application such as tcpdump needs a BPF, it opens /dev/bpf0, /dev/bpf1, etc. until it opens the first available device node. We used this approach, because our devfs implementation didn't allow per-descriptor data. Now that we can, make it use devfs_get_cdevpriv() to obtain the private data. To remain compatible with the existing implementation, add a symlink from /dev/bpf0 to /dev/bpf. I've already changed libpcap to compile with HAVE_CLONING_BPF, which makes it use /dev/bpf. There may be other applications in the base system (dhclient) that use the loop to obtain a valid bpf. Discussed on: src-committers Approved by: csjp
* o Add a quirk for Sony Handycam DCR-HC32E.maxim2008-08-131-0/+4
| | | | | | PR: usb/96599 Submitted by: Eugene Grosbein MFC after: 1 week
* Add a missing call to mtx_destroy() in clnt_reconnect_destroy().dfr2008-08-131-0/+1
| | | | | Submitted by: zachary.loafman at isilon.com MFC after: 2 weeks
* Fix an interop issue with Linux: If you do nothing but TCPdfr2008-08-131-54/+115
| | | | | | | | | | | mounts, Linux won't even bother registering nlockmgr for UDP. This causes nlm_get_rpc to fail, which means any attempts to deliver the GRANTED callback fail. Add code to nlm_get_rpc to try to locate the TCP version as well. If it finds it on TCP, it establishes a clnt_reconnect to the host. Submitted by: zachary.loafman at isilon.com MFC after: 2 weeks
* Fix compilation of arm's AVILA.ed2008-08-132-2/+3
| | | | | | | | | | | | | | | Compilation of the AVILA kernel failed because of two reasons: - It needed curthread, which is defined through <sys/pcpu.h>. - It still referred the softc's sc_mtx field, which has been replaced by sc_lock three weeks ago. To solve the first problem, I decided to include <sys/pcpu.h> in <sys/sx.h>, which also seems to be done by <sys/mutex.h> and <sys/rwlock.h>. Those header files also require curthread. Approved by: jhb
* Fix VLAN hardware tag insertion/stripping on big-endianyongari2008-08-131-2/+2
| | | | | | | | architectures. Reported by: naddy Tested on: sparc64 MFC after: 1 week
* Fix runt TSO packet issue.kmacy2008-08-131-20/+23
| | | | | Obtained from: Chelsio Inc. MFC after: 1 week
* Add LRO and MAC statistics to exported sysctls.kmacy2008-08-133-14/+139
| | | | | Obtained from: Chelsio Inc. MFC after: 1 week
* MFamd64: Remove unused macros.jkim2008-08-121-21/+0
|
* Update copyrights and fix style(9).jkim2008-08-124-22/+22
|
* Reduce the scope of the vnode lock such that it does not covercsjp2008-08-121-1/+5
| | | | | | | | | | | | | the various copyouts associated with initializing the process's argv/env data in userspace. It is possible that these copyout operations can fault under memory pressure, possibly resulting in dead locks. This is believed to be safe since none of the copyout_strings() operations need to interact with the vnode here. Submitted by: Zhouyi Zhou PR: kern/111260 Discussed with: kib MFC after: 3 weeks
* Style(9).pjd2008-08-121-3/+4
|
* Reduce number of stack usages with unused %edi.jkim2008-08-121-7/+8
|
* Replace all stack usages with registers and remove unused macros.jkim2008-08-122-86/+81
|
* Import Xen paravirtual drivers.kmacy2008-08-1212-0/+8270
| | | | MFC after: 2 weeks
* Assume OpenSolaris knows better and use their value for VM_MAX_PROM_ADDRESS.marius2008-08-121-1/+1
|
* Import i386 xen sub-arch files.kmacy2008-08-125-0/+7257
| | | | MFC after: 2 weeks
OpenPOWER on IntegriCloud