Re: [PATCH v4 00/17] Consolidate the error handling around device attachment

Heiko Stübner
2023-05-01T22:01:20Z

Am Mittwoch, 12. April 2023, 15:51:30 CEST schrieb Jason Gunthorpe:
> Jason Gunthorpe (17):
> iommu: Replace iommu_group_device_count() with list_count_nodes()
> iommu: Add for_each_group_device()
> iommu: Make __iommu_group_set_domain() handle error unwind
> iommu: Use __iommu_group_set_domain() for __iommu_attach_group()
> iommu: Use __iommu_group_set_domain() in iommu_change_dev_def_domain()
> iommu: Replace __iommu_group_dma_first_attach() with set_domain
> iommu: Remove iommu_group_do_dma_first_attach() from
> iommu_group_add_device()
> iommu: Replace iommu_group_do_dma_first_attach with
> __iommu_device_set_domain
> iommu: Fix iommu_probe_device() to attach the right domain
> iommu: Do iommu_group_create_direct_mappings() before attach
> iommu: Remove the assignment of group->domain during default domain
> alloc
> iommu: Consolidate the code to calculate the target default domain
> type
> iommu: Revise iommu_group_alloc_default_domain()
> iommu: Consolidate the default_domain setup to one function
> iommu: Allow IOMMU_RESV_DIRECT to work on ARM
> iommu: Remove __iommu_group_for_each_dev()
> iommu: Tidy the control flow in iommu_group_store_type()

This probably will need an update for Greg's recent
b18d0a0f92a8 ("iommu: make the pointer to struct bus_type constant")

I've fixed that locally for me for testing, and with that:

On both arm32+arm64 Rockchip boards (rk3288-pinky + px30-minievb)
the display keeps working, so

Tested-by: Heiko Stuebner <heiko@sntech.de>