Commit Graph

263305 Commits

Author SHA1 Message Date
skrll
7ea5009dd0 Make TI compile and convert TI to generic start
Compile tested only (obviously)
2018-11-21 08:55:05 +00:00
skrll
f14b50ab55 Sort 2018-11-21 08:49:58 +00:00
skrll
90b71dd885 G/C 2018-11-21 08:48:23 +00:00
skrll
08e0afec2e options<space><tab> 2018-11-21 08:37:06 +00:00
msaitoh
ee8540f68c - Use ci_feat_val[7] as CPUID 7 %edx to match x86/cpu.h
- AMD also has CPUID 6.
- Remove unused code for coretemp.
- Consistently use descs[] instead of data[].
2018-11-21 06:10:25 +00:00
msaitoh
20b96510a0 Modify comment. No functional change:
- AMD also has CPUID 0x06 and 0x0d.
- PCOMMIT was obsoleted.
2018-11-21 06:09:49 +00:00
uwe
9d5d4061af Compare pointers to NULL, not to zero. 2018-11-20 22:02:31 +00:00
uwe
042640f557 Drop bogus cast. 2018-11-20 21:42:52 +00:00
uwe
039bdd2780 Don't hide assignments inside tests. 2018-11-20 21:41:31 +00:00
jdolecek
66528c1fba Implement PMAP_DIRECT / pmap_direct_process() in support of experimental
UBC optimizations (compile-tested only for now)

PR kern/53124
2018-11-20 20:53:50 +00:00
scole
9720746a56 add IA64_DCR_DEFAULT, more changes from FreeBSD 2018-11-20 20:36:24 +00:00
jdolecek
29944bc553 need to use PGO_NOBLOCKALLOC also in ubc_alloc_direct() case, same
as non-direct code - otherwise the code tries to acquire the wapbl
lock again in genfs_getpages(), and panic due to locking against itself

towards PR kern/53124
2018-11-20 20:07:19 +00:00
jdolecek
6e1872671e s/failing/failed/ for the aprint_error() 2018-11-20 19:19:21 +00:00
christos
152a053266 Fix locking for readdir code (Brett Lymn) 2018-11-20 19:05:25 +00:00
martin
39e506156f Convert all static menu struct initializiations to C99 name initializer
format - prerequisite for an upcoming evil hack (tm).
No functional change intended.
2018-11-20 19:02:07 +00:00
uwe
49cc439a5a Fix color pair handling. color_pair argument is a pair number. 2018-11-20 17:48:19 +00:00
prlw1
757cfa9bd5 Trivial build fix 2018-11-20 15:16:43 +00:00
skrll
4374f2dbce Add support for MSI/MSI-X to ahcisata at pci.
The options AHCISATA_DISABLE_MSI and AHCISATA_DISABLE_MSIX are available
if required.
2018-11-20 12:23:01 +00:00
hannken
f933f95298 Fix NSD when built with --enable-recvmmsg:
When resetting a query with query_reset(queries[i], ...) always restore the
corresponding msgs[i].msg_hdr.msg_namelen from queries[i]->addrlen.

After receiving a message set queries[i]->addrlen to the received msg_namelen.

Reported upstream, will be fixed for 4.1.26
2018-11-20 10:03:39 +00:00
jdolecek
be23b573fd also set WDCTL_4BIT for the softreset, seems this one is actually also
required to fully resolve the problem

PR kern/48214 PR kern/53307 PR kern/53524
2018-11-20 08:47:55 +00:00
maya
5e0e9ff149 Don't expose a getauxval symbol.
The code already knows how to handle it, but it assumes anyone who uses
GCC or clang might resolve the getauxval function to something eventually.

The only time we will expose getauxval is if a package tries to substitute
getauxval too, and then code will start having mysterious failures.

getauxval is purely a linux function (as far as I can see), so limit it to
that.

PR pkg/53387, PR port-arm/53386
2018-11-20 07:30:17 +00:00
maxv
71256c3b0d Note support for Intel Silvermont/Airmont. 2018-11-20 06:43:26 +00:00
msaitoh
cb79b1f0b3 - Add wm_oem_bits_config_ich8lan() to control LPLU and GbE setting base on
the NVM's info.
- Modify wm_enable_wakeup() to reduce difference against FreeBSD and Linux.
  This modification affects to ICH8 and newer devices. I217 Rapid Start
  Technology support have not written yet (it's TODO).
2018-11-20 04:04:42 +00:00
msaitoh
a60bfd5a8c - Fix a bug that i82578 PHY can't detect correctly.
- Print PHY OUI and model number if a PHY's can't be identified.

XXX pullup-[78]
2018-11-20 03:52:03 +00:00
mrg
0e9d255287 rewrite the CPU identification on arm64:
- publish per-cpu data
- publish a whole bunch of info in struct aarch64_sysctl_cpu_id
  instead of various individual nodes (there are 16 total.)
- add MIDR extractor bits
- define ARMv8.2-A id_aa64mmfr2_el1 and id_aa64zfr0_el1 regs,
  but avoid using them until we make sure they exist.  (these
  members are added to aarch64_sysctl_cpu_id to avoid future
  compat issues.)

the arm32 and aarch32 version of these need to be adjusted as
well (and aarch32 data published at all.)  still trying to
work out how to make the same userland binary running on a
real arm32 or an aarch32 system can work sanely here.

ok ryo@.
2018-11-20 01:59:51 +00:00
mrg
b091ab062f also fix have_dynamic_content from the previous previous. re-order
the debug and dynamic content to match the same pattern as everything
else so similar problems are less likely in the future.
2018-11-20 01:23:06 +00:00
mrg
75e07df53f fix previous: have_debug was reversed. 2018-11-20 01:19:51 +00:00
mrg
cbabfa751a move some #if support into bozohttpd.h. 2018-11-20 01:15:50 +00:00
mrg
3230a9a3d5 from CHANGES:
o  reduce default timeouts, and add expand timeouts to handle the
   initial line, each header, and the total time spent
o  add -T option to expose new timeout settings
o  minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers.  besides being protocol standard,
this closes one additional memory leak found by JP.  add a simple
test to check this.


clean up option and usage handling some.
2018-11-20 01:06:46 +00:00
jdolecek
51cfb8367f enable XSAVE (and hence AVX) under XEN by default, fixes PR kern/50332
okayed by maxv@
2018-11-19 22:21:32 +00:00
jdolecek
74b4edb9d0 during SRST (softreset), make a short delay between the RST set and
clear; SATA specifies minimum 5 usec for the toggle period, and
some controllers (seems usually on AMD motherboards) actually require it

this fixes the 'clearing WDCTL_RST failed' error in PR kern/53307
and PR kern/53524

confirmed working on a ASUS Prime A320M-K mainboard by me, and by Patrick
Welche on another Ryzen system

XXX pullup-8
2018-11-19 22:05:22 +00:00
jdolecek
d45b25fa85 if softreset during PMP detection fails, disable PMP, reset port and continue
with sig detected after the initial COMRESET

this does not yet fix the infamous 'clearing WDCTL_RST failed', but at least
now the disk is detected and usable when it happens

tested on AMD system with ASUS Prime A320M-K, similar to one from PR kern/53524
2018-11-19 21:52:24 +00:00
maxv
15051740bd Fix error handling of realloc, and use memmove because the areas overlap;
noted by agc@. These _nvmm_area_add/delete functions don't make a lot of
sense right now and will likely be rewritten to match the behavior
expected by Qemu; but still fix for the time being.

Also fix a collision check while here.
2018-11-19 21:45:37 +00:00
maxv
d11ad8eef5 Introduce pl_pi, will be used soon. 2018-11-19 20:44:51 +00:00
uwe
ce63d7aabc wbkgd - when updating window rendition for the new background character,
it's the old background characters that need to be updated, not spaces.

While here, simplify and also fix the bug introduced in 1.20 (that
lost the default color) - actually use the results of wbkgdset().
2018-11-19 20:37:04 +00:00
maxv
b2d98f284b Rename 'mask' -> 'frame', we will use the real 'mask' soon. 2018-11-19 20:28:01 +00:00
aymeric
3fb201b9dd Make building boot images work with xz sets on non-NetBSD hosts.
NetBSD gzip is not toolified so we can't assume the host gzip will be able
to decompress xz files. Use the toolified xz instead in the USE_XZ_SETS case.
2018-11-19 20:05:37 +00:00
aymeric
531981e6f3 Prepend ${_TOOL_PREFIX} to xz, too. 2018-11-19 20:00:28 +00:00
jdolecek
ce4508b239 consistently use the SATA correct 'port %d' instead of 'channel', some
whitespace fixes
2018-11-19 19:52:08 +00:00
christos
44fe9ca3e8 add nvmm lint library 2018-11-19 19:10:39 +00:00
sevan
83c0771f3f "What You See Is All You Get" - Brian Kernighan 2018-11-19 18:29:59 +00:00
maxv
bff32479f2 Rename one constant, for clarity. 2018-11-19 17:35:12 +00:00
martin
b978e7a9c1 Split positional argument string expansion from msg display, we can make
good use of it elsewhere too.
2018-11-19 17:17:43 +00:00
kre
b1b9949ad0 Fix editing screwup in previous... noted by Rin Okuyama (thanks!) 2018-11-19 15:43:32 +00:00
jakllsch
189a6ae437 avoid NULL deref in gicv3_fdt_disestablish() 2018-11-19 13:54:15 +00:00
skrll
8d8323d239 Remove RPI64 in favour of GENERIC64. RPI64 was used during testing. 2018-11-19 13:28:48 +00:00
jmcneill
e7d2ac053e Clear PCI_FLAGS_IO_OKAY as we don't support it yet. 2018-11-19 11:08:16 +00:00
maya
d320d609f9 include machine/limits.h for INT_MAX 2018-11-19 10:48:59 +00:00
jmcneill
5cc4c843a9 On second thought, get rid of "bs_base" from struct bus_space and use a
custom bs_map for acpipchb instead.
2018-11-19 10:45:47 +00:00
maya
c7b18ec718 include less headers, just the right one, suggested by thorpej 2018-11-19 10:14:40 +00:00