From: Marek Szyprowski <m.szyprowski@samsung.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: iommu@lists.linux-foundation.org,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linaro-mm-sig@lists.linaro.org, Arnd Bergmann <arnd@arndb.de>,
Shaik Ameer Basha <shaik.ameer@samsung.com>,
Cho KyongHo <pullip.cho@samsung.com>,
Joerg Roedel <joro@8bytes.org>,
Thierry Reding <treding@nvidia.com>,
Olof Johansson <olof@lixom.net>, Rob Herring <robh@kernel.org>,
Will Deacon <will.deacon@arm.com>,
David Wodhouse <dwmw2@infradead.org>,
Inki Dae <inki.dae@samsung.com>, Kukjin Kim <kgene@kernel.org>,
Tomasz Figa <tomasz.figa@gmail.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Joonyoung Shim <jy0922.shim@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
Javier Martinez Canillas <javier@dowhile0.org>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>
Subject: Re: [PATCH v7 03/25] iommu: Init iommu-groups support earlier, in core_initcall
Date: Mon, 25 May 2015 09:28:37 +0200 [thread overview]
Message-ID: <5562CF25.2070602@samsung.com> (raw)
In-Reply-To: <2209337.hhg3lyvUbi@avalon>
Hello,
On 2015-05-23 18:23, Laurent Pinchart wrote:
> Hi Marek,
>
> Thank you for the patch.
>
> On Tuesday 19 May 2015 15:20:23 Marek Szyprowski wrote:
>> iommu_group_alloc might be called very early in case of iommu controllers
>> activated from of_iommu, so ensure that this part of subsystem is ready
>> when devices are being populated from device-tree (core_initcall seems to
>> be okay for this case).
>>
>> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
>> ---
>> drivers/iommu/iommu.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
>> index d4f527e56679..37a6aa8f318b 100644
>> --- a/drivers/iommu/iommu.c
>> +++ b/drivers/iommu/iommu.c
>> @@ -1207,7 +1207,7 @@ static int __init iommu_init(void)
>>
>> return 0;
>> }
>> -arch_initcall(iommu_init);
>> +core_initcall(iommu_init);
> I'll let Joerg comment on this, but this initcall ordering dance always makes
> me feel that something isn't quite right. Have you had a chance to look at the
> patch series I posted about a week ago to implement IOMMU probe deferral
> support ?
I will try to check your IOMMU probe deferal, but for the time being
changing the
initcall priority was the simplest way to get everything working with
iommu_groups
(what was a requirement from Joerg).
I also don't like the initcall ordering hacks, but this change seems to
be the
right approach. Probe deferal is convenient for development purpose and
all king of
hotpluggable solutions, but imho for typical cases system should be
tuned to avoid
deferal to reduce overhead on boot.
If possible I would like to avoid having dependency on your
deferal-probe patches
and get the basic Exynos IOMMU support finally merged. There are still other
enhancements to Exynos IOMMU driver that depend on it and need real
discussion
(like real runtime pm and exposing particular iommu controllers via dma
api).
>
>> int iommu_domain_get_attr(struct iommu_domain *domain,
>> enum iommu_attr attr, void *data)
>
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
next prev parent reply other threads:[~2015-05-25 7:28 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 13:20 [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 01/25] drm/exynos: iommu: detach from default dma-mapping domain on init Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 02/25] drm/exynos: fimd: ensure proper hw state in fimd_clear_channel() Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 03/25] iommu: Init iommu-groups support earlier, in core_initcall Marek Szyprowski
[not found] ` <1432041645-11172-4-git-send-email-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-05-23 16:23 ` Laurent Pinchart
2015-05-25 7:28 ` Marek Szyprowski [this message]
2015-05-29 8:33 ` Joerg Roedel
2015-05-19 13:20 ` [PATCH v7 04/25] iommu/exynos: Don't read version register on every tlb operation Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 05/25] iommu/exynos: Remove unused functions Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 06/25] iommu/exynos: Remove useless members from exynos_iommu_owner structure Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 07/25] iommu/exynos: Refactor function parameters to simplify code Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 08/25] iommu/exynos: Rename variables to reflect their purpose Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 09/25] iommu/exynos: Use struct exynos_iommu_domain in internal structures Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 10/25] iommu/exynos: Remove excessive includes and sort others alphabetically Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 11/25] iommu/exynos: Document internal structures Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 12/25] iommu/exynos: Add/remove callbacks should fail if no iommu is available Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 13/25] iommu/exynos: Add support for binding more than one sysmmu to master device Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 14/25] iommu/exynos: Add support for runtime_pm Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 15/25] iommu/exynos: Add system suspend/resume support Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 16/25] iommu/exynos: Init from dt-specific callback instead of initcall Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 17/25] iommu/exynos: Add callback for initializing devices from device tree Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 18/25] ARM: Exynos: pm_domains: register power domain driver from core_initcall Marek Szyprowski
2015-05-20 0:51 ` Krzysztof Kozlowski
2015-05-19 13:20 ` [PATCH v7 20/25] ARM: dts: exynos3250: add sysmmu nodes Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 21/25] ARM: dts: exynos4415: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 22/25] ARM: dts: exynos5250: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 23/25] ARM: dts: exynos5420: " Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 24/25] ARM: DMA-mapping: add support for creating reserved mappings in iova space Marek Szyprowski
2015-05-19 13:20 ` [PATCH v7 25/25] ARM: dts: exynos: add iommu reserved regions for bootloader's splash screen Marek Szyprowski
2015-05-20 7:31 ` [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem Javier Martinez Canillas
2015-05-23 3:56 ` [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT andDMA-mapping subsystem Kukjin Kim
2015-05-28 23:54 ` Krzysztof Kozlowski
[not found] ` <1432041645-11172-1-git-send-email-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-05-19 13:20 ` [PATCH v7 19/25] ARM: dts: exynos4: add sysmmu nodes Marek Szyprowski
2015-05-29 8:52 ` [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT and DMA-mapping subsystem Joerg Roedel
2015-06-01 10:10 ` [PATCH 0/6] Exynos SYSMMU (IOMMU) dts and arch updates Marek Szyprowski
2015-06-01 10:10 ` [PATCH 1/6] ARM: Exynos: pm_domains: register power domain driver from core_initcall Marek Szyprowski
2015-06-01 10:10 ` [PATCH 2/6] ARM: dts: exynos4: add sysmmu nodes Marek Szyprowski
2015-06-01 10:10 ` [PATCH 3/6] ARM: dts: exynos3250: " Marek Szyprowski
2015-06-01 10:10 ` [PATCH 4/6] ARM: dts: exynos4415: " Marek Szyprowski
2015-06-01 10:10 ` [PATCH 5/6] ARM: dts: exynos5250: " Marek Szyprowski
2015-06-01 10:10 ` [PATCH 6/6] ARM: dts: exynos5420: " Marek Szyprowski
2015-06-01 19:12 ` Exynos 5410 support (was [PATCH 6/6] ARM: dts: exynos5420: add sysmmu nodes) Ben Gamari
2015-06-01 23:51 ` Krzysztof Kozłowski
2015-06-02 8:13 ` Ben Gamari
2015-06-02 8:26 ` Krzysztof Kozłowski
2015-06-04 19:28 ` Ben Gamari
2015-06-01 11:34 ` [PATCH 0/6] Exynos SYSMMU (IOMMU) dts and arch updates Krzysztof Kozlowski
2015-06-03 23:11 ` Kukjin Kim
2015-06-04 3:51 ` Krzysztof Kozlowski
2015-06-04 6:10 ` Krzysztof Kozlowski
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=5562CF25.2070602@samsung.com \
--to=m.szyprowski@samsung.com \
--cc=arnd@arndb.de \
--cc=dwmw2@infradead.org \
--cc=inki.dae@samsung.com \
--cc=iommu@lists.linux-foundation.org \
--cc=javier@dowhile0.org \
--cc=joro@8bytes.org \
--cc=jy0922.shim@samsung.com \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olof@lixom.net \
--cc=pullip.cho@samsung.com \
--cc=robh@kernel.org \
--cc=shaik.ameer@samsung.com \
--cc=sw0312.kim@samsung.com \
--cc=tomasz.figa@gmail.com \
--cc=treding@nvidia.com \
--cc=will.deacon@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox