Commit Graph

267576 Commits

Author SHA1 Message Date
christos 120c6c97f3 document vasprintf 2019-05-20 20:25:09 +00:00
aymeric 361add5acc make CPU 1 bootstrapping work even if the kernel is not loaded close to PA 0.
More precisely, we used "B cpu_mpstart", which worked for small addresses and
thus does not work in the EFI case.
It is now replaced by a "LDR PC, =cpu_mpstart", which works for arbitrary
addresses.
2019-05-20 20:17:25 +00:00
aymeric 72956e7b2a use NULL instead of cycv_dwcmmc_card_detect() for sc_card_detect. 2019-05-20 20:14:08 +00:00
christos 2e45e8b5fb sync with arm. 2019-05-20 18:24:57 +00:00
skrll 08ae7ed332 Usee __BIT() 2019-05-20 17:00:57 +00:00
skrll bcfef4b20f Trailing whitespace 2019-05-20 16:58:49 +00:00
jmcneill a327f5648c Reduce the number of times we need to call driver match functions. Makes
a noticeable difference in boot time on an ODROID-XU4.
2019-05-20 11:12:10 +00:00
ozaki-r 5bdf72767f mount_9p: add missing -u option to the help message 2019-05-20 08:55:31 +00:00
blymn 84da1bf133 Add option to specify an alternate library location to allow testing
a development library version without installing it.
2019-05-19 22:34:23 +00:00
kardel 55613ac346 Add simple position recovery when positioning to EOM by reading
the position with READ_POSITION.
this allows for
	mt eom
	mt st
to return the correct file position.
2019-05-19 19:06:53 +00:00
alnsn 1a9b5cb403 Kill unused sc variable and fix the build. 2019-05-19 13:32:35 +00:00
wiz 4c02e23096 Sort options in usage. 2019-05-19 09:14:13 +00:00
maxv 54d2bb2a1a Remove useless call to fpu_sigreset(), buildcontext() already calls it. 2019-05-19 08:49:08 +00:00
maxv 62e72db86a Rename
fpu_save_area_clear -> fpu_clear
	fpu_save_area_reset -> fpu_sigreset

Clearer, and reduces a future diff. No real functional change.
2019-05-19 08:46:15 +00:00
maxv 20224b9806 Misc changes in the x86 FPU code. Reduces a future diff. No real functional
change.
2019-05-19 08:17:02 +00:00
mlelstv 8b3aa71df5 correct order of parameters, has no effect as anything set here is
overwritten by the following reconfig.
2019-05-19 07:43:17 +00:00
christos 4f16751b14 sync with latest. 2019-05-19 04:09:22 +00:00
christos 59e8d36e8f - add flag to produce OMAGIC
- factor out complicated inline code into simpler functions
- add options parsing
2019-05-18 21:16:12 +00:00
christos d63a06d392 lint gets the wrong size. 2019-05-18 17:41:34 +00:00
maxv 154532873e Enable EagerFPU by default. Sent on port-amd64@. 2019-05-18 13:44:57 +00:00
maxv 125e142f05 Two changes in the CPU mitigations:
* Micro-optimize: put every mitigation in the same branch. This removes
   two branches in each exc/int return path, and removes all branches in
   the syscall return path.

 * Modify the SpectreV2 mitigation to be compatible with SpectreV4. I
   recently realized that both couldn't be enabled at the same time on
   Intel. This is because initially, when there was just SpectreV2, we
   could reset the whole IA32_SPEC_CTRL MSR. But then Intel added another
   bit in it for SpectreV4, so it isn't right to reset it entirely
   anymore. SSBD needs to stay.
2019-05-18 13:32:12 +00:00
leot 2710d0dc9d Document name_desc attribute of mandb_links.
Discussed with <abhinav> via PR misc/54213, thanks!
2019-05-18 10:38:04 +00:00
leot 83d9007765 Reintroduce case insensitive comparison of name accidentally lost in last
revision.

Discussed with <abhinav> via PR misc/54213, thanks!
2019-05-18 10:28:57 +00:00
alnsn 4c664ba03b Don't mention SVS because it can't be changed anymore. 2019-05-18 10:21:03 +00:00
maxv 0affa3177f Now that SVS cannot be disabled at run time, MSR_LSTAR is static, so no
need to save it on each VM enter.
2019-05-18 08:55:59 +00:00
maxv d42d172475 Use XC_HIGHPRI for SpectreV2 to reduce the CPU downtime. We already do this
for MDS.
2019-05-18 08:54:38 +00:00
skrll a0ac59c71f Convert remaining armv7 kernels to generic start and remove a bunch of
code including a9_mpsubr.S.

Thanks to Lwazi Dube for testing PANDABOARD and BEAGLEBONE.
2019-05-18 08:49:23 +00:00
mlelstv b1f23fc946 Add experimental userland interface to IPMI driver. Currently, transactions
(like sensor readout) are locked, so that a userland program may interfere with
envsys operation.

To use this you need a program like ipmitool built with OpenIPMI support.
2019-05-18 08:38:00 +00:00
maxv c496b67597 Clean up a little, add new XCR0 bits, remove a few unused MSRs, and fix
typos.
2019-05-18 08:17:39 +00:00
maxv c7628e5418 Set the symbol type for intrfastexit, so that tools like tprof can find
the symbol name.
2019-05-18 07:58:58 +00:00
abhinav 933b5da267 PR misc/54213: Fix performance of whatis(1) when no matches are found
In revision 1.6 of whatis.c the query was modified to return matches for names found
in MLINKS of the man pages as well. However it was slow. The reason probably being that it
required a join. But more importantly the where condition on an FTS virtual table column
is very slow. To avoid the join and the expensive where condition on the virtual table,
add the name_desc column to the mandb_links table as well. This improves the performance
of whatis(1) to the original level at the expense of slight data duplication.

Bump the schema to force database rebuild to take account for the new column addition
2019-05-18 07:56:43 +00:00
maxv eb40683716 Disable errata #1091. We are the only OS to apply it, and it seems to be
causing trouble to VirtualBox (PR/54143).
2019-05-18 07:49:31 +00:00
skrll 2c9023a65e Switch the kernel7.img RaspberryPi kernel in the armv7 image to GENERIC
and thus reducing the number of kernels built in an evbarmv7 release.
2019-05-18 07:33:10 +00:00
gutteridge 94d05cbf81 cpuctl.8: minor fixes 2019-05-17 23:51:35 +00:00
christos d93832813c use a union cast to assert alignment of string constant. 2019-05-17 20:27:48 +00:00
christos d0659350cc Factor out the magic checking code for the label, and make it not depend
on alignment.
2019-05-17 18:50:40 +00:00
christos b8616ab611 Factor out the fbinfo setting code, to make it more readable, and use
memcpy to properly align the structure (although it does not matter on x86).
2019-05-17 18:34:33 +00:00
nakayama 43b52312c6 Use ${_TOOL_PREFIX} instead of hardcoding "nb" for consistency. 2019-05-17 13:51:36 +00:00
nakayama 0015932b89 Revert previous.
The binaries created are different, but according to joerg@ there
is no difference in functionality.
2019-05-17 13:44:55 +00:00
wiz 315c68e54c Merge single-letter options in SYNOPSIS.
Add an article.
2019-05-17 08:56:12 +00:00
ozaki-r e674e58b44 mount_9p: add initial support for 9P2000.u
The implementation enables to work with a server talking 9P2000.u.  However, it
doesn't use the extended fields yet; it just ignores those of received messages
and sets "please ignore" values to those of sending messages such as zero-length
strings and maximum unsigned values.

The feature is enabled by the -u option.
2019-05-17 08:48:04 +00:00
wiz 5e9199761d Add missing .Re. 2019-05-17 08:26:20 +00:00
ozaki-r 9e63ef91c4 Refer the current official page 2019-05-17 07:50:49 +00:00
ozaki-r 3f3df26172 Document the -s option 2019-05-17 07:50:09 +00:00
msaitoh 3441efda2e ifmedia(4): Extend Ethernet's ifmedia word's subword up to 255. 2019-05-17 07:42:29 +00:00
msaitoh 526b9038db Use new media types. 2019-05-17 07:39:33 +00:00
msaitoh e6f3676a26 New SIOC[GS]IFMEDIA.
Welcome to 8.99.41.
2019-05-17 07:38:48 +00:00
msaitoh bf354a0797 The max subtype of the ifmedia word is 31. It's too small for Ethernet now.
We currently use use it up to 30. We should extend the limit to be able to use
more than 10Gbps speeds. Our ifmedia(4) is inconvenience and have some problem
so we should redesign the interface, but it's too late for netbsd-9 to do it.
So, we keep the data structure size and modify the structure a bit. The
strategy is almost the same as FreeBSD. Many bits of IFM_OMASK for Ethernet
have not used, so use some of them for Ethernet's subtype.

The differences against FreeBSD are:
 - We use NetBSD style compat code (i.e. no SIOCGIFXMEDIA).
 - FreeBSD's IFM_ETH_XTYPE's bit location is from 11 to "14" even though
   IFM_OMASK is from 8 to "15". We use _IFM_ETH_XTMASK from bit 13 to "15".
 - FreeBSD changed the meaning of IFM_TYPE_MATCH(). I think we should
   not do it. We keep it not changing and added new IFM_TYPE_SUBTYPE_MATCH()
   macro for matching both TYPE and SUBTYPE.
 - Added up to 400GBASE-SR16.

New layout of the media word is as follows (from ifmedia_h):

 * if_media Options word:
 *	Bits	Use
 *	----	-------
 *	0-4	Media subtype	MAX SUBTYPE == 255 for ETH and 31 for others
 *	5-7	Media type
 *	8-15	Type specific options
 *	16-18	Mode (for multi-mode devices)
 *	19	(Reserved for Future Use)
 *	20-27	Shared (global) options
 *	28-31	Instance
 *
 *   3                     2                   1
 *   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
 *  +-------+---------------+-+-----+---------------+-----+---------+
 *  |       |               |R|     |               |     |         |
 *  | IMASK |     GMASK     |F|MMASK+-----+ OMASK   |NMASK|  TMASK  |
 *  |       |               |U|     |XTMSK|         |     |         |
 *  +-------+---------------+-+-----+-----+---------+-----+---------+
 *   <----->                   <--->                 <--->
 *  IFM_INST()               IFM_MODE()            IFM_TYPE()
 *
 *                              IFM_SUBTYPE(other than ETH)<------->
 *
 *                                   <---> IFM_SUBTYPE(ETH)<------->
 *
 *
 *           <------------->         <------------->
 *                        IFM_OPTIONS()
2019-05-17 07:37:11 +00:00
mrg 1905ac2405 apply some __diagused. 2019-05-17 06:05:07 +00:00
knakahara 75255032e6 Don't clear calculated Tx tos value for IPv[46] over IPv6. 2019-05-17 05:27:24 +00:00