Patch Set 2:

(5 comments)

Please add a more elaborate commit message for such a huge diff stat. What is SPM and why is it needed? Why does it have to be set up by the firmware, and it’s not enough that the OS sets it up? From what datasheet did you take the macro definitions?

Also, please add a follow-up commit with additional time-stamps (or stopwatch messages) so the time of this can be measured.

What is the boot time penalty of this commit?

==>
Yes, I would add more information in comment message, and try to explain it more clear.

What is SPM and why is it needed? Why does it have to be set up by the firmware?
==>
For SOC power saving
There is a HW module inside SOC, we call this HW module SPM.
After linux PM suspend, SPM would turn off last CPU power and do more powersave for SOC (such like DRAM self-refresh mode, reduce SOC voltage level, turn off 26M crystal,...)

SPM need firmware to turn off SoC power or do power-save in right time and right condition.
Otherwise, SPM can't do any thing after linux PM suspend.

From what datasheet did you take the macro definitions?
==>
MT8183 SPM datasheet


Also, please add a follow-up commit with additional time-stamps (or stopwatch messages) so the time of this can be measured
==>
I would have a try to add time-stamps on next version.

Patch set 2:-Code-Review

View Change

18 comments:

To view, visit change 34545. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3393a772f025b0912a5a25a63a87512454fbc86e
Gerrit-Change-Number: 34545
Gerrit-PatchSet: 2
Gerrit-Owner: DAWEI CHIEN <dawei.chien@mediatek.com>
Gerrit-Reviewer: DAWEI CHIEN <dawei.chien@mediatek.com>
Gerrit-Reviewer: Hung-Te Lin <hungte@chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Tristan Hsieh <tristan.shieh@mediatek.com>
Gerrit-Reviewer: You-Cheng Syu <youcheng@google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-CC: SJ Huang <sj.huang@mediatek.corp-partner.google.com>
Gerrit-Comment-Date: Thu, 25 Jul 2019 09:06:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Paul Menzel <paulepanter@users.sourceforge.net>
Comment-In-Reply-To: Hung-Te Lin <hungte@chromium.org>
Gerrit-MessageType: comment