imp [Tue, 28 Aug 2001 16:35:01 +0000 (16:35 +0000)]
It turns out that while Toshiba laptops don't want to route interrupts
multiple times, others do. The last strategy, which was to assume
that already routed interrupts were good and just return them doesn't
work for some laptops. So, instead, we have a new strategy: we notice
that we have an interrupt that's already routed. We go ahead and try
to route it, none the less. We will assume that it is correctly
routed, even if the route fails. We still assume that other failures
in the bios32 call are because the interrupt is NOT routed.
Note: some laptops do not support the bios32 interface to PCI BIOS and
we need to call it via the INT 2A interface. That is another windmill
to till at later.
Also correct a minor typo and minor whitespace nits.
nik [Tue, 28 Aug 2001 11:59:21 +0000 (11:59 +0000)]
Add a new option, '-o', for "Write-only". Disables the RETR command,
preventing anyone from downloading files. In conjunction with -A, and some
appropriate file permissions, this lets you create an anonymous FTP drop
box for people to upload files to.
The more obvious "-w" flag is already taken by NetBSD's ftpd. "-o" was
available as an option letter in all three BSDs.
wpaul [Tue, 28 Aug 2001 00:40:18 +0000 (00:40 +0000)]
Add support for the 3c656B cardbus adapter. This is one half of a
dual function card. It needs pretty much the same flags as the 656C,
except that it seems to need both the INVERT_MII_PWR and INVERT_LED_PWR
flags set. Tested with cardbus in -current as of today.
Also added support for the 3c656, which looks to be the same as
the 656B, except it doesn't need the EEPROM_8BIT flag. I think. This
one is untested, but the added support should not break any of the
other cards.
jesper [Mon, 27 Aug 2001 22:10:07 +0000 (22:10 +0000)]
When net.inet.tcp.icmp_may_rst is enabled, report ECONNREFUSED not ENETRESET
to the application as a RST would, this way we're compatible with the most
applications.
MFC candidate.
Submitted by: Scott Renfro <scott@renfro.org>
Reviewed by: Mike Silbersack <silby@silby.com>
cjc [Mon, 27 Aug 2001 21:37:15 +0000 (21:37 +0000)]
Gives syslogd(8) the ability to refresh its idea of the hostname of
the system on which it is running. The hostname is reloaded when
'HUPped' and a log message generated to note a change (before anyone
points it out, this is not an added security feature).
sobomax [Mon, 27 Aug 2001 17:48:37 +0000 (17:48 +0000)]
OOPS, remove local change that somehow slipped into a commit (I swear that
I already deleted it some time ago). This should fix problem people have with
unsefined reference to `MD_PRELOAD_COMPRESSED'.
rwatson [Mon, 27 Aug 2001 17:44:22 +0000 (17:44 +0000)]
o Introduce a man page for vaccess_acl_posix1e(), based on the existing
vaccess(). This man page leaves something to be desired, as it doesn't
currently document the POSIX.1e evaluation algorithm, which will in
the future be incorporated, or cross-referenced.
jlemon [Mon, 27 Aug 2001 16:07:12 +0000 (16:07 +0000)]
Systems based on the ICH2/ICH2-M chip from Intel have a defect where
the chip can cause a PCI protocol violation in under certain scenarios.
The workaround is to rewrite the EEPROM to disable Dynamic Standby Mode.
Once the EEPROM is rewritten, the system needs to be rebooted in order
to pick up the new settings.
This has been tested on several ICH2/ICH2-M systems, found in 815E based
boards, and usually identified by the presence of the 82562 ET/EM PHY.
Thanks to: Mike Tansca, Paul Saab for samples of the problematic boards.
dd [Mon, 27 Aug 2001 13:41:15 +0000 (13:41 +0000)]
New release note: config(8) ENV. I put this under the "kernel
changes" section, but I'm not sure it's appropriate there. config(8)
is a userland utility, but this is actually a "kernel" feature. There
are release notes about config(8) in both sections, but "kernel" seems
more appropriate for this one.
sobomax [Mon, 27 Aug 2001 13:25:47 +0000 (13:25 +0000)]
- On module unload try to detach all configured disks and let unload proceed
if all disks were detached sucessfully;
- use consistent style for return statements and fix several others style
inconsistencies.
brian [Mon, 27 Aug 2001 10:42:21 +0000 (10:42 +0000)]
Send a reset request for every packet received when our encryption
dictionaries are out of sync.
This avoids the complications that happen when our original reset
request gets lost in transit (quite likely in hind sight, given a
lossy link) when we end up ignoring the peer for the next (up to)
256 packets.
sobomax [Mon, 27 Aug 2001 08:05:52 +0000 (08:05 +0000)]
- Add missed closing `"';
- mention koi8-u and cp866u fonts;
- describe 1024-byte limit on amount of data that is possible to paste from
the syscons cut buffer.
peter [Mon, 27 Aug 2001 06:09:56 +0000 (06:09 +0000)]
If a file has been completely unlinked, stop automatically syncing the
file. ffs will discard any pending dirty pages when it is closed,
so we may as well not waste time trying to clean them. This doesn't
stop other things from writing it out, eg: pageout, fsync(2) etc.
bmah [Mon, 27 Aug 2001 03:37:56 +0000 (03:37 +0000)]
Try to make some sense out of the mess that used to be INSTALL.TXT.
1. Bring floppies.sgml section in-line into install.sgml, where it
makes more sense.
2. Slightly reorganize some sections of Installation section and
do some wordsmithing.
3. Update distribution layout to reflect RELNOTESng and new compat
distributions.
4. Update upgrade file list from 4-STABLE.
5. It's been a long time since 2.2.X; get rid of instructions dealing
with "new" handling of compatability slices and fix up other references
in the text.
6. Hunt down and kill emoticons with extreme prejudice. Try to
tone down the use of exclamation points.
7. Cross-reference new and improved Installation chapter in
Handbook.
cg [Mon, 27 Aug 2001 01:02:13 +0000 (01:02 +0000)]
now we have the rate feeder, we don't need to constrain the default channel
speed. however, continue to do so for record channels until the feederchain
builder is fixed.
imp [Mon, 27 Aug 2001 01:00:27 +0000 (01:00 +0000)]
A number of fixes for the TI-1130 and ISA interrupt routing cases:
o For TI PCI-1130, you need to set bit 5 of register 91 if you want
ANY pci interrupts. Then set bits 3 and/or 4 as appropriate. This
will fix those people with 1030, 1130 and 1131 in their machines
trying to do PCI interrupts.
o Fix case where we were trying to automatically fail back to ISA
interrupt routing. We were dereferencing a NULL pointer. This
was true of ANY chipset.
o The bus_setup_intr method needs to be pcic_setup_intr so that "FAST"
interrupts fail on PCI case (modems act flakey if we don't force
them to fall back to normal interrupts). Also needed so that the
proper ISA IRQ can be set in the ExCA register. This fixes the
people whose ISA routing was failing[*].
o When we find a generic yenta/pccard bridge, go ahead and print its
vendor ID in boot verbose.
Machine with theses symptoms and a serial console by: jedgar
[*] Looks like my pc98 machine has some interrupt source on IRQ 15
that gave about 30 interrupts per second, which masked this problem on
my PC-9821Nr15.
jon [Mon, 27 Aug 2001 00:09:42 +0000 (00:09 +0000)]
Part two of this NEWCARD update:
Briefly, the significant changes include:
* Way better resource management in pccbb, pccard and cardbus.
* pccard hot-removal now appears to work.
* support pre-fetchable memory in cardbus.
* update cardbus to support new pci bus interface functions.
* Fix CIS reading to no longer use rman_get_virtual().
What's not there, but in the works:
* pccard needs to do interrupt properly and not read the ISR on single
function cards.
* real resource management for pccard
* a complete implementation of CIS parsing
* need to look into how to correctly use mutex in pccbb
jon [Sun, 26 Aug 2001 23:56:49 +0000 (23:56 +0000)]
Non-functional changes to NEWCARD stuff.
This is the first part of a two-part update to NEWCARD. Changes in this
commit are non-functional, and includes the following:
* indentation and other changes to meet style(9).
* other minor style consistancy changes
* addition of comments
* renaming of device_t variables to be consistant across all of NEWCARD.
(note that not all style violations are fixed in this commit -- those that
aren't will be clobbered by the next commit.)
jon [Sun, 26 Aug 2001 23:55:34 +0000 (23:55 +0000)]
Non-functional changes to NEWCARD stuff.
This is the first part of a two-part update to NEWCARD. Changes in this
commit are non-functional, and includes the following:
* indentation and other changes to meet style(9).
* other minor style consistancy changes
* addition of comments
* renaming of device_t variables to be consistant across all of NEWCARD.
(note that not all style violations are fixed in this commit -- those that
aren't will be clobbered by the next commit.)
iedowse [Sun, 26 Aug 2001 20:47:19 +0000 (20:47 +0000)]
Stop using dirhash when a directory is removed, and ensure that we
never attempt to hash directories once they are deleted. This fixes
a problem where operations on a deleted directory could trigger
dirhash sanity panics.
billf [Sun, 26 Aug 2001 10:09:47 +0000 (10:09 +0000)]
the IP_FW_GET code in ip_fw_ctl() sizes a buffer to hold information
about rules and dynamic rules. it later fills this buffer with these
rules.
it also takes the opporunity to compare the expiration of the dynamic
rules with the current time and either marks them for deletion or simply
charges the countdown.
unfortunatly it does this all (the sizing, the buffer copying, and the
expiration GC) with no spl protection whatsoever. it was possible for
the dynamic rule(s) to be ripped out from under the request before it
had completed, resulting in corrupt memory dereferencing.
imp [Sun, 26 Aug 2001 04:43:16 +0000 (04:43 +0000)]
Improve the documentation for the various tunables. Document how to
force ISA routing of interrupts. Warn the user that with ISA routing
of interrupts for PCI devices with more than one slot, polling mode is
in order. Minor markup fixes as well and some white space/sentence
break changes (I did these as one commit since this file has been in
the tree only 4 days and I doubt that translation has begun).
iedowse [Sun, 26 Aug 2001 01:25:12 +0000 (01:25 +0000)]
When compacting directories, ufs_direnter() always trusted DIRSIZ()
to supply the number of bytes to be bcopy()'d to move an entry. If
d_ino == 0 however, DIRSIZ() is not guaranteed to return a sensible
length, so ufs_direnter could end up corrupting a directory during
compaction. In practice I believe this can only happen after fsck_ffs
has fixed a previously-corrupted directory.
We now deal with any mid-block unused entries specially to avoid
using DIRSIZ() or bcopy() on such entries. We also ensure that the
variables 'dsize' and 'spacefree' contain meaningful values at all
times. Add a few comments to describe better this intricate piece
of code.
The special handling of mid-block unused entries makes the dirhash-
specific bugfix in the previous revision (1.53) now uncecessary,
so this change removes it.