Commit Graph

249221 Commits

Author SHA1 Message Date
maya
023a9fa376 Restore unpopulated state on fail1 error path. I shouldn't have committed
it separately.

from riastradh@
2017-03-09 07:55:23 +00:00
maya
c36d1d9a25 Remove redundant handling for tt_unbound case, and assert that it is the
unpopulated case.

All callers of ttm_bus_dma_populate (ttm_agp_tt_populate,
radeon_ttm_tt_populate, nouveau_ttm_tt_populate) return early if it isn't
unpopulated.

from riastradh@
2017-03-09 07:50:50 +00:00
maya
e45033a08f Mark the state as unbound a bit earlier, to avoid triggering an assert in
the fail1 error path.

PR kern/52048: radeondrmkms: ttm->state == tt_unbound assertion
2017-03-09 07:42:36 +00:00
ozaki-r
1d5210cbd3 Tidy up again 2017-03-09 06:21:54 +00:00
ozaki-r
355df0ff57 Remove unnecessary splnet 2017-03-09 04:37:23 +00:00
chs
cf66c8999a really unmap the gap between the text and data rather than just removing
all access with mprotect().  the latter results in the kernel having to
keep track of that range separately since the permissions are different.
avoid calling mmap() with a size of zero.
2017-03-09 00:43:50 +00:00
chs
09187d6c0f in pmap_get_ptp(), if we need to allocate multiple new ptp levels
and succeed in allocating some pages but fail to get them all,
free any ptps we did allocate before returning.
also, only consume kernel-reserve pages if pmap_enter()
is called without PMAP_CANFAIL set, to help avoid deadlocking
during high memory pressure.
2017-03-09 00:21:55 +00:00
chs
037063a2ac use warnx() rather than warn() in a case where errno is not relevant. 2017-03-09 00:18:23 +00:00
chs
f517f4124f mention KDTRACE_HOOKS. 2017-03-09 00:17:32 +00:00
chs
b2e60798fc improve readability of TRAP_SIGDEBUG info.
also print the trapframe info like amd64 does.
2017-03-09 00:16:51 +00:00
chs
055f0eb483 improve readability of TRAP_SIGDEBUG info and add fsbase/gsbase. 2017-03-09 00:16:07 +00:00
chs
8a5bd5b187 set signo and code correctly for signals triggered by uvm_fault() errors. 2017-03-09 00:15:06 +00:00
chs
09fa8e0280 use kpreempt_disable() rather than splsoftclock() to disable preemption. 2017-03-09 00:14:03 +00:00
kre
b8b755e016 Do it properly. Thanks wiz. 2017-03-08 22:55:20 +00:00
kre
5d74cf5159 /usr/include/pmc.h is installed on i386 iff src/lib/libpmc/pmc_i386.c exists
(which it no longer does - only arm has a similar .c file so only arm
builds install pmc.h in /usr/include now)

This should unbreak the i386 build.
2017-03-08 21:56:05 +00:00
maxv
28df5cbbb5 A few changes:
* Use markers to reduce false sharing.
 * Remove XENDEBUG_SYNC and several debug messages, they are just useless.
 * Remove xen_vcpu_*. They are unused and not optimized: if we really
   wanted to flush ranges we should pack the VAs in a mmuext_op array
   instead of performing several hypercalls in a loop.
 * Start removing PG_k.
 * KNF, reorder, simplify and remove stupid comments.
2017-03-08 18:00:49 +00:00
jakllsch
d68ee6e41f Avoid tripping on opposite-endian sysconfig/fex blobs. 2017-03-08 17:06:35 +00:00
maxv
98b12bdd4b Mark as obsolete instead of removing (from Thomas Klausner). 2017-03-08 16:52:17 +00:00
maxv
279ed0db08 Add a version argument, set to 1, and check it in usr.bin/pmc. Use uint32_t
instead uint8_t since we now need 12bit selectors (10h family). And while
here KNF.
2017-03-08 16:42:27 +00:00
maxv
f8e693e577 Deprecate the pmc functions in libi386. The parameters will be updated,
and we are not interested in maintaining this anyway. Now i386's pmc
interface is opaque, which is good.
2017-03-08 16:09:27 +00:00
maxv
0446600dd7 We don't use libi386 anymore. 2017-03-08 16:05:29 +00:00
maxv
a2375778e5 Remove i386 from libpmc; it has its own interface (sysarch), and we won't
maintain compatibility.

Verily, I cannot build a distribution now, so I'm committing this rather
blindly. This being said, it looks correct enough.
2017-03-08 15:53:00 +00:00
tsutsui
0ba0846790 Fix format. 2017-03-08 11:45:14 +00:00
kardel
b6ca960363 PR kern/52039: use same safeguard as for the 82578 2017-03-08 08:00:09 +00:00
mrg
5c6be7789e build timingsafe_memcpy.c. 2017-03-08 07:45:11 +00:00
ozaki-r
5562362b1a Tidy up the lists 2017-03-08 07:32:58 +00:00
ozaki-r
ab05762cd7 Remove multicast stuffs from the list of Non MP-safe components 2017-03-08 06:59:36 +00:00
ozaki-r
d2352b812f Improve test stability and output messages on failure 2017-03-08 05:30:56 +00:00
wiz
51e8f8a186 binutils-2.28 released. 2017-03-07 23:35:50 +00:00
jdolecek
edbde8245d allocate bus dma maps during attachment, rather than creating and destroying
them for each request; besides being faster, bus_dmamap_destroy() is not
safe to be called from interrupt context

adresses PR kern/52034 by Benny Siegert
2017-03-07 22:03:04 +00:00
njoly
656b88f2b5 Fix commas in NAME section. 2017-03-07 19:10:07 +00:00
dholland
eb2b96c128 cve 2017-03-07 16:40:16 +00:00
dholland
67bf286f50 qvl 2017-03-07 16:37:38 +00:00
christos
5978bc7047 need .WAIT before *san since they depend on libc++ 2017-03-07 16:26:37 +00:00
hannken
4ac834d923 Fix a logic error introduced with Rev. 1.507: defer setting MNT_RDONLY
only if going from read-write to read-only.

Should fix PR kern/52045 (panic: ffs_sync: rofs mod, fs=/ after fsck)
2017-03-07 11:54:16 +00:00
maya
0e7316adf4 Remove redundant null check before free()
It is guaranteed to be fine also by C99
2017-03-07 11:15:08 +00:00
ozaki-r
a1a702a9ef Remove unnecessary splnet for bridge_enqueue
bridge_enqueue now uses if_transmit_lock that does splnet for device
drivers, so splnet for bridge_enqueue isn't needed anymore.
2017-03-07 01:53:53 +00:00
ozaki-r
0d53029e9b Add missing splnet to if_deferred_start_common
if_start should run in splnet to avoid running interrupt handlers.
2017-03-07 01:32:03 +00:00
ozaki-r
4aa2ff7551 Apply deferred if_start (from maya@)
Fix PR kern/52023
2017-03-07 01:28:37 +00:00
christos
48c8a60c2e new test 2017-03-06 23:07:42 +00:00
christos
98fc723392 Accept PTR for addtype 2017-03-06 23:04:52 +00:00
wiz
f673ce9b9a Use more macros. 2017-03-06 22:29:35 +00:00
christos
c4a6b55a3c more lint tests 2017-03-06 21:03:56 +00:00
christos
47f9cf0422 add builtin_offsetof 2017-03-06 21:02:47 +00:00
christos
23620f03df fix typeof, add __builtin_offsetof 2017-03-06 21:01:39 +00:00
snj
c059a171f3 bump date, improve english 2017-03-06 17:19:21 +00:00
macallan
8facbdfbe6 print out the actual stride value 2017-03-06 16:49:26 +00:00
maya
7bd93270c0 We do HAVE_NOUVEAU. so use it. 2017-03-06 13:50:40 +00:00
maya
1f03a55a41 fix set lists for pxaip(4). it's not a pmax man page. 2017-03-06 13:14:25 +00:00
christos
e48eb2f9af add new lint test 2017-03-06 12:01:47 +00:00