273083 Commits

Author SHA1 Message Date
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
jdolecek
94fd4cfd58 bump date for previous change 2020-01-13 21:43:38 +00:00
jdolecek
ee272eac35 document the wd(4) sysctl nodes, and add the note about the Sumsung EVO drives
part of fix for PR kern/54790 and PR kern/54855
2020-01-13 21:43:06 +00:00
jdolecek
eef4b266f0 disable NCQ by default for "Samsung SSD 860 EVO 1TB" and
"Samsung SSD 860 EVO 500GB" - these drives have known broken NCQ support
particularly when used with AMD SB710/750 chipsets, problem occur also
under Linux and Windows

https://eu.community.samsung.com/t5/Cameras-IT-Everything-Else/860-EVO-250GB-causing-freezes-on-AMD-system/td-p/575813
https://bugzilla.kernel.org/show_bug.cgi?id=201693

It seems there is no Samsung firmware update to fix this even.

Disable NCQ regardless of the controller, it's likely same problem
exists with other controllers too.

This should fix PR kern/54790 and PR kern/54855
2020-01-13 21:20:17 +00:00
christos
0b2b50b718 Revert previous; we don't want arm to have variable page size. Instead
nick@ is fixing the cache pages issue to use a separate pool.
2020-01-13 20:36:44 +00:00
ad
d2f8c8b222 Fix some more bugs in the topo stuff, that prevented it from working
properly with fake topo info + MP.
2020-01-13 20:30:08 +00:00
bouyer
aa13f6437c Don't call cpu_switchto() before idle_loop(), it should not be needed any more.
While there, assume (and KASSERT) that curlwp == ci->ci_data.cpu_idlelwp,
this saves a lwp_getpcb() call.
2020-01-13 20:15:01 +00:00
joerg
174eb28ace Fix atfork malloc handling to include all the locks in old jemalloc. 2020-01-13 19:14:37 +00:00
joerg
2de10fd665 Fix aarch64 definition in old jemalloc
There is no platform-specific reason for avoiding TLS. The tiny
allocations should be aligned the same as small allocations for ABI
reasons.
2020-01-13 19:14:02 +00:00
christos
05026dfa7b use the host compiler 2020-01-13 19:03:03 +00:00
ad
510021886a Rip out some very ambitious optimisations around pthread_mutex that are
don't buy much.  This stuff is hard enough to get right in the kernel let
alone userspace, and I don't trust that it's right.
2020-01-13 18:22:56 +00:00
ryo
acd5d40d93 Fix mis-incrementing pointer size in bus_space_read_region_{4,8}
pointed out by jmcneill@. thanks.
2020-01-13 17:23:07 +00:00
uwe
15b02c1c94 Sort the list. Minor markup and wording tweaks. 2020-01-13 16:11:53 +00:00
uwe
6c5f0f40cb Oops. Restore the dot lost in -width ".Dv ..." 2020-01-13 16:01:37 +00:00
uwe
33f5687847 Fix -width in the tagged list of special "handle" values. 2020-01-13 15:59:11 +00:00
uwe
45e536efb2 Minor tweaks.
Use same -indent for lists of values that are OR'ed as one argument.
Use consistent markup for dli_* member names.
Untabify Dl_info definition so that it lines up in PS output.
2020-01-13 15:54:48 +00:00