Coder Social home page Coder Social logo

Comments (9)

abbaswasim avatar abbaswasim commented on August 15, 2024

Just to confirm are you running the following?

adb shell setprop security.perf_harden 0

from hwcpipe.

reubenscratton avatar reubenscratton commented on August 15, 2024

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.

reubenscratton avatar reubenscratton commented on August 15, 2024

Just tried it, it made no difference.

from hwcpipe.

abbaswasim avatar abbaswasim commented on August 15, 2024

Ok thanks for confirming. Sorry Not very helpful then. @solidpixel any thoughts.

from hwcpipe.

bengaineyarm avatar bengaineyarm commented on August 15, 2024

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.

reubenscratton avatar reubenscratton commented on August 15, 2024

Do 'r' and 'p' correspond to MaliHWInfo::r_value and MaliHWInfo::p_value as found in vendor/arm/mali/mali_profiler.cpp ?

from hwcpipe.

bengaineyarm avatar bengaineyarm commented on August 15, 2024

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.

solidpixel avatar solidpixel commented on August 15, 2024

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.

solidpixel avatar solidpixel commented on August 15, 2024

We should add a section on "supported devices/driver versions" to the project readme.txt.

from hwcpipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.