From: Tero Kristo <t-kristo@ti.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>,
Tony Lindgren <tony@atomide.com>
Cc: "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: Wed, 9 Oct 2019 16:55:57 +0300 [thread overview]
Message-ID: <77a524bb-26e7-c090-e7e2-ce0da2896725@ti.com> (raw)
In-Reply-To: <270E1695-9B1F-4470-AEA2-724E2139BCF5@goldelico.com>
On 09/10/2019 15:53, H. Nikolaus Schaller wrote:
>
>> Am 08.10.2019 um 22:15 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
>>
>>
>>> Am 08.10.2019 um 10:00 schrieb Tero Kristo <t-kristo@ti.com>:
>>>
>>> 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.
>>
>> Yes, have tested and it fixes omap5. I have the 3D demo running again on the Pyra. Yay!
>>
>> Together with the latest rstcrtl patches, am335x is now better.
>> No omap_reset_deassert: timedout waiting for gfx:0 any more.
>>
>> But I can't access the sgx registers and get memory faults. Maybe
>> my script has a bug and is trying the wrong address. Have to check
>> with some distance...
>
> Now I have done more tests on am335x. It is not my script but something else.
>
> Trying to read 0x5600fe00 after doing
>
> echo on > /sys/bus/platform/devices/5600fe00.target-module/power/control
>
> gives page faults.
>
> When trying to load the kernel driver, the omap_reset_deassert message has
> gone but the driver does no initialize:
>
> root@letux:~# modprobe pvrsrvkm_omap_am335x_sgx530_125
> [ 45.774712] pvrsrvkm_omap_am335x_sgx530_125: module is from the staging directory, the quality is unknown, you have been warned.
> root@letux:~#
>
> Here is the CM/PM register dump after enabling power/control
>
> *** SGX Register Dump ***
> 0x44E00900 00000301 CM_GFX_L3_CLKSTCTRL
> 0x44E00904 00050000 CM_GFX_GFX_CLKCTRL
> 0x44E0090c 00000002 CM_GFX_L4LS_GFX_CLKSTCTR
> 0x44E00910 00030000 CM_GFX_MMUCFG_CLKCTRL
> 0x44E00914 00030000 CM_GFX_MMUDATA_CLKCTRL
> 0x44E0052c 00000000 CM_DPLL.CLKSEL_GFX_FCLK
> 0x44E01100 00060047 PM_GFX_PWRSTCTRL
> 0x44E01104 00000001 RM_GFX_RSTCTRL
> 0x44E01110 00000037 PM_GFX_PWRSTST
Are you sure you have the graphics node properly applied in your kernel?
As you can see the RM_GFX_RSTCTRL is still asserted (it should be zero
so that you can access the module) and the CM_GFX_GFX_CLKCTRL is also
disabled (bits 0-1 are 0, should be 2 in the working case.)
It works for me with my branch + the single am33xx patch from Tony.
-Tero
>
> BR,
> Nikolaus
>
>
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
next prev parent reply other threads:[~2019-10-09 13:56 UTC|newest]
Thread overview: 27+ 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 ` 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 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
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 [this message]
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-12 13:09 ` [Letux-kernel] " 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=77a524bb-26e7-c090-e7e2-ce0da2896725@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome