Jake Burkholder [Tue, 18 Feb 2003 09:01:01 +0000 (09:01 +0000)]
Add drivers for the central and fhc busses found in enterprise class
UltraSPARCs, and an eeprom attachment for fhc, which allows the date
to be set properly on these machines. Central is a wierd bus which
seems to only ever have 1 fhc attached to it. FHC (FireHose Controller)
is another wierd bus with various things on it depending where its attached.
The fhc attached to central has eeprom and zs, and the fhcs which attach
directly to nexus have simm-status, environment and other nodes, none of
which I'll probably ever have documentation for.
Thanks to Ade Lovett for providing access to an 8 cpu e4500.
Peter Wemm [Tue, 18 Feb 2003 03:36:49 +0000 (03:36 +0000)]
Initiate de-orbit burn for USE_PCI_BIOS_FOR_READ_WRITE. This has been
#if'ed out for a while. Complete the deed and tidy up some other bits.
We need to be able to call this stuff from outer edges of interrupt
handlers for devices that have the ISR bits in pci config space. Making
the bios code mpsafe was just too hairy. We had also stubbed it out some
time ago due to there simply being too much brokenness in too many systems.
This adds a leaf lock so that it is safe to use pci_read_config() and
pci_write_config() from interrupt handlers. We still will use pcibios
to do interrupt routing if there is no acpi.. [yes, I tested this]
Bruce A. Mah [Tue, 18 Feb 2003 02:51:53 +0000 (02:51 +0000)]
New release notes: Linux IPv6 support, cm support for IPX (+MFC),
FAST_IPSEC and INET6 can coexist (sort of), wfd/wst removal, compat4x
adds libcrypto/libgmp/libssl libraries, config(8) nodevice,
mount_nfs(8) -c (+MFC), ping(8) -M.
Modified release notes: Explicitly name wlan module.
Juli Mallett [Tue, 18 Feb 2003 00:07:06 +0000 (00:07 +0000)]
Nuke xargs, I haven't had to help anyone with it, so I assume it stands on
its own just fine. Nuke request for heads-up on libufs, most of my work on
it these days is gradual, and mention that I'm willing to help with work in
it, so that others can feel free to make it suck less, and get feedback from
me in a purely "I understand this crud" sort of way.
Scott Long [Mon, 17 Feb 2003 23:47:31 +0000 (23:47 +0000)]
Sanity check the BAR length reported by the CIS with the BAR length that
is encoded in the PCI BAR. The latter is more reliable.
This allows the sio/modem function of the Xircom RealPort ethernet+modem
card to work. Note that there still seem to be issues with sio_pci not
releasing resources on detach.
Alexander Kabaev [Mon, 17 Feb 2003 20:58:27 +0000 (20:58 +0000)]
Do not remove object from the lists at the unref_dag() stage.
Introduce a new unlink_object() function and call it in
unload_object() instead. Removing the object in unref_dag() is
too early, rtld calls _fini() function after that and shared
objects might fail resolve their own symbols.
Chris Costello [Mon, 17 Feb 2003 20:11:09 +0000 (20:11 +0000)]
o Add a note explaining the meaning of mls/equal beyond "equal to all
labels"
o Remove the ++ compartment range notation example as this has not yet
been merged into CVS.
o Include a "Runtime Configuration" section listing all of the relevant
sysctl knobs for this policy.
Chris Costello [Mon, 17 Feb 2003 20:04:06 +0000 (20:04 +0000)]
- Document some of the sysctl parameters. The read-only ones will go into
another subsection, but I'm not quite sure where yet. Right now it's just
the configurable bits.
- Move the label format off into another subsection to match other labeling
policy man pages.
- Make the sample range label look like the form specified.
Warner Losh [Mon, 17 Feb 2003 19:01:33 +0000 (19:01 +0000)]
Bump pnpinfo and location size to 128 bytes. Since these are computed
on the fly and read into userland one at a time, this costs very
little total memory. The pnpinfo sizes of pccard is more than 64
bytes due to the length of the strings that man cards have in their
CIS.
Maxim Konovalov [Mon, 17 Feb 2003 13:39:57 +0000 (13:39 +0000)]
o Fix ipfw uid rules: socheckuid() returns 0 when uid matches a socket
cr_uid.
Note: we do not have socheckuid() in RELENG_4, ip_fw2.c uses its
own macro for a similar purpose that is why ipfw2 in RELENG_4 processes
uid rules correctly. I will MFC the diff for code consistency.
Tim J. Robbins [Mon, 17 Feb 2003 10:03:02 +0000 (10:03 +0000)]
Use the proc lock to protect p_realtimer instead of Giant, and obtain
sched_lock around accesses to p_stats->p_timer[] to avoid a potential
race with hardclock. getitimer(), setitimer() and the realitexpire()
callout are now Giant-free.
Jeff Roberson [Mon, 17 Feb 2003 09:58:11 +0000 (09:58 +0000)]
- Add a new function, thread_signal_add(), that is called from postsig to
add a signal to a mailbox's pending set.
- Add a new function, thread_signal_upcall(), this causes the current thread
to upcall so that we can deliver pending signals.
Julian Elischer [Mon, 17 Feb 2003 09:55:10 +0000 (09:55 +0000)]
Move a bunch of flags from the KSE to the thread.
I was in two minds as to where to put them in the first case..
I should have listenned to the other mind.
Submitted by: parts by davidxu@
Reviewed by: jeff@ mini@
Jeff Roberson [Mon, 17 Feb 2003 05:14:26 +0000 (05:14 +0000)]
- Split the struct kse into struct upcall and struct kse. struct kse will
soon be visible only to schedulers. This greatly simplifies much the
KSE code.
Back out "drop first N values" method of removing monotonically increased
seed->first value correlation. It breaks rand_r()... Other possible methods
like shuffling inside aray will breaks rand_r() too, because it assumes
only one word state, i.e. nothing extra can be added after seed assignment
in srand().
BTW, for old formulae seed->first value correlation is not so monotonically
increased as with other Linear Congruential Generators of this type only
becase arithmetic overflow happens. But overflow affects distribution
and lower bits very badly, as many articles says, such type of overflow
not improves PRNG.
So, monotonically increased seed->first value correlation problem remains...
Tim J. Robbins [Mon, 17 Feb 2003 03:51:44 +0000 (03:51 +0000)]
Second attempt at removing machdep.h and using ALIGN from <sys/param.h>.
The problem with the previous attempt, as noticed by Marcel, was that
stacknxt was being aligned to a pointer boundary instead of an
ALIGNBYTES + 1 boundary, which broke sparc64.
Andrew Gallatin [Sun, 16 Feb 2003 19:25:04 +0000 (19:25 +0000)]
zero the end of the memory cluster we're disposing of. Otherwise teh
vm page startup code finds a 20GB cluster on this wacky alphaserver I'm
working on..
Andrew Gallatin [Sun, 16 Feb 2003 17:30:49 +0000 (17:30 +0000)]
When trimming memory to fit Maxmem, and we discard an entire cluster,
make certain to subtract its pages from physmem. Otherwise we end up
running phys_avail_cnt negative, and bad stuff happens.
Jacques Vidrine [Sun, 16 Feb 2003 17:29:11 +0000 (17:29 +0000)]
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Paranoia: instead of a NULL conversation function, use one that always
returns PAM_CONV_ERR; moreover, make sure we always have the right
conversation function installed before calling PAM service functions.
Also unwrap some not-so-long lines.
Jeff Roberson [Sun, 16 Feb 2003 10:43:06 +0000 (10:43 +0000)]
- Introduce a new function bremfreel() that does a bremfree with the buf
queue lock already held.
- In getblk() and flushbufqueues() use bremfreel() while we still have the
buf queue lock held to keep the lists consistent.
- Add LK_NOWAIT to two cases where we're essentially asserting that the bufs
are not locked while acquiring the locks. This will make sure that we get
the appropriate panic() and not another one for sleeping with a lock held.
Pass FTP_PASSIVE_MODE, FTP_PROXY, and HTTP_PROXY variables to chroot sandbox.
These variables will be used by pkg_add, which installs mkisofs package
while MAKE_ISOS=YES. See src/release/${arch}/mkisoimages.sh if you doubt.
Tim J. Robbins [Sun, 16 Feb 2003 03:28:11 +0000 (03:28 +0000)]
Temporarily back out machdep.h/ALIGN changes. It seems that on sparc64,
using the alignment from sys/param.h (16) instead of the alignment
from machdep.h (8) tickled a nasty bug in the memory allocator that I
haven't been able to track down yet.
Warner Losh [Sun, 16 Feb 2003 02:06:50 +0000 (02:06 +0000)]
Checkpoint a work in progress:
o Use the common pci_* routines in preference to the copied and hacked
routines from an ancient pci.c.
This saves 509 lines in cardbus.c. More savings to follow when I
convert the resource code over. In the past when I've done this the
resource code conversion breaks cardbus in subtle ways so I'm doing a
1/2 way checkpoint this time. cardbus still works for me the same as
it did before.
It also looks like cardbus devices now show up as pci bus devices to
pciconf -l, but maybe that was happening before.
Inspired by a patch from Justin Gibbs many moons ago. When he
finishes his kobj multiple inheritance work, we can transition the
finished version of this work to that fairly easily.
Warner Losh [Sun, 16 Feb 2003 02:02:44 +0000 (02:02 +0000)]
Use rman_get_device rather than rle->resl->r_dev.
make pci_hdrtypedata and pci_read_extcap accessible (but maybe in the end
we'll make them private again).