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

Failed to set CPUFreq ondemand governor's sampling_rate for Linux kernel 4.4 #32

Open
Leo-Yan opened this issue Apr 26, 2016 · 2 comments

Comments

@Leo-Yan
Copy link

Leo-Yan commented Apr 26, 2016

Hi,

I saw Lisa set ondemand governor's sampling_rate in the folder: /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate; but when I run Linux kernel 4.4 the folder has been changed as: /sys/devices/system/cpu/cpufreq/policy0/ondemand/sampling_rate and /sys/devices/system/cpu/cpufreq/policy1/ondemand/sampling_rate.

So finally this will introduce failure when run LISA for Juno's profiling with kernel 4.4.

Thanks,
Leo Yan

@derkling
Copy link
Contributor

We should probably make the hard-coded path in:
https://github.com/ARM-software/devlib/blob/master/devlib/module/cpufreq.py#L45
more generic. Which means, for example, at init time to probe which path as to be used.

@derkling
Copy link
Contributor

@setrofim any update on this side? Maybe WA implementation already address this issue?
The "policyN" format seems to be standard for kernel >v4.4 with more than one frequency domain.

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

2 participants