Skip to content
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

possible wrong handling of memory on aarch64 for mesa-dri-drivers #144

Open
judovana opened this issue Oct 30, 2018 · 14 comments
Open

possible wrong handling of memory on aarch64 for mesa-dri-drivers #144

judovana opened this issue Oct 30, 2018 · 14 comments

Comments

@judovana
Copy link

Hi!

I had noticed, that - compared to 32 raspberry, 64b raspberry, mesa-dri-drivers requires enormous CMA to work properly.

See https://bugzilla.redhat.com/show_bug.cgi?id=1643484 for details. Feel free to ping for any more details, the I have the setup working.

@anholt
Copy link
Owner

anholt commented Oct 30, 2018

32 and 64 have no difference in their CMA requirements. I would guess that your 32 and 64 builds are getting different cma amounts chosen by the kernel, though (look for a dmesg line like "cma: Reserved 384 MiB at 0x20000000"). You'll need 256 or so for things to generally work, though if you do a lot of graphics-related stuff (open many applications, do stuff in gnome-shell, or run games), you may still run out and there's not much we can do about that.

@nullr0ute
Copy link

I've not tested aarch64 widely on graphical use cases, F-29 Workstation works fine on ARMv7 on the 3B and 3B+, I was running it the other day for 8 hours with a, albeit none accelerated, h264 video without any crashes. It wasn't fast but then as a presentation on a conference booth that was fine.

I have tested aarch64 a lot with "minimal text" images, I wonder if the 64 bit allocation mechanisms might have an effect on memory usage here. I will try to do some basic testing this week on aarch64 if I get a chance.

@judovana please provide more information than "it doesn't work"

@judovana
Copy link
Author

"it doesn't work" - where I have wrote it?

I think the https://bugzilla.redhat.com/show_bug.cgi?id=1643484 is describing situation pretty well.
One need cma of 512 to run dummy mate or play video. On both those setups should be 256 pretty enough, should it?

HW is raspberry pi 3 b+; reproducer is to install mesa-dri on "low" cma (as 192) and run 720p or bigger movie, or an more "Advanced" desktop. It will stop redrawing, and you will see the memory errors in dmesg ( know it is not exactly minimalistical reproducer)

Anyway, thanx all for cooperation. Looking forward for resolution.
Best regards
J.

@judovana
Copy link
Author

judovana commented Nov 8, 2018

hi!
Any update?

@lategoodbye
Copy link

Maybe this is related to the following pull request: raspberrypi#2699

@nullr0ute
Copy link

It looks promising, @lategoodbye is there an upstream patch series for this too?

@lategoodbye
Copy link

In the end it's only a single patch, so i think the porting to current linux-next should be easy.

But the first question: is this issue still reproducible?

@nullr0ute
Copy link

The "is it reproducible" question is definitely for @judovana

@judovana
Copy link
Author

Yes it is. reproducible. I should be able to selfbuild fedora kernel. Can you point me to the direct patch(es)?

@nullr0ute
Copy link

@judovana reach out if you have issues and I can assist with a scratch build.

@judovana
Copy link
Author

Application og raspberrypi@67d41b9 should be enogh, right?

@lategoodbye
Copy link

lategoodbye commented Dec 17, 2018

Reproducible with which kernel version?

Since there has been a lot of fixes on vchiq, it would be nice to try at least 4.20 or staging-next.

So i suggest this: raspberrypi@74da962

@judovana
Copy link
Author

That was 4.18. Fedroa now have 4.19 for f29, so I wonted to try it there.

@lategoodbye
Copy link

You can try this version, but i think it's a waste of your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants