All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tero Kristo <t-kristo@ti.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: "Tony Lindgren" <tony@atomide.com>,
	"Merlijn Wajer" <merlijn@wizzup.org>,
	"Adam Ford" <aford173@gmail.com>,
	"Philipp Rossak" <embed3d@gmail.com>,
	"Paweł Chmiel" <pawel.mikolaj.chmiel@gmail.com>,
	"Tomi Valkeinen" <tomi.valkeinen@ti.com>,
	"Filip Matijević" <filip.matijevic.pz@gmail.com>,
	"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
	"moaz korena" <moaz@korena.xyz>,
	"James Hilliard" <james.hilliard1@gmail.com>,
	kernel@pyra-handheld.com,
	"Discussions about the Letux Kernel"
	<letux-kernel@openphoenux.org>,
	maemo-leste@lists.dyne.org,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	linux-omap <linux-omap@vger.kernel.org>
Subject: Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5
Date: Tue, 8 Oct 2019 11:00:46 +0300	[thread overview]
Message-ID: <0bb4739d-e26f-de49-fd80-257a836e892a@ti.com> (raw)
In-Reply-To: <9253CFB5-0AF7-4EA0-AC7F-6DE37318238A@goldelico.com>

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]

On 07/10/2019 22:24, H. Nikolaus Schaller wrote:
> Hi Tero,
> 
>> Am 07.10.2019 um 21:18 schrieb Tero Kristo <t-kristo@ti.com>:
>>
>> On 07/10/2019 18:52, Tony Lindgren wrote:
>>> Hi,
>>> * H. Nikolaus Schaller <hns@goldelico.com> [191005 16:59]:
>>> Please try with Tero's current github branch at github.com/t-kristo/linux-pm.git
>>> 5.4-rc1-ipc from few days ago, the earlier versions had still issues.
>>
>> Yeah, this one should be fixed now.
> 
> Ok! Will try asap.
> 
>>
>>>> * OMAP5 (Pyra): fails to enable the clocks (did work with the previous version)
>>>> [  304.140363] clock-controller:clk:0000:0: failed to enable
>>>> [  304.147388] PVR_K:(Error): EnableSGXClocks: pm_runtime_get_sync failed (16)
>>> Hmm no idea what might be up with this one. Did some clkctrl clock
>>> fixes maybe cause a regression here? Tero do you have any ideas?
>>
>> So, this one I am not too sure, I haven't looked at omap5 graphics clocking. I don't think it has anything to do with reset handling though.
>>
>> Is there some simple way to try this out on board; without PVR module that is?
> 
> Yes, I have also seen it when just running the commands in the original commit message [1]:
> 
> # echo on > $(find /sys -name control | grep \/5600)
> # rwmem 0x5600fe00	# OCP Revision
> 0x5600fe00 = 0x40000000
> # echo auto > $(find /sys -name control | grep \/5600)
> # rwmem 0x5600fe10
> # rwmem 0x56000024
> 
> But I have not yet tested with 5.4-rc2, just 5.4-rc1.

Ok, there is a one liner DTS data fix for this issue, attached.

-Tero

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

[-- Attachment #2: 0001-ARM-dts-omap5-fix-gpu_cm-clock-provider-name.patch --]
[-- Type: text/x-patch, Size: 1121 bytes --]

From 57f9fecb167c0ef9f1ae2a1aa93a05ca8add52a2 Mon Sep 17 00:00:00 2001
From: Tero Kristo <t-kristo@ti.com>
Date: Tue, 8 Oct 2019 10:56:42 +0300
Subject: [PATCH 1/1] ARM: dts: omap5: fix gpu_cm clock provider name

The clkctrl code searches for the parent clockdomain based on the name
of the CM provider node. The introduction of SGX node for omap5 made
the node name for the gpu_cm to be clock-controller. There is no
clockdomain named like this, so the lookup fails. Fix by changing
the node name properly.

Fixes: 394534cb07d8 ("ARM: dts: Configure sgx for omap5")
Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 arch/arm/boot/dts/omap54xx-clocks.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap54xx-clocks.dtsi b/arch/arm/boot/dts/omap54xx-clocks.dtsi
index 939ec7dfc366..db9885103099 100644
--- a/arch/arm/boot/dts/omap54xx-clocks.dtsi
+++ b/arch/arm/boot/dts/omap54xx-clocks.dtsi
@@ -1160,7 +1160,7 @@
 		};
 	};
 
-	gpu_cm: clock-controller@1500 {
+	gpu_cm: gpu_cm@1500 {
 		compatible = "ti,omap4-cm";
 		reg = <0x1500 0x100>;
 		#address-cells = <1>;
-- 
2.17.1


WARNING: multiple messages have this Message-ID (diff)
From: Tero Kristo <t-kristo@ti.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: "Tony Lindgren" <tony@atomide.com>,
	"Merlijn Wajer" <merlijn@wizzup.org>,
	"Adam Ford" <aford173@gmail.com>,
	"Philipp Rossak" <embed3d@gmail.com>,
	"Paweł Chmiel" <pawel.mikolaj.chmiel@gmail.com>,
	"Tomi Valkeinen" <tomi.valkeinen@ti.com>,
	"Filip Matijević" <filip.matijevic.pz@gmail.com>,
	"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
	"moaz korena" <moaz@korena.xyz>,
	"James Hilliard" <james.hilliard1@gmail.com>,
	kernel@pyra-handheld.com,
	"Discussions about the Letux Kernel"
	<letux-kernel@openphoenux.org>,
	maemo-leste@lists.dyne.org,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	linux-omap <linux-omap@vger.kernel.org>
Subject: Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5
Date: Tue, 8 Oct 2019 11:00:46 +0300	[thread overview]
Message-ID: <0bb4739d-e26f-de49-fd80-257a836e892a@ti.com> (raw)
In-Reply-To: <9253CFB5-0AF7-4EA0-AC7F-6DE37318238A@goldelico.com>

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]

On 07/10/2019 22:24, H. Nikolaus Schaller wrote:
> Hi Tero,
> 
>> Am 07.10.2019 um 21:18 schrieb Tero Kristo <t-kristo@ti.com>:
>>
>> On 07/10/2019 18:52, Tony Lindgren wrote:
>>> Hi,
>>> * H. Nikolaus Schaller <hns@goldelico.com> [191005 16:59]:
>>> Please try with Tero's current github branch at github.com/t-kristo/linux-pm.git
>>> 5.4-rc1-ipc from few days ago, the earlier versions had still issues.
>>
>> Yeah, this one should be fixed now.
> 
> Ok! Will try asap.
> 
>>
>>>> * OMAP5 (Pyra): fails to enable the clocks (did work with the previous version)
>>>> [  304.140363] clock-controller:clk:0000:0: failed to enable
>>>> [  304.147388] PVR_K:(Error): EnableSGXClocks: pm_runtime_get_sync failed (16)
>>> Hmm no idea what might be up with this one. Did some clkctrl clock
>>> fixes maybe cause a regression here? Tero do you have any ideas?
>>
>> So, this one I am not too sure, I haven't looked at omap5 graphics clocking. I don't think it has anything to do with reset handling though.
>>
>> Is there some simple way to try this out on board; without PVR module that is?
> 
> Yes, I have also seen it when just running the commands in the original commit message [1]:
> 
> # echo on > $(find /sys -name control | grep \/5600)
> # rwmem 0x5600fe00	# OCP Revision
> 0x5600fe00 = 0x40000000
> # echo auto > $(find /sys -name control | grep \/5600)
> # rwmem 0x5600fe10
> # rwmem 0x56000024
> 
> But I have not yet tested with 5.4-rc2, just 5.4-rc1.

Ok, there is a one liner DTS data fix for this issue, attached.

-Tero

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

[-- Attachment #2: 0001-ARM-dts-omap5-fix-gpu_cm-clock-provider-name.patch --]
[-- Type: text/x-patch, Size: 1122 bytes --]

>From 57f9fecb167c0ef9f1ae2a1aa93a05ca8add52a2 Mon Sep 17 00:00:00 2001
From: Tero Kristo <t-kristo@ti.com>
Date: Tue, 8 Oct 2019 10:56:42 +0300
Subject: [PATCH 1/1] ARM: dts: omap5: fix gpu_cm clock provider name

The clkctrl code searches for the parent clockdomain based on the name
of the CM provider node. The introduction of SGX node for omap5 made
the node name for the gpu_cm to be clock-controller. There is no
clockdomain named like this, so the lookup fails. Fix by changing
the node name properly.

Fixes: 394534cb07d8 ("ARM: dts: Configure sgx for omap5")
Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 arch/arm/boot/dts/omap54xx-clocks.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap54xx-clocks.dtsi b/arch/arm/boot/dts/omap54xx-clocks.dtsi
index 939ec7dfc366..db9885103099 100644
--- a/arch/arm/boot/dts/omap54xx-clocks.dtsi
+++ b/arch/arm/boot/dts/omap54xx-clocks.dtsi
@@ -1160,7 +1160,7 @@
 		};
 	};
 
-	gpu_cm: clock-controller@1500 {
+	gpu_cm: gpu_cm@1500 {
 		compatible = "ti,omap4-cm";
 		reg = <0x1500 0x100>;
 		#address-cells = <1>;
-- 
2.17.1


  reply	other threads:[~2019-10-08  8:01 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180108214032.GW3872@atomide.com>
     [not found] ` <4d99c1ae-7752-949b-7e88-bc8f1dc594a2@wizzup.org>
     [not found]   ` <0C51EC59-9CDC-4196-ACF9-24596C9E61B6@goldelico.com>
     [not found]     ` <FA4520D5-62CB-446D-975C-A1C7B9251517@goldelico.com>
     [not found]       ` <20190212205132.GO5720@atomide.com>
     [not found]         ` <0b00ce0a-969f-e638-8247-c2da96cf7ce6@gmail.com>
     [not found]           ` <20190213004143.GP5720@atomide.com>
     [not found]             ` <480AB632-A544-41E7-95A4-DC354AEBB71A@goldelico.com>
     [not found]               ` <CAKpie0SigGGsQxSU+X-Mz5boy-Xx=3wRNOcrf+F=ehFr3RBi7Q@mail.gmail.com>
     [not found]                 ` <092210C3-05DE-4AFB-986F-81BD8F990B67@goldelico.com>
     [not found]                   ` <CAKpie0RXM1UC33YFeFy-kAxfGhYGNkw4vUgNTThf-ZCAhPTVXw@mail.gmail.com>
     [not found]                     ` <BE23C1E4-2877-49FA-B230-F9C10691B805@goldelico.com>
     [not found]                       ` <CAKpie0TSo-8gmDm9_Zw4Sd+kjVVEomp8yA9Vu8qY2U2AcrQc=w@mail.gmail.com>
     [not found]                         ` <8A069D96-C65F-43F5-8F54-20019CFB1A8D@goldelico.com>
     [not found]                           ` <d0cbfaaf-813e-8803-f90b-931a38396750@wizzup.org>
     [not found]                             ` <3A03FF16-C203-43ED-AEEF-0260F6B3331A@goldelico.com>
     [not found]                               ` <3b0a5e78-c4c2-1963-bac7-b49496a1e9b9@wizzup.org>
     [not found]                                 ` <1F942AAB-1648-46C0-ADD5-90F6898778BE@goldelico.com>
     [not found]                                   ` <84cac9b8-0eff-33f8-464d-4f8045d7db19@wizzup.org >
     [not found]                                     ` <84cac9b8-0eff-33f8-464d-4f8045d7db19@wizzup.org>
2019-08-14  8:56                                       ` Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5 H. Nikolaus Schaller
2019-08-14  8:56                                         ` H. Nikolaus Schaller
2019-08-14  9:47                                         ` Tony Lindgren
2019-08-14 10:33                                           ` H. Nikolaus Schaller
2019-08-14 13:16                                             ` Tony Lindgren
2019-08-16 23:01                                               ` Adam Ford
2019-08-17  7:03                                                 ` Tony Lindgren
2019-08-19 19:25                                                   ` Adam Ford
2019-08-21 11:38                                                     ` Tony Lindgren
2019-08-17  9:01                                                 ` H. Nikolaus Schaller
2019-08-19 19:43                                         ` Adam Ford
2019-08-20  6:48                                           ` H. Nikolaus Schaller
2019-08-20  6:48                                             ` H. Nikolaus Schaller
2019-08-20  7:09                                             ` Merlijn Wajer
     [not found]                                               ` <C3A56737-6187-4B31-8697-3A02DD164429@goldelico.com>
2019-10-07 15:52                                                 ` Tony Lindgren
2019-10-07 15:56                                                   ` H. Nikolaus Schaller
2019-10-07 19:18                                                   ` Tero Kristo
2019-10-07 19:24                                                     ` H. Nikolaus Schaller
2019-10-08  8:00                                                       ` Tero Kristo [this message]
2019-10-08  8:00                                                         ` Tero Kristo
2019-10-08 13:49                                                         ` Tony Lindgren
2019-10-08 20:15                                                         ` H. Nikolaus Schaller
2019-10-09 12:53                                                           ` H. Nikolaus Schaller
2019-10-09 13:55                                                             ` Tero Kristo
2019-10-09 14:23                                                               ` H. Nikolaus Schaller
2019-10-09 14:23                                                                 ` H. Nikolaus Schaller
2019-10-09 16:34                                                                 ` Tero Kristo
2019-10-09 19:53                                                                   ` H. Nikolaus Schaller
2019-10-09 19:53                                                                     ` H. Nikolaus Schaller
2019-10-12 13:09                                                 ` [Letux-kernel] " H. Nikolaus Schaller
2019-10-12 13:09                                                   ` H. Nikolaus Schaller
2019-10-14 16:11                                                   ` H. Nikolaus Schaller
2019-10-14 16:11                                                     ` H. Nikolaus Schaller
2019-10-16 23:03                                                     ` Tony Lindgren

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=0bb4739d-e26f-de49-fd80-257a836e892a@ti.com \
    --to=t-kristo@ti.com \
    --cc=aford173@gmail.com \
    --cc=embed3d@gmail.com \
    --cc=filip.matijevic.pz@gmail.com \
    --cc=hns@goldelico.com \
    --cc=ivo.g.dimitrov.75@gmail.com \
    --cc=james.hilliard1@gmail.com \
    --cc=kernel@pyra-handheld.com \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=maemo-leste@lists.dyne.org \
    --cc=merlijn@wizzup.org \
    --cc=moaz@korena.xyz \
    --cc=pawel.mikolaj.chmiel@gmail.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=tony@atomide.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 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.