Commit Graph

229072 Commits

Author SHA1 Message Date
mrg
3b01e49a4e disable KMS for now; it breaks UMS + (old) radeondrm. 2014-07-27 23:24:19 +00:00
riastradh
c9d79060eb callout_ack returns void, not bool. 2014-07-27 21:35:07 +00:00
skrll
aaedf76019 More fixes as a step towards ARM_MMU_EXTENDED on RPI.
- don't set CPU_CONTROL_SYST_ENABLE in arm11x6_setup for ARM_MMU_EXTENDED

- Use the new MMU defines for V6N

- pull in arm/cpuconf.h in vmparam s that VM_MAXUSER_ADDRESS gets set
  correctly.
2014-07-27 21:31:34 +00:00
palle
ad88cf8b64 sun4v: Update TODO list with relevant sun4v stuff 2014-07-27 17:46:43 +00:00
hannken
0ae0e6c566 Change procfs from hashlist to vcache.
- Key is (type, pid, fd)
- Remove argument "p" from procfs_allocvp().  It is only used
  when "type == PFSfd".  Lookup the proc with proc_find() when
  procfs_loadvnode() needs it.
- Use a vfs_vnode_iterator for procfs_revoke_vnodes().
2014-07-27 16:47:26 +00:00
palle
cd5ad6f488 sun4v: Introduce a new macro ALTERNATE_GLOBALS (matching NORMAL_GLOBALS). Two new helper macros ENABLE_INTERRUPTS and DISABLE_INTERRUPTS are also created. With these changes the GENERIC.UP kernel will reach rootmount on sun4v systems - ok martin@ 2014-07-27 16:37:47 +00:00
apb
91bc8fa990 Run scripts at build time via ${HOST_SH} 2014-07-27 14:24:17 +00:00
riastradh
6dedd04ff8 Linux work is queued in intr context, so block intrs when locking.
(Yes, this getting out of hand.)
2014-07-27 14:02:48 +00:00
martin
6f08ad218d Add usr/sbin/sysinst 2014-07-27 10:19:12 +00:00
skrll
8e15c75439 Prepare for ARM_MMU_EXTENDED 2014-07-27 09:04:09 +00:00
skrll
1a756f61d4 unifdef -U__OLD_INTERRUPT_CODE 2014-07-27 08:55:39 +00:00
apb
7bc384757f In rc.subr, add _have_rc_postprocessor function and use it instead of
inline tests like [ -n "${_rc_postprocessor_fd}" ]. The new function
performs a few new tests, including verifying that /etc/rc is still
running (using a new _rc_pid variable set by /etc/rc).

This is intended to deal with the case that a script run from /etc/rc
spawns a background process, then /etc/rc exits, but the background
process still has environment variables inherited from /etc/rc.

Fixes PR 46546.
2014-07-27 07:46:46 +00:00
dholland
e3566c1bef Fix illegal snprintf usage noted in PR 47976 by simplifying it away:
instead of consing up a string and printing it to stdout, just print
to stdout. Not as compositionally tidy, but much simpler and perfectly
adequate here.
2014-07-27 04:46:48 +00:00
dholland
d78881479c Fix broken snprintf usage; noted in PR 47976 from Henning Petersen.
As a bonus, this removes the nonliteral format arguments.
2014-07-27 04:38:03 +00:00
dholland
dfb86850e0 Remove broken snprintf usage (noted in PR 47976) and replace with
something simpler.
2014-07-27 04:32:23 +00:00
dholland
0858ed9253 Fix snprintf usage; from Henning Petersen in PR 47976. 2014-07-27 04:26:23 +00:00
dholland
810ebb8769 Fix snprintf usage and, while here, don't trundle off the end of an
array. Part of PR 47976 from Henning Petersen.
2014-07-27 04:23:44 +00:00
dholland
c08b6bfde0 Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.
2014-07-27 04:16:09 +00:00
dholland
9b97857eeb Fix misplaced parenthesis, from Henning Petersen in PR 44804. 2014-07-27 03:49:25 +00:00
dholland
9a78d593a7 "internally consistency checks" -> "internal consistency checks" 2014-07-27 03:34:41 +00:00
dholland
19f9d57e0f Fix typo in previous. Eesh. 2014-07-27 02:56:09 +00:00
riastradh
d2298a8f97 Revert ttm_bo.c 1.3 and try to fix the double-free properly.
bo->destroy doesn't ttm_tt_destroy or ttm_tt_fini anything.  Trouble
is that ttm_tt_fini expects the swap storage to still be there, and
ttm_tt_destroy -- which is what calls ttm_tt_fini by way of
ttm->func->destroy -- has already nulled it out.
2014-07-27 00:40:39 +00:00
joerg
0bb0ad593a PR 49036: net.inet6 has not been created when the sysctl constructor
for net.inet6.multicast is run.
2014-07-26 22:21:16 +00:00
riastradh
3996e8af0d Break overlong lines. 2014-07-26 21:36:40 +00:00
riastradh
a7dd8986b4 Don't forget to decrement the acquired count too. 2014-07-26 21:35:06 +00:00
riastradh
e44e30710d Make sure the low bits, not the high bits, of the offset are zero! 2014-07-26 21:19:45 +00:00
riastradh
ae23e861e3 Let the drm driver decide what part of what object gets mmapped.
Pass the file around too so radeon/ttm can get at it to verify access.

Add drm_gem_or_legacy_mmap_object for drivers to choose the previous
behaviour, like i915.
2014-07-26 21:15:45 +00:00
riastradh
609cad5551 drmkms_ttm is not split into a module (yet). 2014-07-26 21:12:43 +00:00
alnsn
5577ba7875 Don't destroy mutexes because the module can't be unload. 2014-07-26 21:07:45 +00:00
dholland
232c06f47a Add d_discard to a cdevsw I apparently missed. 2014-07-26 20:24:33 +00:00
wiz
dd85589675 Sort sections. 2014-07-26 20:04:05 +00:00
dholland
4808d892e4 Add a dummy sysinst architecture for ports that don't have their own yet.
This makes the presence of sysinst in /usr/sbin MI (as intended) --
remember that one of the goals is for sysinst to be able to install
chroots, and installing a chroot is a sensible operation on all ports,
even those for which an installer per se might not make sense.

Currently this dummy architecture fails instead of doing anything, but
as they say, one thing at a time.
2014-07-26 19:56:30 +00:00
dholland
9171ee4425 Add /usr/sbin/sysinst. 2014-07-26 19:35:59 +00:00
dholland
eed67d2502 Don't descend into sysinst. 2014-07-26 19:35:10 +00:00
dholland
779842189d Adjust for sysinst move. 2014-07-26 19:34:08 +00:00
dholland
29ed33b85f Descend into sysinst. 2014-07-26 19:32:37 +00:00
dholland
e52187bbbb Update for building in usr.sbin. 2014-07-26 19:32:22 +00:00
dholland
50dbef1a09 Move sysinst sources to usr.sbin.
This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.
2014-07-26 19:30:39 +00:00
riastradh
322d2c791f Move CONFIG_X86 from files.i915drmkms to drm_os_netbsd.h. 2014-07-26 18:13:44 +00:00
tsutsui
74299d30d8 Comment out options and devices to sync GENERIC rev 1.90. 2014-07-26 17:34:31 +00:00
tsutsui
428f948879 Shrink GENERIC kernel to fit to bootloader's limit (2MB).
Maybe now we can't call it GENERIC, but it still boots on TME.
2014-07-26 17:32:07 +00:00
tsutsui
80f4cef428 Move sun3 bootloader address to allow loading growing GENERIC kernels. 2014-07-26 17:24:04 +00:00
palle
88b1626471 Improved the NORMAL_GLOBALS macro in the sun4u case, so only the relevant bit (AG) in %pstate is affected - ok martin@ 2014-07-26 17:16:41 +00:00
rmind
8865b1bf3d npf_conn_conkey: fix a comment. 2014-07-26 16:42:03 +00:00
riastradh
d9c17c4088 Avoid needless #ifdef __i386__ with judicious use of MIN. 2014-07-26 14:27:40 +00:00
riastradh
e5a34f8222 Fix __raw_i915_read64 on i386. From rjs@. 2014-07-26 14:26:04 +00:00
riastradh
d8efb7e997 Use tvtohz instead of ad-hacking it myself, suggested by apb@. 2014-07-26 14:24:08 +00:00
tsutsui
498146de96 Reorganize and bump VM related constants.
- sync VM_MAXUSER_ADDRESS and VM_MAX_ADDRESS with other hp300 derived ports
  and use same definitions for USRSTACK as other m68k ports
  (no worth to have sun3/sunos compat in these days)
- remove unused KUSER_AREA
- bump MAXTSIZ, MAXDSIZ, and MAXSSIZ

These changes allow my 64MB TT030 build pkgsrc/textproc/icu
which seems to require >200MB VA space.
(note our current 040/060 pmap implementation can't handle >224MB VA size)
2014-07-26 13:24:34 +00:00
tsutsui
f616495c51 Sync VM_MAXUSER_ADDRESS and VM_MAX_ADDRESS with other hp300 derived ports.
There is no particular reason to have different values among m68k ports.
Briefly checked on LUNA-II.
2014-07-26 12:48:07 +00:00
rjs
e3f09db334 Fix non debug build. 2014-07-26 12:27:57 +00:00