Commit Graph

238185 Commits

Author SHA1 Message Date
mrg ef952a545a add xf86-video-nouveau 2015-10-13 03:14:16 +00:00
mrg 40e7a16ab0 nouveau_drm.c:
- hook up an empty uvm_pagerops like radeon does.
- hook up nouveau_ttm_mmap_object().
nouveau_engine_fifo_nve0.c:
- if (cold), don't try to wait, but hard-spin until the timeout period.

with these in place, i am able to get working text-console with nouveau!


ok riastradh.
2015-10-13 01:43:47 +00:00
riastradh aada118d75 Fix comment in previous. 2015-10-13 00:42:59 +00:00
riastradh f9e0bb4791 Fix indexing convention of Linux __ffs/__ffs64 shims.
They reject zero input, and yield zero-based indexing, unlike our
ffs/ffs64, which return zero for zero and yield one-based indexing.

May let nouveau make a little more progress toward booting!

Found by mrg@.
2015-10-13 00:42:20 +00:00
pgoyette 90bf221e1f In spawn_return() we temporarily move the process state to SSTOP, but
without updating its p_waited value or its parent's p_nstopchild
counter.  Later, we restore the original state, again without any
adjustment of the related values.  This leaves a relatively short
window when the values are inconsistent and could interfere with the
proper operation of sys_wait() for the parent (if it manages to be
scheduled;  it's not totally clear what, if anything, prevents
scheduling/execution of the parent).

If during this window, any of the checks being made result in an
error, we call exit1() which will eventually migrate the process's
state to SDEAD (with an intermediate transition to SDYING).  At
this point the other variables get updated, and we finally restore
a consistent state.

This change updates the p_waited and parent's p_nstopchild at each
step to eliminate any windows during which the values could lead to
incorrect decisions.

Fixes PR kern/50330

Pullups will be requested for NetBSD-7, -6, -6-0, and -6-1
2015-10-13 00:29:34 +00:00
pgoyette b2557f247b For processes marked with PS_STOPEXIT, update the process's p_waited
value, and update its parent's p_nstopchild value when marking the
process's p_stat to SSTOP.  The process needed to be SACTIVE to get
here, so this transition represents an additional process for which
the parent needs to wait.

Fixes PR kern/50308

Pullups will be requested for:

       NetBSD-7, -6, -6-0, -6-1, -5, -5-0, -5-1, and -5-2
2015-10-13 00:28:22 +00:00
pgoyette ad146809be Currently, if a process is exiting and its parent has indicated no intent
of reaping the process (nor any other children), the process wil get
reparented to init.  Since the state of the exiting process at this point
is SDEAD, proc_reparent() will not update either the old or new parent's
p_nstopchild counters.

This change causes both old and new parents to be properly updated.

Fixes PR kern/50300

Pullups will be requested for:

       NetBSD-7, -6, -6-0, -6-1, -5, -5-0, -5-1, and -5-2
2015-10-13 00:27:19 +00:00
pgoyette 01f3fada24 When clearing out the scheduler queues during system shutdown, we move
all processes to the SSTOP state.  Make sure we update each process's
p_waited and the parents' p_nstopchild counters to maintain consistent
values.  Should not make any real difference this late in the shutdown
process, but we should still be consistent just in case.

Fixes PR kern/50318

Pullups will be requested for:

       NetBSD-7, -6, -6-0, -6-1, -5, -5-0, -5-1, and -5-2
2015-10-13 00:25:51 +00:00
pgoyette 4937211e28 In execve_runproc(), update the p_waited entry for the process being
moved to SSTOP state, not for its parent.  (It is correct to update
the parent's p_nstopchild count.)  If the value is not already zero,
it could prevent its parent from waiting for the process.

Fixes PR kern/50298

Pullups will be requested for:

       NetBSD-7, -6, -6-0, -6-1, -5, -5-0, -5-1, and -5-2
2015-10-13 00:24:35 +00:00
sjg 19a6f2c62e Add unit-test for discarded :? 2015-10-12 17:09:29 +00:00
sjg 5a3dc2452c The conditional expressions used with ':?' can be expensive
eg. exists() does stat(2).
If 'wantit' is FALSE, we are going to discard everything anyway,
so skip evaluating the conditional and expanding either lhs or rhs.
2015-10-12 16:48:13 +00:00
wiz eb7338956d Bump date for previous. 2015-10-12 12:07:24 +00:00
roy fd7491b1b7 A lack of useable addresses on any interfaces is not an error.
More interfaces and/or useable addresses could be added later.
2015-10-12 09:29:25 +00:00
roy 83969876a9 Ignore loopback interfaces 2015-10-12 09:28:15 +00:00
roy afc9672b0b Use clock_gettime as a more accurate time source. 2015-10-12 09:26:38 +00:00
taca 643a1b7789 Postfix 3.0.3 has released. 2015-10-12 05:43:25 +00:00
mrg 28d34520d5 don't stop processing /etc/fstab when one entry fails, both for
add and remove loops.  now when you add a new swap file and run
"swapctl -A" it won't give up after the existing one gives EBUSY
and move on to the rest.
2015-10-11 23:58:16 +00:00
pgoyette b4d63f0a4b Fix typo - Bahamas starts with a 'B' not with a 'G' 2015-10-11 22:08:46 +00:00
christos 25babac1be add missing debugging attributes 2015-10-11 21:49:22 +00:00
mlelstv d02a7d8f11 unblock interrupts also when reusing a previously freed irq slot. 2015-10-11 20:20:33 +00:00
mbalmer b24857d8af add LUA 2015-10-11 10:02:15 +00:00
mbalmer fd3d11729f no floating point in the kernel, also make sure we always return an int 2015-10-11 09:21:15 +00:00
mbalmer 339173929c fix macro usage 2015-10-11 09:06:21 +00:00
martin 1bd5f91027 Felix Deichmann in PR port-alpha/50326: cosmetic patch for Pyxis attach
message.
2015-10-11 08:46:43 +00:00
sjg c7f1b3e52d Avoid echo -n in unit-tests 2015-10-11 06:32:15 +00:00
sjg df0424202d Add Boolean wantit to Var_Parse and Var_Subst
wantit will be FALSE when we are just consuming to discard
in which case we skip "expensive" things like Cmd_Exec.

Reviewed by: christos
2015-10-11 04:51:24 +00:00
christos aa6d45f9f5 Get rid of the sprintf() bogus macro and use lengths explicitly when buffers
are involved.
2015-10-11 01:01:45 +00:00
dholland 19274b23bf ALUA (asymmetric logical unit access) from Nikolai Lifanov in PR 50227 2015-10-11 00:58:24 +00:00
christos 8a6acf0efa remove incorrect comment (from kre) 2015-10-10 23:39:43 +00:00
dholland 1fb0cf16c7 Don't assume HAVE_POSIX_SPAWN when building a host prog. From Joachim
Kuebart in PR 50301. needs pullup-7
2015-10-10 22:54:03 +00:00
dholland bc3b61d8ba +FTR (from Nikolai Lifanov in PR 50293) 2015-10-10 22:51:05 +00:00
dholland 4f6e0f51f3 Use llabs(), not abs(), on the difference of daddr_t's.
Caught by clang, reported by joerg.

Turn off the clang-specific compiler flags that were making the report
nonfatal.
2015-10-10 22:34:46 +00:00
dholland ae8888723f Fix minor bitrot in #if 0 or otherwise disabled code. 2015-10-10 22:34:33 +00:00
dholland 0a6370d92e Use a specific SEGSUM size instead of the size of the union. 2015-10-10 22:34:19 +00:00
dholland f3729261c1 Track down and fix two missing uses of SEGSUM_FINFOBASE(). 2015-10-10 22:34:09 +00:00
dholland 7e31609f91 Remove no longer needed explicit 32->64 sign extension.
This is the last 32-bit-on-disk item among those that were either
already tagged or readily discoverable.
2015-10-10 22:33:57 +00:00
dholland 791b636204 Add byteswapping to the inode block-pointer accessors. 2015-10-10 22:33:44 +00:00
dholland 5cc5e3bd23 Use accessors for some more indirect block manipulations. 2015-10-10 22:33:31 +00:00
christos d921302e7e fix the same bug on the linux side, print the error, and return the -tive
error to mimick linux.
2015-10-10 19:35:15 +00:00
christos 571f38dae1 Zero out the guard for bus_space_unmap before calling i915_dma_cleanup() which
calls i915_free_hws(), which then tries to unmap. Perhaps this fixes PR/50060.
2015-10-10 19:29:44 +00:00
martin dd5247cc50 PR port-alpha/50325: cosmetic fix for cpu attach message
from Felix Deichmann.
2015-10-10 17:00:12 +00:00
maxv 1df3cc6387 Remove the mach entry. 2015-10-10 10:51:15 +00:00
mbalmer e06559ad98 use a verb in the authors section for all entries 2015-10-10 10:08:12 +00:00
martin 20dddba056 Add compile time asserts to make sure we have properly picked up types
for a 64bit cpu and 64bit openfirmware.
2015-10-10 06:50:25 +00:00
martin 01cb3be7ca Simplify, get rid of manual _LP64 define.
Do not pass a SUN4U define, as that is no longer used in the relevant headers.
Instead tell the compiler we are compiling for a v9 CPU (so it internally
defines everything we need).
2015-10-10 06:49:40 +00:00
pgoyette c0b82ae584 Ooops, spell the module name in full. "mqueue" vs "mq" 2015-10-10 05:50:34 +00:00
pgoyette 1a36963559 And yet another dependency, this time on mq 2015-10-10 04:59:46 +00:00
pgoyette 9eaaa4f91c Add another dependency for nfsserver 2015-10-10 04:53:48 +00:00
pgoyette ef916064f1 Add an additional dependency on compat_sysv 2015-10-10 04:28:04 +00:00
sjg 53b398eca4 Do not hard-code ingnoring of makeDependfile 2015-10-10 03:58:59 +00:00