tonyvr
December 6, 2015, 5:38pm
1
When I run tegrastats I don’t see any GPU info. Am I missing a package or something?
I see:
RAM 635/3854MB (lfb 617x4MB) SWAP 0/0MB (cached 0MB) cpu [6%,7%,9%,5%]@-1 VDE 0 EDP limit 0
Dusty said we should see:
RAM 129/3854MB (lfb 781x4MB) SWAP 0/0MB (cached 0MB) cpu [2%,0%,0%,0%]@102 EMC 5%@40 AVP 3%@80 VDE 0 GR3D 0%@38 EDP limit 1912
where
EMC – memory controller
AVP – audio/video processor
VDE – video decoder engine
GR3D – GPU
Just curious,
tonyvr
Try running it with sudo privilege, it should report… For additional info you can also poke around these directories:
/sys/kernel/debug/gpu.0
/sys/kernel/debug/gpu.0_scaling
/sys/kernel/debug/clock/gbus
/sys/kernel/debug/clock/emc
Due to the permissions you’ll likely need to use sudo. For example:
ubuntu@tegra-ubuntu:~$ sudo ls /sys/kernel/debug/gpu.0
[sudo] password for ubuntu:
cde_ctx_count fmax2x_at_vmin_safe_t pll_reg
cde_ctx_count_top gr_idle_timeout_default_us pll_reg_raw
cde_ctx_usecount gr_status pmu_security
cde_parameter ltc_enabled rate
dbg_ftrace monitor reload_cde_firmware
dbg_mask perfmon_events_count status
elpg_residency perfmon_events_enable timeouts_enabled
elpg_transitions pll_na_mode trace_cmdbuf
falc_trace pll_param voltage
ubuntu@tegra-ubuntu:~$ sudo cat /sys/kernel/debug/gpu.0/gr_status
NV_PGRAPH_STATUS: 0x81
NV_PGRAPH_STATUS1: 0x0
NV_PGRAPH_STATUS2: 0x0
NV_PGRAPH_ENGINE_STATUS: 0x1
NV_PGRAPH_GRFIFO_STATUS : 0x1
NV_PGRAPH_GRFIFO_CONTROL : 0x10001
NV_PGRAPH_PRI_FECS_HOST_INT_STATUS : 0x0
NV_PGRAPH_EXCEPTION : 0x0
NV_PGRAPH_FECS_INTR : 0x0
NV_PFIFO_ENGINE_STATUS(GR) : 0x81f7a1f7
NV_PGRAPH_ACTIVITY0: 0x0
NV_PGRAPH_ACTIVITY1: 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I_GPC0_TPC0_TEX_M_TEX_SUBUNITS_STATUS: 0x0
NV_PGRAPH_PRI_CWD_FS: 0x0
NV_PGRAPH_PRI_FE_TPC_FS: 0x0
NV_PGRAPH_PRI_CWD_GPC_TPC_ID(0): 0x0
NV_PGRAPH_PRI_CWD_SM_ID(0): 0x0
NV_PGRAPH_PRI_FECS_CTXSW_STATUS_FE_0: 0x3
NV_PGRAPH_PRI_FECS_CTXSW_STATUS_1: 0x340
NV_PGRAPH_PRI_GPC0_GPCCS_CTXSW_STATUS_GPC_0: 0x0
NV_PGRAPH_PRI_GPC0_GPCCS_CTXSW_STATUS_1: 0x300
NV_PGRAPH_PRI_FECS_CTXSW_IDLESTATE : 0xe
NV_PGRAPH_PRI_GPC0_GPCCS_CTXSW_IDLESTATE : 0xf
NV_PGRAPH_PRI_FECS_CURRENT_CTX : 0x8015c286
NV_PGRAPH_PRI_FECS_NEW_CTX : 0x8015c286
NV_PGRAPH_PRI_BE0_CROP_STATUS1 : 0x0
NV_PGRAPH_PRI_BES_CROP_STATUS1 : 0x0
NV_PGRAPH_PRI_BE0_ZROP_STATUS : 0x0
NV_PGRAPH_PRI_BE0_ZROP_STATUS2 : 0x0
NV_PGRAPH_PRI_BES_ZROP_STATUS : 0x0
NV_PGRAPH_PRI_BES_ZROP_STATUS2 : 0x0
NV_PGRAPH_PRI_BE0_BECS_BE_EXCEPTION: 0x0
NV_PGRAPH_PRI_BE0_BECS_BE_EXCEPTION_EN: 0x0
NV_PGRAPH_PRI_GPC0_GPCCS_GPC_EXCEPTION: 0x0
NV_PGRAPH_PRI_GPC0_GPCCS_GPC_EXCEPTION_EN: 0x30000
NV_PGRAPH_PRI_GPC0_TPC0_TPCCS_TPC_EXCEPTION: 0x0
NV_PGRAPH_PRI_GPC0_TPC0_TPCCS_TPC_EXCEPTION_EN: 0x2
There is a lot you can play around with in /sys/kernel/debug (doesn’t hurt to sudo cat
anything that looks interesting), however debugfs is subject to change.