mbox series

[v3,0/5] Provide real domain names for Exynos power domain driver

Message ID 1485778740-30337-1-git-send-email-m.szyprowski@samsung.com
Headers show
Series Provide real domain names for Exynos power domain driver | expand

Message

Marek Szyprowski Jan. 30, 2017, 12:18 p.m. UTC
Hi!

For everyone working on power management and runtime power management it
is important to have a meaningful information about the state of the
power domains. Current Exynos power domain driver created names of the
domains based on the device tree node name. Those name
we incorrectly a bit more descriptive (like "mfc-power-domain@10023C40"
in exynos4.dtsi) than they should be (it should be fixed to
"power-domain@10023C40"). This patch series adds reading human readable
names from the 'label' property. While touching this, I've also fixes
a few obvious issues related to power domain driver code.

Patches are based on the Linux next-20170130 branch.

Best regards
Marek Szyprowski
Samsung R&D Institute Poland


Changelog:
v3:
- moved real domains names from hardcoded string in the driver to the label
  property in the device tree (suggested by Krzysztof Kozlowski)

v2:
- sorted all domains data by domain base address in the arrays in driver

v1:
- initial version


Patch summary:

Marek Szyprowski (5):
  soc: samsung: pm_domains: Use full names in subdomains registration
    log
  soc: samsung: pm_domains: Remove unused name field
  soc: samsung: pm_domains: Remove message about failed memory
    allocation
  soc: samsung: pm_domains: Read domain name from the new label property
  arm: dts: exynos: Add labels to all existing power domains

 .../devicetree/bindings/power/pd-samsung.txt       |  4 ++++
 arch/arm/boot/dts/exynos4.dtsi                     |  7 +++++++
 arch/arm/boot/dts/exynos4210.dtsi                  |  1 +
 arch/arm/boot/dts/exynos4412.dtsi                  |  1 +
 arch/arm/boot/dts/exynos5250.dtsi                  |  3 +++
 arch/arm/boot/dts/exynos5420.dtsi                  |  5 +++++
 drivers/soc/samsung/pm_domains.c                   | 24 +++++++++++++---------
 7 files changed, 35 insertions(+), 10 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Marek Szyprowski Jan. 31, 2017, 7:04 a.m. UTC | #1
On 2017-01-30 19:36, Krzysztof Kozlowski wrote:
> On Mon, Jan 30, 2017 at 01:18:55PM +0100, Marek Szyprowski wrote:

>> Hi!

>>

>> For everyone working on power management and runtime power management it

>> is important to have a meaningful information about the state of the

>> power domains. Current Exynos power domain driver created names of the

>> domains based on the device tree node name. Those name

>> we incorrectly a bit more descriptive (like "mfc-power-domain@10023C40"

>> in exynos4.dtsi) than they should be (it should be fixed to

>> "power-domain@10023C40"). This patch series adds reading human readable

>> names from the 'label' property. While touching this, I've also fixes

>> a few obvious issues related to power domain driver code.

>>

>> Patches are based on the Linux next-20170130 branch.

>>

>> Best regards

>> Marek Szyprowski

>> Samsung R&D Institute Poland

>>

> I think I am missing something... but it looks it does not work. I

> applied it on top of my for-next tree and:

> cat /sys/kernel/debug/pm_genpd/pm_genpd_summary

> domain                          status          slaves

>      /device                                             runtime status

>      ----------------------------------------------------------------------

>      isp-power-domain@10023CA0       off-0

>      gps-alive-power-domain@10023D00  off-0

>      gps-power-domain@10023CE0       off-0

>      cam-power-domain@10023C00       off-0

>

> Also, with enabled debug on pm-domains and unbinding a device:

> [  180.016800] s5p-mfc 13400000.codec: genpd_runtime_resume()

> [  180.017289] s5p-mfc 13400000.codec: genpd_runtime_suspend()

> [  180.017519] s5p-mfc 13400000.codec: Removing 13400000.codec

> [  180.024283] s5p-mfc 13400000.codec: removing from PM domain mfc-power-domain@10023C40

> [  180.024323] s5p-mfc 13400000.codec: genpd_remove_device()

>

> I think in both cases the genpd->name is used... which should be the new

> name (label).

>

> What is wrong?


I have no idea. Are you sure you have applied the dts patch? Here it works
fine (Odroid U3 with next-20170130 + this patchset):

domain                          status          slaves
     /device                                             runtime status
----------------------------------------------------------------------
ISP                             off-0
GPS alive                       off-0
GPS                             off-0
CAM                             off-0
TV                              on
     /devices/platform/12c10000.mixer                    active
     /devices/platform/12d00000.hdmi                     active
LCD0                            on              TV
G3D                             off-0
MFC                             off-0

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

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html