Commit Graph

67877 Commits

Author SHA1 Message Date
msaitoh baf4c2eb26 Add DTrace. 2019-05-08 02:57:11 +00:00
mrg 5a22560bff obsolete moscom(4). it was never in any default configs, did
not work for some cases.

umcs(4) supports everything it does plus one additional chipset,
has been in default configurations since netbsd 7.
2019-05-07 22:00:10 +00:00
thorpej 4a04944f52 Add "nextthing,pocketchip" to the head of the 'compatible' property
so that this device tree can be distinguished from that of the base
CHIP.  "nextthing,chip" remains in the list, but one match-priority
notch down.
2019-05-07 04:21:09 +00:00
kamil bca8c3ffc4 Switch all users (except ia64) of custom machine/ansi.h to common_ansi.h
Deduplicate the code among ports and poll definitions of types
directly from a compiler.

This fixes miscompilation of certain programs that instruct compilers
to generate code for different types. This bug has been detected with
-fshort-wchar in EFI firmware.

Proposed and discussed on a mailing list (twice).

Itanium uses custom !ELF fallback switch, temporarily leave it as it is.
2019-05-07 03:49:25 +00:00
scole 5a014d7a0b Avoid some RAW dependency compilation warnings 2019-05-07 02:05:17 +00:00
ryo 7f8e059414 cv_init() must be done before calling maple_scanbus().
ok tsutsui@
2019-05-06 17:16:41 +00:00
ryo de07935937 don't use tsleep() in interrupt context.
when the audio starts playing, initialization is performed on the aica arm driver side.
2019-05-06 17:12:50 +00:00
sevan f8755991ed Use filesystems.config to reduce duplication 2019-05-06 02:24:37 +00:00
jmcneill d39ee07fbf RK3399: Skip setting RGMII TX/RX clock delayline parameters for now and
rely on the settings configured by firmware.
2019-05-05 19:10:05 +00:00
christos 59ec77df0c PR/54133: Sevan Janiyan: Binaries fail to execute
Define M{IN,AX}_PAGE_SHIFT to cover all page possibilities
2019-05-05 18:13:16 +00:00
scole f9fc993566 a little bit of clean up, sort ski items, and some notes about libunwind 2019-05-05 16:45:34 +00:00
tsutsui b503be2c30 Regen from MILAN.in rev 1.29.
> Add pms(4), wsmouse(4), and wsmux(4) for Milan.
2019-05-04 13:14:18 +00:00
tsutsui 16242ea4e4 Add pms(4), wsmouse(4), and wsmux(4) for Milan. 2019-05-04 13:12:03 +00:00
skrll f26afff207 Whitespace 2019-05-04 13:04:36 +00:00
kre 30031e47cf More of maxv's "switch to proper types" - hopefully unbreak i386 build. 2019-05-04 11:15:49 +00:00
tsutsui 863a28deac Use const for register values. 2019-05-04 09:03:08 +00:00
maxv 73524111a6 Hum. Fix a potentially catastrophic bug: kcopy() sets DF=1 if the areas
overlap, but doesn't clear it if the copy faults. If this happens, we
return to the caller with DF=1, and each future memory copy will be
backwards.

I wonder if there really are places where kcopy() is called with
overlapping areas.
2019-05-04 08:50:39 +00:00
tsutsui f36032d612 Use proper integer types for PCI configuration registers. 2019-05-04 08:30:06 +00:00
tsutsui 9b30bd9326 Misc KNF.
No binary changes on HADES and MILAN-PCIIDE kernels.
2019-05-04 08:20:05 +00:00
maxv 1554c1fb35 More inlined ASM. While here switch to proper types. 2019-05-04 07:20:22 +00:00
scole 083f99b335 Disable optimization for pmap.c to prevent RAW assembler dependency
warnings.

If port ever becomes more stable, should revert this and figure out
exactly why only pmap seems to have this issue in the kernel.
2019-05-04 02:06:59 +00:00
macallan e16f314b27 moar registers
to the right branch this time (hopefully)
2019-05-04 00:45:18 +00:00
mrg de381fca12 the standard sun8i-a83t-cubietruck-plus.dts is missing temp sensor
support that is in sun8i-a83t.dtsi.  this one includes both.
2019-05-03 02:36:17 +00:00
tsutsui 0ded34ef61 Make sure interrupts are disabled during cpu_configure(9).
Fixes 'panic: kernel diagnostic assertion "cv_is_valid(cv)" failed'
during fdcisa(4) probe on Milan's DIAGNOSTIC kernel, caused by
a stray interrupt from the FDC right after isa_intr_establish().
No visible bad side effect on TT030 with this change.

Should be pulled up to netbsd-8.
2019-05-03 01:08:28 +00:00
jmcneill e2c990a1b0 Fix definition of GICD_IROUTER; the input to this macro is the INTID,
which can be a value between 32 and 1019.
2019-05-02 23:07:40 +00:00
scole dcd41d7b30 Add more code from FreeBSD, still needs work 2019-05-02 17:34:01 +00:00
scole b3d1df9240 Restore UC_MCONTEXT, UC_MCONTEXT, and clean up some whitespace 2019-05-02 17:31:56 +00:00
scole 3855018b91 Remove some unused assembly and other variables to reduce compile warnings 2019-05-02 16:55:50 +00:00
skrll 8e4f441b5a It's the Normal Memory Remap Register (not Normal Region Remap Register) 2019-05-02 15:37:10 +00:00
skrll 570e2487f4 Fix Normal Region Remap Register bitmask names 2019-05-02 11:49:04 +00:00
maxv 81f3a3ee90 Start converting the x86 CPU functions to inlined ASM. Matters for NVMM,
where some are invoked millions of times.
2019-05-01 15:17:49 +00:00
maxv dd84cbca6c Remove unused functions and reorder a little. 2019-05-01 14:29:15 +00:00
jmcneill f2b3d1e5ba Enable pwm1 and add a pwm-fan node to enable the +FAN- header on ROCKPro64 2019-05-01 10:43:55 +00:00
jmcneill e4f94805ca Add rkpwm and pwmfan 2019-05-01 10:41:54 +00:00
jmcneill 84c2953177 Add support for RK3399 PWM controller. 2019-05-01 10:41:33 +00:00
mlelstv 908230ecbc Handle ISA/EISA interrupts like isa_machdep.c. 2019-05-01 07:26:28 +00:00
jmcneill 23a236d1de Use mainline dts for rockpro64 now. 2019-04-30 23:42:53 +00:00
jmcneill a39c89a9e0 Fix mux register offset 2019-04-30 22:42:32 +00:00
jmcneill a7ea6a5f47 Pull type value mappings are different for each pin, and not based on the bank number. 2019-04-30 22:24:27 +00:00
mrg a74dd9537a turn on the "sun50i-a64-unstable-timer" workaround on "allwinner,sun8i-a83t"
compatible CPUs.  avoids triggering the KASSERT() on cubietruck plus.

idea from jmcneill.
2019-04-30 10:10:45 +00:00
scole 5c3d4d8e90 Rename ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE with acpica update, see
src/sys/external/bsd/acpica/dist/changes.txt
2019-04-29 16:39:58 +00:00
christos f1eac07bf2 Catch up with constant name change. 2019-04-29 12:53:15 +00:00
jmcneill 44ca883acd Add pcihost at fdt, qemufwcfg at fdt, nvme at pci, and virtio at pci 2019-04-28 19:26:48 +00:00
sevan 0c663421c2 Skip CARP & Veriexec support to reduce size 2019-04-27 12:12:25 +00:00
sevan 5a52001516 Skip CARP & Veriexec support in RAMDISK to reduce size 2019-04-27 12:08:11 +00:00
maxv ab30f80534 Add support for EnhancedIBRS, a more performant mitigation for SpectreV2,
available on future CPUs (or maybe they already exist now...).
2019-04-27 10:40:17 +00:00
sevan 1085c20f1b Use usbdevices.config & bluetooth.config to reduce duplication. 2019-04-27 02:00:12 +00:00
sevan 13f00b880e Use filesystems.config to reduce duplication 2019-04-27 00:56:19 +00:00
sevan 702a353ffb Use veriexec.config to reduce duplication 2019-04-26 22:46:03 +00:00
sevan 84c67733ac typo 2019-04-26 22:29:20 +00:00