Commit Graph

272623 Commits

Author SHA1 Message Date
ad f3db7741b1 NetBSD 9.99.27 - cpu_data changes for topology 2019-12-20 21:13:48 +00:00
ad 8ae3ad1d35 Some more CPU topology stuff:
- Use cegger@'s ACPI SRAT parsing code to figure out NUMA node ID for each
  CPU as it is attached.

- For scheduler experiments with SMT, flag CPUs with the lowest numbered SMT
  IDs as "primaries", link back to the primaries from secondaries, and build
  a circular list of CPUs in each package with identical SMT IDs.

- No need for package/core/smt/numa IDs to be anything other than a u_int.
2019-12-20 21:05:33 +00:00
ad 1f8943cc8e Fix lfs_putpages() for bsize < nbpg. 2019-12-20 20:54:48 +00:00
martin 7c2911b1d1 Do not populate /dev on CD images by default, instead rely on init
doing the tmpfs / MAKEDEV magic.
On images for machines with serious ram shortage (where the additional
tmpfs hurts, like VAX) override this with CDDEV_POPULATE=true.
Should fix PR port-amd64/54776.
2019-12-20 19:46:51 +00:00
ad 519577eed6 KNF 2019-12-20 19:03:17 +00:00
maya f6a0429497 Update to 2020 dates. While here:
- Add regional holidays: Sigd (Beta Israel), Mimouna (Morrocan).
- Transliterate some things in an Israeli Hebrew accent (Succos -> Sukkot,
  Atzeres -> Atzeret)
2019-12-20 18:37:20 +00:00
tkusumi aecedc2e33 dm: Fix "table" output format of dm-linear and dm-stripe
The existing "table" output showing device file path of pdev is
not compatible with dm in Linux kernel (and also DragonFlyBSD).
It should be showing "major:minor" instead.

taken-from: DragonFlyBSD
2019-12-20 16:16:36 +00:00
wiz 1d3f9bf21d Improve wording. 2019-12-20 14:09:23 +00:00
roy 74f3117661 Note import of dhcpcd-8.1.3 2019-12-20 12:02:46 +00:00
roy 221cda2432 Sync 2019-12-20 12:01:35 +00:00
roy 77955cec60 Import dhcpcd-8.1.3 with the following changes:
* dhcpcd: Only report SSID when we have a carrier
 * IPv6ND: Fix reachable test
 * DHCP6: Work better with infinite addresses
 * DHCP6: Suboption 3 of NTP Server is a FQDN
 * DHCP6: Fix deprecating a delegated prefix
 * DHCP: Ensure we have a lease to extract options from
2019-12-20 12:00:18 +00:00
ryo 329f8835e6 Add a speculation barrier after the 'eret'.
Some aarch64 cpus speculatively execute instructions after 'eret',
and this potentiates side-channel attack.

from
 679db70801
2019-12-20 07:16:43 +00:00
christos e33a0ba00d move MV to sys.mk because it is used there. Pointed out by joerg@ 2019-12-20 04:04:25 +00:00
yamaguchi e8ed765847 Add information for ixl(4)'s VLAN hardware filter 2019-12-20 02:24:02 +00:00
yamaguchi fccad32b08 ixl(4) supports ETHERCAP_VLAN_HWFILTER
the feature is disable by default.

reviewed by msaitoh and knakahara
2019-12-20 02:19:27 +00:00
yamaguchi 014a70a7b4 ixl(4) supports ETHERCAP_VLAN_HWTAGGING
It is enabled by defualt

The features is realized by the following operations:
- internal switch
   - use "0b00: Show VLAN, DEI and UP in descriptor" mode
- TX
   - set VLAN tag and IL2TAG1 flag to each descriptor
- RX
   - use 32byte descriptor to use SHOWIV and L2SEL flag
     included in RX queue configuration
      - VLAN tags are not stored in descriptor without these config.
   - get VLAN tags from L2TAG1 field included in RX descriptor
     and set them to mbuf

reviewed by msaitoh and knakahara
2019-12-20 02:12:31 +00:00
yamaguchi 655278170a enable other interrupt even if ixl(4) is down 2019-12-20 02:04:26 +00:00
yamaguchi d6089d2708 Do IXL_AQ_OP_SET_VSI_PROMISC in ixl_ifflags_cb() for
applying IFF_PROMISC
2019-12-20 01:54:39 +00:00
yamaguchi 937673a74b Fix ixl(4) to set ENETRESET when IFF_ALLMULTI is changed 2019-12-20 01:49:30 +00:00
yamaguchi 2d4fc33b08 Fix ixl_{add|remove}_macvlan() to return errno
instead of command status
2019-12-20 01:45:20 +00:00
yamaguchi c8fe7acf18 Fix softint leak in ixl(4) when detaching 2019-12-20 01:18:53 +00:00
yamaguchi 0e7fa8c3d6 Use name of variable instead of that of data structure 2019-12-20 01:12:51 +00:00
macallan 58c590cd7c disable string op warnings for t_strcat
now this builds on macppc with gcc 8.3
from riastradh@
2019-12-19 19:19:28 +00:00
kamil 45ec176685 Avoid changing signedness bit with << in sdmmc_ioreg.h
Reported by <prlw1>
2019-12-19 17:24:45 +00:00
kamil 953f1255fa Avoid changing signedness bit with << 24 in ieee80211_crypto_tkip.c
Reported by <prlw1>
2019-12-19 16:29:50 +00:00
tkusumi 3e0e126e35 dm: Minor dm_ioctl.c fixes (indentation/typo/type/etc) 2019-12-19 16:27:39 +00:00
kamil 224cc57b03 Avoid changing signedness bit with << in rtsx_read_cfg()
Reported by <prlw1>
2019-12-19 16:25:13 +00:00
leot 4bf7b66e0f tcgetsid() is defined in <termios.h>, not <sys/types.h> or <unistd.h>. 2019-12-19 16:12:21 +00:00
jakllsch b8c4c0c34c Abort panel driver attach if required regulator is missing. 2019-12-19 16:00:52 +00:00
tkusumi b0538cc5a1 dm: Refactor dmioctl()
More readable without dm_ioctl_switch() as a separate function.
2019-12-19 15:57:46 +00:00
jakllsch d906a817cb Add comment for previous. 2019-12-19 15:54:21 +00:00
jakllsch 0d57b1aead Note addition of anxdp(4). 2019-12-19 15:44:30 +00:00
jakllsch 935c23ded4 Note change of net80211 behavior regarding association to any AP when
no SSID is configured.
2019-12-19 15:39:01 +00:00
tkusumi d2a4763044 dm: u_{int,long} -> unsigned {int,long} 2019-12-19 15:34:54 +00:00
jakllsch f634dfed5c Do not associate with with any access point if no SSID has been configured. 2019-12-19 15:27:07 +00:00
gson 52f0ad4e7d Code that's #if'ed out still ought to compile. 2019-12-19 15:17:30 +00:00
thorpej 809ba0b023 Whitespace police (minor infraction). 2019-12-19 10:51:54 +00:00
ryo 2d5f295267 aarch64_cache_info[] is not global 2019-12-19 09:47:42 +00:00
skrll 5a76f6ee89 G/C kasan_shadow_map call in pmap_enter
pmap_growkernel calls kasan_shadow_map for KVA
2019-12-19 07:44:56 +00:00
maxv 2a5d072bf2 Revert the filemon removal in bmake, as pointed out by maya we do care
about not introducing divergence with FreeBSD, and the cost of unused
is acceptable here.
2019-12-19 07:14:07 +00:00
jakllsch ed97ef114b add template bits for optional eDP panel on RockPro64 2019-12-19 00:52:29 +00:00
jakllsch 797c778dfd paper over the rkpwm get_conf function that otherwise doesn't seem to
let things work
2019-12-19 00:42:12 +00:00
jakllsch bbda6a058f enable panel at fdt drivers 2019-12-19 00:36:26 +00:00
jakllsch 18f2cada68 Add another panel@fdt driver, this time for DRM-style panels.
To do: migrate away from other panel driver.
2019-12-19 00:35:01 +00:00
jakllsch 0343439250 add anxdp(4) 2019-12-19 00:28:34 +00:00
jakllsch 41be96bf1f add Rockchip (RK3399) glue for Analogix DisplayPort core 2019-12-19 00:25:58 +00:00
jakllsch ad370c5c20 add Analogix DisplayPort core driver 2019-12-19 00:23:57 +00:00
riastradh fedc917302 Implement rndseed support in efiboot and fdt arm.
The EFI environment variable `rndseed' specifies the path to the
random seed.  It is loaded only for fdt platforms at the moment.

Since the rndseed (an rndsave_t object as defined in <sys/rndio.h>)
is 536 bytes long (for hysterical raisins), and to avoid having to
erase parts of the fdt tree, we load it into a physical page whose
address is passed in the fdt tree, rather than passing the content of
the file as an fdt node directly; the kernel then reserves the page
from uvm, and maps it into kva to call rnd_seed.

For now, the only kernel that does use efiboot with fdt is evbarm,
which knows to handle the rndseed.  Any new kernels that use efiboot
with fdt must do the same; otherwise uvm may hand out the page with
the secret key on it for a normal page allocation in the kernel --
which should be OK if there are no kernel memory disclosure bugs, but
would lead to worse consequences than simply loading the seed late in
userland with /etc/rc.d/random_seed otherwise.

ok jmcneill
2019-12-18 21:46:03 +00:00
riastradh 4fa64b2cc2 New function cpu_startup_hook on arm.
Called at end of cpu_startup.  Can be defined in, e.g., evbarm to do
additional stuff after cpu_startup.  Defined as a weak alias to a
function that does nothing, so optional.

ok jmcneill
2019-12-18 21:45:43 +00:00
ad 7c88a62545 PR kern/54783: t_mmap crahes the kernel
- Fix various locking & sequencing errors with breaking loans.

- Don't call uvm_pageremove_tree() while holding pg->interlock as radixtree
  can take further locks when freeing nodes.
2019-12-18 20:38:14 +00:00