Skip to contentSkip to conversation

Users of IOMMU_QCOM_SYS_CACHE?

DISCUSSION Will Deacon 3 participants 5 messages Oct 24, 2019

lore
Share & tools
lore
#0 lore raw

Hi all,

In commit 90ec7a76cc4b ("iommu/io-pgtable-arm: Add support to use system cache") we added support for IOMMU_QCOM_SYS_CACHE which was merged into 5.3. This allows non-coherent devices to request an outer cacheable memory type.... except that nobody actually does this in mainline. I remember there being a potential DRM user but I don't know what happened to it.

Given that this isn't actually exposed in the DMA API, I worry that we're just carrying part of an out-of-tree hack here and propose that we drop the flag altogether unless we get an upstream user, preferably by plumbing this into the DMA API via a new attribute.

Thoughts?

Will
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

#1 lore raw

Hi Will,

Quoted 8 lines · Will Deacon

Hi all,

In commit 90ec7a76cc4b ("iommu/io-pgtable-arm: Add support to use system cache") we added support for IOMMU_QCOM_SYS_CACHE which was merged into 5.3. This allows non-coherent devices to request an outer cacheable memory type.... except that nobody actually does this in mainline. I remember there being a potential DRM user but I don't know what happened to it.

Quoted 7 lines

Given that this isn't actually exposed in the DMA API, I worry that we're just carrying part of an out-of-tree hack here and propose that we drop the flag altogether unless we get an upstream user, preferably by plumbing this into the DMA API via a new attribute.

Thoughts?

There is definitely a user of this coming soon atleast for SC7180 SoC once we have support for this SoC upstream.

-Sai

Signature · 6 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
#2 lore raw
Quoted 16 lines · Sai Prakash Ranjan
Quoted 15 lines · Will Deacon

In commit 90ec7a76cc4b ("iommu/io-pgtable-arm: Add support to use system cache") we added support for IOMMU_QCOM_SYS_CACHE which was merged into 5.3.
This allows non-coherent devices to request an outer cacheable memory type.... except that nobody actually does this in mainline. I remember there
being a potential DRM user but I don't know what happened to it.

Given that this isn't actually exposed in the DMA API, I worry that we're
just carrying part of an out-of-tree hack here and propose that we drop the flag altogether unless we get an upstream user, preferably by plumbing
this into the DMA API via a new attribute.

Quoted 5 lines
Quoted 2 lines

Thoughts?

There is definitely a user of this coming soon atleast for SC7180 SoC once we have support for this SoC upstream.

Ok, I'm keen to see how you end up using this. How soon is soon?

Will
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

#3 lore raw
Quoted 17 lines · Will Deacon
Quoted 16 lines · Sai Prakash Ranjan
Quoted 15 lines · Will Deacon

In commit 90ec7a76cc4b ("iommu/io-pgtable-arm: Add support to use system cache") we added support for IOMMU_QCOM_SYS_CACHE which was merged into 5.3.
This allows non-coherent devices to request an outer cacheable memory type.... except that nobody actually does this in mainline. I remember there
being a potential DRM user but I don't know what happened to it.

Given that this isn't actually exposed in the DMA API, I worry that we're
just carrying part of an out-of-tree hack here and propose that we drop the flag altogether unless we get an upstream user, preferably by plumbing
this into the DMA API via a new attribute.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Thoughts?

There is definitely a user of this coming soon atleast for SC7180 SoC once we have support for this SoC upstream.

Ok, I'm keen to see how you end up using this. How soon is soon?

We have already started upstreaming for SC7180, so this should also come pretty soon. Sorry, I cannot tell the exact date but can make sure that your message reaches to appropriate team.

Thanks,
Sai

Signature · 6 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
#4 lore raw
In reply to Will Deacon
Quoted 7 lines · Will Deacon

Hi all,

In commit 90ec7a76cc4b ("iommu/io-pgtable-arm: Add support to use system cache") we added support for IOMMU_QCOM_SYS_CACHE which was merged into 5.3. This allows non-coherent devices to request an outer cacheable memory type.... except that nobody actually does this in mainline. I remember there being a potential DRM user but I don't know what happened to it.

You are thinking of:

https://lore.kernel.org/linux-arm-msm/[email protected]/

That is still a thing but it never got revisited after 5.3. I believe that Sharat will have a refresh coming soon.

Quoted 4 lines

Given that this isn't actually exposed in the DMA API, I worry that we're just carrying part of an out-of-tree hack here and propose that we drop the flag altogether unless we get an upstream user, preferably by plumbing this into the DMA API via a new attribute.

I wouldn't mind if you plumbed it into the DMA API as well but I would ask to keep an alternate path for those of us who make our own way.

Jordan

Signature · 6 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu