From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Chanwoo Choi <cw00.choi@samsung.com>,
Georgi Djakov <georgi.djakov@linaro.org>
Cc: krzk@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org,
a.swigon@samsung.com, myungjoo.ham@samsung.com,
inki.dae@samsung.com, sw0312.kim@samsung.com,
b.zolnierkie@samsung.com, m.szyprowski@samsung.com,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
linux-samsung-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v7 0/6] Exynos: Simple QoS for exynos-bus using interconnect
Date: Tue, 3 Nov 2020 11:12:07 +0100 [thread overview]
Message-ID: <fae047dd-2564-61be-a185-ceb6f89d3e07@samsung.com> (raw)
In-Reply-To: <3e3038da-d5de-7ea9-9cb9-082ce63af91d@samsung.com>
Hi Chanwoo, Georgi
On 03.11.2020 09:53, Chanwoo Choi wrote:
> On 11/3/20 5:29 PM, Georgi Djakov wrote:
>> On 11/3/20 09:54, Chanwoo Choi wrote:
>>> When I tested this patchset on Odroid-U3,
>>> After setting 0 bps by interconnect[1][2],
>>> the frequency of devfreq devs sustain the high frequency
>>> according to the pm qos request.
>>>
>>> So, I try to find the cause of this situation.
>>> In result, it seems that interconnect exynos driver
>>> updates the pm qos request to devfreq device
>>> during the kernel booting. Do you know why the exynos
>>> interconnect driver request the pm qos during probe
>>> without the mixer request?
>>
>> That's probably because of the sync_state support, that was introduced
>> recently. The icc_sync_state callback needs to be added to the driver
>> (i just left a comment on that patch), and then check again if it works.
>>
>> The idea of the sync_state is that there could be multiple users of a
>> path and we must wait for all consumers to tell their bandwidth needs.
>> Otherwise the first consumer may lower the bandwidth or disable a path
>> needed for another consumer (driver), which has not probed yet. So we
>> maintain a floor bandwidth until everyone has probed. By default the floor
>> bandwidth is INT_MAX, but can be overridden by implementing the get_bw()
>> callback.
Thanks for detailed explanation Georgi.
> Thanks for guide. I tested it with your comment of patch2.
> It is well working without problem as I mentioned previously.
>
> I caught the reset operation of PM QoS requested from interconnect
> on kernel log. In result, after completed the kernel booting,
> there is no pm qos request if hdmi cable is not connected.
Thanks for the bug report Chanwoo, it's related to the sync_state
feature as you guys already figured out. I had to reorder some code
in the interconnect driver probe() to avoid some issues,
i.e. to register PM QoS request before icc_node_add() call but
I forgot to check initial state of the bus frequencies.
I thought the get_bw implementation might be needed but the default
behaviour seems fine, the PM QoS derived bus frequencies will be
clamped in the devfreq to valid OPP values.
Chanwoo, in order to set the bandwidth to 0 we could also just blank
the display. Below are some of the commands I use for testing.
# blank display (disable the mixer entirely)
echo 4 > /sys/devices/platform/exynos-drm/graphics/fb0/blank
# unblank display
echo 0 > /sys/devices/platform/exynos-drm/graphics/fb0/blank
# modetest with 2 planes (higher bandwidth test)
./modetest -s 47:1920x1080 -P 45:1920x1080 -v
--
Regards,
Sylwester
next prev parent reply other threads:[~2020-11-03 10:12 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20201030125221eucas1p14e525f75c4b8dadae04144ce7684d776@eucas1p1.samsung.com>
2020-10-30 12:51 ` [PATCH v7 0/6] Exynos: Simple QoS for exynos-bus using interconnect Sylwester Nawrocki
2020-10-30 12:51 ` [PATCH v7 1/6] dt-bindings: devfreq: Add documentation for the interconnect properties Sylwester Nawrocki
2020-10-31 12:12 ` Krzysztof Kozlowski
2020-11-03 9:40 ` Chanwoo Choi
2020-10-30 12:51 ` [PATCH v7 2/6] interconnect: Add generic interconnect driver for Exynos SoCs Sylwester Nawrocki
2020-10-31 12:17 ` Krzysztof Kozlowski
2020-11-02 12:23 ` Sylwester Nawrocki
2020-11-03 8:11 ` Georgi Djakov
2020-11-03 9:37 ` Chanwoo Choi
2020-11-03 11:32 ` Sylwester Nawrocki
2020-11-03 14:12 ` Chanwoo Choi
2020-11-03 17:30 ` Sylwester Nawrocki
2020-10-30 12:51 ` [PATCH v7 3/6] PM / devfreq: exynos-bus: Add registration of interconnect child device Sylwester Nawrocki
2020-10-31 12:40 ` Krzysztof Kozlowski
2020-11-02 4:28 ` Chanwoo Choi
2020-11-03 10:45 ` Chanwoo Choi
2020-11-03 12:32 ` Sylwester Nawrocki
2020-11-03 13:11 ` Krzysztof Kozlowski
2020-11-03 14:07 ` Chanwoo Choi
2020-10-30 12:51 ` [PATCH v7 4/6] ARM: dts: exynos: Add interconnect properties to Exynos4412 bus nodes Sylwester Nawrocki
2020-10-30 12:51 ` [PATCH v7 5/6] ARM: dts: exynos: Add interconnects to Exynos4412 mixer Sylwester Nawrocki
2020-10-30 12:51 ` [PATCH v7 6/6] drm: exynos: mixer: Add interconnect support Sylwester Nawrocki
2020-10-31 12:44 ` Krzysztof Kozlowski
2020-10-31 12:47 ` Krzysztof Kozlowski
2020-11-02 12:40 ` Sylwester Nawrocki
2020-11-03 7:54 ` [PATCH v7 0/6] Exynos: Simple QoS for exynos-bus using interconnect Chanwoo Choi
2020-11-03 8:29 ` Georgi Djakov
2020-11-03 8:53 ` Chanwoo Choi
2020-11-03 10:12 ` Sylwester Nawrocki [this message]
2020-11-03 10:37 ` Chanwoo Choi
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=fae047dd-2564-61be-a185-ceb6f89d3e07@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=a.swigon@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=georgi.djakov@linaro.org \
--cc=inki.dae@samsung.com \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=myungjoo.ham@samsung.com \
--cc=robh+dt@kernel.org \
--cc=sw0312.kim@samsung.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