jb [Tue, 21 Nov 2006 08:23:20 +0000 (08:23 +0000)]
Remove the KDTRACE option because I can't implement it the
way I intended due to licensing restrictions. I had intended
that it would be defaulted on, with opt-out possible for
companies that don't accept the CDDL. The FreeBSD GENERIC
kernel has to be entirely BSD licensed, so the only alternative
would have been to make KDTRACE an opt-in option. That isn't
a design I favour.
jmg [Tue, 21 Nov 2006 05:46:09 +0000 (05:46 +0000)]
don't mark the cksum as invalid here... off is incorrect when we get
here, it's either unset, or it's valid, so we don't need to do anything
different...
rodrigc [Tue, 21 Nov 2006 04:56:50 +0000 (04:56 +0000)]
Change reference from mount_devfs(8) to mount(8), and add an example.
Remove reference to mount_fdescfs(8), since mount(8) calls nmount()
directly to mount an fdescfs filesystem, instead of forking an
external mount_fdescfs program.
jhb [Mon, 20 Nov 2006 23:30:07 +0000 (23:30 +0000)]
Add suspend/resume support. Unlike many other NIC drivers,
bfe_init_locked() wasn't sufficient to bring the chip back to life, it also
required a call to bfe_chip_reset() during resume.
kientzle [Mon, 20 Nov 2006 16:48:04 +0000 (16:48 +0000)]
Officially rename archive_{read,write}_open_file() to
archive_{read,write}_open_filename():
* Update Makefile to build the files using the new name.
* Update docs to document the new names, mentioning the
old ones as "deprecated synonyms."
* The old filenames will be reconnected to the build soon;
I'll soon recyce those files for a slightly different purpose.
kientzle [Mon, 20 Nov 2006 16:45:39 +0000 (16:45 +0000)]
Forced commit to note CVS repo-copy of archive_{read,write}_open_file.c
to archive_{read,write}_open_filename.c.
This is part of a minor file shuffle/name clarification:
* The archive_{read,write}_open_file() functions are officially
renamed to archive_{read,write}_open_filename(), which more accurately
reflects their function (they open a data stream identified by a filename).
* Preserve the file naming conventions by renaming the files as
well.
* Keep the old function names (in the new files) as synonyms for
backwards compatibility.
* Keep the old files around; they'll be recycled soon for the upcoming
archive_{read,write}_open_FILE() functions (which open a data stream
identified by a FILE * reference).
* I'm also, of course, making a nod here to MacOS/Windows
case-insensitive filesystems that can't have both _open_file.c and
_open_FILE.c. ;-)
ru [Mon, 20 Nov 2006 16:04:41 +0000 (16:04 +0000)]
- Fix types of "struct vmmeter" members so they are unsigned.
- Fix overflow bugs in sysctl(8), systat(1), and vmstat(8)
when printing values of "struct vmmeter" in kilobytes as
they don't necessarily fit into 32 bits. (Fix sysctl(8)
reporting of a total virtual memory; it's in pages too.)
marius [Mon, 20 Nov 2006 12:59:27 +0000 (12:59 +0000)]
- Make rp(4) 64-bit- and endian-clean as well as work on strict alignment
archs. [1]
- Instead of bus_space_{read,write}*(rman_get_bustag(), rman_get_bushandle())
use bus_{read,write}*() for efficiency.
Reported by: Peter Losher [1]
Tested on: i386, sparc64
MFC after: 2 weeks
davidxu [Mon, 20 Nov 2006 05:50:59 +0000 (05:50 +0000)]
Use scheduler API sched_user_prio() to adjust thread's userland priority,
use td_base_user_prio to get real userland priority since POSIX priority
mutex may adjust td_user_pri which is an effective priority.
mohans [Mon, 20 Nov 2006 04:14:23 +0000 (04:14 +0000)]
1) Fix up locking in nfs_up() and nfs_down.
2) Reduce the acquisitions of the Giant lock in the nfs_socket.c paths significantly.
- We don't need to acquire Giant before tsleeping on lbolt anymore,
since jhb specialcased lbolt handling in msleep.
- nfs_up() needs to acquire Giant only if printing the "server up"
message.
- nfs_timer() held Giant for the duration of the NFS timer processing,
just because the printing of the message in nfs_down() needed it
(and we acquire other locks in nfs_timer()). The acquisition of
Giant is moved down into nfs_down() now, reducing the time Giant is
held in that path.
sam [Sun, 19 Nov 2006 23:55:23 +0000 (23:55 +0000)]
Gateworks Avila board support:
o ixp425 support
o NPE network driver (requires Intel microcode)
o h/w qmgr support
o True IDE compact flash over expansion bus
o pci (ath and hifn795x parts tested)
o xscale watchdog timer
o ds1672 RTC on i2c bus
o ad7418 voltage + temp monitoring on i2c bus
o uart
Work done together with cognet, kevlo, and jmg. Parts of
the ixp425 support obtaine/derived from netbsd.
mjacob [Sun, 19 Nov 2006 23:13:12 +0000 (23:13 +0000)]
If a TMF request fails to start, make sure that we pull it off the
pending list and set the state back to free prior to calling mpt_reset
so we don't panic at a later point.
alc [Sun, 19 Nov 2006 20:54:58 +0000 (20:54 +0000)]
The global variable avail_end is redundant and only used once. Eliminate
it. Make avail_start static to the pmap on amd64. (It no longer exists
on other architectures.)
syrinx [Sun, 19 Nov 2006 15:42:48 +0000 (15:42 +0000)]
Bring in a SNMP module to support monitoring if_bridge(4) interfaces
via bsnmpd(1). The module implements IETF BRIDGE-MIB as defined in
RFC4188 and a private BEGEMOT-BRIDGE-MIB.
Sponsored by: Google Summer of Code 2006
Reviewed by: bz
Approved by: bz (mentor)
kensmith [Sun, 19 Nov 2006 08:12:54 +0000 (08:12 +0000)]
Move the check for which disc volume we have/want to after we install
the package dependencies. Installation of the dependencies may leave
us on the wrong disc volume.
csjp [Sat, 18 Nov 2006 23:18:43 +0000 (23:18 +0000)]
Implement new ETHER_BPF_MTAP macro. Roll back the various changes
made to accommodate the chip being in promiscuous mode while
offloading VLAN tag processing to the hardware. We can now
properly handle the absence of VLAN tags from hardware stripping.
csjp [Sat, 18 Nov 2006 23:17:22 +0000 (23:17 +0000)]
Currently, drivers that support hardware offload of VLAN tag
processing are forced to toggle this functionality when the card
is put in and out of promiscuous mode. The main reason for this
is because the hardware strips the VLAN tag, making it impossible
for the tag information to show up in network diagnostic tools like
tcpdump(1).
This change introduces ether_vlan_mtap(), which is called if the
mbuf has M_VLANTAG set. VLAN information is extracted from the
mbuf and inserted into a stack allocated ether vlan header which
is then inserted through the bpf machinery via bpf_mtap2(). The
original mbuf's data pointer and lengths are temporarily adjusted
to eliminate the original Ethernet header for the duration of the
tap operation. This should have no long term effects on the mbuf.
Also, define a new macro, ETHER_BPF_MTAP which should be used
by drivers which support hardware offload of VLAN tag processing.
The fixes for the relevant drivers will follow shortly.
marcel [Sat, 18 Nov 2006 23:15:25 +0000 (23:15 +0000)]
Since printf also has at least one critical section, we need to
initialize pc_curthread. While here, rename early_pcpu to pcpu0
to be conistent (compare thread0 and proc0).
marcel [Sat, 18 Nov 2006 21:52:26 +0000 (21:52 +0000)]
Now that printf() needs the PCPU, set it up before we call printf().
Change the pc_pcb field from a pointer to struct pcb to struct pcb
so that sizeof(struct pcb) includes the PCB we use for IPI_STOP.
Statically declare early_pcb so that we don't have to allocate the
PCB for thread0. This way we can setup the PCPU before cninit()
and thus before we use printf().
rodrigc [Sat, 18 Nov 2006 18:22:11 +0000 (18:22 +0000)]
Previously, the mount_ext2fs binary listed the acceptable mount
options for ext2fs. Now that we use nmount() directly from the mount
binary to access ext2fs filesystems, add the list of acceptable mount
options to ext2_ops, so that vfs_filteropts() will accept
options like "noatime" for ext2fs.
PR: 105483
Noticed by: Dr. Markus Waldeck <waldeck gmx de>
MFC after: 1 month
kib [Sat, 18 Nov 2006 13:00:59 +0000 (13:00 +0000)]
Add debuging printfs to syscalls that do not contain it yet. In
sethostname do not print the hostname because it would require to copyin
the string. Sethostname is not very frequently used.
scottl [Sat, 18 Nov 2006 07:33:53 +0000 (07:33 +0000)]
Change the internal API for polled commands. Calling mfi_polled_command
after calling mfi_mapcmd is no longer needed, so long as the MFI_CMD_POLLED
flag is set. This change eliminates the possibility of a polled command
getting posted twice to the driver. This is turn fixes panics on shutdown
when INVARIANTS is set.
mjacob [Sat, 18 Nov 2006 03:53:16 +0000 (03:53 +0000)]
Make the SAN login/logout stuff more common between different chipsets
and provied an isp_control entry point so that the outer layers can
do PLOGI/LOGO explicitly. Add MS IOCB support. This completes the cycle
for base support for SMI-S.
jkim [Fri, 17 Nov 2006 20:43:01 +0000 (20:43 +0000)]
Fix msgsnd(3)/msgrcv(3) deadlock under heavy resource pressure by timing out
msgsnd and rechecking resources. This problem was found while I was running
Linux Test Project test suite (test cases: msgctl08, msgctl09).
Change `msgwait' to `msgsnd' and `msgrcv' to distinguish its sleeping
conditions. Few cosmetic changes to debugging messages.
jhb [Fri, 17 Nov 2006 20:27:01 +0000 (20:27 +0000)]
Add support for 8 byte hardware watches in long mode. Kernel hardware
watches support 8 byte watches. For userland, we disallow 8 byte watches
for 32-bit tasks.
jhb [Fri, 17 Nov 2006 19:20:32 +0000 (19:20 +0000)]
- Add macro constants for the various fields in %dr7 and use them in place
of various scattered magic values.
- Pretty print the address of hardware watchpoints in 'show watch' rather
than just displaying hex.
- Expand address field width on amd64 for 64-bit pointers.
jhb [Fri, 17 Nov 2006 16:41:03 +0000 (16:41 +0000)]
Trim some noise from bootverbose:
- Drop the printf in intr_machdep.c when we assign an interrupt souce to
a CPU. Each source already has a more detailed printf.
- Don't output a line for each ioapic pin showing its initial state, this
has outlived its usefulness.
- When an APIC enumerator sets the bus, polarity, or trigger mode of an
ioapic pin, just return success without printing anything if the new
value matches the current one.