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)
Tue, Aug 25, 9:34 AM
Unknown Object (File)
Sat, Aug 22, 6:05 AM
Unknown Object (File)
Aug 9 2026, 11:33 AM
Unknown Object (File)
Aug 4 2026, 5:51 AM
Unknown Object (File)
Aug 3 2026, 2:19 AM
Unknown Object (File)
Jul 11 2026, 5:20 PM
Unknown Object (File)
Jun 28 2026, 7:29 PM
Unknown Object (File)
Jun 23 2026, 12:51 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.