Page MenuHomeFreeBSD

iommu_gas: eliminate unneeded wrappers
ClosedPublic

Authored by alc on Jun 14 2022, 6:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 1:11 PM
Unknown Object (File)
Dec 20 2023, 3:32 AM
Unknown Object (File)
Dec 14 2023, 8:06 PM
Unknown Object (File)
Sep 10 2023, 2:30 PM
Unknown Object (File)
Sep 4 2023, 11:01 PM
Unknown Object (File)
Jul 14 2023, 10:58 AM
Unknown Object (File)
Jul 1 2023, 4:58 AM
Unknown Object (File)
Jul 1 2023, 4:53 AM
Subscribers

Details

Summary

Eliminate trivial wrappers for several iommu_gas functions. These wrappers serve no functional purpose.

Test Plan

Tested with netperf on amd64. On arm64, a kernel with the IOMMU option compiles.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc requested review of this revision.Jun 14 2022, 6:56 PM
alc created this revision.

The idea of these wrappers was to abstract function names, i.e. make them looking generic by removing name "gas". I'm not sure what "gas" stands for, but there is no such thing on arm64.

so with this I can use iommu_map() in my ARM Komeda display controller driver (part of cheribsd), not confusing anyone with 'gas'

sys/dev/drm/komeda/komeda_plane.c:      error = iommu_map(iodom,
In D35487#804780, @br wrote:

The idea of these wrappers was to abstract function names, i.e. make them looking generic by removing name "gas". I'm not sure what "gas" stands for, but there is no such thing on arm64.

I believe that it stood for "guest address space".

I also considered renaming iommu_gas_map, etc. to iommu_map, etc., but that entailed more changes. Nonetheless, I would be happy to take that approach.

In D35487#804790, @alc wrote:
In D35487#804780, @br wrote:

The idea of these wrappers was to abstract function names, i.e. make them looking generic by removing name "gas". I'm not sure what "gas" stands for, but there is no such thing on arm64.

I believe that it stood for "guest address space".

I also considered renaming iommu_gas_map, etc. to iommu_map, etc., but that entailed more changes. Nonetheless, I would be happy to take that approach.

as you wish, I am more or less fine with 'guest address space' since it is not amd64-specific. But the approach would be good.

This revision is now accepted and ready to land.Jun 14 2022, 8:08 PM
This revision was automatically updated to reflect the committed changes.