Commit Graph

261983 Commits

Author SHA1 Message Date
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
jmcneill
5ad7c977bd Add fdt_add_bus_match, which is like fdt_add_bus but allows for the caller to filter child nodes on their own 2018-09-09 21:14:04 +00:00
palle
1e0d01e5bc Add instructions for building NetBSD on modern Solaris 11 hosts 2018-09-09 19:17:21 +00:00
jmcneill
0e6fc3745f Add a reboot command to the bootloader 2018-09-09 18:00:20 +00:00
jmcneill
7f3222e313 Add support for setting environment variables. Currently the following env
vars are supported: "fdtfile", "initrd", and "rootdev".
2018-09-09 17:55:22 +00:00
jmcneill
af5599326c Take interrupt-map-mask into consideration when mapping PCI interrupts. 2018-09-09 13:40:28 +00:00
jmcneill
ec9833499c Add "dtb" command for loading a custom .dtb file. 2018-09-09 13:37:54 +00:00
jmcneill
6c7b9edf45 Fix previous; PSCI_CPU_ON requires an MPIDR! 2018-09-09 13:32:26 +00:00
jmcneill
75b61334f0 Ditch arm,arm-v8 compatible string (everything uses arm,armv8) 2018-09-09 13:22:50 +00:00
maya
591f556772 Add a todo item for a future major bump (rename many symbols) 2018-09-09 07:24:59 +00:00
aymeric
51b425ef08 Pass clock provider's phandle to fdtbus_clock_controller_func.decode()
and update callers.

This allows to accomodate clock managers whose clocks are identified
directly by a clock instead of a pair (clock provider, index).

ok jmcneill@ on port-arm
2018-09-09 07:21:17 +00:00
pgoyette
e1d851afc3 Yet another diagused 2018-09-09 03:12:51 +00:00
pgoyette
be7bf78fc4 Another __diagused
OK riastradh@
2018-09-09 03:10:03 +00:00
pgoyette
b8ab778adc Add __diagused attribute to some diagnostic routines.
OK riastradh@
2018-09-09 03:04:43 +00:00
riastradh
3951e80425 libdrm needs libpci for bus info stuff. 2018-09-09 01:53:23 +00:00
martin
df9944f85a Fix editor accident in previous 2018-09-08 20:01:19 +00:00
christos
1c04a109ec mention libnv 2018-09-08 19:12:01 +00:00
kre
ecfbb4457e Make sure we're in the standard locale when testing for printf
being built in to the shell, so we don't receive an unrecognisable
(to the script) message from the shell when we ask it.
2018-09-08 18:24:01 +00:00
martin
a6c219b7c4 PR port-sgimips/53583: fetch kernel name always before using it.
Make the struct utsname local to avoid future similar issues.
2018-09-08 18:10:35 +00:00
christos
9e195d8e86 fix kernel build. 2018-09-08 14:32:25 +00:00