]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoMake sure all uses of stack allocated struct route's are properly
Andre Oppermann [Wed, 26 Nov 2003 20:31:13 +0000 (20:31 +0000)]
Make sure all uses of stack allocated struct route's are properly
zeroed.  Doing a bzero on the entire struct route is not more
expensive than assigning NULL to ro.ro_rt and bzero of ro.ro_dst.

Reviewed by: sam (mentor)
Approved by: re  (scottl)

20 years ago* Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches the
Nate Lawson [Wed, 26 Nov 2003 19:01:33 +0000 (19:01 +0000)]
* Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches the
  idx'th present CPU with pc_acpi_id equal to *acpi_id.  If *acpi_id
  does not match that processor's pc_acpi_id, return the value for
  ProcId derived from the MADT in *acpi_id.  If pc_acpi_id is 0xffffffff,
  always override it with the value of *acpi_id.  Finally, return
  pc_cpuid in *cpu_id and use that as our primary key.

* Use pc_cpuid as our unique key because we know it is valid since
  MD code set it.  The values for ProcId in the ASL and MADT don't
  match up on some machines (!), forcing us to fall back to ordered
  probing in that case.

* Remove some #ifdef SMP since the refcount doesn't hurt performance
  and will be needed for dynamic _CST objects.  Only one #ifdef SMP
  (for smp_rendezvous) remains.

* Hook up SMP in the compile flags in the Makefile.

Tested by: marcel, truckman
Approved by: re (scottl)

20 years agoLearn about new world order
Alexey Zelkin [Wed, 26 Nov 2003 10:43:05 +0000 (10:43 +0000)]
Learn about new world order

20 years agoGrammar, spelling and punctuation sweep.
Christian Brueffer [Wed, 26 Nov 2003 08:38:32 +0000 (08:38 +0000)]
Grammar, spelling and punctuation sweep.

Approved by: re (rwatson)

20 years agoSplit the "inp" mutex class into separate classes for each of divert,
Sam Leffler [Wed, 26 Nov 2003 01:40:44 +0000 (01:40 +0000)]
Split the "inp" mutex class into separate classes for each of divert,
raw, tcp, udp, raw6, and udp6 sockets to avoid spurious witness
complaints.

Reviewed by: rwatson
Approved by: re (rwatson)

20 years agoRestructure a too broad ifdef which was disabling the setting of the
Andre Oppermann [Tue, 25 Nov 2003 20:58:59 +0000 (20:58 +0000)]
Restructure a too broad ifdef which was disabling the setting of the
tcp flightsize sysctl value for local networks in the !INET6 case.

Approved by: re (scottl)

20 years agoworkaround LOR in rt_setgate
Sam Leffler [Tue, 25 Nov 2003 19:52:12 +0000 (19:52 +0000)]
workaround LOR in rt_setgate

Reviewed by: andre
Approved by: re (rwatson)

20 years agoCorrect the name of the make(1) knob to disable dynamic root
Simon L. B. Nielsen [Tue, 25 Nov 2003 14:11:02 +0000 (14:11 +0000)]
Correct the name of the make(1) knob to disable dynamic root
(s/WITHOUT_DYNAMICROOT/NO_DYNAMICROOT/).

Approved by: re (scottl)
Noticed by: Matthias Schndehtte <Matthias.Schuendehuette@siemens.com>

20 years agoMove mly, plip, and slip back into the kernel so floppy 3 can fit again. I'm
Scott Long [Tue, 25 Nov 2003 04:51:35 +0000 (04:51 +0000)]
Move mly, plip, and slip back into the kernel so floppy 3 can fit again.  I'm
not sure why it exploded in the last 10 days, though I suspect nfsclient.ko.

Approved by: re (rwatson)

20 years agoTurns out that building modules with the kernel opt files is
Warner Losh [Tue, 25 Nov 2003 04:12:43 +0000 (04:12 +0000)]
Turns out that building modules with the kernel opt files is
uncovering some interesting problems.  Be conservative and effecitvely
disable this by default.  Interested parties may still define
KERNBUILDDIR by hand to achive the same effect.

I plan on referting this change after 5.2 is released, or sooner if
the issues with building releases are resolved and re@ approves.

Approved by: re@ (scottl, marcel)

20 years agoWrite the correct value to `td_be' for the second and further
Ian Dowse [Tue, 25 Nov 2003 02:23:29 +0000 (02:23 +0000)]
Write the correct value to `td_be' for the second and further
transfer descriptors when a large request needs to be split into
more than one 8k chunk. The bug was that the calculation did not
take into account the offset of the chunk within the overall request.
This is reported to fix crashes and data corruption on ohci
controllers.

Submitted by: green
Approved by: re

20 years agoAdd nsp(4) man page for nsp PC-Card SCSI host adapter device driver,
Noriaki Mitsunaga [Mon, 24 Nov 2003 23:57:59 +0000 (23:57 +0000)]
Add nsp(4) man page for nsp PC-Card SCSI host adapter device driver,
and attach it to the build.

Submitted by: non, rushani
Approved by: re (rwatson)

20 years agoo Add HISTORY and AUTHORS section
Noriaki Mitsunaga [Mon, 24 Nov 2003 23:47:24 +0000 (23:47 +0000)]
o Add HISTORY and AUTHORS section
o Add scsi.4 in the SEE ALSO section

Reviewed by: rushani
Approved by: re (rwatson)

20 years agoCorrect iov_len values passed to nmount(2) syscall. More accurate
Alexander Kabaev [Mon, 24 Nov 2003 16:14:32 +0000 (16:14 +0000)]
Correct iov_len values passed to nmount(2) syscall. More accurate
parameter checking introduced in vfs_mount.c r1.113 rejects them
otherwise.

Submitted by: R. Imura <imura at ryu16 dot org>
Approved by: re (scottl,rwatson)

20 years ago - Drop down to one snapshots FTP site since that's all we have now
Ken Smith [Mon, 24 Nov 2003 15:27:20 +0000 (15:27 +0000)]
- Drop down to one snapshots FTP site since that's all we have now
- Adjust names of IPv6 FTP hosts a bit
- Sync list of FTP sites with reality

Approved by: rwatson (re@)

20 years agoCorrect the former patch, I accidently committed the wrong version.
Søren Schmidt [Mon, 24 Nov 2003 14:54:41 +0000 (14:54 +0000)]
Correct the former patch, I accidently committed the wrong version.

Approved by: re@

20 years agoFix panic on certain failed configs.
Søren Schmidt [Mon, 24 Nov 2003 14:22:30 +0000 (14:22 +0000)]
Fix panic on certain failed configs.

Approved by: re@

20 years agoBe less noisy when GEOM probes around during boot if drive contains
Søren Schmidt [Mon, 24 Nov 2003 14:20:19 +0000 (14:20 +0000)]
Be less noisy when GEOM probes around during boot if drive contains
invalid media (ie empty CD/DVD)

Approved by: re@

20 years agoInitalize buffer headers correctly for current version of bio subsystem.
Greg Lehey [Mon, 24 Nov 2003 04:06:56 +0000 (04:06 +0000)]
Initalize buffer headers correctly for current version of bio subsystem.

Not mentioned by: phk
Approved by:   re (scottl)

This makes Vinum work again, at least in my testing.

20 years agoCorrect a problem where ipfw-generated packets were being returned
Sam Leffler [Mon, 24 Nov 2003 03:57:03 +0000 (03:57 +0000)]
Correct a problem where ipfw-generated packets were being returned
for ipfw processing w/o an indication the packets were generated
by ipfw--and so should not be processed (this manifested itself
as a LOR.)  The flag bit in the mbuf that was used to mark the
packets was not listed in M_COPYFLAGS so if a packet had a header
prepended (as done by IPsec) the flag was lost.  Correct this by
defining a new M_PROTO6 flag and use it to mark packets that need
this processing.

Reviewed by: bms
Approved by: re (rwatson)
MFC after: 2 weeks

20 years agopktopt may be null.
Hajimu UMEMOTO [Mon, 24 Nov 2003 01:53:36 +0000 (01:53 +0000)]
pktopt may be null.

Approved by: re (rwatson)

20 years agoLong overdue comment claification: RFC 2783 was approved long time ago.
Poul-Henning Kamp [Sun, 23 Nov 2003 18:52:23 +0000 (18:52 +0000)]
Long overdue comment claification:  RFC 2783 was approved long time ago.

Approved by: re@

20 years agoUse MPSAFE callouts only when debug.mpsafenet is 1. Both timer routines
Sam Leffler [Sun, 23 Nov 2003 18:13:41 +0000 (18:13 +0000)]
Use MPSAFE callouts only when debug.mpsafenet is 1.  Both timer routines
potentially transmit packets that may enter KAME IPsec w/o Giant if the
callouts are marked MPSAFE.

Reviewed by: ume
Approved by: re (rwatson)

20 years agoDo not attempt to destroy NULL vfs options list.
Alexander Kabaev [Sun, 23 Nov 2003 17:13:48 +0000 (17:13 +0000)]
Do not attempt to destroy NULL vfs options list.

Approved by: re (scottl)
Reported by: Christian Laursen <xi atborderworlds dot dk>

20 years agoFix vinum by correctly setting the b_offset bio filed when doing I/O.
Scott Long [Sun, 23 Nov 2003 17:10:58 +0000 (17:10 +0000)]
Fix vinum by correctly setting the b_offset bio filed when doing I/O.

Submitted by: grog

20 years agoAvoid NULL pointer dereference.
Poul-Henning Kamp [Sun, 23 Nov 2003 10:22:51 +0000 (10:22 +0000)]
Avoid NULL pointer dereference.

Approved by: re@

20 years agoo Add missing articles
Christian Brueffer [Sun, 23 Nov 2003 09:53:13 +0000 (09:53 +0000)]
o Add missing articles
o Various grammar fixes

Approved by: re (murray)

20 years agoDon't use UFS2_BAD_MAGIC on UFS (v1) filesystems; it is Not Ready
Wes Peters [Sun, 23 Nov 2003 08:29:01 +0000 (08:29 +0000)]
Don't use UFS2_BAD_MAGIC on UFS (v1) filesystems; it is Not Ready
for Prime Time there.

Submitted by: Xin LI <delphij@frontfree.net>
Approved by: RE@ (John, Scott)

20 years agobzero() the the sockaddr used for the destination address for
Thomas Moestl [Sun, 23 Nov 2003 03:02:00 +0000 (03:02 +0000)]
bzero() the the sockaddr used for the destination address for
rtalloc_ign() in in_pcbconnect_setup() before it is filled out.
Otherwise, stack junk would be left in sin_zero, which could
cause host routes to be ignored because they failed the comparison
in rn_match().
This should fix the wrong source address selection for connect() to
127.0.0.1, among other things.

Reviewed by: sam
Approved by: re (rwatson)

20 years agoInstall UDF header files to unbreak /sbin building when /sys is not present.
Scott Long [Sat, 22 Nov 2003 06:08:59 +0000 (06:08 +0000)]
Install UDF header files to unbreak /sbin building when /sys is not present.

Submitted by: imura@ryu16.org

20 years agoMove us into 5.2-BETA
Scott Long [Sat, 22 Nov 2003 06:04:12 +0000 (06:04 +0000)]
Move us into 5.2-BETA

20 years agoNew defines that paves the way for new midi features and ports.
Mathew Kanner [Sat, 22 Nov 2003 03:27:09 +0000 (03:27 +0000)]
New defines that paves the way for new midi features and ports.

Changes consists of an IOCTL (SNDCTL_SEQ_GETTIME) and a constant.

PR: kern/59233
Approved by: tanimura (mentor)
Approved by: scottl (re)
MFC after: 3 weeks

20 years agoUse function pointers to remove the depenancy cross dependancy on nfs4
Alfred Perlstein [Sat, 22 Nov 2003 02:21:49 +0000 (02:21 +0000)]
Use function pointers to remove the depenancy cross dependancy on nfs4
and the nfs3 client.  Also fix some bugs that happen to be causing crashes
in both v3 and v4 introduced by the v4 import.

Submitted by: Jim Rees <rees@umich.edu>
Approved by: re

20 years agoCleanup manpage for mount_nfs4 (make it actually refer to nfs4 options).
Alfred Perlstein [Sat, 22 Nov 2003 02:18:30 +0000 (02:18 +0000)]
Cleanup manpage for mount_nfs4 (make it actually refer to nfs4 options).
Cleanup option parsing for mount_nfs4 program, and remove dead code.

Approved by: re

20 years agoBring in manpage for idmapd and change domain to @FreeBSD.org.
Alfred Perlstein [Sat, 22 Nov 2003 02:16:53 +0000 (02:16 +0000)]
Bring in manpage for idmapd and change domain to @FreeBSD.org.

Approved by: re

20 years agoArgh! The Athlon64 and Opteron only implement 40 bits of address space in
Peter Wemm [Sat, 22 Nov 2003 01:11:07 +0000 (01:11 +0000)]
Argh!  The Athlon64 and Opteron only implement 40 bits of address space in
the MTRR Base/Mask registers.  If you use the documented algorithm in the
systems programming guide, you'll get a GPF. The only thing that has
prevented this so far is that the bios pre-sets some MTRR entries which
we mis-interpreted sufficiently to fool the memcontrol interface into
thinking all the address space was taken and therefore rejected XFree86's
requests.  However, not all bioses do this..  You get an insta-panic in
that case.  Grrr.  A better fix (dynamic mask) will happen by 5.3/5-stable
so that we automatically adapt to more than 40 physical bits.

Approved by:  re (scottl)

20 years agoCommit rev 1.1.1.20 to HEAD. This file was off the vendor branch and thus
Nate Lawson [Sat, 22 Nov 2003 00:48:08 +0000 (00:48 +0000)]
Commit rev 1.1.1.20 to HEAD.  This file was off the vendor branch and thus
the changes need to be made to HEAD.

Approved by: re (previously)

20 years agoFix support for the cmd646 chip.
Søren Schmidt [Fri, 21 Nov 2003 22:58:56 +0000 (22:58 +0000)]
Fix support for the cmd646 chip.

Spotted by: tmm
reviewed by: re@

20 years ago- Split cpu_mp_probe() into two parts. cpu_mp_setmaxid() is still called
John Baldwin [Fri, 21 Nov 2003 22:23:26 +0000 (22:23 +0000)]
- Split cpu_mp_probe() into two parts.  cpu_mp_setmaxid() is still called
  very early (SI_SUB_TUNABLES - 1) and is responsible for setting mp_maxid.
  cpu_mp_probe() is now called at SI_SUB_CPU and determines if SMP is
  actually present and sets mp_ncpus and all_cpus.  Splitting these up
  allows an architecture to probe CPUs later than SI_SUB_TUNABLES by just
  setting mp_maxid to MAXCPU in cpu_mp_setmaxid().  This could allow the
  CPU probing code to live in a module, for example, since modules
  sysinit's in modules cannot be invoked prior to SI_SUB_KLD.  This is
  needed to re-enable the ACPI module on i386.
- For the alpha SMP probing code, use LOCATE_PCS() instead of duplicating
  its contents in a few places.  Also, add a smp_cpu_enabled() function
  to avoid duplicating some code.  There is room for further code
  reduction later since much of this code is also present in cpu_mp_start().
- All archs besides i386 still set mp_maxid to the same values they set it
  to before this change.  i386 now sets mp_maxid to MAXCPU.

Tested on: alpha, amd64, i386, ia64, sparc64
Approved by: re (scottl)

20 years agoThis commit was generated by cvs2svn to compensate for changes in r122945,
Nate Lawson [Fri, 21 Nov 2003 21:24:31 +0000 (21:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r122945,
which included commits to RCS files with non-trunk default branches.

20 years agoUpdate code for checking the reference count and performing the final
Nate Lawson [Fri, 21 Nov 2003 21:24:31 +0000 (21:24 +0000)]
Update code for checking the reference count and performing the final
delete of objects.  Also revert our temporary workaround in dsmthdat.c
that always copied objects.  This is the correct fix for errors
evaluating _BST (and GBST) on IBM Thinkpads where an argument (Arg3)
was returned to the caller and the object was freed while still in use.
This will be in a future ACPI-CA dist.

Thanks to: kochi@netbsd.org, shaohua.li@intel.com

20 years agoAdd the byte offset to the base address for IndexField objects. This
Nate Lawson [Fri, 21 Nov 2003 21:21:17 +0000 (21:21 +0000)]
Add the byte offset to the base address for IndexField objects.  This
fixes an interrupt storm for certain users.  This is done on the vendor
branch since the code is already in the 20031029 ACPI-CA dist and will
be imported after 5.2R.

Tested by: sebastian ssmoller <sebastian.ssmoller@gmx.net>
PR: i386/57909
Approved by: re (jhb)

20 years agoNew major number:
Warner Losh [Fri, 21 Nov 2003 21:03:42 +0000 (21:03 +0000)]
New major number:
185 ce Cronyx Tau-32 E1 adapter <rik@cronyx.ru>

(likely unneeded for current, but required for older versions of FreeBSD).

Approved by: re@ (scottl)

20 years agoWith the beastie menu a problem was introduced in which selecting a
Daniel C. Sobral [Fri, 21 Nov 2003 19:01:02 +0000 (19:01 +0000)]
With the beastie menu a problem was introduced in which selecting a
different kernel to boot with kernel="NAME" would load the kernel and
loader.conf-selected modules from /boot/NAME, but it would not change
module_path. So, for instance, the automatically loaded acpi.ko would come
from /boot/kernel/acpi.ko, *always*.

Mind you, this happened for unassisted boot. If you interrupted, typed
"unload" and then "boot NAME", it would Do The Right Thing.

The source of the problem is the double initialization with beastie's
loader.rc. One would happen inside "start", and would load the kernel. The
next one would happen later in the loader.rc script, resetting module_path.

Because module_path is set to the Right Value by the functions in support.4th
that actually load the kernel, when beastie.4th proceeded to boot
module_path would remain wrong, as the kernel was already loaded.

This can be corrected by removing either initialization, and also by changing
the command used by beastie.4th from "boot" to "boot-conf", which makes sure
you use the right kernel and modules.

I chose to remove the second initialization, since this let you interrupt
(or confirm) boot before beastie even comes up. I avoid also doing the
boot-conf change because that would simply cause the kernel and modules to
be loaded twice (in fact, that was my original patch, until, in writing this
very commit message, I saw the error of my ways).

This commit changes the semantics of module loading when using the beastie
menu. Now it does what one would expect it to, but not what it was actually
doing, so something may break for unusual setups depending on broken
behavior. As our japanese friends so nicely put it, shikata ga nakatta. :-)

Approved by: re (scottl)

20 years agoTurn on NO_MIXED_MODE for amd64 generic. It turns out that all the
Peter Wemm [Fri, 21 Nov 2003 03:19:59 +0000 (03:19 +0000)]
Turn on NO_MIXED_MODE for amd64 generic.  It turns out that all the
known samples of broken chipsets that needed mixed mode in the first place
are so broken (ie: locks up) that we can't use IO APIC mode at all and it
needs to be turned off in the bios.  So, the MIXED_MODE penalty on the
good chipsets gained nothing.

Approved by:  re (scottl)

20 years agoCosmetic and/or trivial sync up with i386.
Peter Wemm [Fri, 21 Nov 2003 03:02:00 +0000 (03:02 +0000)]
Cosmetic and/or trivial sync up with i386.

Approved by:  re (rwatson)

20 years agoMFi386 rev 1.54 (jhb): Add interrupts that are actually available to the
Peter Wemm [Fri, 21 Nov 2003 03:00:05 +0000 (03:00 +0000)]
MFi386 rev 1.54 (jhb): Add interrupts that are actually available to the
resource manager, rather than adding everything.

Approved by:  re (scottl)

20 years agoMFi386: pre-register idt slots for atpic so we catch any strays without
Peter Wemm [Fri, 21 Nov 2003 02:58:26 +0000 (02:58 +0000)]
MFi386: pre-register idt slots for atpic so we catch any strays without
blowing up.

Approved by:  re (scottl)

20 years agoMFi386 rev 1.207 (phk): Don't mistakenly disable the TSC when using
Peter Wemm [Fri, 21 Nov 2003 02:53:49 +0000 (02:53 +0000)]
MFi386 rev 1.207 (phk): Don't mistakenly disable the TSC when using
statclock_disable.

Approved by:  re (scottl)

20 years agoReplace out of date struct statfs definition with a reference to statfs(2).
Tim J. Robbins [Fri, 21 Nov 2003 01:30:28 +0000 (01:30 +0000)]
Replace out of date struct statfs definition with a reference to statfs(2).

Approved by: re

20 years agoNew release note: acpi(4) idle state support.
Bruce A. Mah [Fri, 21 Nov 2003 01:23:20 +0000 (01:23 +0000)]
New release note:  acpi(4) idle state support.

Submitted by: njl
Approved by: re (implicitly)

20 years agoBring in a new manual page, ncv.4, and attach it to the build.
Tom Rhodes [Fri, 21 Nov 2003 00:55:11 +0000 (00:55 +0000)]
Bring in a new manual page, ncv.4, and attach it to the build.

Based on an original version submitted by: non

Approved by: re (scottl)

20 years agoArgh! Followup to previous commit. I checked in the patch with an
Peter Wemm [Thu, 20 Nov 2003 23:49:28 +0000 (23:49 +0000)]
Argh! Followup to previous commit.  I checked in the patch with an
unintended local change.  Change Xurthread back to curthread.

20 years agoMFamd64: use a less compiler-intensive MD implementation of 'curthread'
Peter Wemm [Thu, 20 Nov 2003 23:23:22 +0000 (23:23 +0000)]
MFamd64: use a less compiler-intensive MD implementation of 'curthread'
so that the compiler doesn't have to do so much work.

Approved by:  re (jhb)

20 years agoProvide a streamlined '#define curthread __curthread()' for amd64 to avoid
Peter Wemm [Thu, 20 Nov 2003 22:54:44 +0000 (22:54 +0000)]
Provide a streamlined '#define curthread __curthread()' for amd64 to avoid
the compiler having to parse and optimize the PCPU_GET(curthread) so often.
__curthread() is an inline optimized version of PCPU_GET(curthread) that
knows that pc_curthread is at offset zero in the pcpu struct.  Add a
CTASSERT() to catch any possible changes to this.  This accounts for
just over a 1% wall clock speedup for total kernel compile/link time,
and 20% compile time speedup on some specific files depending on which
compile options are used.

Approved by:  re (jhb)

20 years agoAllow the MD backend to provide an alternative to
Peter Wemm [Thu, 20 Nov 2003 22:50:26 +0000 (22:50 +0000)]
Allow the MD backend to provide an alternative to
 #define curthread PCPU_GET(curthread)
since its so heavily used in the kernel and ripe for compile-speed
optimization on some platforms.

20 years agoFix a typo in my patches to support extended IRQ resources that broke the
John Baldwin [Thu, 20 Nov 2003 22:21:51 +0000 (22:21 +0000)]
Fix a typo in my patches to support extended IRQ resources that broke the
type checking for _PRS for a link device's interrupt resources.

Approved by: re (scottl)

20 years agoIntroduce tcp_hostcache and remove the tcp specific metrics from
Andre Oppermann [Thu, 20 Nov 2003 21:47:20 +0000 (21:47 +0000)]
Introduce tcp_hostcache and remove the tcp specific metrics from
the routing table.  Move all usage and references in the tcp stack
from the routing table metrics to the tcp hostcache.

It caches measured parameters of past tcp sessions to provide better
initial start values for following connections from or to the same
source or destination.  Depending on the network parameters to/from
the remote host this can lead to significant speedups for new tcp
connections after the first one because they inherit and shortcut
the learning curve.

tcp_hostcache is designed for multiple concurrent access in SMP
environments with high contention and is hash indexed by remote
ip address.

It removes significant locking requirements from the tcp stack with
regard to the routing table.

Reviewed by: sam (mentor), bms
Reviewed by: -net, -current, core@kame.net (IPv6 parts)
Approved by: re (scottl)

20 years agoTry all of the possible interrupts for a link device when programming
John Baldwin [Thu, 20 Nov 2003 21:23:49 +0000 (21:23 +0000)]
Try all of the possible interrupts for a link device when programming
boot-disabled devices instead of skipping the last interrupt.  This is
especially important for devices that only have one interrupt as this
bug was keeping any interrupt from being tried at all.

Reviewed by: msmith
Approved by: re (scottl)

20 years agoAdd Greek keymaps to sysinstall.
John Baldwin [Thu, 20 Nov 2003 20:43:06 +0000 (20:43 +0000)]
Add Greek keymaps to sysinstall.

PR: bin/59078
Submitted by: Panagiotis Astithas <past@noc.ntua.gr>
Approved by: re (rwatson)

20 years agoFix a typo that broke one of the Greek keyboard maps.
John Baldwin [Thu, 20 Nov 2003 20:41:12 +0000 (20:41 +0000)]
Fix a typo that broke one of the Greek keyboard maps.

PR: bin/59078
Submitted by: Panagiotis Astithas <past@noc.ntua.gr>
Approved by: re (rwatson)

20 years agoUpdate the size of the OS string table that wasn't updated in the previous
John Baldwin [Thu, 20 Nov 2003 20:28:18 +0000 (20:28 +0000)]
Update the size of the OS string table that wasn't updated in the previous
commit that removed the UNIX entry.

Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz>
Approved by: re (rwatson)

20 years agoIntroduce tcp_hostcache and remove the tcp specific metrics from
Andre Oppermann [Thu, 20 Nov 2003 20:07:39 +0000 (20:07 +0000)]
Introduce tcp_hostcache and remove the tcp specific metrics from
the routing table.  Move all usage and references in the tcp stack
from the routing table metrics to the tcp hostcache.

It caches measured parameters of past tcp sessions to provide better
initial start values for following connections from or to the same
source or destination.  Depending on the network parameters to/from
the remote host this can lead to significant speedups for new tcp
connections after the first one because they inherit and shortcut
the learning curve.

tcp_hostcache is designed for multiple concurrent access in SMP
environments with high contention and is hash indexed by remote
ip address.

It removes significant locking requirements from the tcp stack with
regard to the routing table.

Reviewed by: sam (mentor), bms
Reviewed by: -net, -current, core@kame.net (IPv6 parts)
Approved by: re (scottl)

20 years agoRemove RTF_PRCLONING from routing table and adjust users of it
Andre Oppermann [Thu, 20 Nov 2003 19:47:31 +0000 (19:47 +0000)]
Remove RTF_PRCLONING from routing table and adjust users of it
accordingly.  The define is left intact for ABI compatibility
with userland.

This is a pre-step for the introduction of tcp_hostcache.  The
network stack remains fully useable with this change.

Reviewed by: sam (mentor), bms
Reviewed by: -net, -current, core@kame.net (IPv6 parts)
Approved by: re (scottl)

20 years agoo Use manpage entity for xe(4)
Christian Brueffer [Thu, 20 Nov 2003 19:39:53 +0000 (19:39 +0000)]
o Use manpage entity for xe(4)
o Various grammar fixes

Approved by: re (bmah)

20 years agoNew release note: sparc64 syscons(4) support [1]
Bruce A. Mah [Thu, 20 Nov 2003 17:07:59 +0000 (17:07 +0000)]
New release note:  sparc64 syscons(4) support [1]

Modified release note:  mount_udf(8) -C. [2]

Submitted by: kris [1], "R. Imura" <imura@ryu16.org> [2]
Approved by: re (implicitly)

20 years agoSet the ACPI processor Id in the PCPU structure so that CPU idling
Marcel Moolenaar [Thu, 20 Nov 2003 16:42:39 +0000 (16:42 +0000)]
Set the ACPI processor Id in the PCPU structure so that CPU idling
on SMP systems has a chance of working. This was a loose end of the
implementation of the ACPI Cx idle states. Since our logical CPU Id
is the ACPI processor Id, we do not need to jump through hoops to
obtain it.

Approved: re@ (jhb)

20 years agoFix a major faux pas of mine. I was causing 2 very bad things to
Mark Murray [Thu, 20 Nov 2003 15:35:48 +0000 (15:35 +0000)]
Fix a major faux pas of mine. I was causing 2 very bad things to
happen in interrupt context; 1) sleep locks, and 2) malloc/free
calls.

1) is fixed by using spin locks instead.

2) is fixed by preallocating a FIFO (implemented with a STAILQ)
   and using elements from this FIFO instead. This turns out
   to be rather fast.

OK'ed by: re (scottl)
Thanks to: peter, jhb, rwatson, jake
Apologies to: *

20 years agoFix a bug which causes wrong filename being written into the syslog
Maxim Sobolev [Thu, 20 Nov 2003 13:36:31 +0000 (13:36 +0000)]
Fix a bug which causes wrong filename being written into the syslog
in the case when client sends request with RFC2347 options.

Approved by: re
MFC After: 2 weeks

20 years agoFix an arguments order in check_uidgid() call.
Maxim Konovalov [Thu, 20 Nov 2003 10:28:33 +0000 (10:28 +0000)]
Fix an arguments order in check_uidgid() call.

PR: kern/59314
Submitted by: Andrey V. Shytov
Approved by: re (rwatson, jhb)

20 years agoThis commit was generated by cvs2svn to compensate for changes in r122912,
Dag-Erling Smørgrav [Thu, 20 Nov 2003 07:55:08 +0000 (07:55 +0000)]
This commit was generated by cvs2svn to compensate for changes in r122912,
which included commits to RCS files with non-trunk default branches.

20 years agoMFP4: fix confusion about the layout of resp (#42758)
Dag-Erling Smørgrav [Thu, 20 Nov 2003 07:55:08 +0000 (07:55 +0000)]
MFP4: fix confusion about the layout of resp (#42758)

Approved by: re (rwatson)

20 years agoRemove unneeded file. (could be repo removed as nothing ever referenced it.)
Alfred Perlstein [Thu, 20 Nov 2003 04:42:50 +0000 (04:42 +0000)]
Remove unneeded file.  (could be repo removed as nothing ever referenced it.)

Submitted by: Jim Rees <rees@umich.edu>

20 years agoA variety of content cleanups:
Robert Watson [Thu, 20 Nov 2003 03:47:50 +0000 (03:47 +0000)]
A variety of content cleanups:

(1) Document the notion of using jail(8) to run "virtual servers" or
    just to constrain specific applications.  If only running specific
    applications, some configuration steps are unnecessary (such as
    editing rc.conf).

(2) Add some more subsection headers to break up the bigger chunks of
    text.

(3) Clarify the problems associated with applications binding all IP
    addresses in the host, and attempt to be more specific about
    potential application problems.  Document how to force sshd to
    bind the the right socket.

(4) Suggest that in a jailed application scenario, you might want to
    have the host syslogd listen on the socket in the jail, rather
    than running syslogd in the jail.

(5) Catch another reference to /stand/sysinstall.

Approved by: re (bmah implicitly)

20 years agoNo need to copy sysinstall into a jail with -CURRENT, since in
Robert Watson [Thu, 20 Nov 2003 02:46:44 +0000 (02:46 +0000)]
No need to copy sysinstall into a jail with -CURRENT, since in
-CURRENT, we have /usr/sbin/sysinstall.

Approved by: re (bmah implicitly)

20 years agoeliminate an unnecessary 8Kbyte bzero that was being done for each
Sam Leffler [Wed, 19 Nov 2003 22:42:34 +0000 (22:42 +0000)]
eliminate an unnecessary 8Kbyte bzero that was being done for each
submitted operation

Submitted by: Thor Lancelot Simon
Reviewed by: jhb
Approved by: re (jhb)

20 years agoClean up one more sentence that was wrapped unnecessarily.
Nate Lawson [Wed, 19 Nov 2003 20:37:15 +0000 (20:37 +0000)]
Clean up one more sentence that was wrapped unnecessarily.

Approved by: re (implicitly)

20 years agoUpdate the man page for hw.acpi.reset_video and a few mdoc(7) cleanups.
Nate Lawson [Wed, 19 Nov 2003 20:30:18 +0000 (20:30 +0000)]
Update the man page for hw.acpi.reset_video and a few mdoc(7) cleanups.

Submitted by: Andreas Kohn <andreas.kohn@gmx.net>
Approved by: re (implicitly)

20 years agoImprove the section on Cx states, documenting the removal of -1 as a
Nate Lawson [Wed, 19 Nov 2003 20:28:56 +0000 (20:28 +0000)]
Improve the section on Cx states, documenting the removal of -1 as a
valid value for cx_lowest.  To disable sleeping, use machdep.cpu_idle_hlt
instead.  Update the version of the ACPI spec we implement.

Approved by: re (implicitly)

20 years ago* Add a DEVMETHOD for acpi so that child detach methods get called. Add
Nate Lawson [Wed, 19 Nov 2003 20:27:06 +0000 (20:27 +0000)]
* Add a DEVMETHOD for acpi so that child detach methods get called.  Add
  an acpi_cpu method for shutdown that disables entry to acpi_cpu_idle
  and then IPIs/waits for threads to exit.  This fixes a panic late in
  reboot in the SMP case.

* In the !SMP case, don't use the processor id filled out by the MADT
  since there can only be one processor.  This was causing a panic in
  acpi_cpu_idle if the id was 1 since the data was being dereferenced from
  cpu_softc[1] even though the actual data was in cpu_softc[0] (which is
  correct).

* Rework the initialization functions so that cpu_idle_hook is written
  late in the boot process.

* Make the P_BLK, P_BLK_LEN, and cpu_cx_count all softc-local variables.
  This will help SMP boxes that have _CST or multiple P_BLKs.  No such
  boxes are known at this time.

* Always allocate the C1 state, even if the P_BLK is invalid.  This means
  we will always take over idling if enabled.  Remove the value -1 as
  valid for cx_lowest since this is redundant with machdep.cpu_idle_hlt.

* Reduce locking for the throttle initialization case to around the write
  to the smi_cmd port.  Add disabled code to write the CST_CNT.  It will
  be enabled once _CST re-evaluation is tested (post 5.2R).

Thank you: dfr, imp, jhb, marcel, peter
Tested by: rwatson, Harald Schmalzbauer <h@schmalzbauer.de>
Approved by: re (rwatson)

20 years agoMake init statically linked by default. It's not worth the pain of having
Gordon Tetlow [Wed, 19 Nov 2003 19:57:20 +0000 (19:57 +0000)]
Make init statically linked by default. It's not worth the pain of having
a dynamically linked init as recently seen by ia64 woes.

Approved by: re (jhb)

20 years ago - Avoid a lock-order reversal between Giant and a system map mutex that
Alan Cox [Wed, 19 Nov 2003 18:48:45 +0000 (18:48 +0000)]
 - Avoid a lock-order reversal between Giant and a system map mutex that
   occurs when kmem_malloc() fails to allocate a sufficient number of vm
   pages.  Specifically, we avoid the lock-order reversal by not grabbing
   Giant around pmap_remove() if the map is the kmem_map.

Approved by: re (jhb)
Reported by: Eugene <eugene3@web.de>

20 years agoSync with i386.
Peter Wemm [Wed, 19 Nov 2003 18:11:27 +0000 (18:11 +0000)]
Sync with i386.
- turn on SMP in generic
- add 'device atpic' - this is unconditional on i386, but certain nvidia
  based systems need to disable acpi because the reference bios seems to be
  hosed.  If acpi is disabled, we won't find the apic.  amd64 has the
  mptable code in a seperate compile option as well.
- turn sym back on, it doesn't fail to compile anymore.

Approved by: re

20 years agoForce a staticly linked /bin and /sbin for ia64. The necessary changes
Marcel Moolenaar [Wed, 19 Nov 2003 16:59:00 +0000 (16:59 +0000)]
Force a staticly linked /bin and /sbin for ia64. The necessary changes
to gcc have not been made for ia64, which means that executables still
have /usr/libexec/ld-elf.so.1 as the dynamic linker. This simply does
not work if /usr is a seperate filesystem not mounted when the kernel
tries to execute init(8).

Note that this is a temporary fix until a new gcc has been imported
that does have the required changes.

Approved: re@

20 years agoFix problem where initgroups would silently truncate groups with
Diomidis Spinellis [Wed, 19 Nov 2003 15:51:26 +0000 (15:51 +0000)]
Fix problem where initgroups would silently truncate groups with
more than NGROUP elements without providing the opportunity to
setgroups to fail and correctly return error and set errno.

MFC after: 2 weeks

20 years agoAdd a special check for a stray IRQ 7 or IRQ 15 to see if it is actually
John Baldwin [Wed, 19 Nov 2003 15:40:23 +0000 (15:40 +0000)]
Add a special check for a stray IRQ 7 or IRQ 15 to see if it is actually
a spurious interrupt from one of the 8259As.  If so, don't log it as a
stray IRQ, but just silently ignore it.

Approved by: re (rwatson)

20 years ago- Add counts to the ATPIC interrupt sources and point the ATPIC interrupt
John Baldwin [Wed, 19 Nov 2003 15:38:56 +0000 (15:38 +0000)]
- Add counts to the ATPIC interrupt sources and point the ATPIC interrupt
  source count pointers at them so that intr_execute_handlers() won't
  choke when it tries to handle an unregisterd ATPIC interrupt source.
- Install the low-level ATPIC interrupt handlers when we first program the
  ATPIC in atpic_startup() rather than at SI_SUB_INTR.  This is only
  necessary to work around buggy code that enables interrupts too early
  in the boot process (namely, the vm86 code).

Approved by: re (rwatson)

20 years agoOff by one error in malloc.
Poul-Henning Kamp [Wed, 19 Nov 2003 15:28:21 +0000 (15:28 +0000)]
Off by one error in malloc.

Approved by: re@

20 years agoDocumented missing EINVAL errno value
Diomidis Spinellis [Wed, 19 Nov 2003 13:05:50 +0000 (13:05 +0000)]
Documented missing EINVAL errno value
kern_prot.c:
if (ngrp > NGROUPS)
return (EINVAL);

MFC after: 2 weeks

20 years agoo Remove @- from the ln and change it to a -sf. This was bogus, and
Warner Losh [Wed, 19 Nov 2003 05:08:27 +0000 (05:08 +0000)]
o Remove @- from the ln and change it to a -sf.  This was bogus, and
  regocnized as such at the time.  Now that the other bogons in the
  tree have been fixed, we can remove this ugly kludge.
o Remove stale/bogus opt_foo.h files.  These are left over from
  by-gone resources.  And they point to the need, yet again, to
  improve the build system so meta information is only in one place.

Submitted by: ru
Reviewed by: bde
Approved by: re@ (jhb)

20 years agoFix vnode locking in fdesc_setattr. Lock vnode before invoking
Alexander Kabaev [Wed, 19 Nov 2003 04:14:42 +0000 (04:14 +0000)]
Fix vnode locking in fdesc_setattr. Lock vnode before invoking
VOP_SETATTR on it.

Approved by: re@ (rwatson)

20 years agoDo not call VOP_GETATTR in getdents function. It does not serve any
Alexander Kabaev [Wed, 19 Nov 2003 04:12:32 +0000 (04:12 +0000)]
Do not call VOP_GETATTR in getdents function. It does not serve any
purpose and the resulting vattr structure was ignored. In addition,
the VOP_GETATTR call was made with no vnode lock held, resulting in
vnode locking violation panic with debug kernels.

Reported by: truckman

Approved by: re@ (rwatson)

20 years agoLower the maximum ACK timeout for GRE packets from 10 to 1 second.
Archie Cobbs [Tue, 18 Nov 2003 20:43:23 +0000 (20:43 +0000)]
Lower the maximum ACK timeout for GRE packets from 10 to 1 second.
In practice it seems that in situations of high packet loss the ACK
timeout seems to hit this maximum (perhaps inappropriately, but the
estimation algorithm is not perfect, so apparently it happens). In
any case, 10 seconds is way too high a value so lower to 1 second.

MFC after: 3 days

20 years agoUse the class->init() to hitch up preload devices, rather than rely on
Poul-Henning Kamp [Tue, 18 Nov 2003 18:19:26 +0000 (18:19 +0000)]
Use the class->init() to hitch up preload devices, rather than rely on
the "old" SYSINIT.  This makes sure things happen in the right order.

XXX: md(4) needs to be fully geom-ified and in particluar /dev/md.ctl
should be abandonded for the GEOM OaM api.

Approved by: re@

20 years agoCall class->init() an class->fini() while the class is hooked up,
Poul-Henning Kamp [Tue, 18 Nov 2003 18:17:39 +0000 (18:17 +0000)]
Call class->init() an class->fini() while the class is hooked up,
rather than right before and right after.  This allows these routines
to manipulate the mesh.

KASSERT that nobody creates a geom on an alien class.

Assert topology in g_valid_obj().

Approved by: re@

20 years agoAdd support for the SiS964 ATA/SATA southbridge.
Søren Schmidt [Tue, 18 Nov 2003 15:27:28 +0000 (15:27 +0000)]
Add support for the SiS964 ATA/SATA southbridge.
This could not have been done without the support from kuriyama.

Approved by: re@

20 years agoWork around the problem that some CDROM drives might return different
Søren Schmidt [Tue, 18 Nov 2003 15:23:37 +0000 (15:23 +0000)]
Work around the problem that some CDROM drives might return different
TOC's for the same media!! that borks up GEOM.
Although this looks like bad HW the following patch removes the
chance for GEOM panic'ing.

Approved by: re@

20 years agoHackfix to patch around a kernel panic I introduced. Real fix to
Mark Murray [Tue, 18 Nov 2003 14:35:43 +0000 (14:35 +0000)]
Hackfix to patch around a kernel panic I introduced. Real fix to
follow. In the meanwhile, we are not harvesting interrupt entropy.

Approved by: re (jhb)

20 years agoInstall the user trap handlers that libc provides from a constructor, so
Jake Burkholder [Tue, 18 Nov 2003 14:21:41 +0000 (14:21 +0000)]
Install the user trap handlers that libc provides from a constructor, so
that they will be installed before application constructors are invoked.
Its possible to link applications such that this fails, application code
is invoked before they are installed, but, well, Don't Do That.

Approved by: re (jhb)

20 years agoReplace the dangerous strcpy() call with strlcpy(), instead of the safe one
Tim J. Robbins [Tue, 18 Nov 2003 14:21:34 +0000 (14:21 +0000)]
Replace the dangerous strcpy() call with strlcpy(), instead of the safe one
that was incorrectly changed in rev. 1.61.

Approved by: re