Comments (9)
Just to confirm are you running the following?
adb shell setprop security.perf_harden 0
from hwcpipe.
No am not doing that, we've never needed to do it - our code & hwcpipe works fine on all other devices, as far as I know. (We don't use CPU counters, only GPU, so no Meltdown/Spectre considerations). I'll try it to see if it makes a difference though.
from hwcpipe.
Just tried it, it made no difference.
from hwcpipe.
Ok thanks for confirming. Sorry Not very helpful then. @solidpixel any thoughts.
from hwcpipe.
Most likely this is because these few devices are quite old and predate the first Mali driver version that supported reading h/w counters via the public ioctl interface. IIRC this is Mali driver version m_r12
, so if you are able to detect the driver version (which should be of the form r<n>p<n>
(such as r12p0) this will help identify whether the driver is too old or not.
from hwcpipe.
Do 'r' and 'p' correspond to MaliHWInfo::r_value
and MaliHWInfo::p_value
as found in vendor/arm/mali/mali_profiler.cpp
?
from hwcpipe.
IIRC, no, those r/p values refer to the revision of the hardware (so will likely read as something like r1p0).
You might try (from adb shell
): cat /sys/module/mali_kbase/version
which on an S8 gives r22p0-01rel0 (UK version 11.5)
from hwcpipe.
For the Samsung devices, we only support Galaxy S7 onwards.
Galaxy S6 will not work because the counters are not exposed due to a device manufacturer customization of the kernel driver.
I doubt we ever tested a Galaxy S5 - it predates HWCPipe, and is very likely on the older kernel IOCTL we don't support.
from hwcpipe.
We should add a section on "supported devices/driver versions" to the project readme.txt.
from hwcpipe.
Related Issues (20)
- Remove string tables from base interface
- Add derived counters HOT 2
- Remove exceptions HOT 1
- PMU counters not available HOT 3
- Could not identify Mali-G52 HOT 2
- MaliProfiler::init() exception: "Failed settings flags ioctl." on Mali-G710 HOT 3
- perf_event_open failed. Counter ID: PERF_COUNT_HW_CPU_CYCLES HOT 4
- Support for hw_ver_ 4 HOT 1
- No compatibility with panfrost/lima drivers in armbian? HOT 2
- MaliProfiler::init() exception: "Failed settings hwcnt reader ioctl." on Mali-G77 HOT 3
- Could I get total cycles of gpu? HOT 1
- Identify big.LITTLE clusters? HOT 2
- The value of hwcpipe::device::constants.gpu_id is error HOT 2
- Bandwidth calculation is incorrect
- Mali-G715 is not surport HOT 2
- Why doesn't Mate 60 phone have the file /dev/mali0? HOT 1
- Android graphics mem drops when HWCPipe is enabled HOT 4
- build example error: 'device/product_id.hpp' file not found HOT 2
- build errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hwcpipe.