Page MenuHomeFreeBSD

mips busdma: bzero map on alloc
ClosedPublic

Authored by rlibby on Dec 3 2019, 6:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:50 AM
Unknown Object (File)
Nov 15 2023, 2:04 PM
Unknown Object (File)
Oct 20 2023, 9:53 AM
Unknown Object (File)
Aug 22 2023, 1:56 AM
Unknown Object (File)
May 8 2023, 6:02 AM
Unknown Object (File)
Apr 8 2023, 12:35 AM
Unknown Object (File)
Mar 21 2023, 8:34 PM
Unknown Object (File)
Dec 30 2022, 2:04 PM

Details

Summary

Maps from the mips busdma dmamap_zone were not completely initialized.
In particular, pagesneeded and pagesreserved were not initialized. This
could cause a crash.

Remove some dead fields from mips struct bus_dmamap while here.

Reported by: brooks

Test Plan

make CROSS_TOOLCHAIN=mips64-gcc TARGET_ARCH=mips64 buildkernel KERNCONF=MALTA64
qemu-system-mips64 -M malta -kernel .../mips.mips64/sys/MALTA64/kernel -m 2048 -nographic

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Heh, looks like when this code was copied to mips, someone ignored my comment

It'll need platform-specific changes if this code is copied.
This revision is now accepted and ready to land.Dec 3 2019, 4:13 PM
This revision was automatically updated to reflect the committed changes.