Commit Graph

238216 Commits

Author SHA1 Message Date
knakahara
f301f2ad4d fix RXCSUM_CRCOFL bit of WMREG_RXCSUM register. 2015-10-13 10:39:25 +00:00
pgoyette
44a923b2d1 Update sets lists for nouveau man-pages 2015-10-13 10:33:17 +00:00
knakahara
472815437c wm_linkintr_msix() should use WM_DEBUG_LINK instead of WM_DEBUG_TX. 2015-10-13 10:26:21 +00:00
knakahara
7d9bd782c2 recover if_wm.c:r1.348 2015-10-13 10:21:21 +00:00
roy
c47c3c3042 Include arp.h to restore the sysctl net.inet.ip.dad_count.
Fixes PR kern/49883 thanks to HITOSHI Osada.
2015-10-13 09:46:42 +00:00
roy
b61ebcc9c7 Simplify la handling in arpresolve() by asking arplookup() not to create
a la. If a la is needed arpresolve() will then create it or mark the
current la as writable.
2015-10-13 09:33:35 +00:00
msaitoh
86524ef906 Add note about the return value of pci_intr_setattr(). Found by wizd(8). 2015-10-13 09:21:56 +00:00
knakahara
1981d14c9f fix: XEN3_DOM0(not defined __HAVE_PCI_MSI_MSIX) build 2015-10-13 09:10:01 +00:00
knakahara
8e784d7e6c fix: WM_DEBUG build 2015-10-13 09:03:58 +00:00
wiz
382f373b38 Add return type for pci_intr_setattr to SYNOPSIS. Add missing comma.
XXX: return values for pci_intr_setattr are not documented.
2015-10-13 08:44:54 +00:00
knakahara
ceae689285 support RX multiqueue.
ok by msaitoh@n.o
2015-10-13 08:36:02 +00:00
knakahara
73234ccfd7 ready to support RX multiqueue.
ok by msaitoh@n.o
2015-10-13 08:33:12 +00:00
knakahara
c5fc078bb1 refactor: rearrange interrupt handlers argument 2015-10-13 08:29:44 +00:00
knakahara
2edbe040d4 refactor: rearrange function arguments without interrupt handlers 2015-10-13 08:27:11 +00:00
pgoyette
8a12675186 Don't release proc_lock until we're done looking at things that are
protected by the lock, particularly p_stat and p_waited.  Found by
Robert Elz.

XXX Pullup to NetBSD-7, -6, -6-0, and -6-1
2015-10-13 08:24:35 +00:00
knakahara
4722a3ab6d change const value register macros to macro expressions to support multiqueue. 2015-10-13 08:23:31 +00:00
knakahara
d5fc117107 refactor: separate interrupts setup processing from wm_attach 2015-10-13 08:20:02 +00:00
knakahara
bf57acba63 allocating queues should be finished before establishing interrupts. 2015-10-13 08:17:15 +00:00
knakahara
885539ce5c refactor: separate discriptors initialization and registers initialization 2015-10-13 08:14:27 +00:00
knakahara
173b340aaa separete TX, RX queue mutex from wm_softc and rearrange WM_BOTH_LOCK.
ok by msaitoh@n.o
2015-10-13 08:11:31 +00:00
knakahara
465a8a26d2 refactor: separate TX, RX queue variables from wm_softc (without mutex) 2015-10-13 08:08:03 +00:00
knakahara
1c0da7437b refactor: separate busdma initialize processing as functions 2015-10-13 08:03:59 +00:00
knakahara
8e18f5fa5c separate TX dma control data and RX dma control data.
ok by msaitoh@n.o
2015-10-13 08:00:15 +00:00
knakahara
ade1c2d20b refactor: separate busdma allocate processing as functions. 2015-10-13 07:53:02 +00:00
knakahara
753f5c5dba refactor: change some macros to functions
change below macros to functions
    - WM_CDTXSYNC
    - WM_CDRXSYNC
    - WM_INIT_RXDESC
2015-10-13 07:47:45 +00:00
pgoyette
764be6be1d When delivering a signal, it's possible that the process's state in
p_stat is SACTIVE yet p_sflag is PS_STOPPING (while waiting for other
lwp's to stop).  In that case, we don't want to adjust the parent's
p_nstopchild count.

Found by Robert Elz.

XXX Pullups to: NetBSD-7, -6{,-0,-1}, and -5{,-0,-1,-2}
2015-10-13 07:00:59 +00:00
pgoyette
d3abaa577e Update value of p_stat before we release the proc_lock. Thanks to
Robert Elz.

XXX Pull-ups for -7, -6{,-0,-1} and -5{,-0,-1,-2}
2015-10-13 06:47:21 +00:00
msaitoh
61a6132f89 Add missing pci_intr_setattr(). The function first appeared in NetBSD 5.0. 2015-10-13 04:34:38 +00:00
mrg
4f06f9c186 build libdrm_nouveau and xf86-video-nouveau on x86.
crashes early when starting so far.
2015-10-13 04:33:21 +00:00
riastradh
c8d570586e Semicolon, not comma; use future tense more Englishly. 2015-10-13 04:22:24 +00:00
mrg
e43864ddde install nouveau.h 2015-10-13 03:32:28 +00:00
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