Expose /dev/mali0 in armbian
#1
Hi all,

I am managing a cluster of Rock64/RockPro64 and I need access to the GPU cycle counters (I already got access to CPU cycle counter) of the Mali T860 included in the board. I am trying to use the HWCPipe (https://github.com/ARM-software/HWCPipe) interface to get the CPU counters. However, this library tries to use /dev/mali0 to interact with the GPU, which is not exposed to the user in armbian using the Panfrost driver.

I have tried several ways of installing the mali midgard driver without success so far. Besides, I have tried to use /dev/dri/card1 (and 0) as resource for HWCPipe, but it doesn't work either.

Does someone know how I could expose the /dev/mali0 interface to userspace using panfrost driver or how to install mali-midgard driver in the last armbian version (kernel 5.15.48)?

The same posted here applies for Rock64 with lima driver for Mali-400 GPU, just in case...
  Reply
#2
Hello,

the panfrost driver does expose performance counters, though I don't know precisely through what kind of interface. Collabora wrote an article about using perfetto to access panfrost performance counters, which might be useful.

Kernel code seems to be in drivers/gpu/drm/panfrost/panfrost_perfcnt.c.

Occasional Linux Kernel Contributor, Avid Wiki Updater, Ask Me About Quartz64
Open Hardware Quartz64 Model A TOSLink Adapter
Pi-bus GPIO Extender For ROCKPro64 And Quartz64
  Reply
#3
Hi, Thanks for your reply. I also checked that link before, but technically, what I would like to do is just gather the GPU cycles and embed the code in my application. I will try perfetto just to see how it works and see if I can adapt something
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Armbian images available Luke 60 62,732 08-04-2022, 06:56 AM
Last Post: Rocklobster
  Enable DSI/TD Ports on Armbian (jammy) dkebler 0 238 06-16-2022, 06:56 PM
Last Post: dkebler
  Armbian Jammy-Running fairly stable Rocklobster 0 413 05-04-2022, 01:00 PM
Last Post: Rocklobster
  New OS for RockPro64 is here, TwisterOS Armbian jtremblant 91 53,491 04-03-2022, 01:44 PM
Last Post: davidlsbc
  Armbian is looking for maintainer for ROCKPro64 TRS-80 20 7,042 03-19-2022, 09:32 PM
Last Post: paralin1
  Armbian 22.02 Release Announcement TRS-80 0 519 02-28-2022, 05:08 PM
Last Post: TRS-80
  OpenMediaVault: link from wiki or Armbian? Goffi 0 490 02-10-2022, 03:57 AM
Last Post: Goffi
Bug Unreliable display in Armbian and Debian ksattic 3 1,662 11-17-2021, 05:42 AM
Last Post: PakoSt
  HBA Card working on Aufan's builds but not in debian, armbian or dietpi charsi 1 952 10-29-2021, 11:15 AM
Last Post: TRS-80
  RockPro64 EDP in Armbian hannescam 2 1,352 10-15-2021, 09:07 AM
Last Post: hannescam

Forum Jump:


Users browsing this thread: 1 Guest(s)