Page MenuHomeFreeBSD

Add bus_dma_iommu_set_buswide() stubs
ClosedPublic

Authored by br on Oct 21 2020, 11:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 8 2024, 6:07 PM
Unknown Object (File)
Oct 27 2023, 3:54 PM
Unknown Object (File)
Aug 7 2023, 4:17 AM
Unknown Object (File)
Aug 7 2023, 4:15 AM
Unknown Object (File)
Aug 7 2023, 4:13 AM
Unknown Object (File)
Aug 7 2023, 4:10 AM
Unknown Object (File)
Aug 6 2023, 7:31 AM
Unknown Object (File)
Aug 2 2023, 2:37 AM

Details

Summary

Make bus_dma_iommu_set_buswide() and bus_dma_iommu_load_ident() present unconditionally (regardless of IOMMU support availability in kernel).

Not sure if we want to include iommu.h instead of duplicating function prototypes, but this will require PCI headers as well

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

br requested review of this revision.Oct 21 2020, 11:37 AM
This revision is now accepted and ready to land.Oct 21 2020, 2:38 PM

Would it make sense to move these to subr_bus_dma.c in the non-IOMMU case?

Would it make sense to move these to subr_bus_dma.c in the non-IOMMU case?

I'm not sure. I guess we can't customize per-arch implementation of these functions in non-IOMMU case

In D26887#600298, @br wrote:

Would it make sense to move these to subr_bus_dma.c in the non-IOMMU case?

I'm not sure. I guess we can't customize per-arch implementation of these functions in non-IOMMU case

This KPI does not make sense for non-IOMMU configurations. It is there only as a placeholder so that driver authors do not need to learn how to work around IOMMU absence.

Move iommu stubs to subr_bus_dma.c

This revision now requires review to proceed.Oct 23 2020, 2:35 PM

As far as this pass tinderbox ...

This revision is now accepted and ready to land.Oct 23 2020, 4:58 PM