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
maxv
ce425234cc
Ah, strcat/strchr/strrchr are ASM functions, so instrument them.
2019-11-22 14:28:46 +00:00
martin
9d445e0761
Document NETBSD_OFFICIAL_RELEASE and add it to /etc/release - it is
...
important information when trying to reproduce a build.
2019-11-22 13:30:19 +00:00
nonaka
d2e3340d93
hvn(4), hvkbd(4): Only need to poll when cold.
2019-11-22 12:40:07 +00:00
nonaka
c0318f0b96
vmbus(4), hvn(4), hvkbd(4): Fixed wait time for tsleep(9).
2019-11-22 12:30:32 +00:00
maxv
6f40daa312
Several improvements. In particular, reduce CS.limit, because Intel CPUs
...
perform strict sanity checks, and the previous (too high) limit caused the
VM entry to fail.
2019-11-22 10:26:32 +00:00
martin
dfe0881265
Bump space for ramdisk image
2019-11-22 08:09:26 +00:00
mlelstv
15ccc8ee48
Make cache operations available early.
2019-11-22 05:21:19 +00:00
macallan
57ada224c3
report fan speeds
...
disclaimer:
this is guesswork obtained from watching temperatures, listening to fan noise
and staring at register dumps. Use with caution.
2019-11-22 05:16:54 +00:00
rin
6df93363ad
Fix regression introduced to ptrace_regs() in rev 1.27:
...
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/sys_ptrace_common.c#rev1.27
Size of registers should be determined from tracer, NOT tracee.
Now, 64-bit tracer can manipulate registers of 32-bit tracee again.
gdb for amd64 works for i386 binaries to some extent.
XXX
pullup to netbsd-9 and -8.
2019-11-22 05:01:44 +00:00
christos
01b509c1c7
regen x86_64 for i386 support
2019-11-22 01:52:20 +00:00
christos
356e78ed45
add missing files for 32 bit debugging on 64 bit host.
2019-11-22 01:49:20 +00:00
christos
e1c84f8601
Support for compat-32 type shared library paths.
2019-11-22 01:48:50 +00:00
alnsn
819cf7d8ba
If gpt label "cgd.conf" contains a valid /etc/cgd file system,
...
try mounting gpt label "cgdroot" as a root filesystem first and
only mount /dev/cgd0a if that gpt label doesn't exist or fails
to mount.
XXX pullup to 8 and 9.
2019-11-22 00:27:30 +00:00
nakayama
b7b6f4ad9a
Fix PR/54074 and PR/54093 completely.
...
More similar to the ld.elf_so logic, it is necessary to align with
p_align first. Also, invert the #ifdef condition for consistency.
Should fix regression for static linking binaries:
http://releng.netbsd.org/b5reports/sparc/commits-2019.11.html#2019.11.10.23.39.03
http://releng.netbsd.org/b5reports/sparc64/commits-2019.11.html#2019.11.16.04.10.33
2019-11-21 23:06:15 +00:00
joerg
8e4a7b2e22
Merge amd64's UEFI logic back into the generic bootimage handling.
2019-11-21 22:29:03 +00:00
macallan
ac797d2386
ga_iot = 0 -> normal_memt
...
now a Challenge S should work again
from George Harvey
2019-11-21 22:05:09 +00:00