272447 Commits

Author SHA1 Message Date
tkusumi
e31180cc71 dm: Add missing "ioctl called" debug prints 2019-12-22 12:28:54 +00:00
skrll
ae2e1cfd5d Add brcm,bcm2711 as an alias for brcm,bcm2838 2019-12-22 12:21:45 +00:00
kre
a6dacc2280 Use fork() rather than vfork() when forking to run a background
process with redirects.   If we use vfork() and a redirect hangs
(eg: opening a fifo) which the parent was intended to unhang,
then the parent never gets to continue to unhang the child.

eg:  mkfifo f; cat <f &; echo foo>f

The parent should not be waiting for a background process, even
just for its exec() to complete.   if there are no redirects there
is (should be) nothing left that might be done that will cause any
noticeable delay, so vfork() should be safe in all other cases.
2019-12-21 18:54:15 +00:00
ad
5056cf4d85 Fix merge error - don't init uvmpd_lock twice. 2019-12-21 16:10:20 +00:00
tkusumi
c281327782 dm: Fix dm-stripe's "status" output format
As mentioned in "dm: Don't try to implement "status" as subset of "table"",
dm-stripe in NetBSD doesn't have correct "status" output format.
Implement ->info() to sync with Linux kernel.

Note that num_error for stripe device isn't implemented yet.

taken-from: DragonFlyBSD
2019-12-21 16:00:29 +00:00
ad
4d754f38b3 uvm_page_to_phys: mask off the lower bits. 2019-12-21 15:16:14 +00:00
ad
d22a258086 NetBSD 9.99.28 - cpu_data & UVM changes. 2019-12-21 15:12:34 +00:00
ad
479b92623d Detangle the pagedaemon from uvm_fpageqlock:
- Have a single lock (uvmpd_lock) to protect pagedaemon state that was
  previously covered by uvmpd_pool_drain_lock plus uvm_fpageqlock.
- Don't require any locks be held when calling uvm_kick_pdaemon().
- Use uvm_free().
2019-12-21 14:50:34 +00:00
ad
a7b92da9a8 - Rename VM_PGCOLOR_BUCKET() to VM_PGCOLOR(). I want to reuse "bucket" for
something else soon and TBH it matches what this macro does better.

- Add inlines to set/get locator values in the unused lower bits of
  pg->phys_addr.  Begin by using it to cache the freelist index, because
  computing it is expensive and that shows up during profiling.  Discussed
  on tech-kern.
2019-12-21 14:41:44 +00:00
ad
92ec96a550 Counter tweaks:
"zeroaborts" + "free" don't need to be per-CPU counters, and "bucketmiss"
wasn't used.  Remove those and cluster by usage.
2019-12-21 14:33:18 +00:00
ad
ddd3a0be1e uvmexp.free -> uvm_free() 2019-12-21 13:00:20 +00:00
ad
f391f83641 Add uvm_free(): returns number of free pages in system. 2019-12-21 12:58:26 +00:00
ad
090e8e0a95 Fix build break (ci->ci_dev is not available on every port). 2019-12-21 12:53:53 +00:00
tkusumi
ee87a3cadb dm: Remove target's ->deps() by implementing deps in dm core
Retrieving device dependencies doesn't need to be target specific.
The reason it currently needs ->deps() is because dm core doesn't
have data structure that allows table to walk through target's
underlying devices. Add struct dm_mapping to be able to do this,
and remove ->deps()'s from targets which basically do the same thing.

    =====(A) before this commit
    table
        |                                     [dm core]
    -------------------------------------------------------
        |           pdev      pdev      pdev  [dm targets]
        v          ^         ^         ^
        target----/---------/---------/
        (void*)

    =====(B) this commit
    table---->mapping-->mapping-->mapping-->...
        |           |         |         |
        |           v         v         v     [dm core]
    -------------------------------------------------------
        |           pdev      pdev      pdev  [dm targets]
        v          ^         ^         ^
        target----/---------/---------/
        (void*)

taken-from: DragonFlyBSD
2019-12-21 11:59:03 +00:00
ad
6158c48976 schedstate_percpu: add new flag SPCF_IDLE as a cheap and easy way to
determine that a CPU is currently idle.
2019-12-21 11:54:04 +00:00
ad
2073010ee4 uvm_reclaimable(): need to sum the per-CPU values for filepages/execpages. 2019-12-21 11:41:18 +00:00
ad
d65c57aa21 Fix build failure. 2019-12-21 11:35:25 +00:00
wiz
cc99a5951f Add license from https://github.com/onetrueawk/awk/blob/master/LICENSE 2019-12-21 09:11:59 +00:00
maya
65f02c7677 Avoid the risk of being wrong and don't expand meaning of holiday. 2019-12-20 22:58:53 +00:00
roy
d6307b3a41 Note import of dhcpcd-8.1.4 2019-12-20 22:26:16 +00:00
roy
7ad4da0c36 Sync 2019-12-20 22:24:59 +00:00
roy
1065b8acaf Update to dhcpcd-8.1.4 with the following change:
* options: Fix allocating the script option
2019-12-20 22:23:55 +00:00
ad
87bd021b62 Use CPU_COUNT() to update nswtch. No functional change. 2019-12-20 21:52:51 +00:00
ad
dd632e5898 Split subr_cpu.c out of kern_cpu.c, to contain routines shared with rump. 2019-12-20 21:20:09 +00:00
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