Commit Graph

191275 Commits

Author SHA1 Message Date
christos c48dffd069 perhaps this fixes the build issue? 2010-06-03 14:32:31 +00:00
veego 51cdef0f36 Use MAP_FILE|MAP_SHARED instead of MAP_FILE for the flags parameter of mmap(2).
Patch is from martin.

Solves my own PR kern/43346
2010-06-03 12:40:52 +00:00
pooka 8b0211dc06 Implement a sort-of pagedaemon: adjust all memory allocators to go
through an in-rumpkernel hypermemory allocator which knows it should
kick the pagedaemon and block in case ``waitok'' memory allocation
fails.

This allows us to recover from some out-of-memory situations.
Realworld'istically speaking (as opposed to whatever "should be"
theory), these OOM situations will happen extremely rarely if ever
when our hypervisor is a regular process.  Speculatively, this
should be useful for other types of hosts.

issues remaining:
 * the hypervisor does not know how to reclaim kernel memory (and
   for the reason I stated above, I'm not sure if it makes sense
   to teach the current implementation about that)
 * vfs memory (buffers, vm object pages etc.) is not reclaimed
2010-06-03 10:56:20 +00:00
phx 7e7ef0c0e2 Applied a patch by Toru Nishimura:
Fixed kmutex usage error and replaced tsleep by cv_waitsig.
Now "cat /dev/satmgr" no longer panics when pressing a button.
2010-06-03 10:44:21 +00:00
pooka d71ac89211 Report result of pool_reclaim() from pool_drain_end(). 2010-06-03 10:40:17 +00:00
ghen 7f1fb6416b .include <bsd.lib.mk> to handle the pkgconfig file correctly (noted by veego). 2010-06-03 10:38:34 +00:00
joerg 2d399c649e Needs additional single quotes to keep the double qoutes. Magic... 2010-06-03 10:08:34 +00:00
veego 679aad1fc6 * Add missing .WAIT before libdrm_intel since it now depends on libdrm
* Move libchromeXvMC further down since it depends on some other libraries
2010-06-03 09:49:45 +00:00
veego 6cb632ce43 Link against libXext, libX11, libXv, libXvMC and libdrm to fix a hidden
dependency
2010-06-03 09:44:19 +00:00
veego a23843d4e1 Link against libdrm to fix a hidden dependency 2010-06-03 09:43:16 +00:00
veego 86187ea55a Link against libz to fix a hidden dependency 2010-06-03 09:42:40 +00:00
plunky 19bcb70bf8 disable the DNS tests which rely on external hosts, as
they are not useful with automated testing systems without
internet connectivity.
2010-06-03 07:08:41 +00:00
dholland 30dd36f330 Note that set -o tabcomplete requires either set -o emacs or set -o vi
to work.
2010-06-03 02:05:02 +00:00
msaitoh 753e776f4d Fix DMA setting for read/write on conventional PCI bus devices.
This bug was added in rev. 1.166. Sorry...
2010-06-03 00:05:36 +00:00
dyoung 0d73006091 Prevent if_detach() from crashing while it walks the routing table
to find and unlink routes that reference the detached ifnet: make
if_rt_walktree() return ERESTART whenever it has deleted a route.
Whenever rt_walktree() returns ERESTART, if_detach() restarts it.

I believe that this fix resembles one by Jonathan Kollasch or by someone
else, which has languished in a PR for too long.  Sorry!

Tested by me and by Jeff Rizzo.

XXX It's supposed to be safe for rn_walktree() to apply to the routing
XXX table a routine that may delete routes.  Why isn't it safe in
XXX practice?
2010-06-02 23:41:14 +00:00
martin bcf37d6abe Move all miiverbose/module related functions from ukphy.c to mii_physubr.c -
ukphy is not included in all kernels, but mii_physubr.c should be in every
kernel that has a phy.
2010-06-02 19:47:34 +00:00
joerg 826b0b1f17 XORGVERSION should be a single quoted expression as it represents a
single argument for .TH
2010-06-02 19:40:12 +00:00
jakllsch 41e9277a2a Improve EHCI isochronous code, fix scheduling.
- Create and use symbolic constants.

 - Convert some switch statements to functionally-similar caculations.

 - Correct scheduling interval of high-speed isochronous transactions.
   Previous calculation produced half the intended rate.
2010-06-02 18:53:39 +00:00
pooka ae456b5717 Check return value of posix_memalign ... always helpful to not return
garbage memory in case of failure.
2010-06-02 18:15:35 +00:00
dholland 90345ac358 Remove orphaned heading "Mice" 2010-06-02 18:05:28 +00:00
dholland 7af6d770a0 COMPAT_43 should not be sorted between COMPAT_40 and COMPAT_50. 2010-06-02 18:02:57 +00:00
jakllsch 572a739f05 Add symbolic constant for number of USB 2.0 microframes per frame. 2010-06-02 17:27:57 +00:00
tnozaki a07e73ee74 uint8_t -> unsigned char, int16_t -> short. 2010-06-02 16:04:52 +00:00
pooka cbed8ae4b7 it's a wonderful static 2010-06-02 15:48:49 +00:00
tnozaki bf280d2720 remove duplicated towctrans internal function. 2010-06-02 15:47:25 +00:00
pooka 03d9f8436f In aiodone, call uvm_pageout_done() with number of PG_PAGEOUT pages
processed.
2010-06-02 12:07:03 +00:00
pooka 8e9f71e9f5 rumpvm_init -> uvm_init to get rid of local prototype.
no functional change
2010-06-02 10:55:18 +00:00
hannken 67c30e0802 Initialize the initial snap block list's count.
From Antti Kantee <pooka@netbsd.org>.
2010-06-02 09:56:59 +00:00
joerg 06c85aad23 Restore PHYSMEM_MAX* options (hi cegger!) 2010-06-02 09:43:12 +00:00
kiyohara 742d392da8 Move memory protection parameters to MI part.
Gtpci believes the initialization of the firmware(boot-loader) if protection
information is not obtained.
2010-06-02 06:44:32 +00:00
kiyohara 17a4632c34 Set NULL to tag when the property doesn't get it. 2010-06-02 06:33:40 +00:00
kiyohara a52a1474bf Remove unused gpio.h. 2010-06-02 06:24:59 +00:00
kiyohara 3224e25a97 Add Marvell Gigabit Ethernet Controller on SC/SoC.
Will support on ofppc soon.
  Tested on G4+PegasosII (kiyohara@)
	    G3+PegasosII (phx@)
2010-06-02 06:18:11 +00:00
kiyohara e9d9dba532 Use kmem(9) instead of malloc(9) in gtidmac_attach(). 2010-06-02 06:05:32 +00:00
kiyohara dedb67d0a4 Erase the old definition macro that forgot to be erased. 2010-06-02 06:02:20 +00:00
kiyohara d2e6cc1913 Remove unused header-file. 2010-06-02 05:59:36 +00:00
agc 79874ba501 Check for a null keyring before listing keys - with thanks to Jeff Rizzo
for the problem report.
2010-06-02 03:38:01 +00:00
agc d4dd9b7f87 commit version number change 2010-06-02 03:15:14 +00:00
jruoho 9a9c0b82d0 ACPICA version 20100528 has been released. 2010-06-02 02:24:46 +00:00
joerg e4c9126b4d Install mdocml's default CSS as /usr/share/man/style.css. Switch HTML
man pages to use mandoc unconditional as it gives reasonable output for
all man pages, not only a subset of mdoc(7).  Use the newly installed
style.css for formatting and produce hyperlinks for .Xr.
2010-06-01 23:29:09 +00:00
mjf e0e10b0607 Add __cacheline_aligned and __read_mostly annotations.
These annotations help to mitigate false sharing on multiprocessor
systems.

Variables annotated with __cacheline_aligned are placed into the
.data.cacheline_aligned section in the kernel. Each item in this
section is aligned on a cachline boundary - this avoids false
sharing. Highly contended global locks are a good candidate for
__cacheline_aligned annotation.

Variables annotated with __read_mostly are packed together tightly
into a .data.read_mostly section in the kernel. The idea here is that
we can pack infrequently modified data items into a cacheline and
avoid having to purge the cache, which would happen if read mostly
data and write mostly data shared a cachline. Initialisation variables
are a prime candiate for __read_mostly annotations.
2010-06-01 22:13:30 +00:00
joerg 9d6b8287eb Update to mdocml-1.10.0 2010-06-01 21:32:39 +00:00
joerg ab554970cf Merge mdocml-1.10.0 2010-06-01 21:27:23 +00:00
joerg 0a84adc561 Import mdocml-1.10.0:
- basic support for the low-level roff macros
- various cleanups and improvements
2010-06-01 21:17:49 +00:00
wiz 7163aafc26 Fix typo in sdpd, reported by Jukka Salmi in PR 43401.
This also affected bthcid, so I also fixed it there.
2010-06-01 21:08:13 +00:00
pooka e3c273abc1 Don't pass "canfail" down to rumpuser_malloc -- there's quite little
we can do with that info way down there.  Instead, pass alignment.
Implement rumpuser_malloc() with posix_memalign().
2010-06-01 20:11:33 +00:00
plunky 6d4cc93fdf adjust autoconfig output: this item is part of a verbose line 2010-06-01 19:20:43 +00:00
pooka 89600f9afb Always use rumpuser_malloc() for allocating both poolpage and
poolpage_cache -- its bootstrap cost is slightly higher than
anonmmap, but it's faster in the long run.
2010-06-01 19:18:20 +00:00
christos cbd798c94b tidy up memory allocation and don't unnecessarily print "./" before names. 2010-06-01 18:20:26 +00:00
tnozaki d8217122b9 refactoring old locale-db(BSDCTYPE) loading method with mmap(2). 2010-06-01 18:00:28 +00:00