This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA74: How do I know the cpu operation freq?

Part Number: DRA74

Tool/software: Linux

Hello TIs:

If I want to know current cpu's core, mpu, dsp, iva operation clock

where can i get these info? read register? or get from sysfs? or using tools?

I have tried "cat /proc/cpuinfo" cmd, but these is no freq info in the msg

Is there another easier way to get ?

many thanks!

Kenny

root@dra7xx-evm:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 11.80
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 2

processor       : 1
model name      : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 11.80
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc0f
CPU revision    : 2

Hardware        : Generic DRA74X (Flattened Device Tree)
Revision        : 0000
Serial          : 180100177c8a0122

  • One direction you could take is with the Clock Tree Tool (CTT) (free download here )

    In the install package, there are gel files. On a running platform, run the gel script in CCS which will dump out all clock register. Upload these registers in the Clock tree tool and you will see all your running clocks and frequencies. For details on the operation, refer to the CTT user manual. There is a section there explaining it all and also how to copy/paste the console output results in a CTT "known" register dump (.rd1) type of file. 

    Thanks,

    Alex

  • Hi Kenny,

    in addition to what Alex said you can run "omapconf show opp" on your device to get the cores frequencies.

    Regards,
    Yordan

  • Hello,

    We haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread gets locked due to time-out).

    thanks,
    Alex
  • Hi Alex:

    Sorry for my late reply

    I have tried yours and Yordon's method

    The result is shown as below:

    - Omapconf show opp for DRA74x -

    root@dra7xx-evm:~# ./omapconf show opp
    OMAPCONF (rev 1.73-nogit built Mon Jul 30 09:41:10 CST 2018)
    
    HW Platform:
      Generic DRA74X (Flattened Device Tree)
      DRA75X ES2.0 GP Device (STANDARD performance (1.0GHz))
      TPS659038  ES2.0 
    
    SW Build Details:
      Build:
        Version:  _____                    _____           _         _   
      Kernel:
        Version: 4.4.45
        Author: kenny_tsai@tpedmcbm03
        Toolchain: gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02)
        Type: #12 SMP PREEMPT
        Date: Wed Jul 25 18:41:02 CST 2018
    
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor not found, no CPUFREQ?
    
    omapconf: warning: no matching rate for VDD_CORE OPP.Please check rates against Data Manual recommendations.
    |-----------------------------------------------------------------------------------|
    |                        | Temperature | Voltage | Frequency      | OPerating Point |
    |-----------------------------------------------------------------------------------|
    | VDD_CORE / VDD_CORE0   | 58C / 136F  | 1.050 V |                | UNKNOWN         |
    |   L3                   |             |         |  265  MHz      |                 |
    |   DMM                  |             |         |  265  MHz      |                 |
    |   EMIF1                |             |         |  265  MHz      |                 |
    |   EMIF2                |             |         |  265  MHz      |                 |
    |     LP-DDR2            |             |         |  532  MHz      |                 |
    |   L4                   |             |         |  265  MHz      |                 |
    |   IPU1                 |             |         | (2127 MHz) (1) |                 |
    |     Cortex-M4 Cores    |             |         | (1063 MHz) (1) |                 |
    |   IPU2                 |             |         | (2127 MHz) (1) |                 |
    |     Cortex-M4 Cores    |             |         | (1063 MHz) (1) |                 |
    |   DSS                  |             |         | (768  MHz) (1) |                 |
    |   BB2D                 |             |         | (2127 MHz) (1) |                 |
    |                        |             |         |                |                 |
    | VDD_MPU / VDD_CORE1    | 60C / 140F  | 1.080 V |                | NOM             |
    |   MPU (CPU1 ON)        |             |         |  1000 MHz      |                 |
    |                        |             |         |                |                 |
    | VDD_GPU / VDD_CORE2    | 59C / 138F  | 1.010 V |                | NOM             |
    |   GPU                  |             |         |  425  MHz      |                 |
    |                        |             |         |                |                 |
    | VDD_DSPEVE / VDD_CORE3 | 58C / 136F  | 1.010 V |                | NOM             |
    |   DSP1                 |             |         | (600  MHz) (1) |                 |
    |   DSP2                 |             |         | (600  MHz) (1) |                 |
    |   EVE1                 |             |         | (0    MHz) (1) |                 |
    |   EVE2                 |             |         | (0    MHz) (1) |                 |
    |                        |             |         |                |                 |
    | VDD_IVA / VDD_CORE4    | 59C / 138F  | 1.010 V |                | NOM             |
    |   IVA                  |             |         | (388  MHz) (1) |                 |
    |                        |             |         |                |                 |
    |-----------------------------------------------------------------------------------|
    
    Notes:
      (1) Module is disabled, rate may not be relevant.
    
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor not found, no CPUFREQ?
    
    root@dra7xx-evm:~# 

    And I use this tool to dump prcm register, save as .rd1 file

    Finally load this file into CTT, i can see the overall clock tree

    But I found a strange thing, my mpu and dsp is inactive(clock is not supply, red line)

    Is it possible? Or where i can double check whether they are active or not ?

    Thanks !

    Kenny

  • Can you send me the register dump for me to load it here and try?

    thanks,
    Alex
  • Hello Kenny, kind reminder since it's been several days now, please send the register dump for me to try.

    thanks
    Alex
  • Hi Alex:
    Sorry for my late reply.
    I have already solved this "dsp is not active" problem.
    The dsp default firmware seems have auto suspend function(about 10s after boot)
    So I change the firmware link to another file(org: lib\firmware, change: lib\ipc ) and it works
    When i use "omapconf show opp" cmd to look dsp status, it is enabled(not have (1))
    Thank you for your remind.

    Kenny
  • @user5018288,
    Thank you for sharing your decision for future references.

    Regards,
    Mariya