273098 Commits

Author SHA1 Message Date
kardel
3408b8e06e Provide SIOCGIFMEDIA ioctl to deliver link status.
Add link0 (IFF_LINK0) flag to map INIT state to LINK_STATE_DOWN
instead of LINK_STATE_UNKNOWN. This allows routing software to
suppress routes to the interface of the carp interface when in
init state (e. g. link down in the parent interface).
2020-01-16 12:56:39 +00:00
isaki
71d284c021 Remove .else part of .if OBJECT_FMT == ELF.
All similar parts in other Makefiles are removed in 2010.
2020-01-16 12:54:16 +00:00
ad
6c03ec4c5b Back out previous, it's broken. 2020-01-16 09:23:43 +00:00
yamaguchi
d807a63eda Fix wrong usage of PCI_PRODUCT(), ixl(4) 2020-01-16 07:19:47 +00:00
maya
2ff3c6f126 dm(8) doesn't cause problems on suspend, don't block it.
Tested by Matthias Petermann, thanks!
2020-01-16 07:18:08 +00:00
yamaguchi
5c10fc8b15 Fix ixl(4) not to assign interrupts to cpu #0
if ncpu > queue pairs
2020-01-16 07:16:04 +00:00
yamaguchi
512493ade9 Use def{flag,param} for parameters in ixl(4) 2020-01-16 07:11:50 +00:00
mrg
8dfd33c1dc make the topology support empty on non-SMP enabled kernels.
reduces kernel sizes and also fixes the builds.
2020-01-16 06:34:24 +00:00
martin
7f682dc5e0 Avoid using the global "pm" variable in utility functions - during
extended partitioning they may point to a different device.
2020-01-15 19:37:41 +00:00
martin
ead2350f26 Add a method to query the partitioning schemes "internal idea" of a
cylinder size - whatever that means in the real world.
2020-01-15 19:36:30 +00:00
martin
3485b8ad62 Fix handling of inner/outer partitions (e.g. MBR and disklabel) in
extended partitioning:
 - when editing a disk with such a schme, offer both partitions in two
   steps
 - when commiting changes save the inner partitions after the outer ones
2020-01-15 19:08:24 +00:00
ad
d1baa29b65 Back out the cpu_switchto() workaround now that it's no longer needed. 2020-01-15 18:47:23 +00:00
ad
5acb4bb7d8 NetBSD 9.99.38 - VM system changes 2020-01-15 18:45:57 +00:00
ad
ada01d2fe1 vmstat -s: report new stats:
0 per-cpu stats one synced
     7246 per-cpu stats all synced
     4092 anon pages possibly dirty
     8881 anon pages dirty
        0 anon pages clean
       68 file pages possibly dirty
        0 file pages dirty
  2367889 file pages clean
2020-01-15 17:56:46 +00:00
ad
05a3457e85 Merge from yamt-pagecache (after much testing):
- Reduce unnecessary page scan in putpages esp. when an object has a ton of
  pages cached but only a few of them are dirty.

- Reduce the number of pmap operations by tracking page dirtiness more
  precisely in uvm layer.
2020-01-15 17:55:43 +00:00
tkusumi
5425c6e737 fstyp: Remove redundant best_i check in HAMMER2
https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD
2020-01-15 15:32:05 +00:00
tkusumi
081dcb4e9f fstyp: Use strlcpy(3) for HAMMER1
https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD
2020-01-15 15:30:46 +00:00
ad
c2f374d6c6 Push the INVLPG limit for shootdowns up to 16 (for UBC). 2020-01-15 13:22:03 +00:00
jmcneill
52014d8a74 Add imxi2c 2020-01-15 11:36:48 +00:00
jmcneill
bcbbf7366e Add i2c clocks 2020-01-15 11:36:34 +00:00
jmcneill
20acbc911f Match the more generic fsl,imx21-i2c compat string 2020-01-15 11:35:58 +00:00
ad
198cbac382 Rewrite bcmp() & memcmp() to not use REP CMPS. Seems about 5-10x faster for
small strings on modern hardware.
2020-01-15 10:56:49 +00:00
skrll
a10897af82 Fix build 2020-01-15 10:25:47 +00:00
mrg
da560be65a add a note about arm* cpu topology support. 2020-01-15 09:21:21 +00:00
mrg
20aa1cad27 port the arm64 cpu topology setup for big.little to arm.
rename arm64 cpu_do_topology() to arm_cpu_do_topology() and
call it from both arm cpu_attach().

replace both aarch64_set_topology() inline code in arm
cpu_attach() with new arm_cpu_do_topology(), which is called
by the arm64 locore as well (possibly not needed, which would
allow it to become static.)

not yet tested on a real big.little armv7 system.  tested
on rockpro64 and pinebook pro.
2020-01-15 08:34:04 +00:00
yamaguchi
66a44ae83e Fix typo (s/txr_opackets/txr_obytes/)
pointed out by ryo@n.o, thanks.
2020-01-15 08:25:01 +00:00
skrll
752c3237b0 If malloc fails in zyd_node_alloc then return NULL. From nick-nhusb 2020-01-15 08:21:00 +00:00
skrll
c6828b08e2 Use modern interfaces and kill tsleep/wakeup. From nick-nhusb branch. 2020-01-15 08:20:13 +00:00
skrll
3db7d1a277 Trailing whitespace 2020-01-15 08:13:20 +00:00
skrll
bf343540f8 Use a define instead of a magic constant. NFCI. 2020-01-15 08:02:53 +00:00
thorpej
47e9d51ab5 tsleep -> kpause 2020-01-15 05:56:57 +00:00
jmcneill
d78e6d2ebd evbarm: Add support for NXP i.MX 8M family SoCs. 2020-01-15 01:11:05 +00:00
jmcneill
91882526f7 Add support for NXP i.MX 8M Dual/8M QuadLite/8M Quad family SoCs. 2020-01-15 01:09:56 +00:00
christos
1c0459f7c5 .include bsd.own.mk for ${NETBSDSRCDIR} 2020-01-14 23:13:36 +00:00
msaitoh
c015e0f4d6 Add AMDFCH41_SMBUS_PORTMASK. 2020-01-14 22:55:27 +00:00
jdolecek
0631449bd5 enable the BAD_NCQ quirk for all 860 EVO drives
XXX work-in-progress, it's not clear whether this is driver or controller
XXX problem
2020-01-14 21:08:06 +00:00
christos
47fa72e3b5 In the extract atomic case, remove the destination hard link first
since it did not get removed before for us. If we wanted to do this
right, we would do the mk*temp() file generation and trying to link
instead of open, and finally when we got the link to succeed, we
would rename the temp link to the final destination name, making
hard link creation atomic. For now we just remove first.
2020-01-14 19:29:45 +00:00
martin
9e1b8986ab PR install/54787: when trying to derive proper alignement and first offset
from exisiting partitions, use the first partition offset if it is already
closer to the start of the disk than the prefered alignment - we can not
move existing partitions around.
2020-01-14 19:28:31 +00:00
kamil
e4e4859de1 Adjust the error return value of pthread_sigmask for !libpthread usage
Instead of returning -1, return errno on error.

Catch up after the fix in libpthread by Andrew Doran in 2008
in lib/libpthread/pthread_misc.c r.1.9.

It's an open question whether this function shall be used without linked
in the POSIX thread library.

Detected by Bruno Haible (GNU) and documented in gnulib in commit
"pthread_sigmask: Avoid test failure on NetBSD 8.0. " r. 4d16a83b0c1fcb6c.
2020-01-14 18:18:59 +00:00
christos
53517b7626 Back to pax as tar until I figure out how I broke libarchive (hard link
extraction creates 0 length files for existing hard-links).
2020-01-14 16:48:18 +00:00
scole
b0ba3c3dd3 add noinline attribute 2020-01-14 16:23:07 +00:00
msaitoh
b45be541ba Update for AMD FCHs (HUDSON, BOLTON and KERNCZ). 2020-01-14 15:43:19 +00:00
msaitoh
76a8e75348 Save/restore port number before selecting port. Linux driver says it must
be required on some systems.
2020-01-14 15:42:03 +00:00
msaitoh
877ea9b7bc Simplify. No functional change. 2020-01-14 15:36:54 +00:00
kamil
d410a069a0 Catch up in ktruss(1) with ptrace descriptive operation names
Switch to dynamic string lists PT_STRINGS and PT_MACHDEP_STRINGS.

Reuse the code and approach from kdump(1).
2020-01-14 11:28:35 +00:00
msaitoh
f8441706c9 No functional change:
- Move some definitions from if_stgereg.h to if_stge.c again because those are
  not chip (registers or descriptors) definitions.
- Use proplib to pass information that loading DSP code is required when
  PHY reset.
2020-01-14 09:49:26 +00:00
wiz
592c2ae6b6 New sentence, new line. 2020-01-14 09:30:34 +00:00
isaki
aee2dc9e7e Clean up.
- B_KEYINP is no longer called from C.
- B_COLOR is no longer used.
2020-01-14 04:00:41 +00:00
isaki
c8bf7b37b2 consio_init() should be done before printf(). 2020-01-14 03:48:10 +00:00
pgoyette
292d66a015 If "application processors" were skipped/disabled at boot time (due to
RB_MD1 being set), don't try to examine the featurebus info, since it
was never retrieved.  Addresses kern/54815

XXX pullup-9
2020-01-14 01:41:37 +00:00