summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* - 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
* - Add sys_tick and the USIII and beyond sys_tick_cmpr to state_regs[].marius2008-08-121-15/+15
| | | | | - Const'ify and static'ize as appropriate. - Use __FBSDID().
* Import xen sub-arch includes.kmacy2008-08-1212-0/+2038
| | | | MFC after: 2 weeks
* Remove unnecessary locking around pointer fetch.kib2008-08-121-2/+0
| | | | Requested by: jhb
* Increase statistic counters for enc0 interface when enabledvanhu2008-08-124-1/+58
| | | | | | | and processing IPSec traffic. Approved by: gnn (mentor) MFC after: 1 week
* Import OS interfaces to Xen services.kmacy2008-08-1268-0/+14624
| | | | MFC after: 2 weeks
* Restore link state handling which was broken in rev 1.69.yongari2008-08-121-4/+1
| | | | | | | | | | | Also report current link state while auto-negotiation is in progress. With this change link loss should be reported within a second and drivers that rely on link state should work. Reported by: Pete French < petefrench at ticketswitch dot com > Tested by: Pete French < petefrench at ticketswitch dot com > MFC after: 1 week
* Remove 'cr' at the end of line.yongari2008-08-121-20/+20
|
* Remove whitespace at the end of line.yongari2008-08-121-10/+10
|
* Remove cxgb private lro implementation and switch to using system ↵kmacy2008-08-126-479/+77
| | | | | | | implementation. Obtained from: Chelsio Inc. MFC after: 1 week
* Vendor fix for PHY problem.kmacy2008-08-117-89/+787
| | | | | Obtained from: Chelsio Inc. MFC after: 3 days
* Decode some more "exotic" instructions including: fxsave, fxrstor, ldmxcsr,jhb2008-08-112-18/+131
| | | | | | | stmxcsr, clflush, lfence, mfence, sfence, syscall, sysret, sysenter, sysexit, pause, monitor, mwait, and swapgs (amd64 only). MFC after: 1 week
* Make sure we check the preselection masks present for all audit pipes.csjp2008-08-111-1/+2
| | | | | | | | It is possible that the audit pipe(s) have different preselection configs then the global preselection mask. Spotted by: Vincenzo Iozzo MFC after: 2 weeks
* MFamd64: Decode "cmov*" instructions.jhb2008-08-111-1/+21
| | | | MFC after: 1 week
* Rework Dallas Semiconductor RTC support.raj2008-08-111-103/+229
| | | | | | | | | - Extend the DS1339 driver to recognize more chips in the family: DS1337, DS1338, DS1339 are now supported - Provide run-time chip detection Reviewed, tested by: stas Obtained from: Piotr Ziecik kosmo ! semihalf dot com
* Rename ds1339 -> ds133x to better fit the upcoming driver extensions.raj2008-08-112-1/+1
|
* - Convert sc_sessions_mtx mutex to a rwlock, so in the fast pathpjd2008-08-112-88/+70
| | | | | | | | | | | (glxsb_process()) we don't block others when looking for our session. - Simplify the loop responsible for freeing sessions on detach. - No need to drop a lock around malloc(M_NOWAIT). - Treat ses_used as boolean. - Avoid gotos where possible. - Various style(9) fixes. Reviewed by: philip, Patrick Lamaiziere <patfbsd@davenulle.org>
* Add an entry for the upgt(4) module.weongyo2008-08-111-0/+1
|
* Connect upgt(4) to the build.weongyo2008-08-111-0/+5
|
* Add Conexant/Intersil PrismGT SoftMAC wireless USB driver - upgt(4).weongyo2008-08-114-0/+2869
| | | | | | | | This driver supports GW3887 based chipsets and works on x86/powerpc/sparc64. You need upgtfw kernel module before loading upgt(4). Please see the manpage. Obtained from: OpenBSD
* Use device_set_desc() instead of device_set_desc_copy() as we don'tyongari2008-08-111-1/+1
| | | | manipulate the verbose description of a device.
* Partial back out r180952.yongari2008-08-111-4/+2
| | | | | | pci_get_vendor() and pci_get_device() don't do configuration space accessses so cahcing them makes no sense. Pointed out by: jhb, imp, des
* Minor typo fix, caught while skimming through the file.keramida2008-08-101-1/+1
|
* Revert r181345.kib2008-08-102-2/+3
| | | | | | | Move the NULL pointer check to the vfs_deleteopt() function. Discussed with: rodrigc MFC after: 3 days
* Move sis to sys/dev/sis for consistency.imp2008-08-104-3/+3
|
* Read the config space of the child, not the bridge, to determine whenimp2008-08-101-5/+5
| | | | the child is out of reset... <blush>
* Move the xl driver form sys/pci to sys/dev/xl for consistency.imp2008-08-104-6/+3
|
* Add quirks for making uhid(4) ignore the Apple iPhone and iPhone 3G.brix2008-08-092-0/+6
| | | | | | Reviewed by: sam Approved by: sam MFC after: 3 days
OpenPOWER on IntegriCloud