Commit Graph

107855 Commits

Author SHA1 Message Date
phx
d7852f7e49 bppcsc(4) 2011-01-14 10:05:14 +00:00
phx
4b0a64a12a regen 2011-01-14 10:03:44 +00:00
phx
65ec95e637 Driver for BlizzardPPC 603e+ SCSI host adatper.
Patch submitted by Radoslaw Kujawa.
2011-01-14 10:01:12 +00:00
reinoud
20846619eb Metadata partition (v2.50+) bugfix commit :
* fix copying of the extents of the metadata node to the metadatamirror node;
  it was not copying all extents.

* fix truncing metadata partition:
   * fix endian conversions
   * fix information length calculation so its truncated to the right length!

* allow for setting maximum extent length in extent merging. This is needed
  since extents in the metadata partition files are only to be in allocation
  unit sizes.

* adjust grow and shrink node to set the granularity of the maximum length of
  an extent when encountering a metadatafile or metadatamirror file.
2011-01-14 09:09:18 +00:00
jmcneill
f0d64b3259 hda_error->hda_debug when tracing an adc assoc fails 2011-01-14 03:16:37 +00:00
rmind
7146b2f61d Retire struct user, remove sys/user.h inclusions. Note sys/user.h header
as obsolete.  Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.
2011-01-14 02:06:22 +00:00
phx
1992693730 Recognize Amiga 600 model.
Patch submited by Radoslaw Kujawa.
2011-01-13 22:02:05 +00:00
phx
6f325f1347 Configure transfer mode registers to PIO mode. It seems to work without, but
just to be on the safe side.
2011-01-13 21:54:14 +00:00
skrll
e44006ac79 KNF 2011-01-13 21:44:13 +00:00
skrll
4dfecf969c Redo the way devices are found.
Probe "Snake" machines with PDC_MEMMAP and others with PDC_SYSTEM_MAP.

Some PDCs don't tell us about all devices and/or the whole device tree.
Walk each bus to find these unreported devices.
2011-01-13 21:15:13 +00:00
pooka
a4d5652afb Introduce RUMP_LOCALPROC_P() macro and use it. 2011-01-13 15:38:29 +00:00
jruoho
f82830f374 Postpone the sensor update with sysmon_taskq(9). 2011-01-13 14:25:33 +00:00
pooka
07b10a7b73 Add some support for unionfs (not built by default). It's still
missing at least opaque directory support, but until someone figures
out how that should work on ffs (see PR kern/kern/44383), there's
no point in trying to figure out how it should work here.
2011-01-13 13:35:11 +00:00
reinoud
914876a617 Fix the case in where a file with a latin1 file name was created. It was then
erronously entered as thelatin1 file name in the dirhash whereas the matching
routing assumes both UTF-8. This would result in a file being created but not
stat-able since the dirhash couldn't find the entry unless it was remounted.
2011-01-13 13:13:31 +00:00
jruoho
3c51ce4b05 Upon request from jmcneill@, put the check back that prevents unnecessary
readings during the sysmon_envsys(9) poll cycle. Some systems (notably,
Asus EeePC) have so badly implemented AML that reading the values via
envstat(8) alone can cause considerable delays.
2011-01-13 13:05:13 +00:00
hannken
11f5c95248 Layer_revoke(): change previous to always take an extra reference on the
lower vnode before passing down the VOP_REVOKE().  This way VOP_REVOKE()
on a layered file system always inactivates and closes the lower vnode.

Should finally fix PR kern/43456.
2011-01-13 10:28:38 +00:00
pooka
81d086b2f7 Respect DOWHITEOUT when removing a directory. 2011-01-13 10:26:47 +00:00
pooka
bf67d44461 support MNT_RDONLY 2011-01-13 07:27:35 +00:00
pooka
4a92140584 allow file system to decide if it can be downgraded from r/w to r/o 2011-01-13 07:25:50 +00:00
pooka
f5c7baed05 fix incorrect value of IMNT_MPSAFE in __IMNT_FLAG_BITS 2011-01-13 07:23:39 +00:00
jruoho
f861d1bc75 Clean-up acpi_print(). XXX: The 'acpiverbose' module is still broken... 2011-01-13 05:58:05 +00:00
mrg
1f2bf84678 introduce a hack to workaround the savefpstate IPI get's NULL
struct fpstate *.

add a new entry point ipi_savefpstate() that is used for this IPI
instead of the plain ipi_savefpstate().  check for %o0 being NULL,
and if so, just return.

add event counters for the savefpstate IPI, and another one for
when it detects the NULL problem.

make the cpu_info struct xmpsg be aligned to a single cache line.

with this change applied (and another minor change in testing) my
SS20 with dual SM75's has survived for 17 hours on build.sh -j5,
and has reported 7 NULL savefps.  (the minor change seems to have
a significant effect at reducing this number, but more testing is
needed for it.)


XXX:  this is horrible and we really need to find the real problem
XXX:  but this should let people use sparc smp again, and fixes
XXX:  for the real problem can be tested by seeing if any of the
XXX:  savefp IPI null counter becomes non-zero.
2011-01-13 05:20:27 +00:00
jruoho
710112e7c7 Scan for docking stations. 2011-01-13 05:14:48 +00:00
jruoho
3dd22c3c2c Do not try to attach more ACPI CPUs than the amount of "real" CPUs. 2011-01-13 04:18:19 +00:00
jruoho
55bd26d109 Add a comment. 2011-01-13 03:45:38 +00:00
jruoho
99d6864d21 Move the function that counts the CPUs from acpicpu(4) to the MD layer. 2011-01-13 03:40:50 +00:00
jmcneill
b17fda8006 Handle overlapping variable-range MTRRs following the rules defined in
section 11.11.4.1 "MTRR Precendes" of the Intel(R) 64 and IA-32
Architectures Software Developer's Manual, Volume 3A.
2011-01-12 23:52:38 +00:00
joerg
d3a052c472 Allow use of traditional CPP to be set on a per platform base in sys.mk.
Honour this for dependency processing in bsd.dep.mk.  Switch i386 and
amd64 assembly to use ISO C90 preprocessor concat and drop the
-traditional-cpp on this platform.
2011-01-12 23:12:10 +00:00
joerg
664edd5c61 Drop the build date from the iasl binary. 2011-01-12 22:53:16 +00:00
skrll
a40358ae2d LOCKDEBUG isn't used here. 2011-01-12 21:18:23 +00:00
pooka
5f240a5279 unionfs voodoo 2011-01-12 21:08:55 +00:00
pooka
0312c5cee5 Explicitly set *vpp to NULL in lookup. At least reluckup gets
upset if we don't explicitly nullify vpp in the error case.
2011-01-12 19:31:39 +00:00
phx
d7e7e38c1b Rewritten to take advantage of the new MI motoi2c code. 2011-01-12 18:09:03 +00:00
phx
77d12ff8eb Fixed DPRINTF macro to make it compile when DEBUG is not defined. 2011-01-12 18:06:26 +00:00
phx
846d34516e Include i2cvar.h for i2c_controller, which is usually not needed by devices
using this MI driver, so they shouldn't have to bother with that.
2011-01-12 18:05:18 +00:00
pooka
0f41405209 reject r/o mount attempts 2011-01-12 17:20:54 +00:00
pooka
8c4600a2ed Mark rootfs r/w. Thanks to the incredible machine known as vfs,
the only one who noticed the inconsistency of writing to a r/o fs
was unionfs.
2011-01-12 17:14:34 +00:00
pooka
6f53b4a35d make this happy to compile standalone 2011-01-12 16:12:30 +00:00
tsutsui
e3b6673e18 Pull a fix from src/sys/net/if_ethersubr.c rev. 1.185:
Fix off by one.
2011-01-12 15:32:43 +00:00
tsutsui
d6f76b4a7b Fix off by one in ether_aton_r(). Noticed by "arp info overwritten" warning.
(how could it be missed for months?)
2011-01-12 15:30:40 +00:00
pooka
2bd6ac2300 add spop_procexit 2011-01-12 12:51:47 +00:00
pooka
b0bfbf33ac When the client and the rump kernel are the same host process, all
threads blocking in the kernel automatically exit when the process
exists.  However, for the sysproxy case this does not hold.
Typically it's ~harmless, but e.g. in the case of socket binding
following by poll it gets annoying.

Introduce sysproxy procexit, which wakes up all threads blocking
on a condition when a process's communication socket is closed.
The code is a little different from the regular kernel simply
because in a rump kernel l_mutex is not available at all times
(this is because scheduling happens on every kernel entry and exit,
and that path must be kept lockless for any reasonable performance).
Instead, use gating which makes sure all threads are either out of
the cv code or suspended in a well-known state.  Then, wake up the
threads and tell them to get the hell out of our galaxy.
2011-01-12 12:51:21 +00:00
nisimura
9fb96e0290 - remove duplicate an opt include line.
- restore a lost indent.
2011-01-12 07:38:43 +00:00
jym
c7b98903de Introduce "vifname" keys for Xen domains. Its value is the interface
name for the vif, e.g. xvif(4) for dom0, and xennet(4) for domU.

ok bouyer@.

See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html
2011-01-11 23:22:19 +00:00
jruoho
013c599031 Restore the interrupt level in cpu_reboot() before calling the
acpi_enter_sleep_state() function.
2011-01-11 21:10:17 +00:00
jruoho
c2df94f224 Disable all GPEs when entering S5. Also add a comment that the function
acpi_enter_sleep_state() must be called with interrupts enabled.
2011-01-11 20:35:24 +00:00
jruoho
049e68f4dd Use pmf_device_register1(9) and add cpu_shutdown(), which calls cpu_suspend(). 2011-01-11 18:25:25 +00:00
tsutsui
bb43e1b7cf ANSIfy. 2011-01-11 16:19:38 +00:00
kefren
6469d79cd6 add advlock to rumpfs, ok pooka@ 2011-01-11 14:05:32 +00:00
kefren
2f07b81209 add advlock to puffs. ok pooka@
should fix kern/43321
2011-01-11 14:04:54 +00:00