Re: [PATCH v11 08/11] iommu/arm-smmu-v3-kexec: Implement is_attach_deferred()

From: Nicolin Chen

Date: Thu Oct 22 2026 - 11:31:18 EST


On Thu, Oct 22, 2026 at 12:02:12PM +0100, John Garry wrote:
> On 10/5/26 20:30, Nicolin Chen wrote:
> > struct arm_smmu_strtab_l2 **l2table);
> > +bool arm_smmu_kdump_is_attach_deferred(struct arm_smmu_master *master);
> > #else /* CONFIG_CRASH_DUMP */
> > static inline int arm_smmu_kdump_adopt_strtab(struct arm_smmu_device *smmu)
> > {
> > @@ -1331,6 +1348,12 @@ arm_smmu_kdump_adopt_deferred_l2_strtab(struct arm_smmu_device *smmu, u32 sid,
> > {
> > return -EOPNOTSUPP;
> > }
> > +
> > +static inline bool
> > +arm_smmu_kdump_is_attach_deferred(struct arm_smmu_master *master)
> > +{
> > + return false;
> > +}
> > #endif /* CONFIG_CRASH_DUMP */
>
> This is really a comment for 06/11, but I have already commented there...
> anyway, I am curious - why use CONFIG_CRASH_DUMP and not
> CONFIG_ARM_SMMU_V3_KEXEC? If your kconfig for ARM_SMMU_V3_KEXEC changes,
> then this would need to change, right?

Because arm-smmu-v3-kexec will be shared with liveupdate:
https://lore.kernel.org/linux-iommu/20260929071950.2710070-5-praan@xxxxxxxxxx/

Nicolin