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

Fix segfault on arm machines #7

Merged
merged 1 commit into from
Aug 19, 2019
Merged

Conversation

ncopa
Copy link
Contributor

@ncopa ncopa commented Sep 19, 2018

Some ARM cpus does not report the cache size or say it is -1 in sysfs.
It has been observed on xgene and thunderx machines.

Fall back to the generic cache size when that happens so we don't
segfault.

Should fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866306

Some ARM cpus does not report the cache size or say it is -1 in sysfs.
It has been observed on xgene and thunderx machines.

Fall back to the generic cache size when that happens so we don't
segfault.

Should fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866306
@itdaniher
Copy link

Tested, works great for me! Thanks :)

@vagrantc
Copy link

vagrantc commented Oct 1, 2018

It didn't resolve the issue for me reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866306

Which cache size sysfs interface was this referring to?

I'm testing on an Odroid-C2, which uses an amlogic cortex-a53 cpu.

Copy link
Owner

@jirka-h jirka-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

@jirka-h jirka-h merged commit a890aa4 into jirka-h:master Aug 19, 2019
MichaIng added a commit to MichaIng/DietPi that referenced this pull request Aug 26, 2020
+ DietPi-PREP | Upgrading haveged entropy daemon to fix an issue on ARM with the version shipped by Debian Buster: jirka-h/haveged#7
MichaIng added a commit to MichaIng/DietPi that referenced this pull request Aug 26, 2020
+ DietPi-Patch | Upgrading haveged entropy daemon to fix an issue on ARM with the version shipped by Debian Buster: jirka-h/haveged#7
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

Successfully merging this pull request may close these issues.

4 participants