iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Users of IOMMU_QCOM_SYS_CACHE?
@ 2019-10-24 10:51 Will Deacon
  2019-10-24 11:11 ` Sai Prakash Ranjan
  2019-10-24 15:38 ` Jordan Crouse
  0 siblings, 2 replies; 5+ messages in thread
From: Will Deacon @ 2019-10-24 10:51 UTC (permalink / raw)
  To: iommu; +Cc: robin.murphy, sspatil

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
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Users of IOMMU_QCOM_SYS_CACHE?
  2019-10-24 10:51 Users of IOMMU_QCOM_SYS_CACHE? Will Deacon
@ 2019-10-24 11:11 ` Sai Prakash Ranjan
  2019-10-24 11:21   ` Will Deacon
  2019-10-24 15:38 ` Jordan Crouse
  1 sibling, 1 reply; 5+ messages in thread
From: Sai Prakash Ranjan @ 2019-10-24 11:11 UTC (permalink / raw)
  To: Will Deacon; +Cc: iommu, robin.murphy, sspatil

Hi Will,

On 2019-10-24 16:21, Will Deacon wrote:
> 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?
> 

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

-Sai

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a 
member
of Code Aurora Forum, hosted by The Linux Foundation
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Users of IOMMU_QCOM_SYS_CACHE?
  2019-10-24 11:11 ` Sai Prakash Ranjan
@ 2019-10-24 11:21   ` Will Deacon
  2019-10-24 11:31     ` Sai Prakash Ranjan
  0 siblings, 1 reply; 5+ messages in thread
From: Will Deacon @ 2019-10-24 11:21 UTC (permalink / raw)
  To: Sai Prakash Ranjan; +Cc: iommu, robin.murphy, sspatil

On Thu, Oct 24, 2019 at 04:41:04PM +0530, Sai Prakash Ranjan wrote:
> On 2019-10-24 16:21, Will Deacon wrote:
> > 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?
> > 
> 
> 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
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Users of IOMMU_QCOM_SYS_CACHE?
  2019-10-24 11:21   ` Will Deacon
@ 2019-10-24 11:31     ` Sai Prakash Ranjan
  0 siblings, 0 replies; 5+ messages in thread
From: Sai Prakash Ranjan @ 2019-10-24 11:31 UTC (permalink / raw)
  To: Will Deacon; +Cc: iommu, robin.murphy, sspatil

On 2019-10-24 16:51, Will Deacon wrote:
> On Thu, Oct 24, 2019 at 04:41:04PM +0530, Sai Prakash Ranjan wrote:
>> On 2019-10-24 16:21, Will Deacon wrote:
>> > 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?
>> >
>> 
>> 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

-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a 
member
of Code Aurora Forum, hosted by The Linux Foundation
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Users of IOMMU_QCOM_SYS_CACHE?
  2019-10-24 10:51 Users of IOMMU_QCOM_SYS_CACHE? Will Deacon
  2019-10-24 11:11 ` Sai Prakash Ranjan
@ 2019-10-24 15:38 ` Jordan Crouse
  1 sibling, 0 replies; 5+ messages in thread
From: Jordan Crouse @ 2019-10-24 15:38 UTC (permalink / raw)
  To: Will Deacon; +Cc: smasetty, iommu, robin.murphy, sspatil

On Thu, Oct 24, 2019 at 11:51:51AM +0100, Will Deacon wrote:
> 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/1538744915-25490-8-git-send-email-smasetty@codeaurora.org/

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

> 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

-- 
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-24 15:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 10:51 Users of IOMMU_QCOM_SYS_CACHE? Will Deacon
2019-10-24 11:11 ` Sai Prakash Ranjan
2019-10-24 11:21   ` Will Deacon
2019-10-24 11:31     ` Sai Prakash Ranjan
2019-10-24 15:38 ` Jordan Crouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).