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)
Oct 16 2024, 3:00 PM
Unknown Object (File)
Sep 18 2024, 2:09 PM
Unknown Object (File)
Sep 18 2024, 3:20 AM
Unknown Object (File)
Sep 15 2024, 9:14 PM
Unknown Object (File)
Sep 11 2024, 10:26 AM
Unknown Object (File)
Sep 11 2024, 9:27 AM
Unknown Object (File)
Sep 10 2024, 9:29 PM
Unknown Object (File)
Sep 7 2024, 8:08 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.