CVSROOT:        /cvs
Module name:    src
Changes by:     kette...@cvs.openbsd.org        2025/02/14 11:42:43

Modified files:
        sys/arch/arm64/dev: aplsmc.c rtkit.c 
        sys/dev/pci/drm/apple: apldcp.c 

Log message:
It is important that we map memory with the right attributes otherwise
we may trigger an SError.  The crashlog entries for the SMC live in SRAM
which needs to be mapped as device memory.  To make this possible, make
the rk_logmap() rtkit callback function return the desired memory
attributes in the low bits of the address, using PMAP_NOCACHE or
PMAP_DEVICE defines.

Rewrite the DCP implementation of rk_logmap() to do a better job ati
determining the correct mapping.  The current code would fail in some
cases (i.e. on the M1 Pro MacBook Pro) and map some unused address as
normal non-cachable which could also trigger an SError.

ok jca@

Reply via email to