Page MenuHomeFreeBSD

powerpc: refactor dmamap setup; free dmamap in error paths
Needs ReviewPublic

Authored by adrian on Apr 3 2026, 4:26 PM.
Referenced Files
F161617468: D56244.diff
Sun, Jul 5, 8:33 AM
Unknown Object (File)
Sat, Jul 4, 12:00 AM
Unknown Object (File)
Mon, Jun 29, 3:30 PM
Unknown Object (File)
Sat, Jun 13, 4:47 AM
Unknown Object (File)
Sat, Jun 13, 2:17 AM
Unknown Object (File)
May 30 2026, 9:03 PM
Unknown Object (File)
May 14 2026, 1:39 PM
Unknown Object (File)
May 14 2026, 7:31 AM

Details

Summary
  • refactor the dmamap allocation / setup path for future code changes to align with arm64 busdma code;
  • free the dmamap allocation if the dma segment list can't be allocated;
  • free the dmamap allocation during the busdma dmamem allocation path if the actual memory allocation itself fails.

Locally tested:

  • POWER9 ppc64le native boot, Raptor Engineering Blackbird
  • POWER8 ppc6le, IBM POWER S822LC

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71946
Build 68829: arc lint + arc unit