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
F173827960: D56244.id176918.diff
Mon, Sep 28, 6:01 PM
Unknown Object (File)
Mon, Sep 28, 8:21 AM
Unknown Object (File)
Tue, Sep 15, 7:38 PM
Unknown Object (File)
Fri, Sep 11, 7:12 PM
Unknown Object (File)
Thu, Sep 10, 10:04 PM
Unknown Object (File)
Thu, Sep 10, 6:18 AM
Unknown Object (File)
Wed, Sep 9, 9:12 AM
Unknown Object (File)
Tue, Sep 8, 4:07 PM

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 72682
Build 69565: arc lint + arc unit