bernd [Sat, 12 Jul 2008 16:23:40 +0000 (16:23 +0000)]
sync
bernd [Sat, 12 Jul 2008 16:22:55 +0000 (16:22 +0000)]
Add another Acer id.
help & ok jsg@
kettenis [Sat, 12 Jul 2008 15:05:51 +0000 (15:05 +0000)]
Shave off a few instructions from cpu_switchto().
kettenis [Sat, 12 Jul 2008 14:26:07 +0000 (14:26 +0000)]
Add a temporary hack to attach only the first thread of every core for
MULTIPROCESSOR kernels. We map 'struct cpuinfo' at the same virtual
address on every processor, but since threads on the same core share
an MMU this doesn't quite work. With the hack we are at least able to
use the other core (and any additional processors).
kettenis [Sat, 12 Jul 2008 13:20:42 +0000 (13:20 +0000)]
Add core(4).
kettenis [Sat, 12 Jul 2008 13:08:04 +0000 (13:08 +0000)]
Perform IOMMU cache flushes on Oberon.
miod [Sat, 12 Jul 2008 12:33:42 +0000 (12:33 +0000)]
Fix a strlcpy() bound.
kettenis [Sat, 12 Jul 2008 12:21:04 +0000 (12:21 +0000)]
Use the proper interrupt target ID on Oberon.
thib [Sat, 12 Jul 2008 12:04:10 +0000 (12:04 +0000)]
fix printing of nchstats
ok art@,dlg@
kettenis [Sat, 12 Jul 2008 11:09:02 +0000 (11:09 +0000)]
Adjust SUN4U_TLB_RESERVED_MASK for updated SUN4U_TLB_PA_MASK.
kettenis [Sat, 12 Jul 2008 10:07:25 +0000 (10:07 +0000)]
Don't install interrupt handlers for non-exitsing interrupts on CMU-CH.
kettenis [Sat, 12 Jul 2008 08:08:54 +0000 (08:08 +0000)]
On Fujitsu's SPARC64 CPUs, the data_access_error trap is synchronous, and AFSR
will be 0. Check SFSR too, before deciding there's no fault.
kettenis [Sat, 12 Jul 2008 07:37:25 +0000 (07:37 +0000)]
Add macros to get the appropriate interrupt target ID for non-UPA CPUs and
use them in cpu_myid().
mglocker [Sat, 12 Jul 2008 06:26:06 +0000 (06:26 +0000)]
Remove obsolete TODO comment.
canacar [Sat, 12 Jul 2008 06:20:47 +0000 (06:20 +0000)]
Add ':q' as an alias to ':quit', to match old behaviour. Initial patch
from dlg@, this is a simpler version.
brad [Sat, 12 Jul 2008 05:45:49 +0000 (05:45 +0000)]
regen
brad [Sat, 12 Jul 2008 05:45:31 +0000 (05:45 +0000)]
Add the OUI id for JMicron and the ids for the JMP202 FastE PHY and
JMP211 GigE PHY.
From FreeBSD
djm [Sat, 12 Jul 2008 05:33:41 +0000 (05:33 +0000)]
better description for -i flag:
s/RSA authentication/public key authentication/
brad [Sat, 12 Jul 2008 05:31:14 +0000 (05:31 +0000)]
Add support for the Marvell
88E8016 PHY.
ok dlg@
djm [Sat, 12 Jul 2008 04:52:50 +0000 (04:52 +0000)]
unbreak; move clearing of cctx struct to before first use
reported by dkrause@
brad [Fri, 11 Jul 2008 15:11:58 +0000 (15:11 +0000)]
If there is a 100baseT4 connection then fall through so as to
explicitly set the duplex flag instead of returning right away.
ok dlg@
reyk [Fri, 11 Jul 2008 15:05:59 +0000 (15:05 +0000)]
shut off an annoying gcc warning.
ok beck@
brad [Fri, 11 Jul 2008 15:00:17 +0000 (15:00 +0000)]
Check the correct BMSR bit in the capabilities field when checking
for 100baseT4. The dcphy(4) driver could inadvertently display
100baseT4 for the media type for PHY not actually capable of
100baseT4.
From FreeBSD
ok dlg@
reyk [Fri, 11 Jul 2008 14:53:32 +0000 (14:53 +0000)]
write a syslog debug message when a new GREY or TRAPPED entry is added
to the database.
ok beck@
sobrado [Fri, 11 Jul 2008 14:46:24 +0000 (14:46 +0000)]
Qlogic -> QLogic
kettenis [Fri, 11 Jul 2008 14:23:53 +0000 (14:23 +0000)]
Fujitsu SPARC64-VI CPU's have two cores that have two threads each. Provide
a core(4) device, representing these cores and attach cpu(4) devices to it
for each thread.
blambert [Fri, 11 Jul 2008 14:18:39 +0000 (14:18 +0000)]
Add timeout_add_{tv,ts,bt,sec,usec,nsec} so that we can add timeouts
in something other than clock ticks. From art@'s punchlist and (for
the time being) not yet used.
"you're doing it wrong" art@,ray@,otto@,tedu@
ok art@
blambert [Fri, 11 Jul 2008 14:12:57 +0000 (14:12 +0000)]
de-__inline a trio of functions to shave some space.
ok art@
kettenis [Fri, 11 Jul 2008 13:47:20 +0000 (13:47 +0000)]
Don't try to read the "regs" propety; it's pointless.
kevlo [Fri, 11 Jul 2008 09:29:02 +0000 (09:29 +0000)]
remove an unused function. ok jsg@
kettenis [Fri, 11 Jul 2008 05:20:19 +0000 (05:20 +0000)]
Handle CPUs with a clock speed >= 2 GHz correctly.
dlg [Fri, 11 Jul 2008 03:03:07 +0000 (03:03 +0000)]
initialise the state kept between calls to dmamap_load_buffer to 0. there
was an extremely small chance that random stack garbage coudl be used which
could corrupt a dmamap.
this is the same as the change made to amd64 in
src/sys/arch/amd64/amd64/bus_dma.c r1.10.
ok miod@ kettenis@
phessler [Fri, 11 Jul 2008 01:40:50 +0000 (01:40 +0000)]
greyreader() shouldn't return, so tell us if it does
ok beck@, reyk@
martynas [Fri, 11 Jul 2008 00:15:33 +0000 (00:15 +0000)]
httpd deamon -> httpd daemon
martynas [Fri, 11 Jul 2008 00:12:35 +0000 (00:12 +0000)]
add missing ssl art after manual has been moved, instead of using
src of non-existent place; ok pval@, okan@, "looks good" jdixon@
kettenis [Thu, 10 Jul 2008 20:29:50 +0000 (20:29 +0000)]
Console functionality is there now.
kettenis [Thu, 10 Jul 2008 20:27:36 +0000 (20:27 +0000)]
Handle breaks.
martynas [Thu, 10 Jul 2008 18:18:55 +0000 (18:18 +0000)]
- handle sign of negative zero. use sign dtoa sets
- remove 'value < 0' cruft, dtoa already clears sign bit for us
discussed with, and tested by phessler@
ok millert@, who noticed to remove now-unused variable, and phessler@
thib [Thu, 10 Jul 2008 18:17:56 +0000 (18:17 +0000)]
nuke two bogus ARGSUSED
thib [Thu, 10 Jul 2008 18:14:59 +0000 (18:14 +0000)]
move a common statement out of if/else;
adjust the mbuf before loading it, with bus_dmamap_load_mbuf(),
that way we dont have to fiddle with ds_addr;
ok dlg@
markus [Thu, 10 Jul 2008 18:08:11 +0000 (18:08 +0000)]
sync v1 and v2 traffic accounting; add it to sshd, too; ok djm@, dtucker@
markus [Thu, 10 Jul 2008 18:05:58 +0000 (18:05 +0000)]
missing bzero; from mickey; ok djm@
ajacoutot [Thu, 10 Jul 2008 16:49:26 +0000 (16:49 +0000)]
Fix "etc source" output when not using a tarball
ok "bien sur!" sthen@
mbalmer [Thu, 10 Jul 2008 13:48:54 +0000 (13:48 +0000)]
Don't terminate the array of matching product/vendor IDs with { 0, 0 }
when usb_lookup is used. If a device indeed has 0 as vendor and product
ID, like the HP DL165 BMC Server Engines SE USB Device, a wrong driver
will attach and the machine will most pbly crash.
Problem reported Rivo Nurges <rix@estpak.ee>
cvs: ----------------------------------------------------------------------
kettenis [Thu, 10 Jul 2008 12:33:40 +0000 (12:33 +0000)]
Detect whether com(4) is the console on the m4k.
mglocker [Thu, 10 Jul 2008 11:11:26 +0000 (11:11 +0000)]
Add Sonix cam to the supported list.
kettenis [Thu, 10 Jul 2008 09:29:33 +0000 (09:29 +0000)]
Add support for Fujitsu SPARC64-VI CPUs.
UltraSPARC I/II has a 41-bit physical address space, UltraSPARC III/IV has a
43-bit physical address space. The Fujitsu SPARC64-VI extends this to 46 bits.
Adjust the TTE masks to take this into account and adjust some locore code
that truncated physical addresses to 41 bits (fixing a potential bug for
UltraSPARC III/IV too).
While there, fix the locore code for UltraSPARC Architecture 2007 CPUs, which
may support up to 56 bits of physical address space.
kettenis [Thu, 10 Jul 2008 08:58:00 +0000 (08:58 +0000)]
Add support for getting the time of day on the m4k.
kettenis [Thu, 10 Jul 2008 08:57:05 +0000 (08:57 +0000)]
Add a function to get the time of day from the prom on the m4k.
djm [Thu, 10 Jul 2008 07:42:14 +0000 (07:42 +0000)]
retry port allocation on all errors, not just EADDRINUSE; ok jakob@
djm [Thu, 10 Jul 2008 07:41:21 +0000 (07:41 +0000)]
check pf NAT source port allocation against net.inet.(tcp|udp).baddynamic
lists; prevents use of ports corresponding to well-known services.
replace a couple of arc4random()%N with arc4random_uniform(N) that
missed the first round.
ok mcbride@
david [Thu, 10 Jul 2008 05:44:54 +0000 (05:44 +0000)]
In pf_state_insert(), if the first pf_state_key_attach() fails, the
state key is freed by pf_state_key_attach(). But in the case of NAT,
there are two state keys allocated, so we must free the second key
manually. Fixes a pf_state_key_pl leak seen in certain cases with
pfsync or with pf state-insert errors.
ok mcbride@ henning@
mglocker [Thu, 10 Jul 2008 04:49:12 +0000 (04:49 +0000)]
Make cams with Sonix chipset work by avoiding excessive alternate
interface switching, which kind of crashed the device.
djm [Thu, 10 Jul 2008 02:19:28 +0000 (02:19 +0000)]
add X11 ports to default TCP baddynamic list
krw [Thu, 10 Jul 2008 00:21:39 +0000 (00:21 +0000)]
Die -r, die! Eliminate stray -r in usage text. Spotted by James Hartley.
oga [Thu, 10 Jul 2008 00:10:22 +0000 (00:10 +0000)]
the DRM_{READ,WRITE}$NUMBER() macros currently use
bus_space_{read,write}(). A bug in the code this was based on means that
this is also used for scatter gather maps, which are bus_dma memory, not
pci memory. This obviously fails. Pull them out into a function and
Special case scatter gather to use the mapped virtual address to write
instead. Makes writeback test pass on pci and pci express radeon cards.
Tested by, among others ckuethe@ and sthen@.
krw [Wed, 9 Jul 2008 23:59:44 +0000 (23:59 +0000)]
Read 'vendor' flag from ASCII disklabel since we print it. Fixes
PR #5872.
ok millert@ deraadt@
oga [Wed, 9 Jul 2008 23:33:07 +0000 (23:33 +0000)]
Fixup AGP_MODE{GET,SET}_RATE() macros. the agp 2.0 spec defines that the lowest
three bits are for the current agp rate. not the lowest two. Otherwise we
preclude agp 4x mode.
It's a bit different for agp 3.0, but we don't have the bits for that yet.
Tested by several as part of a larger diff.
deraadt [Wed, 9 Jul 2008 22:37:09 +0000 (22:37 +0000)]
sync
djm [Wed, 9 Jul 2008 20:23:47 +0000 (20:23 +0000)]
automatically populate net.inet.(tcp|udp).baddynamic with the
contents of /etc/services so as to avoid randomly allocating
source ports that correspond to well-known services. Auto-filling
of the baddynamic tables is performed before reading sysctl.conf,
so it is still possible to add or subtract ports, or override the
autofilling entirely there.
Note that this requires a new kernel and /sbin/sysctl.
feedback markus@ ok markus@ deraadt@ millert@
djm [Wed, 9 Jul 2008 20:20:45 +0000 (20:20 +0000)]
expand the net.inet.(tcp|udp).baddynamic dynamic source port
skipping bitmasks to cover the entire 65536 port space - previously
they covered 512-1024 only.
sysctl needs to be updated to cope with this change; please
"make includes" before rebuilding it.
feedback millert@ ok millert@ deraadt@ markus@
jakob [Wed, 9 Jul 2008 20:10:30 +0000 (20:10 +0000)]
let the kernel choose the random port. code from djm@. ok markus@.
sobrado [Wed, 9 Jul 2008 20:08:13 +0000 (20:08 +0000)]
missing new-line character.
sobrado [Wed, 9 Jul 2008 19:58:28 +0000 (19:58 +0000)]
an ellipsis is not an optional argument.
sobrado [Wed, 9 Jul 2008 19:41:56 +0000 (19:41 +0000)]
documentation tweaks.
jakob [Wed, 9 Jul 2008 19:04:55 +0000 (19:04 +0000)]
reintroduce our own shuffle ID generator. ok djm@ millert@
jakob [Wed, 9 Jul 2008 19:02:52 +0000 (19:02 +0000)]
merge and resolve conflicts introduced by 9.4.2-P1
reyk [Wed, 9 Jul 2008 17:24:14 +0000 (17:24 +0000)]
always verify that the received dns response id matches our request.
reyk [Wed, 9 Jul 2008 17:16:51 +0000 (17:16 +0000)]
Use OpenBSD's knuth shuffle algorithm of random values from bind to
produce the DNS request ids instead of a simple per-request
arc4random(). This ensure randomness but also satisfies the
non-repeating property we need.
ok deraadt@
reyk [Wed, 9 Jul 2008 17:07:32 +0000 (17:07 +0000)]
remove an unused variable that is a leftover from the old alg.
ok deraadt@
reyk [Wed, 9 Jul 2008 14:57:01 +0000 (14:57 +0000)]
also set the protocol, either TCP or UDP, in the NAT lookup. this
unbreaks NAT lookups with UDP; tested as a transparent DNS relay.
reyk [Wed, 9 Jul 2008 14:06:44 +0000 (14:06 +0000)]
only use SOCK_STREAM for TCP in bindany(), otherwise SOCK_DGRAM for UDP.
millert [Wed, 9 Jul 2008 13:56:10 +0000 (13:56 +0000)]
Incorporate Otto's yacc skeleton fix.
reyk [Wed, 9 Jul 2008 10:50:34 +0000 (10:50 +0000)]
update the relay dns code to open a new udp socket to send the
forwarded dns request to the server instead of sending from the server
socket. this will fix the limitation the the dns relay had to listen
to the "0.0.0.0" address, and will also enable relayd to use the udp
source port randomization. relayd will know randomize the source port
(on OpenBSD) and DNS request identifier for the clients behind it.
ok pyr@
thib [Wed, 9 Jul 2008 09:30:51 +0000 (09:30 +0000)]
Remove an XXX comment about using the same pool for mfs and ffs, since
mfs is using the ffs code and its the same object it would make no sense
having two seperate pools...
ok art@
brad [Wed, 9 Jul 2008 02:47:03 +0000 (02:47 +0000)]
Simplify the match function a bit by just returning the result from
pci_matchbyid(). This is the only driver that will match against
this hardware so it is not necessary to return a higher priority
than what pci_matchbyid() returns.
ok mbalmer@
sobrado [Tue, 8 Jul 2008 21:39:52 +0000 (21:39 +0000)]
sort options in manual page; display a better usage.
sobrado [Tue, 8 Jul 2008 21:30:15 +0000 (21:30 +0000)]
fix double "usage:"
martynas [Tue, 8 Jul 2008 21:07:57 +0000 (21:07 +0000)]
- add support for recursive transfers (but not for floppies), e.g.
'mget -cr 4.*' would recursively fetch (-r), and resume the previous
transfers (-c) of 4.X release directories
uses local matching (fnmatch), but only for recursive transfers.
current behavior is not changed in any way.
- while here, ifndef SMALL debugging stuff, this saves some space,
for floppies
- some debugging code was enabled for non-debugging mode, checks
assume debug is set to zero, but it's not initially set
- all "Confirm with" prompts are forced, remove redundant argument
- fix usage: -C and -c are not available for SMALL
discussed a year ago w/ pyr@
looks good to millert@
previous version looked good to pyr@
man page tweaks & ok jmc@
otto [Tue, 8 Jul 2008 15:06:50 +0000 (15:06 +0000)]
Fix an venerable bug: if we're reducing a rule that has an empty
right hand side and the yacc stackpointer is pointing at the very
end of the allocated stack, we end up accessing the stack out of
bounds by the implicit $$ = $1 action. Detected by my new malloc,
experienced by sturm@ on sparc64; ok deraadt@
dlg [Tue, 8 Jul 2008 13:41:20 +0000 (13:41 +0000)]
basic manpage for vmt(4)
claudio [Tue, 8 Jul 2008 13:14:58 +0000 (13:14 +0000)]
Use correct format string specifier for int argument. Don't try to print it
as string. Fixes crash seen by Peter Bristow. "obviously ok" henning@
joris [Tue, 8 Jul 2008 12:54:50 +0000 (12:54 +0000)]
missed in last commit, to make things compile cleaner
joris [Tue, 8 Jul 2008 12:54:13 +0000 (12:54 +0000)]
make these compile cleanly
joris [Tue, 8 Jul 2008 12:29:58 +0000 (12:29 +0000)]
use cf->fd in cvs_remote_sendfile() instead of using a local
variable that is only used once, which is in this case.
joris [Tue, 8 Jul 2008 12:25:47 +0000 (12:25 +0000)]
bump version to 4.4
dlg [Tue, 8 Jul 2008 12:17:48 +0000 (12:17 +0000)]
this makes the code in sdattach less dense by collapsing the flags we pass
to all the scsi midlayer code into a local variable.
ok krw@ marco@
ajacoutot [Tue, 8 Jul 2008 11:04:28 +0000 (11:04 +0000)]
Typo in summarize output.
ok sthen@
brad [Tue, 8 Jul 2008 05:59:39 +0000 (05:59 +0000)]
Remove the IDE_PCI_CLASS_OVERRIDE quirk flag for the Intel AHCI controllers
as they're of the subclass SATA and the SiI3512 SATA controller as it is of
the subclass MISC.
ok jsg@
dlg [Tue, 8 Jul 2008 05:21:59 +0000 (05:21 +0000)]
vmt(4) is a kernel level implementation of the vmware tools.
it only provides the hosts machines clock as a timedelta sensor so far.
getting it into the tree so people can work on it as suggested by fgsch@
krw [Tue, 8 Jul 2008 01:46:24 +0000 (01:46 +0000)]
Update 2300 firmware from 3.01.20 (Dec 19, 2002) to 3.03.19 (Nov
30, 2005). From mjacob via FreeBSD. No known code dependency, and
prepares ground for major isp update.
Tested on a 2312 by dlg@.
ok dlg@ deraadt@
brad [Mon, 7 Jul 2008 23:41:58 +0000 (23:41 +0000)]
Comment correction, actually -> actual
ok henning@
stevesk [Mon, 7 Jul 2008 23:32:51 +0000 (23:32 +0000)]
/*NOTREACHED*/ for lint warning:
warning: function key_equal falls off bottom without returning value
ok djm@
kettenis [Mon, 7 Jul 2008 23:22:27 +0000 (23:22 +0000)]
Match on XMITS (which is a PCI-X Schizo variant found on Sun Fire
E2900/E4900/E6900/E20K/E25K systems). There's a fairly good chance it'll
just work.
deraadt [Mon, 7 Jul 2008 22:08:12 +0000 (22:08 +0000)]
sync
mglocker [Mon, 7 Jul 2008 18:07:51 +0000 (18:07 +0000)]
- Improve negotation and fix some more DPRINTFs.
thib [Mon, 7 Jul 2008 17:16:27 +0000 (17:16 +0000)]
bcachestats got bumbed too u_int64_t's and I forgot about
munging systat to handle the field with;
pointed out by mickey
ok canacar@
oga [Mon, 7 Jul 2008 16:29:57 +0000 (16:29 +0000)]
The current drm_locked_task*() code sometimes tries to sleep in an
interrupt handler.
This is bad and wrong. So change it so that if we can't immediately grab
the hardware lock, to just leave the task flagged so that we can run it
when we release the lock. The linux implementation uses a similar
scheme.
Tested by guenther@, landry@ and bernd@. Also tested by many a while
ago as part of a larger diff.
jdixon [Mon, 7 Jul 2008 15:53:15 +0000 (15:53 +0000)]
Rework the ntpd question to default to no, and ask for the NTP server only if user chooses yes. Easier than the 3-part question and requires far fewer keystrokes to enable the 'default'.
ok krw@
kettenis [Mon, 7 Jul 2008 14:46:18 +0000 (14:46 +0000)]
Extend sbbc(4) to provide a console driver for the v1280.