Commit Graph

191343 Commits

Author SHA1 Message Date
dholland
2264536172 Note briefly how to avoid the problem where 0 can be a valid successful
return as well as an error. Suggested by Robert Elz in follow up to PR 39392.
2010-05-29 20:32:18 +00:00
dholland
1e593d6111 Fix build without sysvipc configured, from Wolfgang Stukenbrock in PR 43376,
adjusted for current.
2010-05-29 18:55:34 +00:00
tnozaki
b3cad2b95e fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).
see ISO/IEC 9899:1999 7.18.4.3.
2010-05-29 17:45:15 +00:00
martin
c0ecacc5ea Add a driver for ArkMicroChips 3116 serial devices, used in some Nokia
phone cables and in cheap stand alone usb<->serial devices. From OpenBSD.

The hardware is crap, avoid it if possible. There is no documentation and
even the vendor supllied win32 driver gets it wrong.

This driver mostly works, but you can't send a break.
2010-05-29 17:39:41 +00:00
tnozaki
dc71c99d49 fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).
see ISO/IEC 9899:1999 7.18.4.3.
2010-05-29 17:33:57 +00:00
jakllsch
fa87e899f8 Nvidia EHCI controllers do not ignore one or more of the "Port Number",
"Hub Address", "Split Completion Mask" fields in the Queue Head marked
"This field is ignored by the host controller unless the EPS field
indicates a full- or low-speed device.".

Therefore, only populate these fields for full- and low-speed devices.

Fixes PR#37884.
2010-05-29 16:52:33 +00:00
ghen
8c57025fc1 Move "compiled" files from dist directory to reachover directory (suggested
by mrg).  Add a note in the Makefile for future upgrades.
2010-05-29 07:58:24 +00:00
cegger
88d045e3ba unload usbverbose, not pciverbose 2010-05-29 06:44:22 +00:00
rmind
efa9ba911f Rename ci_node_id to ci_package_id, as some claim that the former might
be confused with NUMA node.
2010-05-29 05:53:57 +00:00
pgoyette
3f79fb26a7 Extract USBVERBOSE into a kernel module. The module can be builtin
by defining 'options USBVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

The module is built for all architectures, whether or not USB support
exists.
2010-05-29 01:14:29 +00:00
rmind
22d67cdea8 uvm_fault_{upper,lower}_done: move drop-swap outside the page-queues lock.
Assert for object lock being held (or ref count 0) in uao_set_swslot().
2010-05-28 23:41:14 +00:00
jklos
99542d6976 Added optimization reduction for gdb/dwarf2-frame.c for Amigas. We don't
see the problem on other m68k platforms, but that could be because other
platforms don't have m68060s (except Atari, perhaps).
2010-05-28 19:11:23 +00:00
pooka
01c45b7fe9 Deal with the "we get a portably arbitrary set of headers on
different archs" problem.
2010-05-28 18:17:24 +00:00
ghen
3d292e1813 Update to xkeyboard-config 1.9. 2010-05-28 17:17:12 +00:00
pooka
d11274ecfd Improve the CPU scheduler for a host MP system with multithreaded
access.  The old scheduler had a global freelist which caused a
cache crisis with multiple host threads trying to schedule a virtual
CPU simultaneously.

The rump scheduler is different from a normal thread scheduler, so
it has different requirements.  First, we schedule a CPU for a
thread (which we get from the host scheduler) instead of scheduling
a thread onto a CPU.  Second, scheduling points are at every
entry/exit to/from the rump kernel, including (but not limited to)
syscall entry points and hypercalls.  This means scheduling happens
a lot more frequently than in a normal kernel.

For every lwp, cache the previously used CPU.  When scheduling,
attempt to reuse the same CPU.  If we get it, we can use it directly
without any memory barriers or expensive locks.  If the CPU is
taken, migrate.  Use a lock/wait only in the slowpath.  Be very
wary of walking the entire CPU array because that does not lead to
a happy cacher.

The migration algorithm could probably benefit from improved
heuristics and tuning.  Even as such, with the new scheduler an
application which has two threads making rlimit syscalls in a tight
loop experiences almost 400% speedup.  The exact speedup is difficult
to pinpoint, though, since the old scheduler caused very jittery
results due to cache contention.  Also, the rump version is now
70% faster than the counterpart which calls the host kernel.
2010-05-28 16:44:14 +00:00
phx
85bd3e3229 QNAP support (untested): PCI fixup and corrected PCI address lines (+1).
Patch submitted by Toru Nishimura.
2010-05-28 15:45:11 +00:00
wiz
1b3e363881 Bump date for previous.
Remove trailing space.
2010-05-28 13:25:54 +00:00
ghen
a2c1907824 Install pkgconfig file for xkeyboard-config. 2010-05-28 13:01:23 +00:00
ghen
1d75ab7274 Update to xkeyboard-config 1.9. 2010-05-28 12:38:34 +00:00
njoly
65a7cb608a +libgeode_drv.so.2.debug for i386. 2010-05-28 11:27:18 +00:00
njoly
f3d31032b1 un-obsolete ws.0 for i386. 2010-05-28 11:14:08 +00:00
njoly
b226c9a13c +libopenchrome_drv.so.0.debug for amd64 and i386. 2010-05-28 10:49:51 +00:00
dholland
0bf3480c62 Change getnum() to use intmax_t instead of int, so it doesn't overflow
between 2^31 and 2^32. Adjust call sites accordingly. PR 43354.
2010-05-28 07:40:53 +00:00
mrg
281afa1ed9 build libchromeXvMC on x86. 2010-05-28 06:26:55 +00:00
mrg
9a93ccfecc add / retire some xf86-video drivers. 2010-05-28 06:24:59 +00:00
mrg
3c7ac2611f we're now at mesa 7.7.1.
XXX: really really really need to make this in one place...
2010-05-28 06:22:05 +00:00
lukem
5e2fef94b5 fix MKDEBUG=yes for X11R7 libs 2010-05-28 05:39:56 +00:00
mrg
12b28a5e80 geode_drv is a .so.2. 2010-05-28 04:55:07 +00:00
mrg
739316d43b fix compile error in previous. 2010-05-28 04:16:06 +00:00
mrg
2a910e8e0a X11: Added support for xf86-video-geode and xf86-video-openchrome. 2010-05-28 04:12:58 +00:00
mrg
3c18d96e81 enable xf86-video-openchrome for x86 and xf86-video-geode for i386. 2010-05-28 04:12:02 +00:00
pgoyette
703433b08a Remove opt_pci.h - it's not needed for anything. 2010-05-28 02:38:41 +00:00
mrg
4eb959abf9 obsolete xf86-video-cyrix 2010-05-28 02:37:26 +00:00
mrg
864de3fd7b add build glue for xf86-video-geode and xf86-video-openchrome and
obsolete xf86-video-via.
2010-05-28 02:35:46 +00:00
pgoyette
512fa22526 Fix symbol name in multiple-inclusion protection. (missing trailing '_') 2010-05-28 02:24:27 +00:00
pooka
41bed623f4 .. except we need to check the flag while still clinging to iLock. 2010-05-27 23:58:38 +00:00
pooka
072ab7f0ce Assert that a VI_CLEAN vnode is not succesfully vget'd. 2010-05-27 23:54:35 +00:00
pooka
704f8889fa Mark files removed in the in-memory structure. This allows us
to do two things:

 1) properly set "recycle?" in inactive
 2) easily check if we are renaming a removed vnode.  without the
    check, it was possible to enter a dirent in the file system for
    a removed (and hence scheduled to be vcleaned) vnode.  this would
    lead to the succesful vget() of a clean vnode.  the use of the
    cleaned vnode was, however, less succesful, except for purposes
    of crashing.
2010-05-27 23:40:12 +00:00
pgoyette
f321aef79b Remove a left-over debugging call to aprint_normal()
Thanks njoly@
2010-05-27 23:13:10 +00:00
spz
ff138d4027 help the next person tripping over PR kern/43203 :
list the error messages, the reason for the error and the location where
the firmware ought to be
2010-05-27 19:27:24 +00:00
phx
811cef32d8 Added some more precise LinkStation/TeraStation and Synology product names. 2010-05-27 15:35:46 +00:00
phx
027439443b Disable EPIC_DEBUGIRQ. Reenable when needed. 2010-05-27 14:54:42 +00:00
pooka
32de8f7733 Release pathname buffers after use. 2010-05-27 13:22:02 +00:00
dholland
d6986f611b Rerun valid_format() both before and after unescaping the format
string, in case the format string contains printf conversions
assembled from escape sequences.

A better approach might be to adjust the unescape logic to avoid
generating printf conversions (e.g. convert \x25 to %% instead of %)
but that's somewhat problematic and it's not really worth taking the
trouble.

Running valid_format() only after unescaping would also be somewhat
tidier but makes printing the invalid format string problematic,
because the unescape logic runs in place.

None of these cases are really worth worrying about in detail, but now
at least they don't result in SIGSEGV.

Related to PR 43355.
2010-05-27 08:40:19 +00:00
dholland
76c7c8ecbf Fix valid_format() to be more careful about allowing only valid printf
formats.

Also, accept %a and %A, which are new since this logic was last updated,
and also allow %F even though it's not functionally different from %f.
Document these additions and bump date of man page.

Fixes PR 43355.
2010-05-27 08:30:35 +00:00
mrg
5373bec4d9 add r600_blit.c and radeon_cs.c. 2010-05-27 07:27:35 +00:00
dholland
5ef6a33bb9 Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
2010-05-27 06:58:12 +00:00
pgoyette
08d0e14947 Extract pci_verbose interface definitions into their own header file so
we don't need to include pcivar.h in the module.  pcivar.h tries to pull
in machine/pci_machdep.h which doesn't exist on all machine/architecture
combos.  Keeping track and building the module only for those that work
would have been a maintenance headache;  this change allows us to build
the module on all systems, regardless of whether the system has pci
support or not.
2010-05-27 05:53:35 +00:00
dholland
b6360c7f71 Don't recognize "+3" after -- or after the first non-option argument.
This prevents converting "+3" into "-k4.1" in places where getopt
won't recognize it, which in turn prevents silly error messages and
lossage trying to sort files whose names begin with +. PR 43358.
2010-05-27 05:52:29 +00:00
pgoyette
af152ef2f0 Minor grammar improvement in status message. 2010-05-27 05:41:54 +00:00