]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years ago - Set mp_maxid in a way that is consistent with every other arch. It is
jeff [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 [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.
bmah [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
phk [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.
sos [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 [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.
ru [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 [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 [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.
scottl [Sat, 29 Nov 2003 23:48:44 +0000 (23:48 +0000)]
vim-lite can hardly be considered 'lite'.  Remove it.

20 years agoAdd a Securelevel sub-menu to the Security configuration menu,
rwatson [Sat, 29 Nov 2003 21:44:51 +0000 (21:44 +0000)]
Add a Securelevel sub-menu to the Security configuration menu,
permitting the administrator to select a securelevel top operate
at.  Include a helpfile summarizing some of the information from
init(8).  This allows for explicit configuration of securelevels,
which was previously implicit in Security Profile selection.
Currently, there are no checkboxes for the active securelevel,
because sysinstall's facilities for deriving "current settings"
from rc.conf may use only one variable, not two, and I opted for
the simplest approach at this point.

Approved by: re (scottl)

20 years agocorrect typo in interrupt handling for the 2nd port of 2-port cards
sam [Sat, 29 Nov 2003 19:33:01 +0000 (19:33 +0000)]
correct typo in interrupt handling for the 2nd port of 2-port cards

Submitted by: luigi
Reviewed by: checking original openbsd code
Approved by: re (scottl)

20 years agoScheduled sweep using the README guidelines.
ru [Sat, 29 Nov 2003 18:22:01 +0000 (18:22 +0000)]
Scheduled sweep using the README guidelines.

Approved by: re (rwatson)

20 years ago- Connect a few forgotten Netgraph manpages.
ru [Sat, 29 Nov 2003 18:14:04 +0000 (18:14 +0000)]
- Connect a few forgotten Netgraph manpages.
- Sort.

Approved by: re (rwatson)

20 years agoEliminate two pushl by using call instruction directly, this really
davidxu [Sat, 29 Nov 2003 14:25:43 +0000 (14:25 +0000)]
Eliminate two pushl by using call instruction directly, this really
helps branch predict a lot for INTEL P4.

Approved by: re (scottl)

20 years ago1.Macro optimizing KSE_LOCK_ACQUIRE and THR_LOCK_ACQUIRE to use static fall
davidxu [Sat, 29 Nov 2003 14:22:29 +0000 (14:22 +0000)]
1.Macro optimizing KSE_LOCK_ACQUIRE and THR_LOCK_ACQUIRE to use static fall
through branch predict as suggested in INTEL IA32 optimization guide.

2.Allocate siginfo arrary separately to avoid pthread to be allocated at
2K boundary, which hits L1 address alias problem and causes context
switch to be slow down.

3.Simplify context switch code by removing redundant code, code size is
reduced, so it is expected to run faster.

Reviewed by: deischen
Approved by: re (scottl)

20 years agoRemove surplus mmap() call for stack guard page in init_private, it is done
davidxu [Sat, 29 Nov 2003 14:10:02 +0000 (14:10 +0000)]
Remove surplus mmap() call for stack guard page in init_private, it is done
in init_main_thread. Also don't initialize lock and lockuser again for initial
thread, it is already done by _thr_alloc().

Reviewed by: deischen
Approved by: re (scottl)

20 years ago - In db_stack_trace_cmd() bail out if we get confused about the stack.
jeff [Sat, 29 Nov 2003 11:57:02 +0000 (11:57 +0000)]
 - In db_stack_trace_cmd() bail out if we get confused about the stack.

Tested by: kkenn
Approved by: re (scottl)

20 years agoUpdate with the 4.9 libraries, and add libdevstat.so.2 libmp.so.3
obrien [Sat, 29 Nov 2003 03:29:18 +0000 (03:29 +0000)]
Update with the 4.9 libraries, and add libdevstat.so.2 libmp.so.3
libskey.so.2 libusbhid.so.0 libutil.so.3 libvgl.so.2 to the mix.

Approved by: scottl

20 years agoo track API change for HAL v0.9.6.1
sam [Sat, 29 Nov 2003 01:23:59 +0000 (01:23 +0000)]
o track API change for HAL v0.9.6.1
o fix race condition when processing rx descriptors: because we use
  a self-linked descriptor at the end of the rx descriptor list to
  avoid rx overruns (which can easily happen for 5212 parts that enable
  PHY errors) we must carefully check that a descriptor is "done" by
  looking ahead to the next descriptor before believing the done bit
  in the current descriptor (this is all handled in the HAL since the
  rx descriptor format is chip-specific so we need to pass in two
  additional parameters--the physical address of the current descriptor
  and the virtual address of the next descriptor in the list)
o check copyout return status for SIOCGATHSTATS ioctl

Approved by: re (scottl)

20 years agoThis commit was generated by cvs2svn to compensate for changes in r123041,
sam [Sat, 29 Nov 2003 01:11:48 +0000 (01:11 +0000)]
This commit was generated by cvs2svn to compensate for changes in r123041,
which included commits to RCS files with non-trunk default branches.

20 years agoVersion 0.9.6.1:
sam [Sat, 29 Nov 2003 01:11:48 +0000 (01:11 +0000)]
Version 0.9.6.1:

o support for 5112 and 2112 radios on 5212-based products
o revised interface for ah_procRxDesc needed to handle a race
  condition created with the use of self-linked rx descriptors
o support for setting the MAC address
o remove some unused methods from the public API
o revised diagnostic API (replace dump* methods with getDiagState)
o const'ify set key cache method parameters
o support for optional 32khz sleep clock
o implement ah_setSlotTime for 5211 parts
o ANI improvements for 5212 parts

Approved by:    re (scottl)

20 years agoApply the vendor change to this file, thus resolving the import conflict
dougb [Fri, 28 Nov 2003 22:02:17 +0000 (22:02 +0000)]
Apply the vendor change to this file, thus resolving the import conflict

20 years agoThis commit was generated by cvs2svn to compensate for changes in r123036,
dougb [Fri, 28 Nov 2003 21:58:43 +0000 (21:58 +0000)]
This commit was generated by cvs2svn to compensate for changes in r123036,
which included commits to RCS files with non-trunk default branches.

20 years agoImport of ISC BIND version 8.3.7
dougb [Fri, 28 Nov 2003 21:58:43 +0000 (21:58 +0000)]
Import of ISC BIND version 8.3.7

Approved by: re
Requested by: security-officer

20 years agoCosmetic fix: a message was mixed with a dialog box border line.
olgeni [Fri, 28 Nov 2003 20:44:25 +0000 (20:44 +0000)]
Cosmetic fix: a message was mixed with a dialog box border line.

Approved by: re (rwatson)

20 years agoWorkaround for errata on early versions of the sii3112.
sos [Fri, 28 Nov 2003 19:01:28 +0000 (19:01 +0000)]
Workaround for errata on early versions of the sii3112.

Approved by: re@

20 years agoRemove the call to M_ASSERTVALID from BPF_MTAP; some mbufs passed to
silby [Fri, 28 Nov 2003 18:48:59 +0000 (18:48 +0000)]
Remove the call to M_ASSERTVALID from BPF_MTAP; some mbufs passed to
mpf are allocated on the stack, which causes this check to falsely trigger.

A new check which takes on-stack mbufs into account will be reintroduced
after 5.2 is out the door.

Approved by: re (watson)
Requested by: many

20 years agoRemove security profiles from sysinstall. Currently, security profile
rwatson [Fri, 28 Nov 2003 18:47:45 +0000 (18:47 +0000)]
Remove security profiles from sysinstall.  Currently, security profile
selection is used to drive two configuration parameters:

(1) Default enable/disable for sshd
(2) Default enable/disable for securelevels

Replace this with an explicit choice to enable/disable sshd.  A
follow-up commit will add a configuration option to the Security
post-install configuration menu to set the securelevel in rc.conf
explicitly.  This should reduce the level of foot-shooting associated
with accidental enabling of securelevels, make the nature and
implications of the securelevel configuration options more explicit,
as well as make the choice to enable/disable sshd more explicit.

Approved by: re (scottl)

20 years agoDo not adjust to the pagesize at runtime. Besides for the one-time
marcel [Fri, 28 Nov 2003 18:03:22 +0000 (18:03 +0000)]
Do not adjust to the pagesize at runtime. Besides for the one-time
initialization overhead, there's a problem in that we never call
imalloc() and thus malloc_init() for zero-sized allocations. As a
result, malloc(0) returns NULL when it's the first or only malloc in
the program. Any non-zero allocation will initialize the malloc code
with the side-effect that subsequent zero-sized allocations return a
non-NULL pointer. This is because the pointer we return for zero-
sized allocations is calculated from malloc_pageshift, which needs
to be initialized at runtime on ia64.

The result of the inconsistent behaviour described above is that
configure scripts failed the test for a GNU compatible malloc. This
resulted in a lot of broken ports.

Other, even simpler, solutions were possible as well:
1.  initialize malloc_pageshift with some non-zero value (say 13 for
    8KB pages) and keep the runtime adjustment.
2.  Stop using malloc_pageshift to calculate ZEROSIZEPTR.

Removal of the runtime adjustment was chosen because then ia64 is the
same as any other platform. It is not to say that using a page size
obtained at runtime is bad per se. It's that there's currently a high
level of gratuity for its existence and the moment it causes problems
is the moment you need to get rid of it. Hence, it's not unthinkable
that this commit is (partially) reverted some time in the future when
we do have a good reason for it and a good way to achieve it.

Approved by: re@ (rwatson)
Reported by: kris (portmgr@) -- may the ports be with you

20 years agoFix some minor nits in netstat whereby large interface names would be
bms [Fri, 28 Nov 2003 17:34:23 +0000 (17:34 +0000)]
Fix some minor nits in netstat whereby large interface names would be
truncated. In environments where many tunnel or vlan interfaces are created,
interface names have high numbers which overflow the field width.

PRs: bin/52349, bin/35838
Submitted by: Mike Tancsa, Scot W. Hetzel
Approved by: re (rwatson)

20 years agoAdd a means of starting an IKE daemon from the rc system at an appropriate
bms [Fri, 28 Nov 2003 17:28:42 +0000 (17:28 +0000)]
Add a means of starting an IKE daemon from the rc system at an appropriate
time during the boot process. This is needed in the case where NFS mounts
from servers reachable only via IPSEC are in /etc/fstab.

PR: conf/42497
Submitted by: Volker Stolz
Approved by: re (rwatson)

20 years agoFix an optimization where I made an ifdef'd out section to broad.
andre [Fri, 28 Nov 2003 16:33:03 +0000 (16:33 +0000)]
Fix an optimization where I made an ifdef'd out section to broad.

When the hostcache bucket limit is reached the last bucket wasn't
removed from the bucket row but inserted a few lines later at the
bucket row head again.  This leads to infinite loop when the same
bucket row is accessed the next time for a lookup/insert or purge
action.

Tested by: imp, Matt Smith
Approved by: re (rwatson)

20 years agomissing splx.
ume [Fri, 28 Nov 2003 14:34:42 +0000 (14:34 +0000)]
missing splx.
this is a NOOP change, and primarily merged for consistency with
-STABLE.

Approved by: re (rwatson)

20 years agoUnderstand the old pseudo-device config(8) file directive, for 4.x.
ru [Fri, 28 Nov 2003 08:58:44 +0000 (08:58 +0000)]
Understand the old pseudo-device config(8) file directive, for 4.x.

20 years agoSometimes cardbus attachments don't attach, so while we track down
imp [Fri, 28 Nov 2003 05:28:29 +0000 (05:28 +0000)]
Sometimes cardbus attachments don't attach, so while we track down
this problem put these lines back in.  While they should be
unnecessary, they appear to be sometimes necessary.

Reviewed in concept: dfr
Approved by: re (scottl@)

20 years agoEliminate a duplicate free when deleting an interface address. This
sam [Fri, 28 Nov 2003 04:19:41 +0000 (04:19 +0000)]
Eliminate a duplicate free when deleting an interface address.  This
caused crashes, typically during shutdown, because the second free
referenced a mutex that had been destroyed.

Tested by: several
Approved by: re (scottl)

20 years agoClarify that the encrypted device is called foo.bde and mention that
phk [Thu, 27 Nov 2003 20:54:51 +0000 (20:54 +0000)]
Clarify that the encrypted device is called foo.bde and mention that
unmounting it before detaching GBDE is a good idea.

Insisted on by: Flemming Jacobsen <fj@batmule.dk>
Approveed by: re@

20 years agoAdd manual page for CPU_ELAN, CPU_SOEKRIS and related options for the
phk [Thu, 27 Nov 2003 20:28:25 +0000 (20:28 +0000)]
Add manual page for CPU_ELAN, CPU_SOEKRIS and related options for the
Elan 520 CPU chip.

Approved by: re@

20 years agoRefactor AMD Elan 520 CPU support.
phk [Thu, 27 Nov 2003 20:27:29 +0000 (20:27 +0000)]
Refactor AMD Elan 520 CPU support.

Make it possible to configure GPIO pins as led(4) devices, PPS inputs
and PPS-echo outputs with a sysctl.  Led(4) and PPS-echo can be configured
for active-high or active-low.

Be more complete in initialization of timecounter hardware.

Approved by: re@

20 years agoImprove semantics of the 'sequence' command to led(4) devices:
phk [Thu, 27 Nov 2003 20:23:32 +0000 (20:23 +0000)]
Improve semantics of the 'sequence' command to led(4) devices:
use lowercase for off and upper case for on.

Approved by: re@

20 years agoFix a panic due to holding a lock over calls to uiomove.
matk [Thu, 27 Nov 2003 19:51:44 +0000 (19:51 +0000)]
Fix a panic due to holding a lock over calls to uiomove.

Pointed out by: Artur Poplawski
Explained by: Don Lewis (truckman)
Approved by: tanimura (mentor)
Approved by: scottl (re)

20 years agoMention that floppy based installs are not supported on amd64 systems
peter [Thu, 27 Nov 2003 18:38:39 +0000 (18:38 +0000)]
Mention that floppy based installs are not supported on amd64 systems
rather than leaving the section blank.  This was left out of the last
commit by accident.

Approved by: bmah

20 years agoUpdate for amd64 so that the devices list is a bit more complete and there
peter [Thu, 27 Nov 2003 18:24:44 +0000 (18:24 +0000)]
Update for amd64 so that the devices list is a bit more complete and there
are not quite so many blank sections.

Approved by:  bmah

20 years agoFix i386 apic support merge botch. sizeof(long) is 8, not 4. This fixes
peter [Thu, 27 Nov 2003 17:20:44 +0000 (17:20 +0000)]
Fix i386 apic support merge botch.  sizeof(long) is 8, not 4.  This fixes
the annoying 'sysctl: hw.intrcnt: out of memory' error message in systat.

Approved by:  re (rwatson)

20 years ago* If a processor's softc is NULL, use C1 since there is no ACPI
njl [Thu, 27 Nov 2003 16:32:46 +0000 (16:32 +0000)]
* If a processor's softc is NULL, use C1 since there is no ACPI
  processor object for this CPU.  This occurs for logical CPUs which
  do not have an associated processor object (e.g., HTT).

Approved by: re (rwatson)

20 years agoFix verify_rev_path() function. The author of this function tried to
andre [Thu, 27 Nov 2003 09:40:13 +0000 (09:40 +0000)]
Fix verify_rev_path() function.  The author of this function tried to
cut corners which completely broke down when the routing table locking
was introduced.

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

20 years agoServeRaid (at least 5i) didn't initialize correctly. To get
mbr [Thu, 27 Nov 2003 08:37:36 +0000 (08:37 +0000)]
ServeRaid (at least 5i) didn't initialize correctly. To get
them working (cache, automatic rebuild and hotswap) the FFDC
info (First Failure Data Capture) on the adapter must be
initialised.

Logical drives in critical/degraded states weren't added to
the drive list. FreeBSD was not able to see a degraded array
after a reboot. Degraded drives are now also added to the drivelist
and the state of the logical drive is given at boottime.

The adapter type is detected from informations in nvram page 5
and displayed at boottime.

Change IPS_OS_FREEBSD definition from 10 to 8 according to IBM
specs.

Submitted by:   <Patrick Guelat> pgfb@imp.ch
Reviewed by:    mbr, scottl
Approved by:    re

20 years agoFix whitespace error in previous commit.
wes [Thu, 27 Nov 2003 01:19:23 +0000 (01:19 +0000)]
Fix whitespace error in previous commit.

Approved by: RE@ (Robert Watson)

20 years agoMake sure all uses of stack allocated struct route's are properly
andre [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
njl [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
phantom [Wed, 26 Nov 2003 10:43:05 +0000 (10:43 +0000)]
Learn about new world order

20 years agoGrammar, spelling and punctuation sweep.
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 [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 [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 [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 [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
scottl [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
imp [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
iedowse [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,
non [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
non [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
kan [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
kensmith [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.
sos [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.
sos [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
sos [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.
grog [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 [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.
ume [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.
phk [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 [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.
kan [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.
scottl [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.
phk [Sun, 23 Nov 2003 10:22:51 +0000 (10:22 +0000)]
Avoid NULL pointer dereference.

Approved by: re@

20 years agoo Add missing articles
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 [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
tmm [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.
scottl [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
scottl [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.
matk [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 [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 [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 [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 [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
njl [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.
sos [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
jhb [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,
njl [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
njl [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
njl [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:
imp [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
dcs [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 [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 [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 [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 [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 [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).
tjr [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.
bmah [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)