Commit Graph

263144 Commits

Author SHA1 Message Date
martin
34ccfcc91f Explicitly document the incompatibility between USE_PIGZGZIP
and USE_XZ_SETS. Disable the latter if the former is enabled.
2018-11-15 09:23:50 +00:00
knakahara
a8700cbec5 tprof: Add silvermont, airmont support.
I tested on Atom C2758 (Rangeley).
2018-11-15 07:20:31 +00:00
riastradh
71c39f780a Don't try to interpret the second half of a 64-bit BAR as another one.
From msaitoh@.
2018-11-15 06:53:58 +00:00
riastradh
fe26b32950 Use callout_halt, not callout_stop, for FreeBSD callout_drain shim.
Callers expect callout_drain will wait for it to complete if it has
fired.
2018-11-15 05:43:57 +00:00
riastradh
191d101a58 cbrtl_powl is xfail only if long double has more bits than double. 2018-11-15 05:14:20 +00:00
riastradh
3075d1d32f Make the direct-map API always available, but fail if KASAN or rump.
(Only for architectures that support it at all; on others,
__HAVE_MM_MD_DIRECT_MAPPED_PHYS/IO are still undefined and the
functions unimplemented.)

This gives modules like zfs an opportunity to use it.

While here, fix the one caller of mm_md_direct_mapped_phys that
ignored the return value (and make sure to call pmap_kremove/update
before uvm_km_free).
2018-11-15 04:59:02 +00:00
riastradh
d810a3da5f Include <bsd.own.mk> before using ACTIVE_CC. Fixes make errors. 2018-11-15 04:57:00 +00:00
riastradh
5016a9c839 Respect the __HIDE_DELAY kludge like on other ports. 2018-11-15 04:56:52 +00:00
riastradh
c3426bd36f Need <dev/mm.h> for mm_md_direct_mapped_phys.
It turns out this code always sees __HAVE_MM_MD_DIRECT_MAPPED_PHYS as
disabled on amd64, for reasons that I shall address forthwith, but it
is enabled on aarch64 and so the MKZFS=yes build breaks.
2018-11-15 04:55:49 +00:00
riastradh
6af8fc2044 Be consistent about _KERNEL vs _HARDKERNEL in zfs.
As it happens, on x86 both _HARDKERNEL and _KERNEL get defined; see
the conditional in sys/rump/Makefile.rump that _refrains_ from
defining _RUMPKERNEL on x86.

So the only version of this code that has been tested is the one with
all of it included.  But on, e.g., aarch64, we do not get _HARDKERNEL
here, and the code fails to build because some things use the field
struct spa::spa_deadman_cycid under _KERNEL when it is declared only
under _HARDKERNEL.

If there's a reason _not_ to use this in rump -- and it's not obvious
to me why -- then all access to the field needs to agree to use
_HARDKERNEL.
2018-11-15 04:55:38 +00:00
riastradh
3c01401a94 Omit unused definition with broken cpp conditional. 2018-11-15 04:55:26 +00:00
riastradh
ec4edf7a44 Omit conflicting definition that breaks build on aarch64. 2018-11-15 04:55:17 +00:00
riastradh
30279c00db "PRIu64", not llu, to print uint64_t. 2018-11-15 04:55:06 +00:00
msaitoh
0e1d62136b - I misread ci_acpiid as ci_apicid... LAPIC ID is in ci_cpuid.
Print it correctly.
- ci_initapicid(Initial APIC ID) is uint32_t, so use %u.
2018-11-15 04:53:54 +00:00
ozaki-r
75d57a2a1e Fix the format of ifconfig linkstr; it takes an argument 2018-11-15 04:37:20 +00:00
ozaki-r
bd3e222d34 ifconfig: add linkstr/-linkstr to the help message 2018-11-15 04:36:46 +00:00
msaitoh
c84a950fbd Add MAWAU (for BND{LD,ST}X instruction) from the latest Intel SDM. 2018-11-15 03:50:22 +00:00
uwe
540f2c17fd _cursesi_addbyte - fix function comment after what looks like an
editing accident.
2018-11-15 03:17:51 +00:00
manu
1818bfe1cb Workaround NBP PN533 USB toggle bit bugs
The PN533 is known to mishandle the USB toggle bit, causing replies to
be filtered out by the host controller. As a result, the kernel sees
a timed out operation.

Vendor errata suggests that userland applications should detect the
situation on read timeout, and write a dumy frame to resync the toggle bit.
NFC Tools's libnfc does just that, but in order to succeed, the dummy
frame write must not be reported as timed out.

We therefore introduce a new USB quirk for devices known to miss output
acks. When that occur, we pretend that the operation succeeded, leaving
userland the duty to check that everything went okay.

This workaround lets libnfc recover from interrupted communications
without the need te reboot the system.
2018-11-15 02:35:23 +00:00
jmcneill
e39a167dd1 Instead of disabling preemption, set the binary point field to the minimum supported value 2018-11-15 00:01:38 +00:00
scole
8ba91f1504 - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
  ease porting woes.  add some related macros
  locore.S is incorrectly assuming same layout and seems painful
  to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
2018-11-14 21:10:59 +00:00
scole
14d12cb8fd add more items 2018-11-14 20:13:14 +00:00
jakllsch
c4e8c52522 Switch to NKMEMPAGES_MAX_UNLIMITED.
This aligns aarch64 with our other modern 64-bit ports.  Significantly
improves file caching utilization on aarch64 systems with copious RAM.
2018-11-14 20:03:28 +00:00
maxv
62a5bd239e Take RAX from the VMCB and not the VCPU state, the latter is not
synchronized and contains old values.
2018-11-14 19:14:40 +00:00
wiz
a1961053ec Sort sections. New sentence, new line. 2018-11-14 18:28:18 +00:00
hannken
d22a72be5c Apply the recent fixes to {send,recv}mmsg() to their compat variants. 2018-11-14 17:51:37 +00:00
riastradh
44773f2a69 Define _LP64 or _ILP32 for all architectures.
Rather than write out a table for each architecture, rely on the C
compiler to define _LP64 for 64-bit ones, on the assumption that
anything not LP64 is ILP32, and on CTASSERTs to verify this
assumption so that if it's wrong it'll fail safely with a noisy build
failure.

Gives zfs half a chance of building on, e.g., powerpc.
2018-11-14 17:09:08 +00:00
mlelstv
51aec893ad In validate_bootsel, the code assumed that arr[j][i] can be accessed
with something like arr[0][j*ARRAYWIDTH+i]. gcc no longer allows such
hacks and discards the code silently because of undefined behaviour.
2018-11-14 12:05:29 +00:00
jmcneill
836620abab Define __HAVE_PCI_MSI_MSIX 2018-11-14 11:02:52 +00:00
skrll
64184be9c1 Some fixes for QEMU/hppa.
Don't call desidhash_l on pcxl2 as it doesn't support it.  QEMU emulates
this cpu and would trap on illegal instruction for the diag in desidhash_l

Allow a FPU to be missing... more fixes are likely here.

QEMU doesn't set C bit properly yet
2018-11-14 10:58:04 +00:00
martin
25d7bb6a49 Add debug files for recent xserver addition 2018-11-14 08:44:34 +00:00
skrll
9d641f50b8 defflag XHCI_DISABLE_MSIX 2018-11-14 06:56:30 +00:00
knakahara
3d0c03bef5 let ATF detect a bug fixed by if_vla.c:r1.132. 2018-11-14 05:07:48 +00:00
msaitoh
8be8ad3944 - Add new wm_gmii_{hv,i82544}_{read,write}reg_locked() and use them in
wm_gmii_{hv,i82544}_{read,write}reg(). *_locked() functions are not
  mii(4) API functions, so it's not required to keep the mii API. Change
  the PHY register type from int to uint16_t. It also change the usage of
  return value. It returns zero on success and non-zero on error.
- Check the return value of *_locked() function and treat it.
- Use *writereg_locked() function to reduce race condition in
  wm_init_lcd_from_nvm().
- Add comment.
2018-11-14 03:41:20 +00:00
kre
0b70db4e58 Add a test for the bug in PR bin/53712 ( " { } > out " core dump )
Tested with both fixed, and unfixed, versions of /bin/sh (and in
posix mode, where that is a syntax error).
2018-11-14 02:37:51 +00:00
martin
c4cf3d8d86 Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.
2018-11-14 02:30:00 +00:00
jmcneill
93f5645a78 Update GICD_CTLR reg bit definitions to reflect the layout of the register
when either in non-secure state or for a system that only supports a single
state.
2018-11-13 22:25:28 +00:00
skrll
b3b36747d3 Apply -fno-delete-null-pointer-checks so PAGE0 is handled correctly
netinstall.lif works again
2018-11-13 21:22:37 +00:00
skrll
e5167a0bf7 Trailing whitespace 2018-11-13 21:20:11 +00:00
skrll
32fb419ab7 On second/third thoughts we can use the pages before the kernel
everywhere.
2018-11-13 20:48:14 +00:00
jmcneill
77715e1a23 Fix intrctl for pics with non-0 irqbase 2018-11-13 20:24:48 +00:00
jdolecek
456ea4f981 use pci_intr_establish_xname() 2018-11-13 20:12:45 +00:00
jdolecek
f798e483bb whitespace fix, NFC 2018-11-13 19:39:04 +00:00
jakllsch
a8e9e1a9cb Add AXP803 current and maximum battery capacity sensors 2018-11-13 19:06:05 +00:00
scole
5b582482a6 Mention macppc 601 needs to use separate boot floppies, kernels, and specific kernel on CD 2018-11-13 18:48:25 +00:00
jakllsch
eec37234f1 Use semantically-correct "_lo" in AXP_ADC_RAW macro. 2018-11-13 18:27:32 +00:00
bouyer
a5c25858d1 Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.
2018-11-13 17:22:04 +00:00
mlelstv
3118701f5e Fix some error handling, json support, keyring handling. 2018-11-13 14:52:30 +00:00
skrll
9f7f145236 Fix/add KASSERTS to work with a system of MAXCPUS. Add some comments to
explain things.

Discussed with rmind
2018-11-13 11:06:19 +00:00
mlelstv
be56c11f44 Framebuffer definitions for multiboot protocol. 2018-11-13 11:01:54 +00:00