All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "H. Nikolaus Schaller" <hns@goldelico.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>,
	"Tero Kristo" <t-kristo@ti.com>
Subject: Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5
Date: Mon, 7 Oct 2019 08:52:52 -0700	[thread overview]
Message-ID: <20191007155252.GQ5610@atomide.com> (raw)
In-Reply-To: <C3A56737-6187-4B31-8697-3A02DD164429@goldelico.com>

Hi,

* H. Nikolaus Schaller <hns@goldelico.com> [191005 16:59]:
> Hi all,
> with the arrival of v5.4-rc1 some of Tony's sysc patches have arrived
> upstream, so we do no longer need them here.
> 
> Therefore, I have rebased my drivers/staging/pvr driver [1] and fixed some
> more issues:
> * omap4 build only needs to distinguish between omap4420/30/60 and omap4470,
>   because the latter has an sgx544 inside and the other sgx540
>   This is solved by creating a new omap4470.dts
> * I have added proper reg values and interrupts to the omap4 device
>   tree node of the sgx (child node of the target-module)
> * some updates to my sgxdump and sgxdemo scripts (assuming simple
>   Debian Stretch rootfs)
> * James Hilliard has contributed a fix for osfunc.c
> * omap2plus also needs to be configured for STAGING and PREEMPT
>   to be able to compile the driver
> * I have added the __always_inline fix [2] which is needed for v5.4 with
>   CONFIG_CC_OPTIMIZE_FOR_SIZE=y (which I are enabled on the Letux builds)
> 
> Unfortunately Tero's rstctrl patches did not yet make it upstream (or even
> linux-next) so I also have a copy in this branch.
> 
> Results of first testing are:
> * OMAP3530 (OpenPandora, BeagleBoard C): fails with
> [  559.247558] PVR_K:(Error): SysLocateDevices: platform_get_resource failed
> 
> * DM3730 (GTA04, BeagleBoard XM): kernel module loads
> 
> * OMAP4460 (Pandaboard ES): kernel module loads
> 
> * AM335x (BeagleBoneBlack): reports a problem with omap_reset_deassert:
> [  204.246706] omap_reset_deassert: timedout waiting for gfx:0

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.

> * 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?

> * OMAP5 with omap2plus_defconfig:
> root@letux:~# echo on > $(find /sys -name control | grep \/5600)
> [  213.490926] clock-controller:clk:0000:0: failed to enable
> root@letux:~# 
> 
> * pvrsrvctl --start --no-module:
>   reports (where the kernel module loads) that the uKernel does not run
> 
> So I have several ideas what the reasons for the problems on the non-omap5
> devices could be:
> * initial code may have some omap5 specific hack inside
> * or has omap5 specific magic constants
> * uKernel may "know" on which platform it runs and
>   we would need differently patched user-space code
>   for each one
> * omap5 has a dual core sgx544 while the other
>   have single core
> * the register address translation is not yet correct and
>   this inhibits communicating of the user-space libs
>   with the uKernel
> 
> Maybe, if someone can point me to a complete and working BeagleBone source
> tree (any kernel release) which makes use of 1.14.3699939 SDK, I could compare
> code and address setup to find what makes the difference.

Regards,

Tony

> [1]: https://github.com/openpvrsgx-devgroup/linux_openpvrsgx/commits/letux-pvr
> [2]: https://lkml.org/lkml/2019/10/2/201

  parent reply	other threads:[~2019-10-07 15:52 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 [this message]
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  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=20191007155252.GQ5610@atomide.com \
    --to=tony@atomide.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=t-kristo@ti.com \
    --cc=tomi.valkeinen@ti.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.