New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test lima support #273
Comments
I think using sunxi-mali as alternate should be thought from start as that
will allow to have baseline to test against
and might help with improving lima driver farther (even not counting
practical side of having known working driver).
…On Thu, Nov 7, 2019 at 5:40 PM Marek Belisko ***@***.***> wrote:
In poky zeus lima mesa option can be enabled. I plan to test at least
glmark2 on orangepi-pc-plus with this extension. My naive steps would be to
enable kernel driver for lima and drop sunxi-mali and set all
PREFFERED_PROVIDERS to mesa + enable lime PACKAGECONFIG in mesa_%.bbappend.
Do we need something else? @koenkkoi ideas?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#273?email_source=notifications&email_token=AAABPU42HBXVTWWC7O445S3QSQSHTA5CNFSM4JKHS352YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXUAJMA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABPUZTQ7QU6KT624A546TQSQSHTANCNFSM4JKHS35Q>
.
|
Yes sunxi-mali is WIP as mentioned in #269 and it's not finished (I think I don't have much graphical experience to finish it ;)). But lima as alternative would be also ok IIRC. |
I have a draft non-working patch I can post in the next few days. |
That is great. Looking forward when you share your results. |
Ok, I'm now able to build core-image-weston and have weston starting and using Mesa lima driver on a orange-pi-zero-plus2, so it's a start.
Feedback, comments and contributions are welcome! |
I forgot to mention I'm building with everything from master (poky, meta-openembedded, meta-sunxi), not from zeus. Also, I've cherry-picked Mesa 19.2, currently only in master-next: |
Mesa 19.2 is now in master. Let me know if you are ok with the idea of using something like |
Hi pls create branch with all necessary changes so we can review it. For switching between lima/mali I suggest to create variable like GPU_ACCEL (default mali) and can be changed to lima. @diegorondini what do you think? Thanks. |
I support the solution proposed by @nandra. Also I think we could propose machine feature to core unless there is one already (will require PR). |
@slapin you mean add MACHINE_FEATURE for lima handling to oe-core? Thx. |
I guess something like that but this should be discussed in core first and
Cc Koen Kooi I guess.
But as that will take undefined amount of time I'd go with custom variable
as first iteration.
…On Mon, Dec 2, 2019 at 12:27 PM Marek Belisko ***@***.***> wrote:
@slapin <https://github.com/slapin> you mean add MACHINE_FEATURE for lima
handling to oe-core? Thx.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#273?email_source=notifications&email_token=AAABPUY7TOTKNX3SVND3SY3QWTIJLA5CNFSM4JKHS352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFS2OEI#issuecomment-560310033>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABPUZRESECZ3LDD2RKCZLQWTIJLANCNFSM4JKHS35Q>
.
|
Hi. The branch is the "use-mailine-graphics" here: Keep in mind we need to be able to do things like this: I'm not sure this can be done with |
Well, settings like these are overrides, they can use machine features.
I don't see a lot of code here, please elaborate. We can also use
conditionals and also conditionally include .inc files.
Try grepping various meta-stuff.
Also you will need to set up GALLIUMDRIVERS var (if lima is gallium driver,
need to check) regardless in case of lima use.
the _append would be useful if we had several drivers to look for depending
on some configuration, but in our case lima is the only one,
unless we expect user to override this var in local.conf too.
…On Mon, Dec 2, 2019 at 1:57 PM Diego Rondini ***@***.***> wrote:
Hi pls create branch with all necessary changes so we can review it. For
switching between lima/mali I suggest to create variable like GPU_ACCEL
(default mali) and can be changed to lima. @diegorondini
<https://github.com/diegorondini> what do you think? Thanks.
Hi.
The branch is the "use-mailine-graphics" here:
https://github.com/Kynetics/meta-sunxi/tree/use-mainline-graphics
The only real patch for using lima is this one:
***@***.***
<Kynetics@b8f6944>
Keep in mind we need to be able to do things like this:
https://www.yoctoproject.org/pipermail/meta-freescale/2017-March/020286.html
For example:
PACKAGECONFIG_append_use-mailine-graphics = " lima panfrost"
GALLIUMDRIVERS_append_use-mailine-graphics = ",kmsro"
https://www.yoctoproject.org/docs/2.7.1/ref-manual/ref-manual.html#var-MACHINEOVERRIDES
I'm not sure this can be done with MACHINE_FEATURE without writing a lot
of code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#273?email_source=notifications&email_token=AAABPU74XPZAWNZS6MIZFBLQWTS2BA5CNFSM4JKHS352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTC7YY#issuecomment-560345059>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABPUYPY76AKB22MMJWKITQWTS2BANCNFSM4JKHS35Q>
.
|
This is possible as well using
We do have panfrost in the picture as well, used by Allwinner H6. Open drivers can live peacefully together installed in the same OS as in regular distros, the only conflict is between vendor (mali) and community (lima, panfrost) drivers. |
@diegorondini meta-freescale have quite complex stuff for setting up machine overrides IIRC. Not sure if we need it. What about create variable: MAINLINE_GPU = "lima" and then you can check in mesa not by _append but with
logic. I know it's not nice but as we don't have common machine feature (as discussed before) it's the only way to go. Or we can write some small class helper which will add lime to OVERRIDES as done in meta-freescale but not sure if it's worth to spend time on it. |
Im fine with MACHINNE_FEATURE and MACHINEOVERRIDES like in
meta-freescale, but this can be simplified by conditionals
for us to not have to define a lot of overrides. I think you could
process in any way you like and I will review it at weekend and try to
come with suggestions.
I have very busy weekdays. I think we can have a branch for this and
just make it look ok for us and decide.
…On Tue, Dec 3, 2019 at 10:01 AM Marek Belisko ***@***.***> wrote:
@diegorondini meta-freescale have quite complex stuff for setting up machine overrides IIRC. Not sure if we need it.
What about create variable: MAINLINE_GPU = "lima" and then you can check in mesa not by _append but with
bb.utils.contains('MAINLINE_GPU', 'x', 'y')
logic. I know it's not nice but as we don't have common machine feature (as discussed before) it's the only way to go. Or we can write some small class helper which will add lime to OVERRIDES as done in meta-freescale but not sure if it's worth to spend time on it. Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi, ok thanks for you suggestions. Of course I'm short on time as well, so it may take some time. |
I use mesas and lima with buildroot-2019.11 (kernel 5.3.7),it works great on my Cubieboard2 and i guest other boards are fine |
@smzahraee thanks for sharing. Waiting for @diegorondini patch and then hopefuly we will merge it so also yocto can have same support as buildroot. BTW did you try (or not sure if it's even possible) to have qt5 accelerated with lima? Thanks and Happy New Year |
i tested qt5.12 examples with wayland/weston that cause not showing window correctly, but i think next mesa releases(mesa mesa-19.3.1 ) may fixed them kmscube worked fine i am reviewing mesa3d patches for my problems but not found anything yet |
@smzahraee what about qt5 and gles? Did you try also this one? Thanks. |
While you're at it could you please provide glmark2 results for both lima
and mali drivers (the output/log of these)?
Thanks a lot for your work!
…On Sat, Jan 4, 2020 at 6:44 PM Marek Belisko ***@***.***> wrote:
@smzahraee <https://github.com/smzahraee> what about qt5 and gles? Did
you try also this one? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#273?email_source=notifications&email_token=AAABPU3DMAZPEJSJU46ZODDQ4CVEPA5CNFSM4JKHS352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIC2LWQ#issuecomment-570795482>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABPUZZBVGGNECE76PRCILQ4CVEPANCNFSM4JKHS35Q>
.
|
every things is okay,except that
|
glamrk2 failed on mesa3d ( |
can you post what was before that, which tests passed? with maximum
verbosity. It is not uncommon for glmark2 to fail on legit drivers
too.
you also can skip some tests to get more info. That would give more
complete picture on lima state vs mali.
…On Sun, Jan 5, 2020 at 9:09 AM Mohsen ***@***.***> wrote:
While you're at it could you please provide glmark2 results for both lima and mali drivers (the output/log of these)? Thanks a lot for your work!
glamrk2 failed on mesa3d (segment fault)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@slapin |
here is resolved problem in mesa mainline:LINK I think possible qt problems will solve by this commit |
Thank you very much for the results. Cat fails then...
…On Sun, Jan 5, 2020 at 10:39 AM Mohsen ***@***.***> wrote:
@slapin <https://github.com/slapin>
glmark2-es-drm results:
glmark2.log
<https://github.com/linux-sunxi/meta-sunxi/files/4022957/glmark2.log>
here is resolved problem in mesa mainline:LINK
<https://gitlab.freedesktop.org/lima/mesa/issues/116>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#273?email_source=notifications&email_token=AAABPU4QC2FKA4BLBAYLFDLQ4GFC7A5CNFSM4JKHS352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDQQIQ#issuecomment-570886178>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABPU32YA4IIHTPJALP5NTQ4GFC7ANCNFSM4JKHS35Q>
.
|
As I understand there is no complete fix for this problem anyway, so these
tests are to be skipped.
But Qt people say current Mesa is quite usable on these if in 3D is used,
so lima is quite viable
solution for small devices GUIs. For 3D not so much.
…On Sun, Jan 5, 2020 at 4:31 PM Sergey Lapin ***@***.***> wrote:
Thank you very much for the results. Cat fails then...
On Sun, Jan 5, 2020 at 10:39 AM Mohsen ***@***.***> wrote:
> @slapin <https://github.com/slapin>
> glmark2-es-drm results:
> glmark2.log
> <https://github.com/linux-sunxi/meta-sunxi/files/4022957/glmark2.log>
>
> here is resolved problem in mesa mainline:LINK
> <https://gitlab.freedesktop.org/lima/mesa/issues/116>
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#273?email_source=notifications&email_token=AAABPU4QC2FKA4BLBAYLFDLQ4GFC7A5CNFSM4JKHS352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDQQIQ#issuecomment-570886178>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAABPU32YA4IIHTPJALP5NTQ4GFC7ANCNFSM4JKHS35Q>
> .
>
|
@slapin qt has some bugs with text edits i dnot know is this qt problem or mesa problem. but other features work well |
@smzahraee can you share links please with glmark2 problem fixed? Thanks. |
|
Not there yet, but most of the work left should be on |
See pull #285 . I haven't tested a build with the mali driver, as I have no interest for it, but there's no variable change if |
The code is merged, I think this issue can be closed. |
@smzahraee can you please share how you run qt5 app using lima and mesa? I build kernel with lima and enable necessary config for mesa. glmark2 + kmscube works but I cannot make qt5 app working with eglfs. Or do I need to use wayland? If you can please share I'll put it on README so anyone else can benefit. Thanks. |
It doesn't make sense to reopen this issue, especially looking at the original description.
|
@diegorondini ok agree. Sorry. |
In poky zeus lima mesa option can be enabled. I plan to test at least glmark2 on orangepi-pc-plus with this extension. My naive steps would be to enable kernel driver for lima and drop sunxi-mali and set all PREFFERED_PROVIDERS to mesa + enable lime PACKAGECONFIG in mesa_%.bbappend.
Do we need something else? Thx
The text was updated successfully, but these errors were encountered: