]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoKill the ASM versions of the mtx_lock_spin and friends. They were never
Peter Wemm [Sat, 6 Dec 2003 23:17:18 +0000 (23:17 +0000)]
Kill the ASM versions of the mtx_lock_spin and friends.  They were never
used on amd64, and were actually totally broken.  They had the wrong
calling conventions.  I believe the i386 versions are going away too.

Approved by:  re (scottl)

20 years agoMFi386: put the apic disable hook in a better place.
Peter Wemm [Sat, 6 Dec 2003 23:14:44 +0000 (23:14 +0000)]
MFi386: put the apic disable hook in a better place.

Approved by:  re (scottl)

20 years agoNew release notes: Logical CPUs for HTT now enabled using BIOS
Bruce A. Mah [Sat, 6 Dec 2003 23:14:35 +0000 (23:14 +0000)]
New release notes:  Logical CPUs for HTT now enabled using BIOS
settings, options IPFILTER requires options PFIL_HOOKS, last bits of
a.out compiler toolchain are gone, acpiconf(8) -i, asf(8), .snap
directory for snapshots, kdump(1) -p, last(1) -n, libwrap/tcpdchk(8)
support extended tcp_wrappers syntax, repquota(8) -n, savecore(8) -C,
uname(1) -i, hardware notes device trimmage, Turkish translation for
docs.

Modified release notes:  Spell "Cronyx-Sigma" correctly in cx(4)
item, spell "FireWire" consistently, fix grammer in puc(4) item, move
uart(4) note from NIC to generic kernel section, spell "NetGraph"
consistently, fix typo in xe(4) note, dynamic linking note more
precise,

Deleted release notes:  -pthread removed (this was reverted).

Other:  Correct a reference to recent security advisories.

Approved by: re (implicitly)

20 years agoRevert some amd64 changes that cached curthread and converge back to the
Peter Wemm [Sat, 6 Dec 2003 23:13:22 +0000 (23:13 +0000)]
Revert some amd64 changes that cached curthread and converge back to the
i386 version.  The curthread special case in pcpu.h solves my complaint
about the verbose macro expansion in this case.  Note that the i386
version still has some OBE comments, I didn't re-add them back again.

Approved by:  re (scottl)

20 years agoAdd Japan's real entry into the Second World War.
Greg Lehey [Sat, 6 Dec 2003 22:49:30 +0000 (22:49 +0000)]
Add Japan's real entry into the Second World War.

http://www.abcmalaysia.com/tour_malaysia/kltn_japivsn.htm

20 years agoRename mac_create_cred() MAC Framework entry point to mac_copy_cred(),
Robert Watson [Sat, 6 Dec 2003 21:48:03 +0000 (21:48 +0000)]
Rename mac_create_cred() MAC Framework entry point to mac_copy_cred(),
and the mpo_create_cred() MAC policy entry point to
mpo_copy_cred_label().  This is more consistent with similar entry
points for creation and label copying, as mac_create_cred() was
called from crdup() as opposed to during process creation.  For
a number of policies, this removes the requirement for special
handling when copying credential labels, and improves consistency.

Approved by: re (scottl)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoTrim some unnecessary text from bt(4) and mly(4) listings, fix typo in
Bruce A. Mah [Sat, 6 Dec 2003 20:43:48 +0000 (20:43 +0000)]
Trim some unnecessary text from bt(4) and mly(4) listings, fix typo in
sk(4) listing, trim em(4) devices, trim dgb(4) devices, trim
stl(4)/stli(4) devices, trim uaudio(4) devices.

Approved by: re (implicitly)

20 years agoHTT logical processors are now enabled (not disabled) by default, so
Bruce A. Mah [Sat, 6 Dec 2003 20:39:58 +0000 (20:39 +0000)]
HTT logical processors are now enabled (not disabled) by default, so
reflect this in the hardware notes.

Approved by: re (implicitly)

20 years agoDo not panic when flushing dummynet firewall rules
Maksim Yevmenkin [Sat, 6 Dec 2003 09:01:25 +0000 (09:01 +0000)]
Do not panic when flushing dummynet firewall rules

Reviewed by: andre
Approved by: re (scottl)

20 years agoFix a deadlock between vm_fault() and vm_mmap(): The expected lock ordering
Alan Cox [Sat, 6 Dec 2003 05:45:32 +0000 (05:45 +0000)]
Fix a deadlock between vm_fault() and vm_mmap(): The expected lock ordering
between vm_map and vnode locks is that vm_map locks are acquired first.  In
revision 1.150 mmap(2) was changed to pass a locked vnode into vm_mmap().
This creates a lock-order reversal when vm_mmap() calls one of the vm_map
routines that acquires a vm_map lock.  The solution implemented herein is
to release the vnode lock in mmap() before calling vm_mmap() and reacquire
this lock if necessary in vm_mmap().

Approved by: re (scottl)
Reviewed by: jeff, kan, rwatson

20 years agoSlim down the package list some more. The KDE and Gnome metaports might
Scott Long [Sat, 6 Dec 2003 04:15:13 +0000 (04:15 +0000)]
Slim down the package list some more.  The KDE and Gnome metaports might
need to be tweaked a bit, but this gives the disc1 ISO a fighting chance.

20 years agoAdd support for ELECOM/Laneed CardBus FastEtherner Card(LD-CBL/TXA)
MIHIRA Sanpei Yoshiro [Sat, 6 Dec 2003 02:29:31 +0000 (02:29 +0000)]
Add support for ELECOM/Laneed CardBus FastEtherner Card(LD-CBL/TXA)

Submitted by: Masahiro Yamagishi <night@pluto.dti.ne.jp>
Approved by: re (scottl)

20 years agoNew release note: ip_fastforward.
Bruce A. Mah [Fri, 5 Dec 2003 21:34:31 +0000 (21:34 +0000)]
New release note:  ip_fastforward.

Approved by: re (implicitly)

20 years agoMove cx(4) entry from "Serial Devices" to "Miscellaneous Networks".
Bruce A. Mah [Fri, 5 Dec 2003 21:04:51 +0000 (21:04 +0000)]
Move cx(4) entry from "Serial Devices" to "Miscellaneous Networks".

Approved by: re (implicitly)
Reviewed by: imp

20 years agoRemove SMP option support from building the ACPI module as it is no longer
John Baldwin [Fri, 5 Dec 2003 15:49:01 +0000 (15:49 +0000)]
Remove SMP option support from building the ACPI module as it is no longer
needed.

Approved by: re (murray)
Requested by: njl

20 years agoDon't include the file system ID in the output of `mount -v' if it
Ian Dowse [Fri, 5 Dec 2003 09:36:56 +0000 (09:36 +0000)]
Don't include the file system ID in the output of `mount -v' if it
is all zeros. The kernel now consistently zeroes FSIDs for non-root
users, so there's no point in printing these.

Also fix a number of compiler warnings, including two real bugs:
- a bracket placement bug caused `mount -t ufs localhost:/foo /mnt'
  to override the `-t ufs' specification and use mount_nfs.
- an unitialised variable was used instead of _PATH_SYSPATH when
  warning that the mount_* program cound not be found.

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

20 years ago(Forced commit) The log message for revision 1.42 was confused
Ian Dowse [Fri, 5 Dec 2003 09:29:42 +0000 (09:29 +0000)]
(Forced commit) The log message for revision 1.42 was confused
with another change. The correct message is:

Improve on umount.c revision 1.41 (silence non-root warnings
about failing to use MNT_BYFSID) by silencing the second
warning too. Also fix a misspelling in a comment.

20 years agoDon't include the file system ID in the output of `mount -v' if it
Ian Dowse [Fri, 5 Dec 2003 09:22:40 +0000 (09:22 +0000)]
Don't include the file system ID in the output of `mount -v' if it
is all zeros. The kernel now consistently zeroes FSIDs for non-root
users, so there's no point in printing these. Also fix a misspelling
in a comment.

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

20 years agoUpdated man page from cronyx.
Warner Losh [Fri, 5 Dec 2003 07:03:58 +0000 (07:03 +0000)]
Updated man page from cronyx.

Forgotten by: imp
Reminded by: Roman Kurakin
Approved by: re@ <scottl>

20 years agoFile forgotten in the cx shuffle.
Warner Losh [Fri, 5 Dec 2003 06:52:05 +0000 (06:52 +0000)]
File forgotten in the cx shuffle.

Pointed out by: Roman Kurakin
Approved by: re@ <scottl> (under go ahead and commit new cx approval)

20 years agoFix the case where one goes from zero to more than zero items enabled
Warner Losh [Fri, 5 Dec 2003 04:28:03 +0000 (04:28 +0000)]
Fix the case where one goes from zero to more than zero items enabled
in /etc/ttys.  Before this fix, once the count of active services
reaches 0, one could never restart any more without a reboot.

Steve Passe did the leg work on this patch.  After he found the fix,
we discovered that an identical fix had been made to NetBSD.

Approved by: re@ <scottl>
Approval tool: peril sensitive sunglasses

20 years agoFix some locking violations by creating seperate mutex classes
Mathew Kanner [Fri, 5 Dec 2003 02:08:13 +0000 (02:08 +0000)]
Fix some locking violations by creating seperate mutex classes
for play and record channels.

Approved by: seigo (mentor)
Approved by: scottl (re)

20 years agoApply a second fix for stack alignment with libkse. This time, enter the
Peter Wemm [Fri, 5 Dec 2003 01:41:43 +0000 (01:41 +0000)]
Apply a second fix for stack alignment with libkse.  This time, enter the
UTS with the stack correctly aligned.  Also, while here, use an indirect
jump rather than the pushq/ret hack.

This fixes threaded apps that use floating point for me, although
it hasn't solved all the problems.  It is an improvement though.
Preservation of the 128 byte red zone hasn't been resolved yet.

Approved by:  re (scottl)

20 years ago"Fix" makecontext() so that the C code begins execution with its
Peter Wemm [Fri, 5 Dec 2003 01:36:44 +0000 (01:36 +0000)]
"Fix" makecontext() so that the C code begins execution with its
ABI-required stack alignment.  C code expects that the push of the
return address disturbed the 16 byte alignment and it will take corrective
measures to fix it before making another call.  Of course, if its wrong
to start with, then all hell breaks loose.  Essentially we "fix" this
by making the stack alignment odd to start with.

This was one of the things that broke on libkse with apps that use
floating point/varargs/etc.

Approved by:  re (scottl)

20 years agoFix a potential problem with atapi-cam where an incorrect flag is passed
Scott Long [Fri, 5 Dec 2003 01:02:46 +0000 (01:02 +0000)]
Fix a potential problem with atapi-cam where an incorrect flag is passed
into the ata queueing layer.

Approved by: re

20 years agoSince the fdc driver can't autodetect the drive capacity on the Alpha,
Dag-Erling Smørgrav [Fri, 5 Dec 2003 00:57:11 +0000 (00:57 +0000)]
Since the fdc driver can't autodetect the drive capacity on the Alpha,
give it a hint that fd0 is a 1440 kB drive.

PR: alpha/59026
Approved by: re (murray)

20 years agoNew (well, belatedly added) errta: SA-03:19.
Bruce A. Mah [Thu, 4 Dec 2003 23:53:54 +0000 (23:53 +0000)]
New (well, belatedly added) errta:  SA-03:19.

Approved by: re (implicitly)

20 years agoFix yet an oversight in my ELAN_* to CPU_ELAN_* debrucification commit.
Poul-Henning Kamp [Thu, 4 Dec 2003 19:57:56 +0000 (19:57 +0000)]
Fix yet an oversight in my ELAN_* to CPU_ELAN_* debrucification commit.

Approved by: re@

20 years agoFor some reason, we never mentioned the cx(4) driver here, even though
Bruce A. Mah [Thu, 4 Dec 2003 19:22:06 +0000 (19:22 +0000)]
For some reason, we never mentioned the cx(4) driver here, even though
it even has a manual page.  Correct this oversight.

Approved by: re (implicitly)

20 years agoNew release notes: cx(4) update and sconfig(8), utopia(4) [1], wi(4)
Bruce A. Mah [Thu, 4 Dec 2003 19:20:28 +0000 (19:20 +0000)]
New release notes:  cx(4) update and sconfig(8), utopia(4) [1], wi(4)
works on Lucent cards, NFSv4 client support, GNOME/KDE "Lite Edition"
on disc 1.

Approved by: re (implicitly)
Submitted by: harti [1]

20 years agoMerge in uncommitted changes from the running configuration.
Dag-Erling Smørgrav [Thu, 4 Dec 2003 10:22:56 +0000 (10:22 +0000)]
Merge in uncommitted changes from the running configuration.

20 years agoRELENG_5_2 is right around the corner.
Dag-Erling Smørgrav [Thu, 4 Dec 2003 10:21:06 +0000 (10:21 +0000)]
RELENG_5_2 is right around the corner.

20 years agoRemove cx in its old location.
Warner Losh [Wed, 3 Dec 2003 23:07:37 +0000 (23:07 +0000)]
Remove cx in its old location.

Approved by: re@ <scottl>

20 years agoConnect the cx driver to its new location in the tree.
Warner Losh [Wed, 3 Dec 2003 23:06:30 +0000 (23:06 +0000)]
Connect the cx driver to its new location in the tree.
Update notes to reflect that cx is no longer a counted device
Update options for new cx option
# commented out ELAN_PPS and ELAN_XTAL since they produced errors

Submitted by: rik@cronyx.ru
Approved by: re@ <scottl>

20 years agoThere is no such thing as a pc98 machine with ISA expansion slots, nor
Warner Losh [Wed, 3 Dec 2003 21:44:44 +0000 (21:44 +0000)]
There is no such thing as a pc98 machine with ISA expansion slots, nor
is there a C-BUS Cronyx Sigma board.  Remove it from pc98 files and lint.

Approved by: re <scottl>

20 years ago- Reenable building of the ACPI module on i386.
John Baldwin [Wed, 3 Dec 2003 21:13:06 +0000 (21:13 +0000)]
- Reenable building of the ACPI module on i386.
- Remove 'device acpi' from i386 GENERIC and revert back to using ACPI as
  a module by default.

Approved by: re (scottl / blanket)

20 years ago- Remove the hack to prevent the acpi module from loading.
John Baldwin [Wed, 3 Dec 2003 21:12:09 +0000 (21:12 +0000)]
- Remove the hack to prevent the acpi module from loading.
- Add a really, really, nasty hack to provide stub versions of all of
  the 'device apic' functions used by the ACPI MADT APIC enumerator if
  'device apic' is not compiled into the kernel.  This is gross but is
  the best we can do with the current kernel linker implementation.

Approved by: re (scottl / blanket)

20 years agoAdd madt.c to the list of sources for i386.
John Baldwin [Wed, 3 Dec 2003 21:10:02 +0000 (21:10 +0000)]
Add madt.c to the list of sources for i386.

Approved by: re (scottl / blanket)

20 years ago- Reorder the APIC enumerator SYSINIT's to register enumeators at
John Baldwin [Wed, 3 Dec 2003 20:33:18 +0000 (20:33 +0000)]
- Reorder the APIC enumerator SYSINIT's to register enumeators at
  SI_SUB_CPU - 1 and probe enumerators, probe CPUs, and setup the local
  APIC programming all at SI_SUB_CPU / SI_ORDER_FIRST.  This is needed to
  help get the ACPI module working again as it moves the APIC enumeration
  code after SI_SUB_KLD.
- In the MADT parser, use mp_maxid rather than MAXCPU to terminate a loop
  when assigning per-cpu ACPI IDs to avoid a dependency on 'options SMP'.
- Allow the apic device to be disabled via 'hint.apic.0.disabled' from the
  loader.  Note that since this is done in the local APIC code, it works
  for both the ACPI and non-ACPI cases.

Approved by: re (scott / blanket)

20 years agoUpdate this driver to be more module friendly:
John Baldwin [Wed, 3 Dec 2003 20:27:48 +0000 (20:27 +0000)]
Update this driver to be more module friendly:
- Dynamically allocate the cpu_softc[] array based on mp_maxid instead of
  using a statically sized array that depended on 'options SMP'.
- Use mp_maxid rather than MAXCPU when walking all the CPUs looking for a
  match.
- Always call smp_rendezvous() since UP kernels now provide this.
- Use mp_ncpus rather than cpu_ndevices when determining if we need to
  disable C3 for SMP machines.

Approved by: re (rwatson)
Reviewed by: njl

20 years agoRemove cxconfig and add sconfig
Warner Losh [Wed, 3 Dec 2003 17:12:35 +0000 (17:12 +0000)]
Remove cxconfig and add sconfig

# maybe we can remove sconfig later from rescue?

Submitted by: Roman Kurakin <rik@cronyx.com>
Approved by: re@ <scottl>

20 years agoRemove old cxconfig utility and connect new sconfig utility to the build.
Warner Losh [Wed, 3 Dec 2003 17:09:41 +0000 (17:09 +0000)]
Remove old cxconfig utility and connect new sconfig utility to the build.
The sconfig utility supports more than just cx boards, and those drivers
will make their way into FreeBSD shortly (maybe before 5.2).

Confirmed that this doesn't break the build.

Submitted by: Roman Kurakin <rik@cronyx.ru>
Approved by: re@ <scottl>

20 years ago+ Patch is not my friend, but an evil toad
Warner Losh [Wed, 3 Dec 2003 17:03:20 +0000 (17:03 +0000)]
+ Patch is not my friend, but an evil toad
+ Patch is not my friend, but an evil toad

Remove redunant copy of each of these files that patch appended to them.
# Still not connected to the build.

Approved by: re@ <scottl>

20 years agoTemporary workaround for aac_cam to deal with CAM requiring Giant. This
Scott Long [Wed, 3 Dec 2003 15:42:12 +0000 (15:42 +0000)]
Temporary workaround for aac_cam to deal with CAM requiring Giant.  This
should fix the panics on boot with newer Adaptec RAID cards.

Approved by: re (rwatson)

20 years agoFix for the missing slave problem.
Søren Schmidt [Wed, 3 Dec 2003 15:32:53 +0000 (15:32 +0000)]
Fix for the missing slave problem.

Approved by: re@

20 years agoFix all users of mp_maxid to use the same semantics, namely:
John Baldwin [Wed, 3 Dec 2003 14:57:26 +0000 (14:57 +0000)]
Fix all users of mp_maxid to use the same semantics, namely:

1) mp_maxid is a valid FreeBSD CPU ID in the range 0 .. MAXCPU - 1.
2) For all active CPUs in the system, PCPU_GET(cpuid) <= mp_maxid.

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

20 years agoExport a few SMP related symbols in UP kernels as well. This is needed to
John Baldwin [Wed, 3 Dec 2003 14:55:31 +0000 (14:55 +0000)]
Export a few SMP related symbols in UP kernels as well.  This is needed to
aid other kernel code, especially code which can be in a module such as
the acpi_cpu(4) driver, to work properly with both SMP and UP kernels.
The exported symbols include mp_ncpus, all_cpus, mp_maxid, smp_started, and
the smp_rendezvous() function.  This also means that CPU_ABSENT() is now
always implemented the same on all kernels.

Approved by: re (scottl)

20 years agoFix modesetting on ISA only systems.
Søren Schmidt [Wed, 3 Dec 2003 13:40:26 +0000 (13:40 +0000)]
Fix modesetting on ISA only systems.

Approved by: re@

20 years agoNew cx driver part 2: Commit the new userland pieces.
Warner Losh [Wed, 3 Dec 2003 07:59:49 +0000 (07:59 +0000)]
New cx driver part 2: Commit the new userland pieces.

This is the new cronyx serial control program.

# A future commit will remove the old driver/userland pieces and connect things
# to the build.

Submitted by: Roamn Kurakin <rik@cronyx.ru>

20 years agoFix our kernel support for Basic Block Profiling to work with GCC33.
Poul-Henning Kamp [Wed, 3 Dec 2003 07:43:03 +0000 (07:43 +0000)]
Fix our kernel support for Basic Block Profiling to work with GCC33.

Approved by: re@

20 years agoAlign the .ctors section correctly.
Poul-Henning Kamp [Wed, 3 Dec 2003 07:40:03 +0000 (07:40 +0000)]
Align the .ctors section correctly.

This fixes the 75% probable panic when using basic block profiling.

Approved by: re@

20 years agoUpdated cx driver commit part 1: bring in the new kernel driver.
Warner Losh [Wed, 3 Dec 2003 07:29:38 +0000 (07:29 +0000)]
Updated cx driver commit part 1: bring in the new kernel driver.

This is the vastly updated cx drvier from Roman Kurakin <rik@cronyx.ru>
who has been patiently waiting for this update for sometime.

The driver is mostly a rewrite from the version we have in the tree.
While some similarities remain, losing the little history that the old
driver has is not a big loss, and the re@ felt it was easier this way (less
error prone).

The userland parts of this update will be committed shortly.

The driver is not connected to the build yet.  I want to make sure I
don't break any platform at any time, so I want to test that with
these files in the tree before I continue (on the off chance I'm
forgetting a file).

I changed the DEBUG macro to CX_DEBUG from the code that was submitted
(to not break when we go to building with opt_global.h after the
release), as well adding $FreeBSD$.

Submitted by: Roman Kurakin
Approved by: re@ <scottl>

20 years agoCatch up with the procsig locking changes elsewhere. We were doing
Peter Wemm [Wed, 3 Dec 2003 07:00:30 +0000 (07:00 +0000)]
Catch up with the procsig locking changes elsewhere.  We were doing
things like copyin/out with psp->ps_mtx held.  That was not good.

Approved by:  re (scottl)

20 years agoAdd an additional knob to just disable the apic code without also having
Peter Wemm [Wed, 3 Dec 2003 06:58:48 +0000 (06:58 +0000)]
Add an additional knob to just disable the apic code without also having
to resort to disabling acpi as well.  I'll document this in the release
notes for amd64.

Approved by: re (scottl)

20 years agoFor the amd64 we need to do some extra stack alignment fixups. Otherwise
Peter Wemm [Wed, 3 Dec 2003 06:54:40 +0000 (06:54 +0000)]
For the amd64 we need to do some extra stack alignment fixups.  Otherwise
we can end up with some threads with a non-16-byte-aligned stack.  This
causes some interesting side effects, including general protection
faults leading to a SIGBUS when doing floating point or varargs.  This
should be just a verbose NOP for the other platforms.

Approved by:  re (scottl)

20 years agoUse if_flags to check for IFF_POLLING instead of if_ipending.
Prafulla Deuskar [Tue, 2 Dec 2003 22:13:08 +0000 (22:13 +0000)]
Use if_flags to check for IFF_POLLING instead of if_ipending.

Submitted by: jroberson (Jeff Roberson)
Approved by: re (scottl)

20 years agoReconnect ipfstat, ipnat, and ipftest to the build now that if_xname
Brooks Davis [Tue, 2 Dec 2003 21:52:14 +0000 (21:52 +0000)]
Reconnect ipfstat, ipnat, and ipftest to the build now that if_xname
support is enabled.

Approved by: re (scottl)

20 years agoSwap destination and source arguments of two bcopy() calls.
Andre Oppermann [Tue, 2 Dec 2003 21:25:12 +0000 (21:25 +0000)]
Swap destination and source arguments of two bcopy() calls.

Before committing the initial tcp_hostcache I changed them from memcpy()
to conform with FreeBSD style without realizing the difference in argument
definition.

This fixes hostcache operation for IPv6 (in general and explicitly IPv6
path mtu discovery) and T/TCP (RFC1644).

Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
Approved by: re (rwatson)

20 years agoReplace the KDE and GNOME 2 desktops with KDE (Lite Edition) and GNOME 2
Joe Marcus Clarke [Tue, 2 Dec 2003 20:49:46 +0000 (20:49 +0000)]
Replace the KDE and GNOME 2 desktops with KDE (Lite Edition) and GNOME 2
(Lite Edition) respectively.  These "lite" packages are streamlined to
provide users with the core essentials for each desktop and to fit on the
release disc 1.

Approved by: re (scottl)

20 years agoDepend on kde-lite and gnome2-lite instead of kde3 and gnome2. This greatly
Joe Marcus Clarke [Tue, 2 Dec 2003 20:47:31 +0000 (20:47 +0000)]
Depend on kde-lite and gnome2-lite instead of kde3 and gnome2.  This greatly
reduces the amount of space occupied by packages on release disc 1.

Approved by: re (scottl)

20 years agoThis commit was generated by cvs2svn to compensate for changes in r123109,
Brooks Davis [Tue, 2 Dec 2003 18:33:36 +0000 (18:33 +0000)]
This commit was generated by cvs2svn to compensate for changes in r123109,
which included commits to RCS files with non-trunk default branches.

20 years agoThis is a direct commit to the vendor branch with code from the vendor.
Brooks Davis [Tue, 2 Dec 2003 18:33:36 +0000 (18:33 +0000)]
This is a direct commit to the vendor branch with code from the vendor.

Replace the if_name and if_unit members of struct ifnet with new members
if_xname, if_dname, and if_dunit. if_xname is the name of the interface
and if_dname/unit are the driver name and instance.

This change paves the way for interface renaming and enhanced pseudo
device creation and configuration symantics.

Submitted by: darrenr
Approved by: re (scottl)

20 years agoUse parens more reasionably so we match the vendor code. This is part
Brooks Davis [Tue, 2 Dec 2003 18:28:00 +0000 (18:28 +0000)]
Use parens more reasionably so we match the vendor code.  This is part
of the if_xname change.

Submitted by: darrenr
Approved by: re (scottl)

20 years agoUse dynamic instead of static LDT allocation.
Mike Makonnen [Tue, 2 Dec 2003 16:00:26 +0000 (16:00 +0000)]
Use dynamic instead of static LDT allocation.

Approved by: re (scottl)

20 years agoFixed panics in apic interrupt handlers if kernel profiling is turned
Bruce Evans [Tue, 2 Dec 2003 15:02:12 +0000 (15:02 +0000)]
Fixed panics in apic interrupt handlers if kernel profiling is turned
on.  MCOUNT and FAKE_MCOUNT() may clobber all the call-used registers,
and one FAKE_MCOUNT() was placed so that an active %eax was clobbered.
The fix is to move this FAKE_MCOUNT() earlier where it should have
been anyway.

Fixed 3 layers of bitrot in the comment about why this FAKE_MCOUNT()
was where it was by removing the comment.  (mcount() should be called
as early as possible after entering a new level, but an implementation
detail got in the way until 3 layers of changes ago.)

Kernel profiling still gives wrong results because the new interrupt
code rearranged object files too much.  mcount() depends on trap,
syscall and interrupt handlers being between certain magic labels with
interrupt handlers last, and on nothing else being there.  Splitting
up exception.o moved the magic labels to effectively random places
relative to what they are supposed to delimit.  This mainly broke the
call graph; the flat profile is still usable.

20 years agoFixed some minor indentation bugs.
Bruce Evans [Tue, 2 Dec 2003 12:47:08 +0000 (12:47 +0000)]
Fixed some minor indentation bugs.

Approved by: re (scottl)

20 years agoFixed breakage of the pci case of the cy driver by the new interrupt
Bruce Evans [Tue, 2 Dec 2003 12:36:00 +0000 (12:36 +0000)]
Fixed breakage of the pci case of the cy driver by the new interrupt
code.  Both the driver and the new code were wrong.  Driver interrupt
handlers are supposed to take "void *vsc" arg, but some including all
COMPAT_ISA drivers and the pci part of the cy driver want an "int unit"
arg.  They got this using bogus casts of function pointers which should
have kept working despite their bogusness.  However, the new interrupt
code doesn't honor requests to pass an arg of ((void *)0), so things
are very broken if the arg is actually a representation of unit 0.

The fix is to use a normal "void *vsc" arg for the pci case and a
wrapper for the COMPAT_ISA case (of the cy driver).  This cleans up
new-busification of the pci case but takes the COMPAT_ISA case a little
further from new-bus.  The corresponding bug for the COMPAT_ISA case
has already been fixed similarly using a wrapper in compat_isa.c and
we need another wrapper just to undo that.

Fixed some directly related style bugs (mainly by removing compatibility
cruft).

cy.c:
Fixed an indirectly related old bug in cyattach_common().  A wrong status
was returned in the unlikely event that malloc() failed.

Approved by: re (scottl)

20 years agoAfter extensive QA cycles at 3ware, bring the driver in-line with all the
Paul Saab [Tue, 2 Dec 2003 07:57:20 +0000 (07:57 +0000)]
After extensive QA cycles at 3ware, bring the driver in-line with all the
issues which they found and asked to be changed so 3ware can offcially
support the driver.

Summary of the most significant changes:

- TWE_OVERRIDE is no longer supported
- If twe_getparam failed, bogus data would be returned to the caller
- Cache the device unit in the twe_drive structure to aid debugging
- Add the 3ware driver version.
- Proper return error codes for many functions.
- Track the minimum queue length statistics
- 4.x compat: use the cached unit number from the twe_drive structure
  instead of the the cached si_drv2.  3ware found that after many loads
  and unloads that si_drv2 became corrupted.  This did not happen in
  -current.

Submitted by: Vinod Kashyap (with modifications by me)
Approved by: re (rwatson)

20 years agoTrim wi(4) devices from the hardware notes. Also add a listing of the
Bruce A. Mah [Tue, 2 Dec 2003 07:13:03 +0000 (07:13 +0000)]
Trim wi(4) devices from the hardware notes.  Also add a listing of the
various chipsets supported by this driver as there are only a few and
this seems to be useful information.

Approved by: re (implicitly)

20 years agoAdd a few wi-supported cards to get this manpage caught up with
Bruce A. Mah [Tue, 2 Dec 2003 07:07:45 +0000 (07:07 +0000)]
Add a few wi-supported cards to get this manpage caught up with
the hardware notes.

Reviewed by: imp
Approved by: re (implicitly)

20 years agoIFP4: Update the Early Adopters Guide to bring it up to the state
Bruce A. Mah [Tue, 2 Dec 2003 05:54:35 +0000 (05:54 +0000)]
IFP4:  Update the Early Adopters Guide to bring it up to the state
of the world roughly as of the upcoming 5.2 release.

Approved by: re (implicitly)

20 years agoFix Lucent cards.
Warner Losh [Tue, 2 Dec 2003 04:59:59 +0000 (04:59 +0000)]
Fix Lucent cards.
o Back out workaround for not resetting lucent cards more than once.  With
  these fixes, it appaers they are no longer necessary.
o Set wi_gone when the card goes awol: typically when we get 0xffff back from
  the card.  Also, don't interact with a card that's gone, so we fail in
  seconds rather than minutes.  Also reduce amount of time we wait to .5s
  in wi_cmd.
o clear wi_gone on ifconfig down to give some cards a chance after they wedge
  (this appears to unwedge one of my prism cards with old firmware).  ifconfig
  up will fail quickly enough if the card really is out to lunch.
o Add delay in wi_init of 100ms.
o wi_stop(ifp, 0->1) changes so that we clear sc_enabled so that we
  exit out of the interrupt routine by just acking the interrupt

Submitted by: iedowse
Approved by: re@ (scottl)

# after the freeze I'll fix some of the minor style issues that reviewers
# of this patch have told me about.

20 years agoMajor 186 for sx driver (for Specialix I/O8+) by frank@exit.com
Warner Losh [Tue, 2 Dec 2003 04:40:33 +0000 (04:40 +0000)]
Major 186 for sx driver (for Specialix I/O8+) by frank@exit.com

20 years agoInclude opt_ipsec.h so IPSEC/FAST_IPSEC is defined and the appropriate
Sam Leffler [Tue, 2 Dec 2003 00:23:45 +0000 (00:23 +0000)]
Include opt_ipsec.h so IPSEC/FAST_IPSEC is defined and the appropriate
code is compiled in to support the O_IPSEC operator.  Previously no
support was included and ipsec rules were always matching.  Note that
we do not return an error when an ipsec rule is added and the kernel
does not have IPsec support compiled in; this is done intentionally
but we may want to revisit this (document this in the man page).

PR: 58899
Submitted by: Bjoern A. Zeeb
Approved by: re (rwatson)

20 years agoFixed a bug in sendfile(2) where the sent data would be corrupted due
David Greenman [Mon, 1 Dec 2003 22:12:50 +0000 (22:12 +0000)]
Fixed a bug in sendfile(2) where the sent data would be corrupted due
to sendfile(2) being erroneously automatically restarted after a signal
is delivered. Fixed by converting ERESTART to EINTR prior to exiting.

Updated manual page to indicate the potential EINTR error, its cause
and consequences.

Approved by: re@freebsd.org

20 years agoRename the ELAN_* options to CPU_ELAN_* according the the brucification.
Poul-Henning Kamp [Mon, 1 Dec 2003 20:39:04 +0000 (20:39 +0000)]
Rename the ELAN_* options to CPU_ELAN_* according the the brucification.

This commit was forgotten a few days ago.

Approved by: re@

20 years agoDo something sensible if both -h and -k are given.
David E. O'Brien [Mon, 1 Dec 2003 19:10:29 +0000 (19:10 +0000)]
Do something sensible if both -h and -k are given.

Approved by: re(scottl)

20 years agoUse a mutex to synchronize the driver top and bottom halves instead of
Don Lewis [Mon, 1 Dec 2003 19:03:50 +0000 (19:03 +0000)]
Use a mutex to synchronize the driver top and bottom halves instead of
using critcal_enter() and critical_exit() to attempt to replace spl*()
calls.  The critical section was calling selrecord(), which locks an
MTX_DEF mutex, which is not legal in a critical section.

Tested by: Stefan Ehmann <shoesoft@gmx.net> and "make universe"
Approved by: re (scottl)

20 years agoSpell SSHd as sshd.
Robert Watson [Mon, 1 Dec 2003 18:58:14 +0000 (18:58 +0000)]
Spell SSHd as sshd.

Requested by: jhb
Approved by: re (jhb)

20 years agoWhen clearing /tmp, X11 lock and temporary files are special.
Mike Makonnen [Mon, 1 Dec 2003 16:35:57 +0000 (16:35 +0000)]
When clearing /tmp, X11 lock and temporary files are special.
Remove them unconditionaly.

PR: bin/59065
Approved by: re (scottl)

20 years agoAutomatically generate the CHECKSUM.MD5 file for ISO's.
David E. O'Brien [Mon, 1 Dec 2003 10:46:45 +0000 (10:46 +0000)]
Automatically generate the CHECKSUM.MD5 file for ISO's.

Approved by: scottl

20 years agoSS_FATAL|ENXIO rather than SS_RDEF for illegal track mode.
David E. O'Brien [Mon, 1 Dec 2003 10:13:00 +0000 (10:13 +0000)]
SS_FATAL|ENXIO rather than SS_RDEF for illegal track mode.
This reduces the 90+ lines boot output of spewage GEOM does for my
Plextor SCSI burner.

Submitted by: scottl
Approved by: scottl

20 years agoI forgot about the code freeze, so back this out.
Don Lewis [Mon, 1 Dec 2003 00:33:57 +0000 (00:33 +0000)]
I forgot about the code freeze, so back this out.

20 years agoSwap avgfilesize and avgfpdir order to give better column alignment.
Don Lewis [Mon, 1 Dec 2003 00:32:34 +0000 (00:32 +0000)]
Swap avgfilesize and avgfpdir order to give better column alignment.

20 years agoNew release notes: SA-03.19, tcp_hostcache, compat4x.i386 updates,
Bruce A. Mah [Mon, 1 Dec 2003 00:17:33 +0000 (00:17 +0000)]
New release notes:  SA-03.19, tcp_hostcache, compat4x.i386 updates,
nologin(8) C implementation, no more sysinstall(8) security profiles

Modified release notes: Dynamic /bin and /sbin only apply to non-ia64,
BIND 8.3.7 (+ MFC), add old version information to sendmail update
note.

Approved by: re (implicitly)

20 years agoTrim ncv(4) and nsp(4) devices from the hardware notes and point to
Bruce A. Mah [Sun, 30 Nov 2003 23:54:59 +0000 (23:54 +0000)]
Trim ncv(4) and nsp(4) devices from the hardware notes and point to
on-line manpages via hyperlinks.

Approved by: re (implicitly)

20 years agoIn dounmount(), only call checkdirs() prior to VFS_UNMOUNT() in the
Ian Dowse [Sun, 30 Nov 2003 23:30:09 +0000 (23:30 +0000)]
In dounmount(), only call checkdirs() prior to VFS_UNMOUNT() in the
forced unmount case. Otherwise, a file system that is referenced
only by process fd_cdir/fd_rdir references to the file system root
vnode will be successfully unmounted without the MNT_FORCE flag.

The previous behaviour was not compatible with the unmount semantics
required by amd(8), so file systems could be unexpectedly unmounted
while there were still references to the file system root directory.

Reported by: Erez Zadok <ezk@cs.sunysb.edu>
Approved by: re (scottl)

20 years ago - Make mp_maxid reflect the same meaning as it does on other architectures.
Jeff Roberson [Sun, 30 Nov 2003 22:20:40 +0000 (22:20 +0000)]
 - Make mp_maxid reflect the same meaning as it does on other architectures.
   It is one past the last valid cpuid.  This relied on a different bug in
   UMA to work properly.

Reported/Tested by: phk
Approved by: rwatson

20 years ago - Unbreak UP. mp_maxid is not defined on uni-processor machines, although
Jeff Roberson [Sun, 30 Nov 2003 22:18:14 +0000 (22:18 +0000)]
 - Unbreak UP.  mp_maxid is not defined on uni-processor machines, although
   I believe it and the other MP variables should be.  For now, just define it
   here and wait for jhb to clean it up later.

Approved by: re (rwatson)

20 years ago - Don't forget to unlock the vnode interlock in the LK_NOWAIT case.
Jeff Roberson [Sun, 30 Nov 2003 22:09:58 +0000 (22:09 +0000)]
 - Don't forget to unlock the vnode interlock in the LK_NOWAIT case.

Submitted by: Stephan Uphoff <ups@stups.com>
Approved by: re (rwatson)

20 years ago - Set mp_maxid in a way that is consistent with every other arch. It is
Jeff Roberson [Sun, 30 Nov 2003 22:08:24 +0000 (22:08 +0000)]
 - Set mp_maxid in a way that is consistent with every other arch.  It is
   one more than the last valid 'cpuid'.

Approved by: re (rwatson)

20 years agoUpdate maintainer line. mbr has been maintainer for at least the last
Murray Stokely [Sun, 30 Nov 2003 21:09:58 +0000 (21:09 +0000)]
Update maintainer line.  mbr has been maintainer for at least the last
6 months.

Approved by: re (murray)

20 years agoVersion number bump for 5.2-BETA release documentation.
Bruce A. Mah [Sun, 30 Nov 2003 19:11:59 +0000 (19:11 +0000)]
Version number bump for 5.2-BETA release documentation.

Approved by: re (implicitly)

20 years agoThe new "spec against spec" comparison code was yet another time
Poul-Henning Kamp [Sun, 30 Nov 2003 18:06:02 +0000 (18:06 +0000)]
The new "spec against spec" comparison code was yet another time
victim of the special sort order employed where files come before
directories and alphabetic inside these two groups.

Approved by: re@

20 years agoFix ata-card.
Søren Schmidt [Sun, 30 Nov 2003 16:27:59 +0000 (16:27 +0000)]
Fix ata-card.
The altio resource magic no longer worked probably due to other changes
in the kernel. Redo that part so it also fits better into ATAng.
Fix detach so it doesn't panic the system when a pccard device is
yanked.

Approved by: re@

20 years agoMdoc(7) janitor cleanup.
Simon L. B. Nielsen [Sun, 30 Nov 2003 12:42:01 +0000 (12:42 +0000)]
Mdoc(7) janitor cleanup.

Reviewed and improved by: ru
OK'ed by: phk
Approved by: re (rwatson)

20 years agoRemoved the i386 specific bit from title.
Ruslan Ermilov [Sun, 30 Nov 2003 08:50:17 +0000 (08:50 +0000)]
Removed the i386 specific bit from title.

Reviewed by: non
Approved by: re (rwatson)

20 years ago - Replace the local maxcpu with mp_maxid. Previously, if mp_maxid
Jeff Roberson [Sun, 30 Nov 2003 08:04:01 +0000 (08:04 +0000)]
 - Replace the local maxcpu with mp_maxid.  Previously, if mp_maxid
   was equal to MAXCPU, we would overrun the pcpu_mtx array because maxcpu
   was calculated incorrectly.
 - Add some more debugging code so that memory leaks at the time of
   uma_zdestroy() are more easily diagnosed.

Approved by: re (rwatson)

20 years agoAlso export the ARCH variable so that cross-generation of cdrom package
Kris Kennaway [Sun, 30 Nov 2003 01:35:19 +0000 (01:35 +0000)]
Also export the ARCH variable so that cross-generation of cdrom package
lists works as expected.

Approved by: re

20 years agovim-lite can hardly be considered 'lite'. Remove it.
Scott Long [Sat, 29 Nov 2003 23:48:44 +0000 (23:48 +0000)]
vim-lite can hardly be considered 'lite'.  Remove it.