| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
will cause the network stack to operate without the Giant lock by
default. This change has the potential to improve performance by
increasing parallelism and decreasing latency in network processing.
Due to the potential exposure of existing or new bugs, the following
compatibility functionality is maintained:
- It is still possible to disable Giant-free operation by setting
debug.mpsafenet to 0 in loader.conf.
- Add "options NET_WITH_GIANT", which will restore the default value of
debug.mpsafenet to 0, and is intended for use on systems compiled with
known unsafe components, or where a more conservative configuration is
desired.
- Add a new declaration, NET_NEEDS_GIANT("componentname"), which permits
kernel components to declare dependence on Giant over the network
stack. If the declaration is made by a preloaded module or a compiled
in component, the disposition of debug.mpsafenet will be set to 0 and
a warning concerning performance degraded operation printed to the
console. If it is declared by a loadable kernel module after boot, a
warning is displayed but the disposition cannot be changed. This is
implemented by defining a new SYSINIT() value, SI_SUB_SETTINGS, which
is intended for the processing of configuration choices after tunables
are read in and the console is available to generate errors, but
before much else gets going.
This compatibility behavior will go away when we've finished the last
of the locking work and are confident that operation is correct.
Notes:
svn path=/head/; revision=134443
|
|
|
|
|
|
|
| |
are either locked down or demonstrated MPSAFE.
Notes:
svn path=/head/; revision=134442
|
|
|
|
|
|
|
| |
from specified file offsets. Make use of these in load_elf.c.
Notes:
svn path=/head/; revision=134441
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, it would recognize it as a valid shell only
if the basename (nologin) was specified. Now, it will
recognize both the basename and the full path.
NOTE: The full path as adduser(8) understands it is /usr/sbin/nologin.
There is a symlink, /sbin/nologin, but that's deprecated and
only there for backwards compatibility.
Notes:
svn path=/head/; revision=134440
|
|
|
|
|
|
|
| |
more easily diffable against GENERIC.
Notes:
svn path=/head/; revision=134439
|
|
|
|
|
|
|
| |
data files to the ISO8859-13 versions.
Notes:
svn path=/head/; revision=134438
|
|
|
|
|
|
|
|
|
|
|
| |
(This differs somewhat from the version originally submitted - any mistakes
are my own.)
PR: 68524
Submitted by: J. Vicente Carrasco -Bixen-
Notes:
svn path=/head/; revision=134437
|
|
|
|
|
|
|
|
|
| |
ru_RU.CP866.src, the previous version of this file contained a strange
conversion error: nostr had U+255C BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
instead of U+0435 CYRILLIC SMALL LETTER IE.
Notes:
svn path=/head/; revision=134434
|
|
|
|
|
|
|
|
|
| |
PR: [FreeBSD-users-jp 80667]
Submitted by: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp>
MFC after: 1 week
Notes:
svn path=/head/; revision=134433
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This way of operation is more robust than the "AI" used
before.
Add flags to mbr accessible from make.conf as BOOT_MBR_FLAGS.
Only one flag is defined now, "allow using packet mode", which
is 0x80 in accord with the rest of i386 boot code. The "packet"
flag is on by default.
PR: i386/70241
Submitted by: Valentin Nechayev <netch <@> netch.kiev.ua> (inital version)
Discussed with: jhb (by Valentin Nechayev)
Tested on: bochs (with EDD turned on or off by patching the BIOS), PCs
Notes:
svn path=/head/; revision=134431
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the flag, fall back to the old INT13/AH=02 function if that fails.
This way of operation is less likely to fail with modern BIOSes and
large disks of strange geometries.
PR: i386/70241
Submitted by: Valentin Nechayev <netch <@> netch.kiev.ua> (inital version)
Discussed with: jhb (by Valentin Nechayev)
Tested on: bochs (with EDD turned on or off by patching the BIOS), PCs
Notes:
svn path=/head/; revision=134430
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from list_net_interfaces() when network_interfaces=auto.
Rationale: Since the auto case is special, the lesser evil
had to be chosen among not adding cloned interfaces to
_tmplist or removing duplicates from _tmplist after adding
cloned interfaces. Since list_net_interfaces() must not use
/usr/bin tools, the former "evil" appeared clearer and much
more efficient. (See the PR audit trail for discussion.)
PR: conf/63700
Reviewed by: brooks
MFC after: 5 days
Notes:
svn path=/head/; revision=134429
|
|
|
|
|
|
|
|
| |
MFC after: 3 days
Thanks to: Guy Helmer
Notes:
svn path=/head/; revision=134427
|
|
|
|
|
|
|
| |
2. remove '\n' in KASSERT.
Notes:
svn path=/head/; revision=134426
|
|
|
|
|
|
|
|
|
|
| |
need of sched_lock in some places. Also in thread_userret, remove
spare thread allocation code, it is already done in thread_user_enter.
Reviewed by: julian
Notes:
svn path=/head/; revision=134425
|
|
|
|
| |
Notes:
svn path=/head/; revision=134424
|
|
|
|
|
|
|
|
|
|
| |
this avoids the creation of "PaxHeader" dirs when unpacking pax-format
tar archives such as those written by bsdtar.
MFC after: 3 days
Notes:
svn path=/head/; revision=134423
|
|
|
|
| |
Notes:
svn path=/head/; revision=134422
|
|
|
|
|
|
|
| |
exactly the same value, but is shorter.
Notes:
svn path=/head/; revision=134421
|
|
|
|
|
|
|
| |
Requested by: Michael Handler <handler@grendel.net>
Notes:
svn path=/head/; revision=134420
|
|
|
|
|
|
|
|
| |
only.
- Use getprogname() function when informing about versions problem.
Notes:
svn path=/head/; revision=134419
|
|
|
|
|
|
|
| |
Reported by: Michael Handler <handler@grendel.net>
Notes:
svn path=/head/; revision=134418
|
|
|
|
|
|
|
| |
believed to fix the problem with ULE that this change triggered.
Notes:
svn path=/head/; revision=134417
|
|
|
|
|
|
|
| |
Requested by: jhb
Notes:
svn path=/head/; revision=134416
|
|
|
|
|
|
|
|
|
|
| |
preemption and/or the rev 1.79 kern_switch.c change that was backed out.
The thread was being assigned to a runq without adding in the load, which
would cause the counter to hit -1.
Notes:
svn path=/head/; revision=134415
|
|
|
|
|
|
|
|
|
| |
snd_cmi, snd_cs4281, snd_ds1, snd_emu10k1, snd_es137x, and snd_solo.
MFC after: 5 days
Notes:
svn path=/head/; revision=134414
|
|
|
|
| |
Notes:
svn path=/head/; revision=134413
|
|
|
|
|
|
|
| |
commit MPSAFE code for now it is just IFF_NEEDSGIANT.
Notes:
svn path=/head/; revision=134412
|
|
|
|
|
|
|
|
|
| |
Submitted by: Atte Peltomaki <koston@iki.fi>
Reviewed by: cg
MFC after: 5 days
Notes:
svn path=/head/; revision=134411
|
|
|
|
|
|
|
|
| |
11 days ago when all the other places were fixed and finally caught
by the tinderbox run...
Notes:
svn path=/head/; revision=134410
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Add MOUSE_PS2_TAP into syncmask[0] correctly when we're built with
PSM_CONFIG_FORCETAP. The previous code from revision 1.56 attempted
to do this but updated the a mask variable that would be clobbered later.
o If syncmask[1] hasn't yet been set when ioctl(MOUSE_GETMODE) is called,
zero syncmask[0] and syncmask[1] so that sync validation is effectively
disabled in userland applications and moused doesn't misbehave. The
psm driver performs sync validation so there is no loss in functionality
in clearing the sync mask.
o If PSM_NEED_SYNCBITS is set, setup syncmask[1], even if it's already
correct. This prevents the PSM_NEED_SYNCBITS bit from being left on
after a re-initialisation and erroneously causing a subsequent
out-of-sync packet to mis-set syncmask[1].
Notes:
svn path=/head/; revision=134409
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=134408
|
|
|
|
|
|
|
| |
gv_config_new_drive().
Notes:
svn path=/head/; revision=134407
|
|
|
|
|
|
|
| |
Approved by: marcel
Notes:
svn path=/head/; revision=134406
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Remove PSM_SYNCERR_THRESHOLD1. This value specified how many sync
errors were required before the mouse is re-initialised.
Re-initialisation is now done after (packetsize * 2) sync errors as
things aren't likely to improve after that.
o Reset lastinputerror when re-initialisation occurs. We don't want
to continue to drop data after re-initialisation.
o Count the number of failed packets independently of the syncerrors
statistic. syncerrors is useful for recovering sync within a single
packet. pkterrors allows us to detect when the mouse changes its
packet mode due to some external event (e.g. KVM switch).
o Reinitialize the mouse if we see more than psmpkterrthresh errors
during the validation period. The validation period begins as soon
as a sync error is detected and continues until psmerrsecs/msecs
time has elapsed. The defaults for these two values force a reset
if we see two packet errors in a 2 second period. This allows rapid
detection of packet framing errors caused by the mouse changing packet
modes.
o Export psmpkterrthresh as a sysctl
o Export psmloglevel as a sysctl.
o Enable more debugging code to be enabled at runtime via psmloglevel.
o Simplify verbose conditioned loging by using a VLOG macro.
o Add several comments describing the sync recovery algorithm of
this driver.
Large Portions by: Brian Somers <brian@Awfulhak.org>
Inspired and Frustrated by: Belkin KVMs
Reviewed by: njl, philip
Notes:
svn path=/head/; revision=134405
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pollfd's to avoid calling malloc() on small numbers of fd's. Because
smalltype's members have type char, its address might be misaligned
for a struct pollfd. Change the array of char to an array of struct
pollfd.
PR: kern/58214
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: bde (a long time ago)
MFC after: 3 days
Notes:
svn path=/head/; revision=134404
|
|
|
|
|
|
|
| |
doesn't require to include opt_pfil_hooks.h.
Notes:
svn path=/head/; revision=134402
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=134401
|
|
|
|
| |
Notes:
svn path=/head/; revision=134400
|
|
|
|
|
|
|
|
|
|
| |
soon to be deleted struct ifnet around.
PR: kern/52260
MFC After: 3 days
Notes:
svn path=/head/; revision=134399
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
these two reasons:
1. On ia64 a function pointer does not hold the address of the first
instruction of a functions implementation. It holds the address
of a function descriptor. Hence the user(), btrap(), eintr() and
bintr() prototypes are wrong for getting the actual code address.
2. The logic forces interrupt, trap and exception entry points to
be layed-out contiguously. This can not be achieved on ia64 and is
generally just bad programming.
The MCOUNT_FROMPC_USER macro is used to set the frompc argument to
some kernel address which represents any frompc that falls outside
the kernel text range. The macro can expand to ~0U to bail out in
that case.
The MCOUNT_FROMPC_INTR macro is used to set the frompc argument to
some kernel address to represent a call to a trap or interrupt
handler. This to avoid that the trap or interrupt handler appear to
be called from everywhere in the call graph. The macro can expand
to ~0U to prevent adjusting frompc. Note that the argument is selfpc,
not frompc.
This commit defines the macros on all architectures equivalently to
the original code in sys/libkern/mcount.c. People can take it from
here...
Compile-tested on: alpha, amd64, i386, ia64 and sparc64
Boot-tested on: i386
Notes:
svn path=/head/; revision=134398
|
|
|
|
|
|
|
|
|
|
|
| |
- Clean up and improve handling of trailing punctuation characters.
- Handle the Pa macro.
- Give a warning when ignoring unimplemented mdoc commands.
MFC after: 3 days
Notes:
svn path=/head/; revision=134397
|
|
|
|
| |
Notes:
svn path=/head/; revision=134396
|
|
|
|
|
|
|
| |
These are referenced in subr_prof.c when building a profiling kernel.
Notes:
svn path=/head/; revision=134395
|
|
|
|
|
|
|
|
| |
for profiling kernels. Apparently, nobody has ever tried to build one on
alpha...
Notes:
svn path=/head/; revision=134394
|
|
|
|
|
|
|
|
|
|
| |
valid pmap to the pmap functions that require one. Remove the checks for
NULL. (These checks have their origins in the Mach pmap.c that was
integrated into BSD. None of the new code written specifically for
FreeBSD included them.)
Notes:
svn path=/head/; revision=134393
|
|
|
|
|
|
|
|
|
| |
diffs against #ifdef'd version of IPSEC, use "struct thread *p"
rather than "struct proc *p", fix some white space, and make some
already inconsistent white space inconsiste differently.
Notes:
svn path=/head/; revision=134392
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
its users.
netisr_queue() now returns (0) on success and ERRNO on failure. At the
moment ENXIO (netisr queue not functional) and ENOBUFS (netisr queue full)
are supported.
Previously it would return (1) on success but the return value of IF_HANDOFF()
was interpreted wrongly and (0) was actually returned on success. Due to this
schednetisr() was never called to kick the scheduling of the isr. However this
was masked by other normal packets coming through netisr_dispatch() causing the
dequeueing of waiting packets.
PR: kern/70988
Found by: MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
MFC after: 3 days
Notes:
svn path=/head/; revision=134391
|
|
|
|
|
|
|
| |
tree.
Notes:
svn path=/head/; revision=134390
|
|
|
|
| |
Notes:
svn path=/head/; revision=134389
|