Skip to content

Conversation

@RaviHothi
Copy link
Contributor

Currently, SMMU support is forced to be enabled unconditionally in the probe function. This can lead to errors on platforms where the audio memory device does not have an IOMMU assigned in the device tree.

Update the driver to check for the existence of the 'iommus' property in the device tree node. SMMU support is now enabled only if this property is present.

Additionally, add a fallback to disable SMMU support if the SMMU SID parsing fails, ensuring the driver does not attempt to use an invalid SID configuration.

Currently, SMMU support is forced to be enabled unconditionally in the
probe function. This can lead to errors on platforms where the audio
memory device does not have an IOMMU assigned in the device tree.

Update the driver to check for the existence of the 'iommus' property
in the device tree node. SMMU support is now enabled only if this
property is present.

Additionally, add a fallback to disable SMMU support if the SMMU SID
parsing fails, ensuring the driver does not attempt to use an invalid
SID configuration.

Signed-off-by: Ravi Hothi <ravi.hothi@oss.qualcomm.com>
@RaviHothi RaviHothi requested review from a team January 8, 2026 06:19
msm_audio_mem_data->smmu_enabled = false;

msm_audio_mem_data->smmu_enabled = smmu_enabled;
dev_err(dev, "%s: SMMU is %s\n", __func__, (!msm_audio_mem_data->smmu_enabled) ? "Disabled" : "Enabled");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please change it to dev_info or dev_dbg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants