Forum Discussion

Prasannaijayakumar's avatar
Prasannaijayakumar
Icon for New Contributor rankNew Contributor
11 months ago

SDM Mailbox access in intel agilex 5

I am trying to read the voltage sensor values in intel agilex5 SDM through hwmon.

My assumption is that we have to send a HWMON READVOLT command as a SMC call to ATF.

ATF will takes care of the mailbox communication to SDM and provide the response to HPS through the same SMC call.

Please correct me if i am wrong.

2 Replies

  • Yes, that is correct. ATF is the middleman for all the mailbox communication to SDM.

    The HPS HWMON software driver sends the SMC Call to ATF when then sends the HWMON READVOLT to SDM.

    Make sure your Linux OS build has CONFIG_SENSORS_SOC64=y.

    On Linux check if the HWMON driver is probed successful

    root@agilex:/# dmesg | grep "soc64"

    [ 1.268886] soc64_hwmon_probe

    [ 1.271949] soc64_hwmon_probe Initialized 1 temperature and 6 voltage channels

    [ 1.271957] soc64-hwmon soc:firmware:hwmon: Initialized 1 temperature and 6 voltage channels

    Read the temperature or voltages like this

    ~# cat /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp1_input

    78125

    ~# cat /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp2_input

    82125

    ~# cat /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp3_input

    80875

    :~# cat /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:hwmon/hwmon/hwmon1/temp4_input

    76375

  • Farabi's avatar
    Farabi
    Icon for Regular Contributor rankRegular Contributor

    Hello,


    Please try to use Configuration Debugger in Quartus. It is easiest way to view your voltage sensors reading and temperature sensors reading in one dashboard.


    regards,

    Farabi