emax [Wed, 7 Nov 2007 17:42:45 +0000 (17:42 +0000)]
MFC
Allow RFCOMM servers to bind to a ''wildcard'' RFCOMM channel
zero (0). Actual RFCOMM channel will be assigned after listen(2)
call is done on a RFCOMM socket bound to a ''wildcard'' RFCOMM
channel zero (0).
Address locking issues in ng_btsocket_rfcomm_bind()
Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net >
Approved by: re (kensmith)
jfv [Wed, 7 Nov 2007 01:33:28 +0000 (01:33 +0000)]
This delta addresses some users experiencing watchdogs under load with
the last driver version. I suspect sheduling to be at the bottom of it,
but this version fixes it by:
- Making FAST interrupt handling off by default, if you want
to use it #define EM_FAST_IRQ in the Makefile.
- Add dual locks, one for the TX subsystem, the other CORE
for things like init and interface managment.
- Add cleaner MSI/X setup code.
- If using FAST interrupts there is now a mechanism in the
watchdog routine to kick off TX cleanups if they have not
been scheduled.
I think everyone will be happier with this change.
simon [Tue, 6 Nov 2007 18:22:05 +0000 (18:22 +0000)]
MFC 1.17:
If the INDEX file cannot be opened, print the actual filename / path
pkg_version tried to open instead of just "INDEX" to make the actual
problem more clear (e.g. missing INDEX-8).
ups [Mon, 5 Nov 2007 16:18:00 +0000 (16:18 +0000)]
MFC: Remove mpte optimization from pmap_enter_quick().
There is a race with the current locking scheme and removing
it should have no measurable performance impact.
This fixes page faults leading to panics in pmap_enter_quick_locked()
on amd64/i386.
yongari [Mon, 5 Nov 2007 02:06:27 +0000 (02:06 +0000)]
MFC rgephy.c rev 1.17-1.18, rgephyreg.h rev 1.3 to RELENG_6
rgephy.c rev 1.17, rgephyreg.h rev 1.3
Add support for RealTek RTL8211B(L) PHY. It's based on the patch
made by Michael Eisele and the patch was slightly modified by me.
With this change several NVIDIA ethernet controllers(e.g. MCP61)
works.
RTL8211B(L) is RealTek's new gigabit PHY. The PHY has several
features including crossover correction, polarity correction as
well as supporting triple speed(10/100/1000bps). Data transfer
between MAC and PHY is via RGMII for 1000baseT, MII for
10baseT/100baseTX.
Unfortunately, RealTek used the same model number for RTL8211B(L)
PHY so there is no way to discriminate between RTL8211B(L) and its
predecessors. ATM RTL8211B uses revision number 2 so checking the
revision number seems to be only way to identify it.
rgephyreg.c rev 1.18
Setting sc->mii_anegticks to MII_ANEGTICKS_GIGE in rgephy_attach()
is redundant. mii_phy_add_media() already takes care of that.
yongari [Mon, 5 Nov 2007 02:03:09 +0000 (02:03 +0000)]
MFC rgephy.c rev 1.16 to RELENG_6
o RTL8169S/8110S integrated PHY and RTL8211B are gigabit PHYs so set
mii_anegticks to MII_ANEGTICKS_GIGE and use it. Previously it used
to MII_ANEGTICKS which may not be enough to wait before retrying
autonegotiation process at 1000bps.
o Reset autonegotation timer if media option is not IFM_AUTO or we
got a valid link.
o Announce link loss right after it happends.
o Autonegiation is retried every mii_anegticks seconds.
o Report link state changes right after setting autonegotiation.
keramida [Sun, 4 Nov 2007 15:07:28 +0000 (15:07 +0000)]
MFC: mdconfig.8 -r 1.37
% Add an example which shows how mdconfig(8) can be used
% to mount an ISO 9660 CD image file.
%
% PR: 112691
% Submitted by: Warren Block, wblock at wonkity.com
luigi [Sun, 4 Nov 2007 03:28:31 +0000 (03:28 +0000)]
MFC 2007-10-05 07:26:40 UTC
Add entries for Epson multifunction scanner/printer/card readers,
with all functions supported.
More details on related topics (SANE configuration, OCR, etc.)
at http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html
dwmalone [Fri, 2 Nov 2007 16:27:22 +0000 (16:27 +0000)]
MFC 1.28:
Make the type of the memory used by the BPF filter unsigned, so it
matches the BPF registers (which are the only thing that is assigned
to/from BPF memory). This is a pedantic change that shouldn't change
any behaviour.
PR: 115931
Submitted by: Matthew Luckie <mjl@luckie.org.nz>
kientzle [Fri, 2 Nov 2007 08:44:11 +0000 (08:44 +0000)]
MFC 1.18: Skip requests use a minimum of 1 byte so that the
underlying I/O framework can avoid copying and so that we
avoid a 32-bit overflow issue that was causing bsdtar to
fail when skipping uncompressed tar entries that were an
exact multiple of 4GB.
alc [Fri, 2 Nov 2007 06:33:20 +0000 (06:33 +0000)]
MFC revision 1.389
Correct an error in vm_map_sync(), nee vm_map_clean(), that has existed
since revision 1.1. Specifically, neither traversal of the vm map checks
whether the end of the vm map has been reached. Consequently, the first
traversal can wrap around and bogusly return an error.
emax [Wed, 31 Oct 2007 18:53:07 +0000 (18:53 +0000)]
MFC: etc/rc.d/ppp,v1.14 and etc/defaults/rc.conf,v1.319
Teach /etc/rc.d/ppp to start multiple instances of ppp.
ppp_profile variable can now contain multiple profiles.
Overrides for ppp mode and nat can go into ppp_$profile_mode
and ppp_$profile_nat variables respectively. If those are
not specified, defaults from ppp_mode and ppp_nat are used.
MFC: etc/rc.d/ppp v1.15
Teach /etc/rc.d/ppp how to start/stop individual instances
of ppp. This is an extension of previous commit.
Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru >
Reviewed by: mtm
Approved by: re (kensmith)
Implement RFC3442, the Classless Static Route option.
The original DHCP specification includes a route option but it
supports only class-based routes. RFC3442 adds support for
specifying the netmask width for each static route. A variable
length encoding is used to minimize the size of this option.
The minimum size of an RFC3442 destination descriptor is five bytes,
so correct test to -ge 5. Without this change an RFC3442 encoded
default route would be ignored.
rafan [Tue, 30 Oct 2007 01:30:42 +0000 (01:30 +0000)]
Restore ctype(3) ABI forward compatibility in 6.x world. This was broken
with last ctype(3) single-byte and multi-byte separation for fixing
operating on UTF-8 locale. To be specific, we introduced a new symbol in
libc. And this symbol is referred via inline functions here. So, you can
not run a binary built with this version of libc on an older system. To
restore the compatibility, make these functions built as non-inlined
form (see lib/libc/nomarco.c) and MFC rev 1.32 which drops the usage of
that symbol in question for __isctype(). As this may impact performance,
I only intend to fix in 6.x, but not 7 (not yet released) and 8 (it's HEAD).
Discussed on: cvs-src
Requested by: scottl
Reviewed by: ache, delphij
Approved by: re (kensmith)
Implement new apply callback mechanism to handle item forwarding.
When item forwarded, refence counter is incremented, when item
processed, counter decremented. When counter reaches zero,
apply handler is getting called.
It allows to report connect() call status only when it is really completed.
sam [Sun, 28 Oct 2007 17:46:39 +0000 (17:46 +0000)]
MFC 1.87: Close longstanding race dropping inactive stations; grab
a reference to the node before starting the work, otherwise the
node may go away before a reference is made in ieee80211_send_mgmt.
dougb [Sun, 28 Oct 2007 00:30:18 +0000 (00:30 +0000)]
MFC version 1.27:
1. Determine the location of the rndc* binaries relative to $command
2. Make the stop routine work more like rc.subr's, but try rndc first
3. Allow the rndc.key file to be owned by root OR the named_uid user
scottl [Fri, 26 Oct 2007 23:51:46 +0000 (23:51 +0000)]
Update to version 3.60.04.006. This adds support newer SAS controllers. This
is a partial MFC of what went into HEAD/RELENG_7; the locking changes that
constitude the other part do not apply to RELENG_6.
Many thanks to 3Ware/AMCC for their continued support of FreeBSD.
Submitted by: Manjunath Ranganathaiah
Approved by: re
ariff [Fri, 26 Oct 2007 20:48:18 +0000 (20:48 +0000)]
MFC: (revision 1.45)
- Gigabyte G33-S2H fixup, due to the present of multiple competing
codecs. Codec at address 0 seems purely digital, or perhaps an HDMI
interface. Let the driver skip it and continue scanning the codecs
starting with address 2 (Realtek ALC885).
* Due to possibilities of future similar cases, put enough logic
in hdac_scan_codecs() to force codec scanning starting from
XX address via tunable "hint.pcm.%d.codec_index".
Reported / Tested by: Toomas Pelberg <toomasp@gmx.net>
- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
AMILO Si 1848 laptop.
- Some smart vendor trying to create interplanetary wormhole by
screwing pci config space during their BIOS update. The side effects
of their failure attempt includes mutilated hardware id, broken
speaker automuting and loosing the entire analog CD connectivity,
thus causing enough collateral damages to collapse the entire
universe. Move along with it.
Please exercise extra cautious when applying BIOS updates.
Reported / Tested by: Pietro Cerutti <gahr@gahr.ch>
- assembled laptop, based on the MSI-1034
(662) which is now becoming MSI-034A.
- Fix no sound issues (on headphones) for Lenovo ThinkCentre A55 due
to global automute table entry which is not applicable for
non-laptops.
Reported / Tested by: Piotr Smyrak <piotr.smyrak@heron.pl>
- Speaker mute control for HP DC7700 since the front headphone jack
does not generate any interesting unsolicited signal/response.
delphij [Thu, 25 Oct 2007 19:52:22 +0000 (19:52 +0000)]
Bump __FreeBSDversion for wide and single byte ctype separation
MFC. While the change does not break backward binary
compatibility, it will potentially cause programs compiled on
a new world not to run on older RELENG_6 systems, so we have
to make it possible to distungish between old and new states.
mtm [Thu, 25 Oct 2007 17:20:22 +0000 (17:20 +0000)]
MFC: rev. 1.6 and 1.7
revision 1.6
date: 2007/05/17 11:33:08; author: mtm; state: Exp; lines: +3 -3
o Use the --detach option to kdc(8) instead of using the shell
background operator '&'.
PR: conf/102722
o No need to include $kerberos5_server_flags in $command_args as
rc.subr(8) will take care of this.
revision 1.7
Partial backout of rev. 1.6, but instead of putting kerberos5_server_flags
back in command_args, put it where rc.subr(8) expects it: kerberos5_flags.
mtm [Thu, 25 Oct 2007 14:36:12 +0000 (14:36 +0000)]
MFC:
Eliminate global symbols starting with an underscore from rc.d
scripts, except for mdconfig* and jail. Such symbols are reserved
for the rc.subr internals. Most scripts can be fixed by just
declaring _foo symbols as local: few scripts actually need them to
be global.
mtm [Thu, 25 Oct 2007 14:04:19 +0000 (14:04 +0000)]
MFC:
o Implement the stop_boot subroutine [1]. This subroutine can be used by
scripts in rc.d to stop rc(8) from booting into multi-user mode when
a critical or severe error condition is encountered.
o Modify scripts in etc/rc.d that already implemented this functionality
independently.
o Document it.
[1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it
to rc.subr(8). Our version differs slightly in that it takes an
optional argument to stop the boot even if "autoboot" is not set.
rafan [Thu, 25 Oct 2007 06:45:29 +0000 (06:45 +0000)]
- Add a note about ctype(3) breakage. A proper fix is being working on,
should be committed soon. Before that, advice users not to upgrade
world. Also add instructions about how to recover from it.
simokawa [Thu, 25 Oct 2007 06:10:19 +0000 (06:10 +0000)]
Temporary fix for polling.
- fwohci_arcv() has a problem if the number of packets to be processed
is limited.
- RELENG_7 and -current already have a same workaround.
edwin [Thu, 25 Oct 2007 03:52:42 +0000 (03:52 +0000)]
MFC of 1.11
Teach makewhatis.c to treat .SS with the same severity as .SH.
At least one port (net-mgmt/net-snmp) creates man-pages which are
in the format:
.SH NAME
The Net-SNMP agent \- The snmp agent responds to SNMP queries from manag
ement stations.
.PP
.SS "Modules"
At this moment, makewhatis determines the end of the .SH NAME section
as where it finds .SH again, but there is none here, is it "terminated"
by the .SS.
dougb [Wed, 24 Oct 2007 21:36:09 +0000 (21:36 +0000)]
MFC revisions 1.13 of NETWORKING and 1.37 of resolv:
1. Make resolv order deterministic by REQUIRE'ing it in NETWORKING,
and having resolv REQUIRE netif.
2. Tighten up the code and fix whitespace in resolv
dougb [Wed, 24 Oct 2007 21:09:34 +0000 (21:09 +0000)]
Bring all files up to date with HEAD, which includes:
1. Misc. typo fixes
2. Lots of duplicate removal in the limerick file
3. Some updates to freebsd-tips
And most recently:
MFC fortunes 1.242: The original version of "The Guy in the Glass" with
proper attribution. See also http://www.theguyintheglass.com/
MFC fortunes 1.243, fortunes-o.real 1.23, and limerick 1.12:
Fix a few small typos and remove a duplicate