Page MenuHomeFreeBSD

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

Authored by adrian on Fri, Apr 3, 4:26 PM.
Referenced Files
F152459035: D56244.id174880.diff
Wed, Apr 15, 2:27 AM
Unknown Object (File)
Sat, Apr 11, 8:07 PM
Unknown Object (File)
Sat, Apr 11, 2:58 PM
Unknown Object (File)
Fri, Apr 10, 6:28 PM
Unknown Object (File)
Thu, Apr 9, 2:13 PM
Unknown Object (File)
Wed, Apr 8, 2:26 PM
Unknown Object (File)
Tue, Apr 7, 3:34 PM
Unknown Object (File)
Sun, Apr 5, 11:14 PM

Details

Reviewers
None
Group Reviewers
PowerPC
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