All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org,
	Xiantao Zhang <xiantao.zhang@intel.com>,
	tim@xen.org, Jan Beulich <jbeulich@suse.com>,
	stefano.stabellini@citrix.com
Subject: Re: [PATCH v7 1/4] xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk
Date: Thu, 15 May 2014 16:24:49 +0100	[thread overview]
Message-ID: <5374DC41.40704@linaro.org> (raw)
In-Reply-To: <1400167245.19926.18.camel@kazak.uk.xensource.com>

On 05/15/2014 04:20 PM, Ian Campbell wrote:
> On Thu, 2014-05-15 at 15:16 +0100, Julien Grall wrote:
>> Some IOMMU don't suppport coherent PT walk. When the p2m is shared with
>> the CPU, Xen has to make sure the PT changes have reached the memory.
>>
>> Introduce new IOMMU function that will check if the IOMMU feature is enabled
>> for a specified domain.
>>
>> On ARM, the platform can contain multiple IOMMUs. Each of them may not
>> have the same set of feature. The domain parameter will be used to get the
>> set of features for IOMMUs used by this domain.
>>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
> 
> Acked-by: Ian Campbell <ian.campbell@citrix.com> for the arm bit.

Thanks!

>> @@ -548,10 +568,12 @@ int p2m_alloc_table(struct domain *d)
>>      /* Clear both first level pages */
>>      p = __map_domain_page(page);
>>      clear_page(p);
>> +    clean_xen_dcache_va_range(p, PAGE_SIZE);
>>      unmap_domain_page(p);
>>  
>>      p = __map_domain_page(page + 1);
>>      clear_page(p);
>> +    clean_xen_dcache_va_range(p, PAGE_SIZE);
> 
> 
> I wonder if we need clear_and_clean_page()?

I though about it but I was too lazy to create one. I will add a helper
if I need to resend this series.

>>  
>> +enum iommu_feature
>> +{
>> +    IOMMU_FEAT_COHERENT_WALK,
>> +    IOMMU_FEAT_count,
> 
> Lowercase?

What do you mean?

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-05-15 15:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-15 14:16 [PATCH v7 0/4] IOMMU support for ARM Julien Grall
2014-05-15 14:16 ` [PATCH v7 1/4] xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk Julien Grall
2014-05-15 15:20   ` Ian Campbell
2014-05-15 15:24     ` Julien Grall [this message]
2014-05-15 15:51       ` Ian Campbell
2014-05-15 16:05     ` Jan Beulich
2014-05-15 16:04   ` Jan Beulich
2014-05-15 17:06     ` Julien Grall
2014-05-16 10:00       ` Ian Campbell
2014-05-15 14:16 ` [PATCH v7 2/4] xen/arm: grant: Add another entry to map MFN 1:1 in dom0 p2m Julien Grall
2014-05-17 18:12   ` Julien Grall
2014-05-19  9:45     ` Ian Campbell
2014-05-19 14:20       ` Julien Grall
2014-05-20  7:30         ` Roger Pau Monné
2014-05-20  8:51           ` Ian Campbell
2014-05-20 11:19             ` Julien Grall
2014-05-20 11:25               ` Ian Campbell
2014-05-20 11:53                 ` Julien Grall
2014-05-15 14:16 ` [PATCH v7 3/4] xen: iommu: Define PAGE_{SHIFT, SIZE, ALIGN, MASK)_64K Julien Grall
2014-05-15 14:16 ` [PATCH v7 4/4] drivers/passthrough: arm: Add support for SMMU drivers Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5374DC41.40704@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xiantao.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.