1 Oct 2011 01:46
Re: [PATCH v2 3/5] iommu/exynos: Add iommu driver for Exynos4 Platforms
KyongHo Cho <pullip.cho <at> samsung.com>
2011-09-30 23:46:51 GMT
2011-09-30 23:46:51 GMT
On Fri, Sep 30, 2011 at 9:06 PM, Roedel, Joerg <Joerg.Roedel <at> amd.com> wrote:
> First comment: Pleas remove the 'inline' annotations in this patch. It
> is better to let the compiler decide what to inline and what not.
Ok. Thanks :)
>
> Hmm, may it make sense to store data directly in dev->arch.iommu? This
> will save you the list traversals to get the information.
>
That looks better.
However, adding features to dev_archdata of ARM is actively discussed
in Linaro-mm-sig and the features also include iommu_domain.
On the other hand,
I was not able to determine what will be accepted to the mainline kernel
between Linaro's one that is suggested by Marek and Ohad's one.
>> +
>> +static inline bool set_sysmmu_active(struct sysmmu_drvdata *data)
>> +{
>> + /* return true if the System MMU was not active previously
>> + and it needs to be initialized */
>> +
>> + data->activations++;
>
> Is this variable only accessed under a lock? If not it should be an
> atomic.
>
All 'sysmmu' functions must be called under a lock because a System MMU
(Samsung's IOMMU) is a shared resource.
(Continue reading)
RSS Feed