Page MenuHomeFreeBSD

Do not call iommu_map_msi when ctx is NULL
Needs ReviewPublic

Authored by jsm on Dec 13 2021, 5:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Aug 24 2025, 10:59 PM
Unknown Object (File)
Aug 18 2025, 9:41 PM
Unknown Object (File)
Aug 10 2025, 4:17 PM
Unknown Object (File)
Jul 16 2025, 10:49 AM
Unknown Object (File)
Jun 26 2025, 7:28 AM
Unknown Object (File)
Jun 26 2025, 4:25 AM
Unknown Object (File)
Jun 25 2025, 10:49 AM
Unknown Object (File)
Jun 23 2025, 7:41 PM

Details

Reviewers
manu
Group Reviewers
Contributor Reviews (src)
Summary

Building arm64 kernel on Pinebook Pro with IOMMU enabled, and an populated pci slot (with an m.2 ssd) the kernel fails at iommu_map_msi at domain = ctx->domain, because ctx is null. Add a test if ctx is null before the call.

Test Plan

The patch works for me.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jsm requested review of this revision.Dec 13 2021, 5:53 PM

I've just got a kernel panic at the same place with IOMMU enabled and DPAA2 driver WIP on Honeycomb board.