All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	iommu@lists.linux-foundation.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Cc: Joerg Roedel <joro@8bytes.org>, Inki Dae <inki.dae@samsung.com>,
	Kukjin Kim <kgene@kernel.org>,
	Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Mark Brown <broonie@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH v2 00/10] Exynos IOMMU: proper runtime PM support (use device dependencies)
Date: Tue, 19 Jul 2016 08:26:20 +0200	[thread overview]
Message-ID: <7c770ff5-2b22-adf6-b8d0-e94d1d7d7550@samsung.com> (raw)
In-Reply-To: <578D0716.6060106@math.uni-bielefeld.de>

Hi Tobias


On 2016-07-18 18:43, Tobias Jakobi wrote:
> Marek Szyprowski wrote:
>> On 2016-07-18 13:00, Tobias Jakobi wrote:
>>> Marek Szyprowski wrote:
>>>> On 2016-07-15 15:21, Tobias Jakobi wrote:
>>>>> Tobias Jakobi wrote:
>>>>>> Hello Marek,
>>>>>>
>>>>>> I've tested the patchset on 4.7-rc7 and noticed that it breaks
>>>>>> reboot on
>>>>>> my ODROID-X2.
>>>>>>
>>>>>> Going to check where exactly things break.
>>>>> Sadly it's the last patch where everything comes together:
>>>>> "iommu/exynos: Add proper runtime pm support"
>>>>>
>>>>> I still have to check if forcing runpm status to 'on' makes a
>>>>> difference. I suspect that the aggressive clock gating might be the
>>>>> reason?
>>>> Thanks for testing. I will check this issue. Could you send me your
>>>> .config?
>>> This is the config I'm currently using:
>>> https://github.com/tobiasjakobi/odroid-environment/blob/master/sourcecode/system/vanilla-4.7-debug.conf
>>>
>>>
>>> Do you think checking this with no_console_suspend makes sense?
>> no_console_suspend switch won't provide more information, but I managed
>> to reproduce your issue. I'm really confused how enabling runtime pm can
>> cause problems with usb/smsc95xx ethernet driver (that is the reason for
>> failed reboot). Maybe it is somehow related to the global relations
>> between devices and drivers and the fact that creating the runtime pm
>> links change the order of operations. I will check this again when
>> Rafael send updated patches. Here is the log I got (after waiting some
>> time):
> thanks for looking into this! I'll try to reproduce this on my board. I
> have to admit that I didn't wait too long for the hung task message to
> appear.
>
> I wonder if this has something to do with regulator code cutting some
> supplies too early. Is this on a X2 or a U2/U3?

I've reproduced it on U3.

> I'm not sure if we
> currently model the regulator setup correctly here (IIRC then buck8 is
> supplying the LAN/USB block on U2/U3).

IMHO it is not really related to regulator operations, but the sequence
of shutting down logical devices in the system. For some reasons when pm 
links
are used, something changes the order of operations in system shutdown
procedure, what causes smsc95xx to hang. I have no idea why, but I don't 
have
time to investigate it further. I will wait for the next release of Rafael's
pm links patches and then check everything again.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland

WARNING: multiple messages have this Message-ID (diff)
From: Marek Szyprowski <m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: Tobias Jakobi
	<tjakobi-o02PS0xoJP9W0yFyLvAVXMxlOr/tl8fh@public.gmane.org>,
	linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: Krzysztof Kozlowski
	<k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Bartlomiej Zolnierkiewicz
	<b.zolnierkie-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Greg Kroah-Hartman
	<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
	"Rafael J. Wysocki" <rjw-LthD3rsA81gm4RdzfppkhA@public.gmane.org>,
	Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Inki Dae <inki.dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Kukjin Kim <kgene-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v2 00/10] Exynos IOMMU: proper runtime PM support (use device dependencies)
Date: Tue, 19 Jul 2016 08:26:20 +0200	[thread overview]
Message-ID: <7c770ff5-2b22-adf6-b8d0-e94d1d7d7550@samsung.com> (raw)
In-Reply-To: <578D0716.6060106-o02PS0xoJP9W0yFyLvAVXMxlOr/tl8fh@public.gmane.org>

Hi Tobias


On 2016-07-18 18:43, Tobias Jakobi wrote:
> Marek Szyprowski wrote:
>> On 2016-07-18 13:00, Tobias Jakobi wrote:
>>> Marek Szyprowski wrote:
>>>> On 2016-07-15 15:21, Tobias Jakobi wrote:
>>>>> Tobias Jakobi wrote:
>>>>>> Hello Marek,
>>>>>>
>>>>>> I've tested the patchset on 4.7-rc7 and noticed that it breaks
>>>>>> reboot on
>>>>>> my ODROID-X2.
>>>>>>
>>>>>> Going to check where exactly things break.
>>>>> Sadly it's the last patch where everything comes together:
>>>>> "iommu/exynos: Add proper runtime pm support"
>>>>>
>>>>> I still have to check if forcing runpm status to 'on' makes a
>>>>> difference. I suspect that the aggressive clock gating might be the
>>>>> reason?
>>>> Thanks for testing. I will check this issue. Could you send me your
>>>> .config?
>>> This is the config I'm currently using:
>>> https://github.com/tobiasjakobi/odroid-environment/blob/master/sourcecode/system/vanilla-4.7-debug.conf
>>>
>>>
>>> Do you think checking this with no_console_suspend makes sense?
>> no_console_suspend switch won't provide more information, but I managed
>> to reproduce your issue. I'm really confused how enabling runtime pm can
>> cause problems with usb/smsc95xx ethernet driver (that is the reason for
>> failed reboot). Maybe it is somehow related to the global relations
>> between devices and drivers and the fact that creating the runtime pm
>> links change the order of operations. I will check this again when
>> Rafael send updated patches. Here is the log I got (after waiting some
>> time):
> thanks for looking into this! I'll try to reproduce this on my board. I
> have to admit that I didn't wait too long for the hung task message to
> appear.
>
> I wonder if this has something to do with regulator code cutting some
> supplies too early. Is this on a X2 or a U2/U3?

I've reproduced it on U3.

> I'm not sure if we
> currently model the regulator setup correctly here (IIRC then buck8 is
> supplying the LAN/USB block on U2/U3).

IMHO it is not really related to regulator operations, but the sequence
of shutting down logical devices in the system. For some reasons when pm 
links
are used, something changes the order of operations in system shutdown
procedure, what causes smsc95xx to hang. I have no idea why, but I don't 
have
time to investigate it further. I will wait for the next release of Rafael's
pm links patches and then check everything again.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland

WARNING: multiple messages have this Message-ID (diff)
From: m.szyprowski@samsung.com (Marek Szyprowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 00/10] Exynos IOMMU: proper runtime PM support (use device dependencies)
Date: Tue, 19 Jul 2016 08:26:20 +0200	[thread overview]
Message-ID: <7c770ff5-2b22-adf6-b8d0-e94d1d7d7550@samsung.com> (raw)
In-Reply-To: <578D0716.6060106@math.uni-bielefeld.de>

Hi Tobias


On 2016-07-18 18:43, Tobias Jakobi wrote:
> Marek Szyprowski wrote:
>> On 2016-07-18 13:00, Tobias Jakobi wrote:
>>> Marek Szyprowski wrote:
>>>> On 2016-07-15 15:21, Tobias Jakobi wrote:
>>>>> Tobias Jakobi wrote:
>>>>>> Hello Marek,
>>>>>>
>>>>>> I've tested the patchset on 4.7-rc7 and noticed that it breaks
>>>>>> reboot on
>>>>>> my ODROID-X2.
>>>>>>
>>>>>> Going to check where exactly things break.
>>>>> Sadly it's the last patch where everything comes together:
>>>>> "iommu/exynos: Add proper runtime pm support"
>>>>>
>>>>> I still have to check if forcing runpm status to 'on' makes a
>>>>> difference. I suspect that the aggressive clock gating might be the
>>>>> reason?
>>>> Thanks for testing. I will check this issue. Could you send me your
>>>> .config?
>>> This is the config I'm currently using:
>>> https://github.com/tobiasjakobi/odroid-environment/blob/master/sourcecode/system/vanilla-4.7-debug.conf
>>>
>>>
>>> Do you think checking this with no_console_suspend makes sense?
>> no_console_suspend switch won't provide more information, but I managed
>> to reproduce your issue. I'm really confused how enabling runtime pm can
>> cause problems with usb/smsc95xx ethernet driver (that is the reason for
>> failed reboot). Maybe it is somehow related to the global relations
>> between devices and drivers and the fact that creating the runtime pm
>> links change the order of operations. I will check this again when
>> Rafael send updated patches. Here is the log I got (after waiting some
>> time):
> thanks for looking into this! I'll try to reproduce this on my board. I
> have to admit that I didn't wait too long for the hung task message to
> appear.
>
> I wonder if this has something to do with regulator code cutting some
> supplies too early. Is this on a X2 or a U2/U3?

I've reproduced it on U3.

> I'm not sure if we
> currently model the regulator setup correctly here (IIRC then buck8 is
> supplying the LAN/USB block on U2/U3).

IMHO it is not really related to regulator operations, but the sequence
of shutting down logical devices in the system. For some reasons when pm 
links
are used, something changes the order of operations in system shutdown
procedure, what causes smsc95xx to hang. I have no idea why, but I don't 
have
time to investigate it further. I will wait for the next release of Rafael's
pm links patches and then check everything again.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland

  reply	other threads:[~2016-07-19  6:26 UTC|newest]

Thread overview: 110+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-17  6:26 [PATCH v2 00/10] Exynos IOMMU: proper runtime PM support (use device dependencies) Marek Szyprowski
2016-06-17  6:26 ` Marek Szyprowski
2016-06-17  6:26 ` Marek Szyprowski
2016-06-17  6:26 ` [PATCH v2 01/10] driver core: Add a wrapper around __device_release_driver() Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26 ` [PATCH v2 02/10] driver core: Functional dependencies tracking support Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17 10:36   ` Lukas Wunner
2016-06-17 10:36     ` Lukas Wunner
2016-06-17 12:54     ` Rafael J. Wysocki
2016-06-17 12:54       ` Rafael J. Wysocki
2016-06-17 12:54       ` Rafael J. Wysocki
2016-06-17 14:07       ` Lukas Wunner
2016-06-17 14:07         ` Lukas Wunner
2016-06-17 14:07         ` Lukas Wunner
2016-07-20  0:33         ` Rafael J. Wysocki
2016-07-20  0:33           ` Rafael J. Wysocki
2016-07-20  0:33           ` Rafael J. Wysocki
2016-07-20  0:33           ` Rafael J. Wysocki
2016-07-20  6:24           ` Lukas Wunner
2016-07-20  6:24             ` Lukas Wunner
2016-07-20  6:24             ` Lukas Wunner
2016-07-20  6:24             ` Lukas Wunner
2016-07-20 12:52             ` Rafael J. Wysocki
2016-07-20 12:52               ` Rafael J. Wysocki
2016-07-20 12:52               ` Rafael J. Wysocki
2016-07-20 12:52               ` Rafael J. Wysocki
2016-07-20 15:23               ` Lukas Wunner
2016-07-20 15:23                 ` Lukas Wunner
2016-07-20 15:23                 ` Lukas Wunner
2016-07-20 15:23                 ` Lukas Wunner
2016-07-20 22:51                 ` Rafael J. Wysocki
2016-07-20 22:51                   ` Rafael J. Wysocki
2016-07-20 22:51                   ` Rafael J. Wysocki
2016-07-20 22:51                   ` Rafael J. Wysocki
2016-07-20 23:25                   ` Lukas Wunner
2016-07-20 23:25                     ` Lukas Wunner
2016-07-20 23:25                     ` Lukas Wunner
2016-07-20 23:25                     ` Lukas Wunner
2016-07-21  0:25                     ` Rafael J. Wysocki
2016-07-21  0:25                       ` Rafael J. Wysocki
2016-07-21  0:25                       ` Rafael J. Wysocki
2016-07-21  0:25                       ` Rafael J. Wysocki
2016-07-24 22:48                       ` Lukas Wunner
2016-07-24 22:48                         ` Lukas Wunner
2016-07-24 22:48                         ` Lukas Wunner
2016-07-28  0:30                         ` Rafael J. Wysocki
2016-07-28  0:30                           ` Rafael J. Wysocki
2016-07-28  0:30                           ` Rafael J. Wysocki
2016-07-28 15:28                           ` Lukas Wunner
2016-07-28 15:28                             ` Lukas Wunner
2016-07-28 15:28                             ` Lukas Wunner
2016-09-06 23:57                             ` Rafael J. Wysocki
2016-09-06 23:57                               ` Rafael J. Wysocki
2016-09-06 23:57                               ` Rafael J. Wysocki
2016-09-06 23:57                               ` Rafael J. Wysocki
2016-06-17  6:26 ` [PATCH v2 03/10] PM core: Make async suspend/resume of devices use device links Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26 ` [PATCH v2 04/10] PM core: Make runtime PM " Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26 ` [PATCH v2 05/10] PM core: Optimize the use of device links for runtime PM Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26 ` [PATCH v2 06/10] driver core: Avoid endless recursion if device has more than one link Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-09-06 23:09   ` Rafael J. Wysocki
2016-09-06 23:09     ` Rafael J. Wysocki
2016-09-06 23:09     ` Rafael J. Wysocki
2016-06-17  6:26 ` [PATCH v2 07/10] driver core: Add support for links to already probed drivers Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-09-06 23:13   ` Rafael J. Wysocki
2016-09-06 23:13     ` Rafael J. Wysocki
2016-06-17  6:26 ` [PATCH v2 08/10] PM core: Fix restoring devices with links during system PM transition Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-09-06 23:24   ` Rafael J. Wysocki
2016-09-06 23:24     ` Rafael J. Wysocki
2016-06-17  6:26 ` [PATCH v2 09/10] iommu/exynos: Remove excessive, useless debug Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:26   ` Marek Szyprowski
2016-06-17  6:27 ` [PATCH v2 10/10] iommu/exynos: Add proper runtime pm support Marek Szyprowski
2016-06-17  6:27   ` Marek Szyprowski
2016-06-17  6:27   ` Marek Szyprowski
2016-07-14 15:41 ` [PATCH v2 00/10] Exynos IOMMU: proper runtime PM support (use device dependencies) Tobias Jakobi
2016-07-14 15:41   ` Tobias Jakobi
2016-07-15 13:21   ` Tobias Jakobi
2016-07-15 13:21     ` Tobias Jakobi
2016-07-15 13:21     ` Tobias Jakobi
2016-07-18 10:32     ` Marek Szyprowski
2016-07-18 10:32       ` Marek Szyprowski
2016-07-18 11:00       ` Tobias Jakobi
2016-07-18 11:00         ` Tobias Jakobi
2016-07-18 13:50         ` Marek Szyprowski
2016-07-18 13:50           ` Marek Szyprowski
2016-07-18 13:50           ` Marek Szyprowski
2016-07-18 16:43           ` Tobias Jakobi
2016-07-18 16:43             ` Tobias Jakobi
2016-07-18 16:43             ` Tobias Jakobi
2016-07-19  6:26             ` Marek Szyprowski [this message]
2016-07-19  6:26               ` Marek Szyprowski
2016-07-19  6:26               ` Marek Szyprowski
2016-07-24 18:02               ` Tobias Jakobi
2016-07-24 18:02                 ` Tobias Jakobi
2016-07-24 18:02                 ` Tobias Jakobi

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=7c770ff5-2b22-adf6-b8d0-e94d1d7d7550@samsung.com \
    --to=m.szyprowski@samsung.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=broonie@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=inki.dae@samsung.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=joro@8bytes.org \
    --cc=k.kozlowski@samsung.com \
    --cc=kgene@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=tjakobi@math.uni-bielefeld.de \
    --cc=ulf.hansson@linaro.org \
    /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.