pixelstats: Configure PCIe link stats pathnames and access
Test: adb logcat "pixelstats-vendor:D *:S" Bug: 266689144 Change-Id: Ie528c3273e43e0a3401449a057eeb9c7e6004ecf Signed-off-by: Doug Zobel <zobel@google.com>
This commit is contained in:
parent
5cb0ef1f4a
commit
ecb02c9cc0
2 changed files with 12 additions and 0 deletions
|
@ -306,6 +306,16 @@ on init
|
|||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/mem_latency/ratio_ceil 3700
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu8_memlat@17000010/mem_latency/ratio_ceil 3400
|
||||
|
||||
# Give pixelstats group access to PCIe link statistics counters
|
||||
chown system system /sys/devices/platform/12100000.pcie/link_stats/complete_timeout_irqs
|
||||
chown system system /sys/devices/platform/12100000.pcie/link_stats/link_down_irqs
|
||||
chown system system /sys/devices/platform/12100000.pcie/link_stats/link_recovery_failures
|
||||
chown system system /sys/devices/platform/12100000.pcie/link_stats/link_up_failures
|
||||
chown system system /sys/devices/platform/13120000.pcie/link_stats/complete_timeout_irqs
|
||||
chown system system /sys/devices/platform/13120000.pcie/link_stats/link_down_irqs
|
||||
chown system system /sys/devices/platform/13120000.pcie/link_stats/link_recovery_failures
|
||||
chown system system /sys/devices/platform/13120000.pcie/link_stats/link_up_failures
|
||||
|
||||
on post-fs
|
||||
# Ensure device is ready and start storageproxyd
|
||||
wait /dev/sg1
|
||||
|
|
|
@ -59,6 +59,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
|||
UFS_ERR_PATH(auto_hibern8_err_count)
|
||||
},
|
||||
.AmsRatePath = "/sys/devices/platform/audiometrics/ams_rate_read_once",
|
||||
.ModemPcieLinkStatsPath = "/sys/devices/platform/12100000.pcie/link_stats",
|
||||
.WifiPcieLinkStatsPath = "/sys/devices/platform/13120000.pcie/link_stats"
|
||||
};
|
||||
|
||||
const struct UeventListener::UeventPaths ueventPaths = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue