Commit Graph

271367 Commits

Author SHA1 Message Date
jmcneill 1969bc9cd5 Add support for GPIO interrupts and fix reading the state of output pins. 2019-11-03 11:34:40 +00:00
isaki 5b3dd8b1b9 Use record field for recording even on
SNDCTL_DSP_STEREO, SNDCTL_DSP_SETFMT, and SNDCTL_DSP_CHANNELS.
2019-11-03 11:13:45 +00:00
jmcneill c8d981e825 Cleanup and remove dependency on arch/arm/omap 2019-11-03 10:09:04 +00:00
jmcneill d663a2792e Fix non-FDT build 2019-11-03 09:34:09 +00:00
rin c964b49474 Describe that both GCC 7.4 and 8.3 fail in the last entry. 2019-11-03 07:10:42 +00:00
christos ba0758a3b7 simplify pointer gymnastics that sprained gcc-8 2019-11-03 03:15:59 +00:00
uki 59b3edf18c Give syspkg names to xdebug files without some machine dependent files 2019-11-03 01:35:47 +00:00
mrg c3f2d15f93 netbsd/hppa uses 16 byte alignment. the inherited default changed.. 2019-11-03 01:03:30 +00:00
tsutsui 3cdf00472f Put back options WSDISPLAY_COMPAT_RAWKBD. It's required by Xorg server.
Should be pulled up to netbsd-9.
2019-11-02 23:13:00 +00:00
tsutsui aa1e0567a9 Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.
- Add missing RAWKEY_* macro definitions (taken from OpenBSD)
- Explicitly include "opt_wsdisplay_compat.h" for
  #ifdef WSDISPLAY_COMPAT_RAWKBD conditionals.
  (it is not properly pulled at least in netbsd-8)
 https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html

Should be pulled up to netbsd-8 and netbsd-9.
2019-11-02 23:03:53 +00:00
tnn 57e890b14b add fdt device_compatible_entry 2019-11-02 22:55:57 +00:00
christos 45e68d0766 Fix sets for gcc-8 2019-11-02 21:34:58 +00:00
tnn cc1b316fe2 cast away unused return value 2019-11-02 21:11:55 +00:00
tnn 089ec8953f documentation for WSDISPLAYIO_FBINFO 2019-11-02 19:22:36 +00:00
tnn 81811bfe84 expand section on GPIOREAD 2019-11-02 18:56:41 +00:00
tnn 3896b31418 puffs_null_node_fsync: don't leak directory handle
Directory handles returned by opendir must be closed by closedir.
Also directory(3) says we mustn't close(2) descriptors returned by dirfd(3)
2019-11-02 18:14:36 +00:00
tnn c022c48edf fix hang when SSDFB_ATTACH_FLAG_CONSOLE used with spi 2019-11-02 17:13:20 +00:00
wiz 8cce55b527 Mention smscphy. Link to jmphy. Bump date. 2019-11-02 16:36:56 +00:00
wiz c410605877 Fix date. Improve history. Wording. Punctuation nit. 2019-11-02 16:34:49 +00:00
wiz aa781b6b21 Add missing quote. 2019-11-02 16:34:30 +00:00
wiz 6c167d6055 Fix RCS Id. Improve history. Punctuation nits. 2019-11-02 16:34:14 +00:00
tnn 29b6793c06 ssdfb: update manpage 2019-11-02 14:47:35 +00:00
tnn 281830f270 add spi(4) bus frontend for ssdfb(4) 2019-11-02 14:33:27 +00:00
tnn 378fb358dd set flag to indicate that worker thread should be created mpsafe
iic(4) is mpsafe, unlike spi(4) which hasn't been made mpsafe yet.
2019-11-02 14:23:59 +00:00
tnn 128dc7b469 ssdfb: add support for SSD1322 2019-11-02 14:18:36 +00:00
isaki fa5460aeba Use record.sample_rate for recording on SNDCTL_DSP_SPEED.
It's kernel side of PR lib/54667.
2019-11-02 11:56:34 +00:00
isaki d97643b742 Use record.sample_rate for recording on SNDCTL_DSP_SPEED.
Fix PR lib/54667.
2019-11-02 11:48:23 +00:00
martin d0940b9e1a Replace tps65950pm with twl (the former has been removed) 2019-11-02 07:56:25 +00:00
tsutsui 17178623de Fix "Alignment Fault 3" kernel failure of NetBSD/zaurus 8.1 GENERIC.
#ifdef switch per kernel config options in definition of device driver
structure in header files could be problematic.

See my post in port-zaurus@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/31/msg000079.html

Should be pulled up to netbsd-8 and netbsd-9.
2019-11-02 01:14:57 +00:00
rin 283bd9784d Describe workaround for PR port-alpha/54307. 2019-11-01 20:55:55 +00:00
rin 3972598af1 Workaround for random crash of userland binaries, as reported in
PR port-alpha/54307.

If rtree.c and tcache.c are compiled with -O0, userland just works
without problems as far as I can see. Alternately, you can specify
-DJEMALLOC_DEBUG to avoid random crash. Smells like compiler bug,
or wrong coding which relies on some undefined behavior.

Anyway, we need to pull this up into netbsd-9 asap.
2019-11-01 20:53:10 +00:00
macallan 7030aa5735 add psoc driver 2019-11-01 17:55:12 +00:00
macallan 4492437ab7 the beginning of a driver for the 'Psoc' fan controller found in my 1GHz
TiBook. So far it does:
- initialize the fan controller via OF
- report temperatures to envsys
there is no documentation, only guesswork from looking at OF methods

With this my TiBook doesn't seem to overheat anymore.
2019-11-01 17:51:56 +00:00
maxv ecf8c84447 Fix KUBSAN: the kernel size now exceeds the mapping limit, so bump the
limit.
2019-11-01 15:11:43 +00:00
taca 5db5abca20 Check CPU support of RDRAND before calling cpu_rng_rdrand().
cpu_earlyrng() checks CPU support of RDSEED and RDRAND before calling
cpu_rng_rdseed() and cpu_rng_rdrand().

But cpu_rng_rdseed() did not check CPU support of RDRAND and system had
crashed on such an environment.  There is no such case with real CPU but
some VM environment.

Fix kern/54655 and confirmed by msaitoh@.

Needs pullup to netbsd-9.
2019-11-01 15:01:27 +00:00
kamil 0b65214dd3 uubsan: Implement function_type_mismatch_v1
RTTI is not supported by micro-UBSan (by design) and this is now a stub
handler.
2019-11-01 14:54:07 +00:00
christos 42e1450d6f PR/54670: Azuma OKAMOTO: Consistently use 'W' for TH_CWN, and bump buffer
size.
2019-11-01 13:58:32 +00:00
christos 61aae00bd3 Add comments to the tcp flags. 2019-11-01 13:54:59 +00:00
bad eb963c3b8a fetch PHY id from FDT. same as sunxi_emac.c.
prevents PHY 0 of RTL8211E from wrongly attaching on e.g. Bananpi M1.
requested by jmcneill@, patch by martin@.

XXX pullup-9
2019-11-01 13:30:02 +00:00
bad 11c39ba555 fix typos in comment in previous. 2019-11-01 13:22:08 +00:00
rin 427ac38b08 Fix previous; semantics of align argument of uvm_map() is different
when UVM_FLAG_COLORMATCH is specified.

Should fix PR kern/54669.
2019-11-01 13:04:22 +00:00
bad f72c8a3ceb re-apply r1.26. but only #if !defined(AARCH64).
not necessary on armv8 and cache ops are not available that early there.
2019-11-01 12:44:54 +00:00
jmcneill a8ce19577e Attach tiusb before the default pass since it adds a bus to reduce kernel output 2019-11-01 12:01:09 +00:00
jmcneill 1d4344c521 Add tigpmc, omapnand 2019-11-01 11:53:51 +00:00
jmcneill 7bdc264a44 Add NAND flash support. 2019-11-01 11:53:35 +00:00
jmcneill 6305c20776 Remove tps65950pm (hardware now supported by twl4030.c) 2019-11-01 09:59:22 +00:00
jmcneill 963739e009 Add RTC support 2019-11-01 09:49:55 +00:00
jmcneill 51df45c55c Enable IRQ status bits for omap3 type and set speed properly 2019-11-01 09:49:21 +00:00
rin dc365f90f5 PR kern/54395
- Align hint for virtual address at the beginning of uvm_map() if
  required. Otherwise, it will be rounded up/down in an unexpected
  way by uvm_map_space_avail(), which results in assertion failure.

  Fix kernel panic when executing earm binary (8KB pages) on aarch64
  (4KB pages), which relies on mmap(2) with MAP_ALIGNED flag.

- Use inline functions/macros consistently.

- Add some more KASSERT's.

For more details, see the PR as well as discussion on port-kern:
http://mail-index.netbsd.org/tech-kern/2019/10/27/msg025629.html
2019-11-01 08:26:18 +00:00
knakahara 93a28c822d Make global and per-interface ipsecif(4) pmtu tunable like gif(4).
And make hop limit tunable same as gif(4).

See http://mail-index.netbsd.org/source-changes/2019/10/30/msg110426.html
2019-11-01 04:28:14 +00:00