Commit Graph

267548 Commits

Author SHA1 Message Date
christos 609a87cf96 Hack around clang powerpc tls_model("initial-exec") pic issue; this is gross. 2019-05-14 16:22:09 +00:00
christos 7c1902722a clang binaries are so much bigger. 2019-05-14 15:41:23 +00:00
ozaki-r 3adce096d0 Remove unnecessary checks of IFF_ALLMULTI
IFF_ALLMULTI is changed by only driver itself, so we don't need to check its
change on ec_ifflags_cb.

This is part of PR kern/54189. NFCI.
2019-05-14 09:43:55 +00:00
mrg 863b2b98a5 mostly port to rk3328.
- add rk3328 data<->temp table, and adjust code to use this vs rk3399
  table for rk3328.  add support for decrementing data.
- adjust auto period times for rk3328 vs rk3399
- add min/max data values, if data is outside these values mark the
  sensor invalid.
- move init code into cpu specific sections, add rk3328 support

with a rk3328_cru.c update to add clocks, this attaches and reports
garbage values, so for now it's disabled.
2019-05-14 07:45:03 +00:00
maya a2fcb60250 Add a hack entry for libpthread one section 2019-05-14 02:53:16 +00:00
maxv 0323b962b3 Remove comment, since there is no parsing anymore. 2019-05-13 18:53:10 +00:00
bad 48e354a3ed Get rid of all the -lrumpdev and -lrumpvfs that are no longer needed
after moving rump's mainbus from rumpdev to rumpkern.

Produces the same atf-run results as before.
2019-05-13 17:55:07 +00:00
maxv 4a18d4a6df Remove dead code. 2019-05-13 17:50:30 +00:00
bad f689b51816 On the one thousand and ninth day rump's mainbus was moved from
rumpdev to rumpkern, liberating all rumpnet users from the need to
-lrumpdev -lrumpvfs just because a loopback interface is mandatory.

Rename rumpdev/autoconf.c to rumpkern/rump_autoconf.c to avoid
accidentally picking up e.g. sys/arch/amd64/amd64/autoconf.c through
make's .PATH.
Move rumpdev/MAINBUS.ioconf to rumpkern.
2019-05-13 17:49:05 +00:00
bouyer 554b237aba Use new magic values from linux for DMACR. While I couldn't measure any
significant difference with my old, slow laptop drive, linux commiter claims
a 3x write performance boost (from 40 to 120MB/s) and 200MB/s read with
a ssd.
2019-05-13 16:55:17 +00:00
christos 159a288f78 Don't pass an uinitialized pm_prot to rpcinfo. It expects 0 for local,
so give it 0.
2019-05-13 14:29:41 +00:00
wiz 8a06b79806 gdb-8.3 out.
Remove BSD bind version.
2019-05-13 09:21:06 +00:00
nakayama fd33080a28 audio_open:
On full duplex hardware, the flags passed to hw_if->open() is always
(FREAD | FWRITE).  But some devices (e.g. uaudio) check its
capabilities at open(), so unidirection devices like USB speakers
always return EACCES.

Avoid open() failure on such devices by checking the capabilities of
the device and changing the flags passed to hw_if->open().
2019-05-13 08:50:25 +00:00
uki 5e0b33a7be Change package name "-obsolete-" to "<category>-obsolete". It is a little step. 2019-05-13 08:38:45 +00:00
hannken 8a1e96b79d do_sys_mkdir(): pass the requested segment down to do_sys_mkdirat(). 2019-05-13 08:17:30 +00:00
hannken 8ced516d69 Walk down to the lowest mount for "fli_alias".
Address PR kern/54195 (null mounts: panic: ...).
2019-05-13 08:16:56 +00:00
ozaki-r 31c0f791d8 Bump the version for entry additions to IP_STAT and IP6_STAT
Welcome to 8.99.40
2019-05-13 07:54:52 +00:00
nakayama 17f08580ae sysctl "multiuser" type is CTLTYPE_BOOL, so use bool instead of int. 2019-05-13 07:53:56 +00:00
ozaki-r e28ae3abe7 Show the number of packets dropped by pfil 2019-05-13 07:48:42 +00:00
ozaki-r 6d8eb4f9d2 Count packets dropped by pfil 2019-05-13 07:47:59 +00:00
msaitoh 56085fe5c3 Fix a bug that manual setting of 10GBASE-SR or 10GBASE-CX4 didn't work
if IFM_ETH_XTYPE was set. We don't use IFM_ETH_XTYPE macro, so this was not a
real bug.
2019-05-13 05:04:17 +00:00
nakayama 945dc1eef0 audio_hw_probe:
Return error if both play and record probes failed.

Avoid audio is disabled on devices with only play like USB speakers.
2019-05-13 04:11:04 +00:00
nakayama 19d577dc0e audioattach:
Output the cause of the audio device disabled along with the error code.
2019-05-13 04:09:35 +00:00
christos 45108122b9 print the name of the interface that was disabled. 2019-05-13 02:03:07 +00:00
christos 18d966ff32 Modernize the error printing for text relocations by syncing it to the
"more maintained" platforms.
2019-05-12 22:42:33 +00:00
maya 3544b82379 Use attribute printf.
Helps clang builds. From a.rin.
2019-05-12 13:47:09 +00:00
maya c786ed9791 Remove unused function following isaki-audio2 merge.
Shows up when doing clang builds. From a.rin.
2019-05-12 13:40:19 +00:00
kre 480c945f6e I should know better! Don't rely upon the way the shell implements
pipes.   Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)
2019-05-12 11:55:47 +00:00
blymn ac3404f424 Provide correct validation after curses change. 2019-05-12 02:37:24 +00:00
blymn 652cdcd214 Fix _cursesi_addwchar so that it performs line wrap. SUSv2 says
add_wch line wraps and updates position.  Since wrap is done we are
not past EOL.
2019-05-12 02:29:00 +00:00
blymn d63c9d29fb Add more debug to _wnoutrefresh 2019-05-12 02:19:23 +00:00
kre 6ae1c84105 No change... Previous log message should have said:
Install rc.d/smtoff
2019-05-12 01:50:14 +00:00
kre 6aaf09f01b revert previous. somehowI failedto see that was already done. 2019-05-12 01:45:25 +00:00
kre 1aa98bd080 install rc.d 2019-05-12 01:33:47 +00:00
kre 7476299781 Restructure code a little.
Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.
2019-05-12 00:24:03 +00:00
maxv 907a706c0b Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.
2019-05-11 19:31:03 +00:00
christos 7fd95dd161 elide clang warnings 2019-05-11 17:44:16 +00:00
kre 17a7ea5b15 Undo previous. Not needed (and file included isn't installed anyway. 2019-05-11 17:21:07 +00:00
christos c975cf3b97 Undo previous 2019-05-11 13:41:52 +00:00
christos 30c8f14196 Undo previous, fixed in userland. 2019-05-11 13:40:26 +00:00
christos 914397cddf Add cpufunc.h 2019-05-11 13:04:40 +00:00
christos 11e52b4657 need cpufunc.h for rdmsr 2019-05-11 12:59:50 +00:00
christos 5d4f0b2aaf expose the {rd,wr}msr functions to userland and install the header for
the benefit of cpuctl (fix the build).
2019-05-11 12:58:17 +00:00
mlelstv 14098003aa Fix copy&paste error, the function is named rdmsr().
Found by kre@
2019-05-11 12:24:42 +00:00
maxv 4a34c4e1c3 Check the return value of cpuset_set(), to prevent future surprises. 2019-05-11 11:59:21 +00:00
maxv dedb2f3a2d Fix bug, the computation of cpuset_nentries was incorrect, we must do +1
to be able to address the last 32 bits.

On a machine with 80 CPUs, this caused "cpuctl identify >64" to return
garbage.
2019-05-11 11:53:55 +00:00
maxv c32e3374f1 Replace "VMM" by "emulator", clearer. 2019-05-11 07:44:00 +00:00
maxv 113821f1a2 Sync with reality. 2019-05-11 07:40:38 +00:00
maxv bfb4017486 Rework the machine configuration interface.
Provide three ranges in the conf space: <libnvmm:0-100>, <MI:100-200> and
<MD:200-...>. Remove nvmm_callbacks_register(), and replace it by the conf
op NVMM_MACH_CONF_CALLBACKS, handled by libnvmm. The callbacks are now
per-machine, and the emulators should now do:

-	nvmm_callbacks_register(&cbs);
+	nvmm_machine_configure(&mach, NVMM_MACH_CONF_CALLBACKS, &cbs);

This provides more granularity, for example if the process runs two VMs
and wants different callbacks for each.
2019-05-11 07:31:56 +00:00
skrll fea8008511 #define<tab> for consistency 2019-05-11 06:50:42 +00:00