summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug that caused some /dev entries to continue to exist afterjdp2005-11-185-2/+18
| | | | | | | | | | | | | | | | | | | | | | | the underlying drive had been hot-unplugged from the system. Here is a specific example. Filesystem code had opened /dev/da1s1e. Subsequently, the drive was hot-unplugged. This (correctly) caused all of the associated /dev/da1* entries to be deleted. When the filesystem later realized that the drive was gone it closed the device, reducing the write-access counts to 0 on the geom providers for da1s1e, da1s1, and da1. This caused geom to re-taste the providers, resulting in the devices being created again. When the drive was hot-plugged back in, it resulted in duplicate /dev entries for da1s1e, da1s1, and da1. This fix adds a new disk_gone() function which is called by CAM when a drive goes away. It orphans all of the providers associated with the drive, setting an error condition of ENXIO in each one. In addition, we prevent a re-taste on last close for writing if an error condition has been set in the provider. Sponsored by: Isilon Systems Reviewed by: phk MFC after: 1 week
* In vfs_nmount(), check to see if "update" mount option was passedrodrigc2005-11-181-0/+9
| | | | | | | in, and if so, set MNT_UPDATE filesystem flag. vfs_nmount() calls vfs_domount(), and there is special logic inside vfs_domount() if MNT_UPDATE is set. This is very important when we want to do an update mount of the root filesystem, using nmount().
* MFOpenBSD 1.62:glebius2005-11-171-2/+4
| | | | | | | Prevent backup CARP hosts from replying to arp requests, fixes strangeness with some layer-3 switches. From Bill Marquette. Tested by: Kazuaki Oda <kaakun highway.ne.jp>
* - Backout last change, since it is memory overkill for a non busy host orglebius2005-11-173-13/+44
| | | | | | | | | | | | | | | for a notebook with em(4) adapter. - Introduce tunables em.hw.txd and em.hw.rxd, which allow administrator to configure number of transmit and receive descriptors. - Check em.hw.txd and em.hw.rxd against hardware limits [*] and require them to be multiple of 128. [*] According to comments in if_em.h the 82540EM/82541ER chips can handle more than 256 descriptors. Since we don't have this hardware to test, we decided to mimic NetBSD wm(4) driver, that limits these chips to 256 descriptors. In collaboration with: yongari
* Prefer NULL to 0.yongari2005-11-171-25/+29
| | | | | | | | | Add missing lock/unlock in sysctl handler. Protect accessing NULL pointer when resource allocation was failed. style(9) Reviewed by: scottl MFC after: 1 week
* Remove vestiges of oldcard and owi.ru2005-11-172-19/+0
|
* Fix spelling mistake.obrien2005-11-172-2/+2
| | | | Submitted by: kris
* Make the elf wrapper work with recent kernel.debug changes.cognet2005-11-171-3/+5
|
* OBEimp2005-11-161-9/+0
|
* Revert a part of the previous commits to these files that made the NMIjhb2005-11-162-10/+8
| | | | | | | | | IPI_STOP handling code use atomic_readandclear() to execute the restart function on the first CPU to resume and restore the behavior of always executing the restart function on the BSP since this is in fact what the non-NMI IPI_STOP handler does. I did add back in a statement to clear the restart function pointer after it is executed to match the behavior of the non-NMI IPI_STOP handler.
* this is no longer needed.imp2005-11-165-3721/+0
|
* Revert previous commit to these files. There isn't a race necessitatingjhb2005-11-162-6/+4
| | | | | an xchg instruction as we only try to execute the startup function if the CPU ID is 0 (i.e. the BSP). I missed this earlier.
* Fix a typo in the check for an invalid APIC. If we are told about anjhb2005-11-162-2/+2
| | | | | | | | | I/O APIC that doesn't exist, then a read of the version register is going to return -1 which is 0xffffffff not 0xffffff. Tested on: i386 Tested by: Nikos Ntarmos ntarmos at ceid dot upatras dot gr MFC after: 1 week
* Correct description of RLIMIT_CPU.jhb2005-11-161-1/+1
| | | | Reported by: bde
* fixed a kernel crash due to an improper removal of callout-timersuz2005-11-161-0/+1
| | | | | | | | (ToDo: similar fix is necessary for other NDP-related callout-timers in netinet6/nd6*.c) PR: kern/88725 MFC after: 1 month
* - Add errmsg to the list of smbfs mount options.rodrigc2005-11-161-7/+23
| | | | | | - Use vfs_mount_error() to propagate smbfs mount errors back to userspace. Reviewed by: bp (smbfs maintainer)
* Catch up with loader_color -> loader_logo and document beastie_disable.ru2005-11-152-5/+12
|
* Provide a link to the documentation of the I/O APIC at Intel.andre2005-11-151-0/+4
|
* Add some initial bits (currently unused) for upcoming AMRR support.damien2005-11-151-0/+10
| | | | | | | AMRR = Adaptive Multi Rate Retry algorithm More information: http://www-sop.inria.fr/rapports/sophia/RR-5208.html More to come.
* Add some initial bits (currently unused) for upcoming AMRR support.damien2005-11-151-0/+77
| | | | | AMRR = Adaptive Multi Rate Retry algorithm More information: http://www-sop.inria.fr/rapports/sophia/RR-5208.html
* Optimize and clean TX time computation.damien2005-11-152-44/+14
| | | | | | Avoid a test and a modulus operation. MFC after: 2 weeks
* Recognize Broadcom BCM5752 chip, that can be found in HP DC7600.glebius2005-11-152-2/+7
| | | | | PR: kern/88940 Submitted by: Alexander Hausner
* Some whitespace and style cleanup.glebius2005-11-152-89/+88
|
* Update ieee80211_mhz2ieee to understand public safety bands and spectrumsam2005-11-152-9/+24
| | | | | | | that can potentially be mapped to negative ieee #'s. NB: before operation on the latter can be supported we need to cleanup various code that assumes ieee channel #'s are >= 0
* nuke special handling to extend cts when bursting; it was race pronesam2005-11-153-65/+2
| | | | MFC after: 7 days
* bandaid inconsistent state handling: the rate index map may besam2005-11-151-0/+5
| | | | | | stale when called to reset rate control state causing us to pickup an invalid index, check for this and skip 'em (things will eventually get fixed up so this is not harmful)
* Unbreak kernel builds.kan2005-11-151-2/+2
| | | | Submitted by: arr
* Keep track of volumes in non-optimal state and expose a simple countkan2005-11-152-0/+13
| | | | | | | of volumes that might need administrator attention through device specific sysctl to simplify device monitoring. Submitted by: Deomid Ryabkov <myself at rojer dot pp dot ru>
* Add a new sysctl, kern.elf[32|64].can_exec_dyn. When set to 1, one cancognet2005-11-141-1/+7
| | | | | | | | | execute a ET_DYN binary (shared object). This does not make much sense, but some linux scripts expect to be able to execute /lib/ld-linux.so.2 (ldd comes to mind). The sysctl defaults to 0. MFC after: 3 days
* 0xb1881106 seems to be an AGP bridge and some BIOSes incorrectly handlejkim2005-11-142-32/+144
| | | | | the bridge. Therefore, we give the same treatment as we did for nForce3-250 and ULi chipsets. VIA AGPv3 code was copied from agp_via.c.
* In ktr_getrequest(), acquire ktrace_mtx earlier -- while the racerwatson2005-11-141-2/+3
| | | | | | | | | | currently present is minor and offers no real semantic issues, it also doesn't make sense since an earlier lockless check has already occurred. Also hold the mutex longer, over a manipulation of per-process ktrace state, which requires synchronization. MFC after: 1 month Pointed out by: jhb
* Update my email address, so people know where the exact /ariff2005-11-143-7/+7
| | | | | | proper / correct place to bug me. Approved by: netchild (mentor)
* From luigi:ariff2005-11-141-35/+71
| | | | | | | | | | | | | This one simply tries to simplify the logic to select the buffer sizes. I am not sure it is necessary but the code seems a bit more readable to me. And at least i have tried to document how the buffer sizes are computed. Thanks to luigi for deciphering one of the most cryptic part of sound driver. Submitted by: luigi Approved by: netchild (mentor)
* From luigi:ariff2005-11-141-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | In SNDCTL_DSP_SETFRAGMENT, if you specify both read and write channels, the existing code first acts on the read channel, but as a side effect it updates the arguments (maxfrags, fragsz) passed by the caller according to acceptable values for the read channel, and then uses the modified values to act on the write channel. The problem with this approach is that, given a (maxfrags, fragsz) user-specified value, the actual values computed by the read and write channels may differ: e.g. the read channel might want to allocate more fragments than what the user specified because it has no side-effects on the delay and it helps in case of slow readers, whereas the write channel needs to use as few fragments as possible to keep the audio latency low (very important with telephony apps). This patch stores the values computed by the read channel into temproary variables so the write channel will use the actual arguments of the ioctl. This patch is very helpful with telephony apps such as asterisk. Submitted by: luigi Approved by: netchild (mentor)
* Unlike the rest of the world, NDIS code can access "structru2005-11-141-1/+2
| | | | | ifnet" before is has been fully initialized by if_attach(). Account for that to avoid a null pointer dereference.
* ac97.c:ariff2005-11-142-2/+3
| | | | | | | | | | | | | | - Added new codec id for CX20468-21 and VIA1617A. Submitted by: Chen Lihong <lihong.chen@gmail.com> - Re-enable SOUND_MIXER_IGAIN, but set the default level as 0 (mute) Suggested by: luigi mixer.c: - Set default value for SOUND_MIXER_IGAIN as 0 (mute) to avoid feedback problems on some laptops (was disabled by jhb during ac97.c revision 1.42). Approved by: netchild (mentor)
* Fix a long standing unhandled interrupt bug which can causeariff2005-11-141-2/+2
| | | | | | | | | erratic system slowdown (beaten to a pulp) and possible panic. This issue has bugged me for as long as I could remember, until I realized that it is possible for register base offset to hold zero value which is definitely a "FALSE". Approved by: netchild (mentor)
* - Added few more Intel HDA ids (ICH 6/7) which does have backwardariff2005-11-141-104/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | compatible AC97 codec. - As the driver supports so many variants, create a table ids for ease of probing and maintenance. Submitted by: yongari Reviewed/Tested by: multimedia@ - From luigi: The code to compute fragment sizes in the ich driver almost invariably ends up using the full buffer available, no matter how the user specifies fragment size and number. With audio telephony (8khz, 16bit-stereo) and the 16k buffer size this results in an unbearable 500ms delay. This patch makes sure that we never use more than 4 fragments, (i don't think we need more unless there are huge interrupt servicing latencies), and obey to the requested fragment size, so that latency is acceptable. Based on this (and after much regression tests), I can conclude that this driver works best with 2 fragments, thus solving various long standing issues of ICH driver not capable to flush or play short files perfectly. Suggested by: luigi (the idea of smaller fragments) - MPSAFE conversion. Approved by: netchild (mentor)
* Use both (enabled by default) DAC1 and DAC2 to provide 2ariff2005-11-141-105/+473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | distinct hardware playback channels. DAC configuration can be accessed through kernel hint - hint.pcm.<unit>.dac="val" with following possible values: 0 = Enable both DACs (default) 1 = Enable single DAC (DAC1) 2 = Enable single DAC (DAC2) 3 = Enable both DACs, swap position (DAC2 comes first instead of DAC1) Special case for ES1370: Unlike ES1371,2,3/CT5880, volume for each DAC 1 and 2 can be controlled indepedently (synth for DAC1, pcm for DAC2). It is possible that user will confuse by this behaviour, since both DACs are enabled by default. Thus, provide a knob through sysctl hw.snd.pcm<unit>.single_pcm_mixer: 0 = each DACs will be controlled separately (synth/pcm). 1 = combine both DACs volume mixer controller into a single "pcm" (default) As a side note, fixed rate operation (provided by previous commit) is not a mandatory if the configuration space does not involve DAC2 (perhaps disabled by user through the above kernel hint). Unlike DAC2, DAC1 has its own register / control space, not affected by the speed settings of ADC. Tested by: multimedia@ Approved by: netchild (mentor)
* Fix left/right channel mixed-up during recording by splitting recdevariff2005-11-141-13/+22
| | | | | | | mask to recdev_l and recdev_r, since each have its own unique mask. Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp> Approved by: netchild (mentor)
* Unbreak for !INET6 case.ru2005-11-141-1/+1
|
* Fix misspelling.imp2005-11-141-2/+2
| | | | Submitted by: thompsa
* Provide a dummy NO_XBOX option that lives in opt_xbox.h for pc98.imp2005-11-144-6/+4
| | | | This allows us to eliminate a three ifdef PC98 instances.
* Add xbox associated options/devices to LINT.imp2005-11-141-0/+17
| | | | Submitted by: Rink P.W. Springer
* o Slightly refactor the ctlreq code to maximize code sharing betweenmarcel2005-11-131-67/+127
| | | | | | | | | | | | | | verbs. Only the create verb operates on a provider. All other verbs operate on a GPT geom. Also, the GPT entry oriented verbs require a non-downgraded GPT. o Have all verbs take an optional flags parameter. The flags parameter is a string of single-letter flags. The typical use of these flags is to enable certain behaviour in support fo the gpt(8) tool. o Add dummy implementations for the destroy and recover verbs. This change causes test 2 of the GPT regression test suite to fail. The presence of a geom parameter is now required even for unknown verbs.
* Restore backwards source compatibility with 6.x and 5.x.wpaul2005-11-131-2/+6
|
* Fix a second missed case where the refcount is not decremented.thompsa2005-11-131-2/+3
| | | | MFC after: 3 days
* Fix a mbuf and refcnt leak in the broadcast code.thompsa2005-11-131-4/+4
| | | | | | | If the packet is rejected from pfil(9) then continue the loop rather than returning, this means that we can still try to send it out the remaining interfaces but more importantly the mbuf is freed and refcount decremented on exit.
* Fix endianness issues. iwi now works on big endian architectures too.damien2005-11-131-10/+10
| | | | | Obtained from: NetBSD (scw@) MFC after: 2 weeks
* Remove the unused AAC_DRIVER_BUILD_DATE macro.schweikh2005-11-131-49/+48
| | | | | | Nuke whitespace at EOL while I'm here. Approved by: scottl (MAINTAINER)
OpenPOWER on IntegriCloud