riastradh
4d34810834
sun8icrypto(4): Call crypto_unblock when a task completes.
...
Otherwise under load this would presumably just hang after returning
ERESTART to opencrypto.
2021-08-07 15:41:00 +00:00
macallan
2dd217f24a
pass sensor locations to i2c devices if we can find them
...
tested on 2nd gen Mini
2021-08-07 06:04:26 +00:00
rin
4689515669
Make sure that buffers allocated by lua_alloc() are aligned to 8-byte
...
boundaries as done by kmem_alloc(9).
Fix alignment faults on armv5te; GCC emits ldrd/strd instructions for
memory operands that are guaranteed to be aligned properly.
Drop unnecessary __packed attribute from alloc_header_t at the same time.
2021-08-07 04:19:31 +00:00
jmcneill
81be3b13bd
Arm: Add support for SMC Calling Convention
...
Arm DEN0028 defines a calling mechanism used with Secure Monitor Call (SMC)
and Hypervisor Call (HVC) instructions. To discover SMCCC, we must:
1) Find the PSCI conduit (either via ACPI FADT, or Device Tree)
2) Use PSCI_VERSION to determine whether PSCI_FEATURES is supported
3) Call PSCI_FEATURES with SMCCC_VERSION to determine the implementation
version.
2021-08-06 19:38:53 +00:00
tnn
89c65183f5
conditionally put back the include of <uvm/uvm_page.h>
...
This is a kludge to fix the build on some ports. According to pmap(9),
including <uvm/uvm_extern.h> should be sufficient to use
"bool pmap_is_modified(struct vm_page *pg)". However, on several ports,
the function is implemented as a macro and depends on implementation
details of "struct vm_page *", which is normally an incomplete forward
declaration only. XXX revert when all ports are fixed.
2021-08-06 18:15:48 +00:00
rin
0a29e87b23
Simplify i80321_intr_calculate_masks().
...
G/C unused members of struct intrq.
No functional changes intended.
2021-08-06 09:01:36 +00:00
rin
137b9f5c27
Do *NOT* lower IPL in i80321_splraise().
...
Fix various strange crashes for DIAGNOSTIC kernel on evbarm/HDL_G,
including one worked around by if_wm.c rev 1.706:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/if_wm.c#rev1.706
2021-08-06 08:58:42 +00:00
andvar
ba70c588fa
fix various typos in comments.
2021-08-06 07:55:13 +00:00
tsutsui
f1a61a6198
Fix mm_md_physacc() to allow only accesses to a region of RAMs.
...
Note on NetBSD/news68k RAMs reserved by the PROM (at the end of the RAM)
are not managed.
2021-08-06 05:53:50 +00:00
tsutsui
ec8d06c928
Add comments how mm_md_physacc() for hp300 works.
...
mm_md_physacc() for all other hp300 pmap based m68k ports that copied
hp300 implemantation should have been fixed properly.
XXX: no mm(9) man pages that describe MD implementation API definitions.
2021-08-06 05:22:21 +00:00
isaki
1c891fbe55
Fix broken mm_md_physacc().
...
- Fix access to main memory and extended memory.
This makes /dev/mem work again.
- Introduce kauth(9) to access unmanaged memory area.
Now you can read/write the internal I/O space via /dev/mem when
securelevel = -1.
Thanks ryo@, tsutsui@ for advices and reviews.
2021-08-06 04:21:56 +00:00
tnn
2e6662efc3
ssdfb: revert rev 1.14
...
Can't run the worker thread MPSAFE with spi(4) yet because most controller
drivers still lack MP safety. Cause issues when using multiple displays.
2021-08-05 22:31:20 +00:00
tnn
8a6d0e07fd
ssdfb: fix some constant names. NFC because the same cmd code is used
2021-08-05 19:17:22 +00:00
tnn
5db0713992
ssdfb: support SSD1353 at spi(4)
2021-08-05 19:08:59 +00:00
tnn
777b2a127e
ssdfb: support the SSD1353 controller and the DEP 160128A(1)-RGB display
...
DEP 160128A is a 160x128 18-bit RGB OLED display module advertised as
having an 8-bit parallel I/O interface. The controller can however attach
serially via spi(4) by moving jumper resistors J1 and J2 to GND position.
2021-08-05 19:07:09 +00:00
tnn
bc6773dd48
ssdfb: prepare for supporting rgb color displays
2021-08-05 00:16:36 +00:00
tnn
8e00451167
ssdfb: make it work on big-endian
2021-08-05 00:02:51 +00:00
mlelstv
781b58d06f
Swap and Dump uses DEV_BSIZE units. Translate from device sectors like
...
regular I/O (strategy).
2021-08-04 21:44:41 +00:00
christos
72e6c96f3b
Get the value of the right variable (from RVP)
2021-08-04 08:47:10 +00:00
andvar
d42188d8bf
Fix various typos in comments. Also add missing NetBSD RCS Id in some of these files.
2021-08-03 23:12:14 +00:00
chs
3de28f092d
in sbsavetimestamp(), initialize struct timeval to 0 with memset() so that
...
the implicit padding is initialized. this avoids later copying uninitialized
memory out to user space. detected by KMSAN.
2021-08-03 20:27:08 +00:00
chs
7d586a0b9c
initialize wc_unused to 0, to avoid writing uninitialized memory to disk.
...
detected by KMSAN.
2021-08-03 20:25:43 +00:00
tnn
c7885d2832
ssdfb: support having an optional reset pin
2021-08-03 11:30:25 +00:00
rin
993d421138
Switch evbppc/ibm4xx to generic evbppc (same as oea) kernel modules.
...
I've confirmed that kernels similar to amd64/conf/MODULAR work fine
both on 403 and 405.
XXX
Unfortunately, we cannot immediately switch evbppc/booke to generic
kernel modules yet; it has its own intr.h implementation.
2021-08-03 09:25:43 +00:00
msaitoh
13dbf7351f
Use unsigned to avoid undefined behavior in sdmmc_mem_sd_switch().
...
Found by kUBSan.
2021-08-03 07:54:39 +00:00
knakahara
d8ccbe5767
Fix locking against myself reported by rin@n.o.
...
In some machine, INTx interrupts occurs for some reason while holding
txq_lock in softint context.
e.g. https://dmesgd.nycbug.org/index.cgi?do=view&id=6139
The panic message is the following.
====================
[ 50.1699480] panic: LOCKDEBUG: Mutex error: mutex_vector_enter,467: locking against myself
[ 50.1800188] cpu0: Begin traceback...
[ 50.1800188] 0xc7a29ac4: netbsd:db_panic+0xc
[ 50.1900018] 0xc7a29adc: netbsd:vpanic+0x120
[ 50.1999533] 0xc7a29af4: netbsd:aprint_debug
[ 50.1999533] 0xc7a29b34: netbsd:lockdebug_abort1+0x18c
[ 50.2099719] 0xc7a29b74: netbsd:lockdebug_wantlock+0x1e8
[ 50.2199525] 0xc7a29bb4: netbsd:mutex_enter+0x288
[ 50.2299642] 0xc7a29be4: netbsd:wm_intr_legacy+0x9c
[ 50.2299642] 0xc7a29c2c: netbsd:i80321_intr_dispatch+0x138
[ 50.2399631] 0xc7a29de4: netbsd:irq_entry+0x98
[ 50.2499452] 0xc7a29e24: netbsd:entropy_enter+0x88
[ 50.2599996] 0xc7a29e6c: netbsd:rnd_add_data_1+0x50
[ 50.2699565] 0xc7a29ebc: netbsd:rnd_add_data+0x10c
[ 50.2699565] 0xc7a29ed4: netbsd:rnd_add_uint32+0x28
[ 50.2799524] 0xc7a29f1c: netbsd:wm_txeof+0x2c0
[ 50.2899527] 0xc7a29f5c: netbsd:wm_handle_queue+0x44
[ 50.3000257] 0xc7a29fac: netbsd:softint_thread+0x130
[ 50.3100119] cpu0: End traceback...
====================
To fix this panic, stop wm(4) interrupts before calling softint.
This behavior is similar to MSI-X polling mode.
Reviewed by msaitoh@n.o, tested by rin@n.o, thanks.
2021-08-03 01:08:18 +00:00
riastradh
54d6bd734a
drm: Plug another fence leak.
...
XXX pullup-9
2021-08-02 23:14:15 +00:00
oster
7f9f76178a
Accidentally commited some other changes that weren't quite ready. Add
...
these changes to fix the build.
2021-08-02 22:37:29 +00:00
oster
7464f2ddcd
Support on-demand re-scanning all devices to look for
...
autoconfig RAID sets. raidctl now supports looking
for autoconfig RAID sets with a new '-L' flag.
2021-08-02 20:31:14 +00:00
riastradh
4ea42cccd0
drm: Release fence if we're about to return too.
...
Should fix another fence leak.
XXX pullup-9
2021-08-02 20:20:54 +00:00
tnn
6653d809fb
ssdfb: define SSD1353 command set
...
also adjust some SSD1322 command names
2021-08-02 14:00:48 +00:00
andvar
077d1c0f36
fix various typos in comments and log messages.
2021-08-02 12:56:22 +00:00
andvar
5298fab779
s/overwriten/overwritten/ in comments.
2021-08-01 21:58:56 +00:00
andvar
4b2769fe52
fix typos in word "otherwise".
2021-08-01 15:29:29 +00:00
tnn
eafe2c2fde
ssdfb: support the 4-wire SPI interface
2021-08-01 14:56:18 +00:00
andvar
e16cbc3889
s/dependend/dependent/
2021-07-31 20:51:32 +00:00
andvar
40be87ae1d
s/threshhold/threshold
2021-07-31 20:29:36 +00:00
andvar
551e3d5fa5
s/propective/prospective
2021-07-31 16:54:37 +00:00
thorpej
84c5c30b63
Fix a silly mistake (missing return) in the DEBUG case of the kernel pmap
...
case of pmap_extract().
2021-07-31 14:51:25 +00:00
andvar
31f72197e0
fix more typos in style found one in file - check/fix them all.
2021-07-31 14:36:33 +00:00
tnn
8808569f9c
sunxi_platform: declare UART FIFO sizes for SoCs we support
2021-07-31 11:34:40 +00:00
andvar
6f472043b4
fix typos in comments
2021-07-31 10:12:04 +00:00
andvar
305be1a432
fix typos in comments
2021-07-31 10:07:22 +00:00
tnn
34ee919920
only read cpr register if we're going to use the value
2021-07-31 10:04:12 +00:00
macallan
4547d98da4
make thermal zone parameters configurable by sysctl
2021-07-30 22:07:14 +00:00
tnn
4b00815e3d
ssdfb(4): remove code for dealing with non-MPSAFE attachment
...
spi(4) was marked MPSAFE some time ago, so we're always on an
MPSAFE parent device.
2021-07-30 13:44:09 +00:00
tnn
1928d35a85
com(4): fix FIFO for DW_APB on Allwinner A20 (got broken by com.c 1.360)
...
Older DesignWare UARTs do not advertise their FIFO length so we must
provide it via device properties.
2021-07-30 12:46:46 +00:00
jdolecek
74676f8743
fix off-by-one check in another KASSERT() for bcount
...
still related to PR port-xen/56328
2021-07-28 22:17:49 +00:00
jdolecek
848819d954
fix intentional, but eventually faulty off-by-one for the maximum number
...
of segments for I/O - this was supposed to allow MAXPHYS-size I/O even
with page offset, but actually ended up letting through I/O up to
MAXPHYS+PAGE_SIZE
the KASSERT(bcount < MAXPHYS) is kept as-is, since at that place the number
of segments should already be validated, so it's kernel bug if the size
is still too big there
fixes PR port-xen/56328 by Greg Oster
2021-07-28 21:38:50 +00:00
macallan
564594819a
check temperatures a bit more often
...
while there, explain why the delay is variable
2021-07-28 00:59:10 +00:00