Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1507137
| From | "Sricharan" <sricharan@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH v5 6/7] iommu/exynos: Add runtime pm support |
| Date | 2016-10-24 14:20 +0200 |
| Message-ID | <svMop-7un-13@gated-at.bofh.it> (permalink) |
| References | <sufXz-4qj-3@gated-at.bofh.it> <sufXz-4qj-25@gated-at.bofh.it> <sufXz-4qj-23@gated-at.bofh.it> <suXvz-7LD-1@gated-at.bofh.it> <svFZD-3cQ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Marek,
>Hi Sricharan
>
>
>On 2016-10-22 07:50, Sricharan wrote:
>>
>>> This patch adds runtime pm implementation, which is based on previous
>>> suspend/resume code. SYSMMU controller is now being enabled/disabled mainly
>> > from the runtime pm callbacks. System sleep callbacks relies on generic
>>> pm_runtime_force_suspend/pm_runtime_force_resume helpers. To ensure
>>> internal state consistency, additional lock for runtime pm transitions
>>> was introduced.
>>>
>>> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
>>> ---
>>> drivers/iommu/exynos-iommu.c | 45 +++++++++++++++++++++++++++++++++++---------
>>> 1 file changed, 36 insertions(+), 9 deletions(-)
>>>
>>> diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
>>> index a959443e6f33..5e6d7bbf9b70 100644
>>> --- a/drivers/iommu/exynos-iommu.c
>>> +++ b/drivers/iommu/exynos-iommu.c
>>> @@ -206,6 +206,7 @@ struct sysmmu_fault_info {
>>> struct exynos_iommu_owner {
>>> struct list_head controllers; /* list of sysmmu_drvdata.owner_node */
>>> struct iommu_domain *domain; /* domain this device is attached */
>>> + struct mutex rpm_lock; /* for runtime pm of all sysmmus */
>>> };
>>>
>>> /*
>>> @@ -594,40 +595,46 @@ static int __init exynos_sysmmu_probe(struct platform_device *pdev)
>>> return 0;
>>> }
>>>
>>> -#ifdef CONFIG_PM_SLEEP
>>> -static int exynos_sysmmu_suspend(struct device *dev)
>>> +static int __maybe_unused exynos_sysmmu_suspend(struct device *dev)
>>> {
>>> struct sysmmu_drvdata *data = dev_get_drvdata(dev);
>>> struct device *master = data->master;
>>>
>>> if (master) {
>>> - pm_runtime_put(dev);
>>> + struct exynos_iommu_owner *owner = master->archdata.iommu;
>>> +
>>> + mutex_lock(&owner->rpm_lock);
>> More of a device link question,
>> To understand, i see that with device link + runtime, the supplier
>> callbacks are not called for irqsafe clients, even if supplier is irqsafe.
>> Why so ?
>
>Frankly I didn't care about irqsafe runtime pm, because there is no such
>need
>for Exynos platform and its drivers. Exynos power domain driver also doesn't
>support irqsafe mode.
ok, i asked this because, i was doing the same thing for arm-smmu driver
and thought that when we depend on device-link for doing the runtime pm,
then it might not work for irqsafe master. Probably i can ask this on device link
series post.
Regards,
Sricharan
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5 0/7] Exynos IOMMU: proper runtime PM support (use device dependencies) Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-20 09:30 +0200
[PATCH v5 1/7] iommu/exynos: Remove excessive, useless debug Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-20 09:30 +0200
[PATCH v5 6/7] iommu/exynos: Add runtime pm support Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-20 09:30 +0200
RE: [PATCH v5 6/7] iommu/exynos: Add runtime pm support "Sricharan" <sricharan@codeaurora.org> - 2016-10-22 08:00 +0200
Re: [PATCH v5 6/7] iommu/exynos: Add runtime pm support Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-24 07:30 +0200
RE: [PATCH v5 6/7] iommu/exynos: Add runtime pm support "Sricharan" <sricharan@codeaurora.org> - 2016-10-24 14:20 +0200
[PATCH v5 3/7] iommu/exynos: Simplify internal enable/disable functions Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-20 09:30 +0200
[PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-20 09:30 +0200
RE: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm "Sricharan" <sricharan@codeaurora.org> - 2016-10-23 12:00 +0200
Re: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-24 07:40 +0200
RE: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm "Sricharan" <sricharan@codeaurora.org> - 2016-10-24 14:30 +0200
Re: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-24 14:40 +0200
RE: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm "Sricharan" <sricharan@codeaurora.org> - 2016-10-25 09:00 +0200
[PATCH v5 2/7] iommu/exynos: Remove dead code Marek Szyprowski <m.szyprowski@samsung.com> - 2016-10-20 09:30 +0200
csiph-web