Commit Graph

259234 Commits

Author SHA1 Message Date
christos a3c16b5549 Provide more compatibility with readline headers; now python-3.6.5 works
when changing 'readline' -> 'edit' in setup.py.
Revert previous conditional setting of unbuffered.
2018-06-09 17:41:55 +00:00
macallan 84a5dd583d set options ADBKBD_EMUL_USB by default
With this ADB and USB keyboards can coexist on the same mux, as needed by
built-in Bluetooth modules on some *Books
should fix PR53351
2018-06-09 02:25:52 +00:00
jakllsch 4a4f6b1cdf Avoid unnecessarily touching CNTP_CTL.
We may not have the privilege of accessing CNTP_CTL if running as a
virtualized guest, and we're not using the Physical Timer for interupt
generation anyway.
2018-06-09 01:17:35 +00:00
macallan 939baef385 when switching CPU speed using DFS, only use xcalls on MULTIPROCESSOR kernels 2018-06-08 23:40:44 +00:00
macallan feb0c177bd fix low CPU speed reporting when using DFS 2018-06-08 23:39:31 +00:00
jmcneill f062f1775d Provide bs_mmap implementations for bcm283x based boards.
PR:		port-arm/53283
Submitted by:	Nick Hudson
2018-06-08 18:09:43 +00:00
sevan 66fd14939a Prior to ZFSv15, volinit was an undocumented command which could be used to
populate /dev with zvol device nodes.
Following on with the recent ZFS/DTrace update, this is no longer a valid option
and causes the mountall script to barf zfs usage() following from
unrecognized command 'volinit' error.
2018-06-08 14:44:21 +00:00
maya 262c7ccc67 Add more aliases for Hebrew and Arabic ISO-8859-... encodings.
ISO-8859-8 is supposed to be visual order (i.e. legible if displayed ltr)
ISO-8859-8-i is supposed to be implicit logic order
ISO-8859-8-e is supposed to be explicit about order

In practice, ISO-8859-8 implying visual order is rare, and logic
order is used. ISO-8859-8-e is rarely used.

Same for Arabic, which uses ISO-8859-6-...

Mentioned in RFC 1555, RFC 1556.
2018-06-08 12:07:41 +00:00
nonaka 24fc960097 Remove unused include. 2018-06-08 11:52:30 +00:00
knakahara 99baae3101 iwm(4) workaround as ifp->if_hwdl can be set only once. Advised nonaka@n.o and ozaki-r@n.o, thanks.
To avoid for iwm(4) to set if_hwdl before loading firmware, use local address
as dummy. See sys/net/if.c::if_set_sadl().
2018-06-08 11:18:23 +00:00
knakahara 12ebec1af3 Fix "ifconfig iwm0" failures reported by ryoon@n.o. Advised nonaka@n.o and ozaki-r@n.o, thanks. 2018-06-08 11:09:24 +00:00
nonaka 4312665c73 fix usage of `arp -d'. 2018-06-08 04:24:12 +00:00
jakllsch 46214a36bf Make ld_virtio aware of a possible device-side write cache. 2018-06-07 23:32:30 +00:00
rjs 272c99c1b7 Add missing xcb files to build.
Fixes xsrc/53337.
2018-06-07 18:16:55 +00:00
macallan bc9abb2a74 reduce debug spam, use IPI_VECTOR 2018-06-07 17:02:12 +00:00
riastradh 74179ba271 Disable loading XMSS keys by default too.
Nobody should be using XMSS host keys without an explicit decision,
because they're qualitatively different from all other types of host
keys in that they require keeping state.

This also eliminates a harmless but confusing warning that began
after we stopped generating XMSS keys by default.
2018-06-07 15:26:09 +00:00
thorpej 8619b1ab43 Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
2018-06-07 13:36:28 +00:00
thorpej 685c4e4beb In device_register(), if the device is an "iic" child of "imcsmb",
attach a I2C_PROP_INDIRECT_DEVICE_WHITELIST property that limits
the allowed devices to "spdmem" and "sdtemp".  Also set the
I2C_PROP_INDIRECT_PROBE_STRATEGY property to I2C_PROBE_STRATEGY_NONE,
since that controller can't issue any of the "quick" commands.

XXX It would be nice to be able to do this in the imcsmb driver
itself, but the way autoconfiguration works makes that infeasible.
2018-06-07 13:35:31 +00:00
thorpej ec79b37bf9 Changes / enhancements to i2c indirect device auto-configuration:
— iic_search() chooses a “probe strategy” based on the
  "i2c-indirect-probe-strategy” property on the “iic” instance.
  Valid values are "smbus-quick-write”, "smbus-receive-byte”, and
  “none”.  If no value is specified, the default is "smbus-quick-write”.

— If the "i2c-indirect-device-whitelist” exists on the “iic” instance,
  iic_search() will first check the driver name in the cfdata_t against
  this list, and only allow the match/probe to move forward if the
  cfdata_t driver name is in the list.  This is primarily to accommodate
  the Intel integrated memory controller neutered-i2c-thing.

— If the cfdata_t specifies a wildcard address, each address of the i2c
  bus will be consulted.  If the cfdata_t contains a nailed-down address,
  then we limit the bus scan to that specific address.

— We explicitly skip reserved / special i2c addresses, such as the
  General-Call address, etc.

— We introduce the notion of a “match quality” for i2c drivers.  From
  lowest-quality to highest-quality: matched by plausible address only,
  matched by plausible address and poking at the bus to see if the
  device looks reasonable, matched by direct-config “compatible” string,
  matched by direct-config “driver name” string.

— If the “match quality” is merely “plausible address only”, then
  iic_search() will use the probe strategy selected above to see if
  a device responds to that address.
2018-06-07 13:30:49 +00:00
kamil d2d2a14700 Replace HAVE_GCC with ACTIVE_CC == gcc checks
Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
2018-06-07 13:21:44 +00:00
jakllsch 54ab308098 note virtio(4) now attaching to fdt(4) w/ MMIO transport 2018-06-07 12:36:45 +00:00
jakllsch e2c33b38ea make note of new 'virtio at fdt' attachment 2018-06-07 12:32:26 +00:00
thorpej f135fe1d80 Back out unintended commits. 2018-06-07 05:56:18 +00:00
thorpej 1adbfe6cdb Adjust come defaults:
- Initial gain -> 16x
- auto_gain -> true
2018-06-07 05:54:23 +00:00
maya 1a312b74dd sqlite 3.24 out. 2018-06-07 05:48:29 +00:00
thorpej fe26bdc725 A minimal change to prevent the Raspberry Pi i2c driver from
looping forever if the command buffer and data buffer are both
NULL.  XXX This driver needs an overhaul.

Also, preemptively return an error if we get a 10-bit address,
because we don't yet handle them correctly.
2018-06-07 05:07:28 +00:00
jmcneill 08499a2539 Add extra sun50i-a64 nodes to SoPine Baseboard dts. 2018-06-07 00:51:41 +00:00
jmcneill 389a0529ba Disable HS200 and DDR52 on A64 eMMC for now, and use len=0 for max length
transfers.
2018-06-07 00:39:27 +00:00
uwe 3173bf2629 Provide commented out OF_enter() that comes in handy when debugging. 2018-06-06 23:50:29 +00:00
uwe 6264838909 Provide an option to use libsa allocator. Not yet enabled. Same
binary code is generated.

To enable uncomment -DHEAP_VARIABLE and comment out alloc.c in the
makefile.

PR port-macppc/44895
2018-06-06 22:56:25 +00:00
jakllsch 848a3c549d Add virtio drivers and potential children thereof.
In part from sparc64 GENERIC.
2018-06-06 20:38:00 +00:00
jakllsch 71cde4cb30 Add Virtio MMIO transport.
Adapted in part from OpenBSD.
2018-06-06 20:35:36 +00:00
kamil d1d5ea63f6 Enhance the syntax in order to be acceptable by Clang
Replace "((crv == 0))" with "(crv == 0)", as the intention is to check the
value, whether it is equal to 0.

This fixes kernel=GENERIC build under MKLLVM=yes.

Sponsored by <The NetBSD Foundation>
2018-06-06 20:05:36 +00:00
kamil 39a640fe4f Comment out unused functions in order to fix Clang build
ixv_rearm_queues() and ixgbe_rearm_queues() are unused.

Sponsored by <The NetBSD Foundation>
2018-06-06 20:02:31 +00:00
jakllsch 9fc461ecf5 more completely gic_fdt_disestablish() such that it's possible to
re-establish later
2018-06-06 19:49:51 +00:00
jakllsch 21f595a10a shuffle mechanics of files.virtio config(5) include location,
without actually moving the contents thereof from dev/pci yet
2018-06-06 18:10:35 +00:00
kamil bba5ce3052 Really disable unsupported $CC flag for LLVM
The build of kernel modules works now:

  ./build.sh -V MKLLVM=yes -V MKGCC=no -V HAVE_LLVM=yes modules

Sponsored by <The NetBSD Foundation>
2018-06-06 17:54:33 +00:00
kamil 60490a027e Correct compilation of osnet/dev/systrace/systrace.c under Clang
Mark arguments to dtrace_probe_lookup() with __UNCONST().
The proper fix constifying it causes pollution of const in too many files.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 17:47:10 +00:00
kamil 3982d87926 Correct compilation of osnet/dev/profile/profile.c under Clang
Constify char* types when initialized with liternals.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 17:19:49 +00:00
jakllsch b36fa7c860 remove now-irrelevant <dev/pci> includes 2018-06-06 17:17:31 +00:00
kamil afef2ab3de Correct compilation of osnet/dev/dtrace/x86/dis_tables.c under Clang
Constify dgr_suffix.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 17:16:56 +00:00
jakllsch 8e3d4ca686 add virtio_pci to list of not-yet-enabled modules 2018-06-06 16:46:02 +00:00
jakllsch 09582ef971 fix up virtio module for current structure; add virtio_pci module 2018-06-06 16:11:36 +00:00
kamil 9a546da821 Correct compilation of osnet/dev/dtrace/dtrace_hacks.c under Clang
Use __UNCONST() to remove const from an argument.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 15:54:03 +00:00
kamil 03c04814f0 Correct compilation of osnet/dist/uts/common/dtrace/dtrace.c under Clang
Add missing const keywords in dtrace_strncmp().

Initialize lim1 and lim2 to zero always. This prevents a false positive
about potentially unset but used variable.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 15:24:57 +00:00
kamil f64d965806 Restrict -Wno-unused-but-set-variable in sys/modules/dtrace/dtrace to GCC
Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 15:15:41 +00:00
kamil ec5a3bbdb8 Swap conditions HAVE_LLVM -> HAVE_GCC 2018-06-06 15:01:13 +00:00
kamil e4cc1efec2 Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC
Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 14:57:38 +00:00
kamil 76b9fb4568 Make cddl/osnet/Makefile.zfs compatible with MKLLVM=yes
Clang/LLVM does not recognize:
 - -Wno-discarded-qualifiers

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 14:47:54 +00:00
kamil 8627ada168 Correct compilation of osnet/dist/cmd/dtrace/dtrace.c under Clang
Add missing const keywords.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
2018-06-06 14:46:58 +00:00