Commit Graph

262002 Commits

Author SHA1 Message Date
maxv
c11c7199c0 Don't leak kernel pointers to userland in kern.file2, same as kern.proc2. 2018-09-13 14:44:09 +00:00
jmcneill
9cdcdf4a75 Wrap arm_fdt_cpu_okay with #ifdef MULTIPROCESSOR 2018-09-13 12:53:00 +00:00
kre
b8b0289d66 Fix editing mistake, remove ) from func call that is now gone. 2018-09-13 09:03:40 +00:00
mrg
b0043626fa add support for kabylake and skylake GT4 (untested) GPUs.
largely taken from openbsd and linux 4.13 trees (which
have this code identical), with mimimal porting to netbsd.

i have not installed (and thus tested) the newer referenced
firmware files.

only real local change is to fix IS_BROXTON() macro to check
the things valid in this era of drm.  previous match would
attach on KBL, and then a loop would never exit.

tested on kabylake P630.  needs mesa 11.x or newer for GL
to work.

ok @riastradh.
2018-09-13 08:25:55 +00:00
mrg
60b1eff445 always call lockdebug_dismiss() from DDB -- there are always some
minimal lockdebug checks in place, even without LOCKDEBUG.

adjust lockdebug_abort() to ignore problems after ld_panic is set
so that there's a chance of this working.

this fixes ddb 'reboot' on softiron od1000.
2018-09-13 01:55:16 +00:00
christos
26f83385d3 more efficient to use decode_result :-) Pointed out by kre@ 2018-09-13 01:26:33 +00:00
kre
ec9262987a PR standards/34646
Make test(1) always use the POSIX "number of args" evaluation rules
when they apply.

Only fall back to the old expression evaluation when there are more
than 4 args, or when the args given cannot work as a test expression
using the POSIX rules.  That is when the result is unspecified.

Also fix old bug where a string of whitespace is considered to be a
valid number (at least one digit is needed amongst it somewhere...)

XXX pullup -8
2018-09-12 23:33:31 +00:00
christos
6da79ee096 PR/53597: Yasuhiro Horimoto: Avoid segmentation fault in bad history file. 2018-09-12 22:10:35 +00:00
sevan
cf2901fc1a I've been on an Ed Wood binge. 2018-09-12 22:10:07 +00:00
christos
b7d09b8024 Fix lockdebug diagnostic error of trying to acquire an rw_lock from a
pserialized active context. From riastradh@
2018-09-12 21:58:38 +00:00
christos
60d3fae6ae Don't have modules depend on bpf; they will find the dependency dynamically
at runtime. Otherwise builtin modules will complain about non-builtin bpf.
2018-09-12 21:57:18 +00:00
para
0d66197a8e add new dir to lists 2018-09-12 19:55:39 +00:00
maxv
c9d6998246 Remove this check, it has never protected against mmap on page zero, and
has since been replaced by the code in exec_vm_minaddr.
2018-09-12 15:58:08 +00:00
christos
ebe8cc5f44 add nta named directory. 2018-09-12 15:29:11 +00:00
christos
aa88342584 Put the nta files in a subdirectory instead of requiring the namedb root
directory to be writable by named... Others have expressed the same concern,
but upstream refused: https://bugzilla.redhat.com/show_bug.cgi?id=1487823
https://bugs.isc.org/Public/Bug/Display.html?id=46242
2018-09-12 15:28:42 +00:00
jakllsch
b961019252 if_msk: detach/reattach fixes
- Fill in sc->sk_bsize upon pci_mapreg_map() so that we'll correctly
   bus_space_unmap() on detach.
 - Clear sc->sk_intrhand after interrupt disestablish, to prevent
   disestablishing unestablished interrupt.
2018-09-12 13:52:36 +00:00
martin
56c59c7a28 Try to properly guess a path on the ftp server for pkg binaries
and use that as default.

Assume for $N.99 (current) we can use $N.0. Otherwise strip all
RC*/STABLE* annotations and just use the plain numbers.
2018-09-12 13:44:05 +00:00
mrg
2e49bfcbfb use pa_dmat64 if pci_dma64_available(). 2018-09-12 09:49:03 +00:00
mrg
0f93dcdd53 - link to pci_mapreg_type() from pci_mapreg_map() for the type argument
- note that 64 bit memory mappings are different to others
- bump date
2018-09-12 09:45:59 +00:00
msaitoh
15dcfcae4f Add ATS Relaxed Ordering supported bit described in Address Translation
Relaxed Ordering ECN.
2018-09-12 07:42:21 +00:00
msaitoh
6999f5bea0 Fix comment. 2018-09-12 05:03:05 +00:00
msaitoh
09defd7cc8 - Try m_defrag() to reduce the number of DMA segment if bus_dmamap_load_mbuf()
returned EFBIG. When m_defrag() is called, txqNNdefrag event counter is
  incremented. If the 2nd try of bus_dmamap_load_mbuf() failed, txqNNtoomanyseg
  event counter is incremented.

- Reduce the max number of DMA segemts from 256 to 64 (it's the same valuse
  as other BSD's (EM_MAX_SCATTER) and more than before if_wm.c rev. 1.75's
  value (40)) because we do m_defrag() now.
2018-09-12 04:59:26 +00:00
msaitoh
ecc67856aa - Split txdrop evcnt into pcqdrop and descdrop.
- Simplify evcnt name by removing duplicated "tx" or "rx".
- s/tu/underrun/
2018-09-12 04:37:18 +00:00
mrg
fd52598385 use pci_mapreg_type() instead of assuming PCI_MAPREG_TYPE_MEM.
suggested by riastradh@.

fixes hdaudio on thinkpad P51 where the registers are mapped
over 4GB range.  probably fixes intel X10-based systems that
map hdaudio high as well, but i was able to work around that
in the BIOS.  not so for the P51.

XXX: pullup-7, pullup-8.
2018-09-12 03:23:38 +00:00
msaitoh
621f6a129f Fix a bug that SIOC[GZ]IFDATA returned old ifreq structure. 2018-09-12 02:24:25 +00:00
jmcneill
23db4e9bae Add Exynos5 SMP support. 2018-09-11 10:06:53 +00:00
jmcneill
9e8a49fe54 Make this driver MPSAFE 2018-09-11 10:05:31 +00:00
martin
9ce05eeee9 Split the host name used for ftp transfers from the one used for http
transfers. This is slightly inconsistent, as directories are still
shared - but this allows us to default to cdn/nycdn for http (which don't
support ftp).
2018-09-11 08:05:18 +00:00
kre
3bdbd8da34 Whitespace cleanup from last update. NFC. 2018-09-11 03:30:40 +00:00
christos
22c09424bf add dead... 2018-09-11 02:20:31 +00:00
jmcneill
bdb01802e6 armgic_ipi_send: use GIC interface number, not CPU index, when setting
the target(s) for an IPI.
2018-09-10 19:43:58 +00:00
jmcneill
f220cf33a3 Re-add support for cpu nodes with status = "disabled", lost in previous commit 2018-09-10 19:15:16 +00:00
jmcneill
e6f51b2b7b psci_fdt_bootstrap -> arm_fdt_cpu_bootstrap 2018-09-10 19:09:38 +00:00
maxv
93ff7d6fe9 reduce the battlefield 2018-09-10 17:25:21 +00:00
ryo
61eb7c0a0b changed kcopy() to asm to avoid replacement memcpy() to kasan_memcpy() when defined KASAN. 2018-09-10 17:25:15 +00:00
maxv
8e9acb0a58 Replace KDASSERT by panic. 2018-09-10 16:43:24 +00:00
maxv
128b10ff4c Rename _pmap_alloc_pdp -> pmap_alloc_pdp, and make it public. 2018-09-10 15:14:50 +00:00
kre
15c15cae0c Add a test where printf is run twice in the same shell, and the
first invocation uses \c in a %b arg - make sure that 2nd invocation
is not affected by that  (it was until recently, for a very long time).
2018-09-10 15:02:11 +00:00
kre
f910883c96 A truly ancient bug found by Edgar Fuss
When printf is running builtin in a sh, global vars aren't reset to
0 between invocations.   This affects "rval" which remembers state
from a previous %b \c and thereafter always exits after the first
format conversion, until we get a conversion that generates an
error (which resets the flag almost by accident)

	printf %b abc\\c
	abc				(no \n)
	printf %s%s hello world
	hello				(no \n, of course, no world ...)
	printf %s%s hello world
	hello
	printf %s%s hello world
	hello
	printf %d hello
	printf: hello: expected numeric value
	0				(no \n)
	printf %s%s hello world
	helloworld			(no \n, and we are back!)

This affects both /bin/sh and /bin/csh (and has for a very long time).

XXX pullup -8
2018-09-10 14:42:29 +00:00
maxv
5ae421b5b1 Correctly align the size+redzone for KASAN, on amd64 it happens to be
always 8byte-aligned but on other architectures it may not be.
2018-09-10 13:11:05 +00:00
ryo
66d31a2d9b cleanup aarch64 mpstart and fdt bootstrap
* arm_cpu_hatch_arg is a bad idea. avoid serializing CPU startup, and eliminate arm_cpu_hatch_arg.
   in mpstart, resolve own cpu index using array of cpu_mpidr[] (aarch64)
 * add support fdt enable-method "spin-table"
 * add support fdt enable-method "brcm,bcm2836-smp" (for 32bit RaspberryPi)
 * use arm_fdt_cpu_bootstrap() instead of psci_fdt_bootstrap()
 * rename "arm/fdt/psci_fdt.h" to "arm/fdt/psci_fdtvar.h" because of conflict of include file for needs-flag
 * add devmap for cpu spin-table of raspberrypi3/aarch64
 * no need to force hatch APs for raspberrypi3/arm32 ifndef MULTIPROCESSOR.
 * fix to work pmap_extract(kerneltext/data/bss) even if before calling pmap_bootstrap

idea to use cpu_mpidr[] by jmcneill@. reviewd by skrll@. thanks.
2018-09-10 11:05:12 +00:00
skrll
6c0c5f0b73 Typo in comment from Joerg's gtmr diff 2018-09-10 10:55:02 +00:00
jmcneill
b07d637e10 Update sc_mptargets atomically, as PEs will be started up in parallel w/o locking here 2018-09-10 09:48:57 +00:00
skrll
36f4d88790 Don't use printx before setting up stack. 2018-09-10 07:30:33 +00:00
cherry
1699e34b78 Remove the last usage of xen_pirq_alloc() and pirq_establish()
outside of the x86 interrupt and xen events framework.

This allows us to finally unify the interrupt path for both Xen
and x86 as changes 'internal' to the subsystem.

This change has been kindly tested on real hardware by gson@

The change is not cosmetic and may thus affect users on various
hardware configurations - especially involving legacy hardware.

I look forward to bug reports.
2018-09-10 07:04:08 +00:00
skrll
58a99e2b33 Fix typos and DEBUG_MMU output. From Rin Okuyama. 2018-09-10 05:14:42 +00:00
cherry
56d430ba17 Make the use of 'irqs' in the range 0 < irq < 255 by xen
as a handle for internal use explicit.

This allows us to pass up the handle as "legacy" irq while
establishing interrupt handlers for xen.

No functional change.
2018-09-10 05:08:55 +00:00
cherry
d493030793 In the NIOAPIC case, we do not need to support "legacy" irqs,
ie; We don't need to simultaneously pass back the irq in the
range 0 < irq < 16 (which are sometimes described as "legacy"
in src

This was non-obvious, until the semantics of "legacy" were
used in inconsistent ways in Xen (to also mean interrupts in
the 0 < irq < 256 range) which causes problems with attempting
to unify the sys/arch/x86/isa/isa_machdep.c:isa_intr_establish_xname()
function between XEN and !XEN

This commit should not affect current functionality on any
either native or Xen. It is needed for future code reorg, and
published now as a preview.
2018-09-10 02:49:23 +00:00
jmcneill
7d8191aff7 Boot APs with status "disabled" if they have an enable-method property 2018-09-09 21:16:05 +00:00
jmcneill
fa8f1d440c Attach cpu nodes with status "disabled" if they have an enable-method
property. This is a valid configuration according to the devicetree
specification.
2018-09-09 21:15:21 +00:00