summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorVasant Hegde <vasant.hegde@amd.com>2026-09-11 10:43:17 +0000
committerJoerg Roedel <joerg.roedel@amd.com>2026-09-24 13:56:16 +0200
commitf4eab1f88f792a5fb5965613551cd08071f7ceb8 (patch)
treeaa847828128636917d00b818363b57e75fef0f44 /scripts/basic/split-include.c
parent622384f54a8415f28bf7cf11cda95ab125488ca1 (diff)
downloadlinux-f4eab1f88f792a5fb5965613551cd08071f7ceb8.tar.gz
linux-f4eab1f88f792a5fb5965613551cd08071f7ceb8.zip
iommu/amd: Move GA log allocation to init
Currently GA log buffer allocation is done at the time of enabling ga log. This mixes capability checking, resource allocation, and hardware enablement into a single late stage code path. Move capability checking and buffer allocation to init path: - check_vapic_support(): Checks AVIC support - alloc_ga_log(): Rename iommu_init_ga_log() as alloc_ga_log(). It will allocate the GA log and GA log tail buffers for a given IOMMU. Remove redundant checks inside alloc_ga_log(). - enable_iommus_vapic() is simplified - it handles enabling GA log and GAM/SNPAVIC support for IOMMUs. Finally update iommu_ga_log_enable() return value from int to bool as return value is used in boolean context only. Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Ankit Soni <Ankit.Soni@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions