Commit Graph

271847 Commits

Author SHA1 Message Date
skrll
04c826dde0 corect #include order 2019-11-24 11:23:16 +00:00
martin
3e4f9a7f75 Modernize release notes:
- use https where possible
 - adapt to cdn/nycdn and our current auto-build conventions
 - automate where possible
Many thanks to uwe for lots of *roff help.
2019-11-24 11:15:31 +00:00
skrll
a4cf85ef47 Remove unnecessary cast and wrap a long line. 2019-11-24 11:10:12 +00:00
skrll
a0274bde1f Use PRIxBUSADDR 2019-11-24 11:07:19 +00:00
jmcneill
3f2065651c Try to avoid changing hardware settings when the "nomodeset" kernel arg
is present.
2019-11-24 10:27:37 +00:00
skrll
fa806e687a Fix KERNHIST build (and simplify) 2019-11-24 09:37:05 +00:00
skrll
1658f66e58 Fix build 2019-11-24 09:34:38 +00:00
rin
197cf882e7 PR port-arm/54702
Add support for earmv6hf binaries on COMPAT_NETBSD32 for aarch64:

- Emulate ARMv6 instructions with cache operations register (c7), that
  are deprecated since ARMv7, and disabled on ARMv8 with LP64 kernel.

- ep_machine_arch (default: earmv7hf) is copied from executables, as we
  do for mips64. "uname -p" reports earmv6hf if compiled for earmv6hf;
  configure scripts etc can determine the appropriate architecture.

Many thanks to ryo@ for helping me to add support of Thumb-mode,
as well as providing exhaustive test cases:

  https://github.com/ryo/mcr_test/

We've confirmed:

- Emulation works in Thumb-mode.
- T32 16-bit length illegal instruction results in SIGILL, even if
  it is located nearby a boundary b/w mapped and unmapped pages.
- T32 32-bit instruction results in SIGSEGV if it is located across
  a boundary b/w mapped and unmapped pages.

XXX
pullup to netbsd-9
2019-11-24 04:08:36 +00:00
jmcneill
8add6aa962 Enable HDMI and HDMI audio 2019-11-24 02:06:16 +00:00
jmcneill
ee462562b8 Do not assume the cursor pitch is the same as the primary fb 2019-11-23 23:47:57 +00:00
jmcneill
3153dc2c99 Set video PLLs to 297MHz 2019-11-23 22:46:53 +00:00
ad
c9afc9987a Pull in sys/atomic.h. 2019-11-23 22:35:08 +00:00
jmcneill
677e8e0311 Support non-zero fb start pixels. 2019-11-23 21:40:57 +00:00
jmcneill
fa0a625456 Set pre-divider M to 0 in fractional mode, as noted in user manual. Spotted by jak. 2019-11-23 21:30:41 +00:00
ad
ec95a3aa5d Redo previous differently. 2019-11-23 20:37:49 +00:00
ad
0c0994602d Fix compiler warning. 2019-11-23 20:37:05 +00:00
jmcneill
42e1f94979 Use actual hw mode, not proposed mode. 2019-11-23 20:27:39 +00:00
jmcneill
7de6f600d4 Do not assume that an fb's pitch is width * 4 bytes. 2019-11-23 20:24:12 +00:00
ad
e1ebacd1d3 Update to match recent changes. 2019-11-23 19:46:38 +00:00
ad
11ba4e1830 Minor scheduler cleanup:
- Adapt to cpu_need_resched() changes. Avoid lost & duplicate IPIs and ASTs.
  sched_resched_cpu() and sched_resched_lwp() contain the logic for this.
- Changes for LSIDL to make the locking scheme match the intended design.
- Reduce lock contention and false sharing further.
- Numerous small bugfixes, including some corrections for SCHED_FIFO/RT.
- Use setrunnable() in more places, and merge cut & pasted code.
2019-11-23 19:42:52 +00:00
ad
115c1bc097 cpu_need_resched():
- Remove all code that should be MI, leaving the bare minimum under arch/.
- Make the required actions very explicit.
- Pass in LWP pointer for convenience.
- When a trap is required on another CPU, have the IPI set it locally.
- Expunge cpu_did_resched().
2019-11-23 19:40:34 +00:00
jmcneill
a44072499c Set TCON1 parent to PLL_VIDEO1(1X) 2019-11-23 18:57:36 +00:00
jmcneill
ab6de37f60 Set pixel clock on mode set 2019-11-23 18:55:08 +00:00
jmcneill
287b7fffbc Need to initialize the PHY before HPD sense and DDC will work 2019-11-23 18:54:26 +00:00
jmcneill
f820582004 Use fdtbus_get_reg to read "reg" property 2019-11-23 18:53:05 +00:00
jmcneill
7f565443c5 Honour SUNXI_CCU_FRACTIONAL_SET_ENABLE in fractional mode 2019-11-23 18:52:09 +00:00
martin
dbb7e355c4 "rv" is only used on some boards and only with options DIAGNOSTIC.
So move the declaration into the proper #ifdef block.
2019-11-23 18:03:57 +00:00
ad
f2bb4c20d1 - Increase the default number of buffers, and scale it by ncpu.
- Stop tracing when the device is closed.
2019-11-23 17:32:10 +00:00
tkusumi
1e27ac1351 autofs: Remove unused autofs_node::an_vnode_lock
Unlike FreeBSD and DragonFlyBSD, this is unused in NetBSD.
2019-11-23 17:13:46 +00:00
ad
314896ed30 Looks like sparc clears want_ast with interrupts enabled, so check+clear it
and call mi_userret() in a loop.
2019-11-23 16:50:39 +00:00
ad
27c7e48ae9 For this case during build.sh:
rw_enter(lock, RW_READ);

Having instrumented it, it turns out that >99.5% of the time the lock is
completely unknowned.  Make this assumption in the assembly stub for
rw_enter(), and avoid the initial read of the lock word.  Where there are
existing read holds, we'll do an additional CMPXCHG but should already have
the cache line in the EXCLUSIVE state.
2019-11-23 16:36:38 +00:00
tkusumi
b5c5b66961 autofs: Don't calculate dirent reclen twice
Taken-from: DragonFlyBSD
2019-11-23 15:17:46 +00:00
jmcneill
b06e1df8e8 HDMI PHY and TX share the same clocks. Do not enable clocks until both
reset resources have been deasserted. Explicitly set DDC clock dividers.
2019-11-23 12:30:45 +00:00
jmcneill
5f932b1ac4 Add TCON0 clock 2019-11-23 12:29:20 +00:00
jmcneill
074bff2107 Allow bus glue to setup DDC clocks 2019-11-23 12:28:44 +00:00
tkusumi
7d3af7ae88 autofs: Fix a comment on autofs_args
mount_autofs(8) also uses this.
mount_autofs(8) was added by NetBSD as an optional command (not needed to use autofs).
2019-11-23 08:30:39 +00:00
tkusumi
5957c9625e autofs: u_int -> unsigned int 2019-11-23 08:00:59 +00:00
tkusumi
24b3b34668 autofs: Drop unused autofs_mount field which originates from FreeBSD
Taken-from: DragonFlyBSD
2019-11-23 07:38:03 +00:00
macallan
39745b2a06 don't invalidate sensors every time we fail to read fan speeds 2019-11-23 05:13:11 +00:00
jakllsch
b770b2aad5 Store the flags passed to SUNXI_CCU_FRACTIONAL macro.
Previously the macro dropped the flags argument entirely, and did not
initialize the structure with it.
2019-11-23 03:59:39 +00:00
ad
d78c5707f7 Add a comment. 2019-11-22 23:38:15 +00:00
ad
6e1e41dfe9 - On-demand zeroing pages with MOVNTI is crazy. It empties L1/L2/L3.
- Disable zeroing in the idle loop.  That needs a cache-friendly strategy.

Result: 3 to 4% reduction in kernel build time on my test system.
Inspired by a discussion with Mateusz Guzik and David Maxwell.
2019-11-22 23:36:25 +00:00
ad
c8d15fa565 Fix crash(8). Will revisit. 2019-11-22 23:01:49 +00:00
ad
398a7522b9 sched_tick: examine the correct LWP, and lock it. 2019-11-22 20:07:53 +00:00
ad
3cec1e7660 Minor correction to previous. 2019-11-22 20:04:03 +00:00
jmcneill
49d3434b0e Enable TMDS clock 2019-11-22 19:48:58 +00:00
jmcneill
5782d46f0d Fix CLK_BUS_HDMI bit 2019-11-22 19:46:38 +00:00
pgoyette
1fc74345e4 Use __diagused 2019-11-22 15:57:49 +00:00
christos
54e278d262 more regen stuff. 2019-11-22 14:57:01 +00:00
martin
8d3fc0a7e0 Make this files compilable w/o options DIAGNOSTIC 2019-11-22 14:30:58 +00:00