summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* After r193232 rt_tables in vnet.h are no longer indirectly dependent onbz2009-06-0865-84/+15
| | | | | | | | | the ROUTETABLES kernel option thus there is no need to include opt_route.h anymore in all consumers of vnet.h and no longer depend on it for module builds. Remove the hidden include in flowtable.h as well and leave the two explicit #includes in ip_input.c and ip_output.c.
* Commit missed driver_info to driver_ivar change in usb_attach_args.thompsa2009-06-081-2/+2
| | | | Pointed out by: kib
* Fix nfscl_getcl() so that it doesn't crash when it is called tormacklem2009-06-081-20/+29
| | | | | | | do an NFSv4 Close operation with the cred argument NULL. Also, clarify what NULL arguments mean in the function's comment. Approved by: kib (mentor)
* Revert my change; reintroduce __gnu89_inline.ed2009-06-084-3/+9
| | | | | | | | | It turns out our compiler in stable/7 can't build this code anymore. Even though my opinion is that those people should just run `make kernel-toolchain' before building a kernel, I am willing to wait and commit this after we've branched stable/8. Requested by: rwatson
* Change driver_info to a ulong as it always stores a number and remove the onlythompsa2009-06-082-5/+6
| | | | | | diff of the usb_device_id struct to Linux. Reviewed by: HPS
* Remove __gnu89_inline.ed2009-06-084-9/+3
| | | | | | | | | Now that we use C99 almost everywhere, just use C99-style in the pmap code. Since the pmap code is the only consumer of __gnu89_inline, remove it from cdefs.h as well. Because the flag was only introduced 17 months ago, I don't expect any problems. Reviewed by: alc
* Introduce an infrastructure for dismantling vnet instances.zec2009-06-0837-36/+526
| | | | | | | | | | | | | | | | | | | | | | | | | Vnet modules and protocol domains may now register destructor functions to clean up and release per-module state. The destructor mechanisms can be triggered by invoking "vimage -d", or a future equivalent command which will be provided via the new jail framework. While this patch introduces numerous placeholder destructor functions, many of those are currently incomplete, thus leaking memory or (even worse) failing to stop all running timers. Many of such issues are already known and will be incrementaly fixed over the next weeks in smaller incremental commits. Apart from introducing new fields in structs ifnet, domain, protosw and vnet_net, which requires the kernel and modules to be rebuilt, this change should have no impact on nooptions VIMAGE builds, since vnet destructors can only be called in VIMAGE kernels. Moreover, destructor functions should be in general compiled in only in options VIMAGE builds, except for kernel modules which can be safely kldunloaded at run time. Bump __FreeBSD_version to 800097. Reviewed by: bz, julian Approved by: rwatson, kib (re), julian (mentor)
* Clean up FreeBSD-specific header file:jkim2009-06-081-6/+3
| | | | | | - Define ACPI_USE_DO_WHILE_0 to add do while(0) around return_*() macros. - Define __cdecl only for user land. It will never be used in kernel. - Remove __cli() and __sti(). They were deprecated long ago.
* Now that amd64's kernel map is 512GB (SVN rev 192216), there is no reasonalc2009-06-081-9/+0
| | | | | | to cap its buffer map at 1GB. MFC after: 6 weeks
* Change the printf format string to match the variable type to quietjhb2009-06-081-2/+2
| | | | warnings.
* Move zombie-reaping code out of kern_wait() and into its own function,rwatson2009-06-081-106/+121
| | | | | | | proc_reap(). Reviewed by: jhb MFC after: 3 days Sponsored by: Google, Inc.
* Code using COMPAT_ROUTE_FLAGS option, introduced with r187094,bz2009-06-081-1/+0
| | | | | was changed again in r187328, removing any use of the option from the kernel. The option was never in NOTES. Garbage collect.
* Instead of packing the individual fields in the PnP structures, pack thejhb2009-06-081-26/+26
| | | | | | | entire structures. This trims some warnings. Verified by: md5(1) MFC after: 1 week
* Don't attempt to free the GPT partition list for a disk with an empty GPT.jhb2009-06-081-2/+3
| | | | | Submitted by: Yuri Pankov yuri.pankov of gmail MFC after: 3 days
* Update vimage size guard values but do not yet re-enable them.bz2009-06-081-34/+22
| | | | | | | | Now that rt_tables does no longer change depending on kernel option we do no longer need any special values for LINT. The updated values will be used to make sure that an upcoming opt_route.h cleanup will not again show any side effects.
* Add another PCI id for Nvidia nForce MCP67, found in several Acer laptops.ariff2009-06-082-0/+2
|
* Permit the specification of bandwidth values withinluigi2009-06-082-40/+72
| | | | | | | | | "profile" files (bandwidth is mandatory when using a profile, so it makes sense to have everything in one place). Update the manpage accordingly. Submitted by: Marta Carbone
* Do not dereference vp->v_rdev without holding any of dev_mtx or vnodekib2009-06-081-8/+20
| | | | | | | lock. Use code similar to devfs_fp_check(), but inlined to feet other checks performed by ttyhook_register(). Reviewed by: ed
* Invalidate cache in pmap_remove_all() on ARM.raj2009-06-081-0/+12
| | | | | | | | | | When pages are removed from virtual address space by calling pmap_remove_all() CPU caches were not invalidated, which led to read corruption when another page got mapped at this same virtual address at later time (the CPU was retrieving stale contents). Submitted by: Piotr Ziecik Obtained from: Semihalf
* add a missing format in a printfluigi2009-06-081-1/+1
| | | | | | Detected building with gcc 4.3.3 MFC after: 3 days
* Fix powerpc build failure due to strict kobj signatures checking.ariff2009-06-082-6/+6
|
* [patch] [locale] German locales use old %d.%m.%y date format instead of ↵edwin2009-06-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | newer ISO date From the submitter: DIN 5008 (German norm for text processing) defines the old date format (%d.%m.%Y) to be obsolete and to be used only, if unambigous. In international communications the new format (%Y-%m-%d) is now required and FreeBSD should respect this. References: - DIN 5008 - EN 28 601 - ISO 8601 Thanks to Oliver Lietz for bringing this to my attention. PR: conf/72076 Submitted by: Peter Wullinger <some-mail-drop@gmx.net> MFC after: 1 week
* Add notes on various SND_* options.ariff2009-06-081-0/+36
|
* Do not attempt to set source address on outgoing messageskan2009-06-081-2/+2
| | | | on UDP socket if we do not have a valid IP address.
* Fix grammar.jkoshy2009-06-081-1/+1
| | | | Submitted by: richardtoohey at paradise dot net dot nz on -doc
* do not strip M_MORE_DATA on packets coming through ieee80211_start;sam2009-06-081-3/+4
| | | | | | frames coming out of the ps q may have this set and removing it causes the 802.11 header to not indicate more frames follow which can result in the sta going to sleep and missing them
* The change r192913 has added dependency on IP_RECVDSTADDR beingkan2009-06-081-0/+7
| | | | | | set for RPC UDP sockets. Mountd uses internal libc fuctions directly and bypasses generic socket initialization completely, so we need to set IP_RECVDSTADDR here to match the libc behavior.
* Make the size (-s) and start (-b) parameters of the add verb optional.marcel2009-06-081-2/+126
| | | | The missing parameter(s) are automatically filled-in.
* Fix build on sparc64.ariff2009-06-071-1/+1
| | | | Pointy hat: ariff@
* prefer callout_schedulesam2009-06-071-2/+1
|
* use c99-style initializerssam2009-06-071-7/+7
|
* Fix and add a workaround on an issue of EtherIP packet with reversedhrs2009-06-079-17/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version field sent via gif(4)+if_bridge(4). The EtherIP implementation found on FreeBSD 6.1, 6.2, 6.3, 7.0, 7.1, and 7.2 had an interoperability issue because it sent the incorrect EtherIP packets and discarded the correct ones. This change introduces the following two flags to gif(4): accept_rev_ethip_ver: accepts both correct EtherIP packets and ones with reversed version field, if enabled. If disabled, the gif accepts the correct packets only. This flag is enabled by default. send_rev_ethip_ver: sends EtherIP packets with reversed version field intentionally, if enabled. If disabled, the gif sends the correct packets only. This flag is disabled by default. These flags are stored in struct gif_softc and can be set by ifconfig(8) on per-interface basis. Note that this is an incompatible change of EtherIP with the older FreeBSD releases. If you need to interoperate older FreeBSD boxes and new versions after this commit, setting "send_rev_ethip_ver" is needed. Reviewed by: thompsa and rwatson Spotted by: Shunsuke SHINOMIYA PR: kern/125003 MFC after: 2 weeks
* Decouple the i386 native and i386 Xen APIC definitions a little further.adrian2009-06-071-4/+22
| | | | | | I'm experimenting locally with xen APIC emulation a bit and this makes it easier to migrate APIC entries between being bitmapped and not being bitmapped.
* teach ieee80211_classify about ipv6 packetssam2009-06-071-1/+23
| | | | Reviewed by: bz, rrs
* add iv_flags_ht and ic_flags_htsam2009-06-071-0/+2
|
* track HT flags move to iv_flags_htsam2009-06-071-7/+7
|
* iv_flags_ext is full, make room by moving HT-related flags to a newsam2009-06-0711-116/+166
| | | | iv_flags_ht word
* Try again to add beginnings of netisr(8) man page: this time addrwatson2009-06-071-0/+210
| | | | netisr.9.
* Add beginnings of a netisr(9) man page.rwatson2009-06-071-0/+1
|
* Add a temporary workaround for panics being seen on NFS servers with ZFS,rwatson2009-06-071-0/+3
| | | | | | | | | where an improperly initialized prison field could lead to a panic. This is not the correct solution, since it fails to address similar problems for both AUDIT and MAC, which also rely on properly initialized credentials, but should reduce panic reports while we work that out. Reported by: ps, kan, others
* Add a check to xprt_unregister() to catch the case where anotherrmacklem2009-06-071-0/+7
| | | | | | | | | | thread has already unregistered the structure. Also add a KASSERT() to xprt_unregister_locked() to check that the structure hasn't already been unregistered. Reviewed by: jhb Tested by: pho Approved by: kib (mentor)
* Allow humanized numbers for LBAs, as well as partition indices formarcel2009-06-073-21/+120
| | | | | | gpart(8). LBAs in particular are ugly. The ganularity is a sector, but users expect byte granularity when specifying the size or offset with a SI unit. Handle LBAs specially to deal with this.
* Rename usb pipes to endpoints as it better represents what they are, and structthompsa2009-06-0728-627/+628
| | | | usb_pipe may be used for a different purpose later on.
* Eliminate unnecessary obfuscation when testing a page's valid bits.alc2009-06-075-11/+8
|
* Bump driver revision (should have bumped it earlier).ariff2009-06-071-1/+1
|
* Sound Mega-commit. Expect further cleanup until code freeze.ariff2009-06-0792-5785/+12467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For a slightly thorough explaination, please refer to [1] http://people.freebsd.org/~ariff/SOUND_4.TXT.html . Summary of changes includes: 1 Volume Per-Channel (vpc). Provides private / standalone volume control unique per-stream pcm channel without touching master volume / pcm. Applications can directly use SNDCTL_DSP_[GET|SET][PLAY|REC]VOL, or for backwards compatibility, SOUND_MIXER_PCM through the opened dsp device instead of /dev/mixer. Special "bypass" mode is enabled through /dev/mixer which will automatically detect if the adjustment is made through /dev/mixer and forward its request to this private volume controller. Changes to this volume object will not interfere with other channels. Requirements: - SNDCTL_DSP_[GET|SET][PLAY|REC]_VOL are newer ioctls (OSSv4) which require specific application modifications (preferred). - No modifications required for using bypass mode, so applications like mplayer or xmms should work out of the box. Kernel hints: - hint.pcm.%d.vpc (0 = disable vpc). Kernel sysctls: - hw.snd.vpc_mixer_bypass (default: 1). Enable or disable /dev/mixer bypass mode. - hw.snd.vpc_autoreset (default: 1). By default, closing/opening /dev/dsp will reset the volume back to 0 db gain/attenuation. Setting this to 0 will preserve its settings across device closing/opening. - hw.snd.vpc_reset (default: 0). Panic/reset button to reset all volume settings back to 0 db. - hw.snd.vpc_0db (default: 45). 0 db relative to linear mixer value. 2 High quality fixed-point Bandlimited SINC sampling rate converter, based on Julius O'Smith's Digital Audio Resampling - http://ccrma.stanford.edu/~jos/resample/. It includes a filter design script written in awk (the clumsiest joke I've ever written) - 100% 32bit fixed-point, 64bit accumulator. - Possibly among the fastest (if not fastest) of its kind. - Resampling quality is tunable, either runtime or during kernel compilation (FEEDER_RATE_PRESETS). - Quality can be further customized during kernel compilation by defining FEEDER_RATE_PRESETS in /etc/make.conf. Kernel sysctls: - hw.snd.feeder_rate_quality. 0 - Zero-order Hold (ZOH). Fastest, bad quality. 1 - Linear Interpolation (LINEAR). Slightly slower than ZOH, better quality but still does not eliminate aliasing. 2 - (and above) - Sinc Interpolation(SINC). Best quality. SINC quality always start from 2 and above. Rough quality comparisons: - http://people.freebsd.org/~ariff/z_comparison/ 3 Bit-perfect mode. Bypasses all feeder/dsp effects. Pure sound will be directly fed into the hardware. 4 Parametric (compile time) Software Equalizer (Bass/Treble mixer). Can be customized by defining FEEDER_EQ_PRESETS in /etc/make.conf. 5 Transparent/Adaptive Virtual Channel. Now you don't have to disable vchans in order to make digital format pass through. It also makes vchans more dynamic by choosing a better format/rate among all the concurrent streams, which means that dev.pcm.X.play.vchanformat/rate becomes sort of optional. 6 Exclusive Stream, with special open() mode O_EXCL. This will "mute" other concurrent vchan streams and only allow a single channel with O_EXCL set to keep producing sound. Other Changes: * most feeder_* stuffs are compilable in userland. Let's not speculate whether we should go all out for it (save that for FreeBSD 16.0-RELEASE). * kobj signature fixups, thanks to Andriy Gapon <avg@freebsd.org> * pull out channel mixing logic out of vchan.c and create its own feeder_mixer for world justice. * various refactoring here and there, for good or bad. * activation of few more OSSv4 ioctls() (see [1] above). * opt_snd.h for possible compile time configuration: (mostly for debugging purposes, don't try these at home) SND_DEBUG SND_DIAGNOSTIC SND_FEEDER_MULTIFORMAT SND_FEEDER_FULL_MULTIFORMAT SND_FEEDER_RATE_HP SND_PCM_64 SND_OLDSTEREO Manual page updates are on the way. Tested by: joel, Olivier SMEDTS <olivier at gid0 d org>, too many unsung / unnamed heroes.
* Eliminate an unused variable from allocbuf().alc2009-06-071-3/+0
| | | | | Eliminate the unnecessary setting of page valid bits from a non-VMIO buffer in vm_hold_load_pages().
* Mention the range for the exit status for the exit special builtin.jilles2009-06-071-0/+1
| | | | | | | | | | | The exit status may exceed 255 in some cases (return); even though it seems unwise to rely on this, it is also unwise to assume that $? is always between 0 and 255. This resolves bin/124748 by documenting that 'exit -1' is not valid. PR: bin/124748 Approved by: ed (mentor)
* Welcome to a default installed /etc/ntp.confedwin2009-06-072-0/+63
| | | | | | | | | | | | | | | | This NTP configuration file points to the [012].pool.ntp.org servers, which will return a list of geographical local NTP servers. It uses the best-practice options of "iburst" and "maxpoll 9". It gives examples on how to use the "restrict" commands, which are unfortunately not working when you use the pool.ntp.org servers. It sets up a fudge server so any clients syncing against this server will always be synced even if we lose the master. The idea of this file was briefly discussed on -net. PR: conf/58595 Submitted by: Chris Stenton <jacs@gnome.co.uk> MFC after: 1 week
* Make "human-readable" (-H/-h) output also "humanize" inode counts.simon2009-06-072-6/+37
| | | | | | | | | Base 10 is always used for the inode counts as I could not think of any reason base 2 inode counts would be useful. Minor mdoc markup fix to df(1) while here anyway. MFC after: 3 weeks
OpenPOWER on IntegriCloud