summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Zero the CCBs when mallocing them.scottl2007-04-191-2/+2
|
* Split the camisr into per-SIM done queues. This optimizes the locking ascottl2007-04-193-45/+49
| | | | | little bit and allows for direct dispatch of the doneq from certain contexts that would otherwise face recursive locking problems.
* - AC97 quirk / patch cleanups. Most quirks doesn't work in general senseariff2007-04-194-20/+59
| | | | | | | | | | and should only be applied on certain specific card / vendor, hence the addition of ac97_getsubvendor(). - Fix low volume issue on several MSI laptops through ALC655 quirk. Reported/Tested by: Christian Mueller <raptor-freebsd-multimedia@xpls.de> MFC after: 1 week
* - Fix mbuf/node leakage in drivers' raw_xmit().sephe2007-04-194-14/+39
| | | | | | | | | | - For ural(4): o Fix node leakage in ural_start(), if ural_tx_mgt() fails. o Fix mbuf leakage in ural_tx_{mgt,data}(), if usbd_transfer() fails. o In ural_tx_{mgt,data}(), set ural_tx_data.{m,ni} to NULL, if usbd_transfer() fails, so they will not be freed again in ural_stop(). Approved by: sam (mentor)
* - More work on making send lock contention.rrs2007-04-1911-88/+214
| | | | | | | | | | | | | | | | | | | | - Removed free-oqueue cache. - Fix counter for sq entries - Increased the amount of information retained on ASOC_TSN logging on the association. - Made it so with the ASOC_TSN logging on sending or recieving an abort we dump the log. - Went through and added invariant's around some panic's that needed them. - decrements went to atomic_subtact_int instead of add -1 - Removed residual count increment that threw off a strm oq count. - Tracks and complaints if we don't have a LAST fragment and clean up the sp structure. - Track a new stat that counts number of abandoned msgs that happen if you close without reading. - Fix lookup of frag point to be aware of a 0 assoc-id. Reviewed by: gnn
* style nitphk2007-04-191-1/+2
|
* Fix witness(4) warnings about mutex use.jkoshy2007-04-194-20/+40
| | | | | | | | | | | | | | | | | | Group mutexes used in hwpmc(4) into 3 "types" in the sense of witness(4): - leaf spin mutexes---only one of these should be held at a time, so these mutexes are specified as belonging to a single witness type "pmc-leaf". - `struct pmc_owner' descriptors are protected by a spin mutex of witness type "pmc-owner-proc". Since we call wakeup_one() while holding these mutexes, the witness type of these mutexes needs to dominate that of "sleepq chain" mutexes. - logger threads use a sleep mutex, of type "pmc-sleep". Submitted by: wkoszek (earlier patch)
* Fix a bug in sendfile(2) when files larger than page size and nbytes=0.pjd2007-04-191-2/+2
| | | | | | | When nbytes=0, sendfile(2) should use file size. Because of the bug, it was sending half of a file. The bug is that 'off' variable can't be used for size calculation, because it changes inside the loop, so we should use uap->offset instead.
* Correct contigmalloc2()'s implementation of M_ZERO. Specifically,alc2007-04-191-1/+1
| | | | | | | | | contigmalloc2() was always testing the first physical page for PG_ZERO, not the current page of interest. Submitted by: Michael Plass PR: 81301 MFC after: 1 week
* Correct two comments.alc2007-04-191-2/+2
| | | | Submitted by: Michael Plass
* Bump the interrupt storm detection counter to 1000. My slow fileservernjl2007-04-192-5/+6
| | | | | | | | | | | gets a bogus irq storm detected when periodic daily kicks off at 3 am and disconnects the disk. Change the print logic to print once per second when the storm is occurring instead of only once. Otherwise, it appeared that something else was causing the errors each night at 3 am since the print only occurred the first time. Reviewed by: jhb MFC after: 1 week
* Fix style(9) and comments.jkim2007-04-181-12/+16
| | | | Submitted by: Scot Hetzel (swhetzel at gmail dot com)
* sndbuf_alloc() now accept dmaflags argument which will be forwarded toariff2007-04-1828-35/+38
| | | | | internal bus_dmammem_alloc() for greater flexibility on setting up DMA / page attributes.
* Break ABI / module compatibility for the upcoming sndbuf_alloc() changes.ariff2007-04-181-3/+3
|
* Make tcp_twrespond() use tcp_addoptions() instead of a home grown version.andre2007-04-182-22/+12
|
* style(9) says sizeof's are not be followed by a space. Fix them.jkim2007-04-181-3/+3
|
* Implement settimeofday() for Linuxulator/amd64.jkim2007-04-182-1/+27
| | | | Submitted by: Scot Hetzel (swhetzel at gmail dot com)
* MFp4: Fix automatic snapshot mount when unprivileged user does lookuppjd2007-04-182-14/+16
| | | | | | | | | | | | on a snapshot directory: - Remove PRIV_VFS_MOUNT check - regular users can mount snapshots via lookups on snapshot directory. - Reset mount credential to kcred, so user won't be able to unmount the snapshot. - Reset owner uid. - Unlock vnode in case of a failure. Reported by: simokawa
* MFp4: We check for PRIV_VFS_MOUNT already in mount(2) syscall and we don'tpjd2007-04-182-8/+0
| | | | | want to do the check when snapshot is automatically mounted by an unprivileged user doing lookup on a snapshot directory.
* On AMD's Geode LX: Force the TSC to run through core-suspension so we canphk2007-04-181-0/+8
| | | | | | use it as a timecounter. Sponsored by: Soekris Engineering
* Missed locking the dump and shutdown entry points in the scsi_da driver.scottl2007-04-181-2/+9
|
* Revert a driver API change to xpt_alloc_ccb that isn't necessary. Fix ascottl2007-04-187-24/+35
| | | | couple of associated error checks.
* Don't reinitialize the hardware if only PROMISC flag was changed.yongari2007-04-182-4/+13
| | | | | | | | | | Previously whenever PROMISC mode turned on/off link renegotiation occurs and it could resulted in network unavailability for serveral seconds.(Depending on switch STP settings it could last several tens seconds.) Reported by: Prokofiev S.P. < proks AT logos DOT uptel DOT net > Tested by: Prokofiev S.P. < proks AT logos DOT uptel DOT net >
* Add support for hw-assisted checksums on 6105M.phk2007-04-174-34/+144
| | | | Sponsored by: Soekris Engineering
* Simplify.pjd2007-04-172-8/+0
|
* - Fix a leftover - vfs_mount_alloc() is now exported properly.pjd2007-04-172-8/+10
| | | | | | | | This fixes stange panics when listing .zfs/snapshot/ directory for me. Reported by: simokawa Reported by: Johan Hendriks <Johan@double-l.nl> - Hide cache_purge() under FREEBSD_NAMECACHE like in other files. - Protect mnt_flag with mount interlock.
* Export vfs_mount_alloc() as it is used in ZFS.pjd2007-04-172-3/+3
|
* Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 byjhb2007-04-172-0/+10
| | | | | | | | mapping the pages as UC (uncacheable) using pmap_change_attr(). MFC after: 1 week Requested by: ariff Reviewed by: scottl
* Ignore hostid check for root-on-ZFS configurations. Making hostid availablepjd2007-04-172-2/+10
| | | | | | | before the root is mounted is tricky and having it in /boot/ is not really desire. Reported by: Zephiris <zephiris@gmail.com>
* No need to throw tag+handle around on the stack.phk2007-04-174-36/+14
|
* When we run into the syncache entry limits syncache_add() triesandre2007-04-171-2/+2
| | | | | | | | | to free the oldest entry in the current bucket row. The global entry limit may be smaller than the bucket rows and their limit combined however. Thus only try to free a syncache entry if we found one in this bucket row. Reported by: kris
* When trying to allocate a PnP BIOS memory resource, the code loops tryingjhb2007-04-171-1/+1
| | | | | | | to move up the start address until the allocation succeeds. If the alignment of the resource was 0, then the code would keep trying the same request in an infinite loop and hang. Force the request to always move start up by at least 1 byte each time through the loop.
* Change $P4$ ID strings to P4 ID strings so that they are not auto-expandedrwatson2007-04-174-4/+4
| | | | | when integrated back into Perforce. This avoids unnecessary conflicts during the loopback of files maintained in Perforce.
* Remove $P4$ that snuck into CVS from Perforce.rwatson2007-04-171-1/+0
|
* Improve the if_vr driver ever so slightly.phk2007-04-174-174/+220
| | | | | | | | | | | | | The 6105M and 6102 does not have the DWORD alignment problem, so don't m_defrag() every packet in the transmit path for those. More stringent usage of tx-descriptor ring and its flags. Tested on 6102 and 6105M, other chips may also be able to run without the m_defrag() but I have neither hardware nor docs to find out. Sponsored by: Soekris Engineering
* Shorten text string for ip_fw2 dynamic rules zone by removing the wordrwatson2007-04-171-1/+1
| | | | | | | "zone", which is generally not present in zone names. This reduces the incidence of line-wrapping in "vmstat -z " using 80-column displays. MFC after: 3 days
* Basic MPSAFE locking for the AHC and AHD drivers.scottl2007-04-1713-336/+72
|
* Don't use spinlocks here. The iicbus transactions can take a longimp2007-04-171-3/+3
| | | | | time, and this prevents interrupts (say for Hz/hardclock) from happening. Time stands still during the transfers...
* Don't delete the devalias, as per the man page.scottl2007-04-171-4/+1
| | | | Submitted by: jmg
* Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.thompsa2007-04-1714-1923/+1923
| | | | | | | | | | | The name trunk is misused as the networking term trunk means carrying multiple VLANs over a single connection. The IEEE standard for link aggregation (802.3 section 3) does not talk about 'trunk' at all while it is used throughout IEEE 802.1Q in describing vlans. The lagg(4) driver provides link aggregation, failover and fault tolerance. Discussed on: current@
* - Add a 'show rman <rm>' DDB command to dump the resources in a resourcejhb2007-04-161-0/+50
| | | | | | manager similar to 'devinfo -u'. - Add a 'show allrman' DDB command that effectively does 'show rman' on all resource managers in the system.
* For the XPT_SASYNC_CB operation, only decouple the broadcast to the busscottl2007-04-161-86/+67
| | | | | and device lists instead of decoupling the whole operation. This avoids problems with SIMs going away.
* Drop the topology lock before calling the periph oninvalidate and dtorscottl2007-04-161-7/+5
| | | | vectors.
* Drop the periph/sim lock when calling disk_destroy().scottl2007-04-162-5/+3
|
* Destroy the devalias before destroying the dev.scottl2007-04-161-1/+1
|
* Merge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:rwatson2007-04-161-13/+184
| | | | | | | | - au_to_attr64(), au_to_process64(), au_to_subject64(), au_to_subject64_ex(), au_to_zonename(), au_to_header64_tm(). - Extended address token fixes. Obtained from: TrustedBSD Project
* Update src/sys/bsm for OpenBSM 1.0 alpha 14 import.rwatson2007-04-164-7/+28
| | | | Add new audit event types.
* s/destory/destroy/ (except for the code in contrib/).pjd2007-04-163-3/+3
|
* Uncomment forgotten check. Without this check in-place, ZFS will panic onpjd2007-04-162-2/+2
| | | | | | | unload instead of returning EBUSY. This check tells if there are mounted ZFS file systems or not. We can't unload if there are mounted file systems. Reported by: Andrey V. Elsukov <bu7cher@yandex.ru>
* PHYS_TO_VM_PAGE requires explicit vm_page.h include on sparc64kmacy2007-04-151-0/+1
|
OpenPOWER on IntegriCloud