[ALPS04328846] power: add ioctl permission

[Detail]
1. Add perfctl ioctl definition
2. Add proc_perfmgr permission in mtk_hal_power

[Solution]

MTK-Commit-Id: 8c800a4e115fd8dd800475a72bffa244c687d26a

Change-Id: Iaa3894b618a3e6ee2b6dfc3b864715a137dee50f
CR-Id: ALPS04328846
Feature: [Module]PowerHAL
This commit is contained in:
Ian-Y Chen 2020-01-18 10:09:09 +08:00
parent 0a3b110ac5
commit 84a8614d81
2 changed files with 11 additions and 0 deletions

View File

@ -9,3 +9,13 @@ define(`GED_BRIDGE_IO_QUERY_INFO', `0x6705')
define(`GED_BRIDGE_IO_IOCTLCMD_0F', `0x670f') define(`GED_BRIDGE_IO_IOCTLCMD_0F', `0x670f')
define(`GED_BRIDGE_IO_IOCTLCMD_10', `0x6710') define(`GED_BRIDGE_IO_IOCTLCMD_10', `0x6710')
define(`GED_BRIDGE_IO_GE_INFO', `0x6769') define(`GED_BRIDGE_IO_GE_INFO', `0x6769')
define(`FPSGO_QUEUE', `0x6701')
define(`FPSGO_DEQUEUE', `0x6703')
define(`FPSGO_VSYNC', `0x6705')
define(`FPSGO_TOUCH', `0x670a')
define(`FPSGO_QUEUE_CONNECT', `0x670f')
define(`FPSGO_BQID', `0x6710')
define(`EARA_NN_BEGIN', `0x6701')
define(`EARA_NN_END', `0x6702')
define(`EARA_GETUSAGE', `0x6703')
define(`PERFMGR_CPU_PREFER', `0x6701')

View File

@ -42,6 +42,7 @@ allow mtk_hal_power mtk_hal_audio:dir getattr;
# Purpose : Allow powerHAL to access perfmgr # Purpose : Allow powerHAL to access perfmgr
allow mtk_hal_power proc_perfmgr:dir search; allow mtk_hal_power proc_perfmgr:dir search;
allow mtk_hal_power proc_perfmgr:file { getattr open read write ioctl }; allow mtk_hal_power proc_perfmgr:file { getattr open read write ioctl };
allowxperm mtk_hal_power proc_perfmgr:file ioctl FPSGO_TOUCH;
# Date : 2017/10/11 # Date : 2017/10/11
# Operation: SQC # Operation: SQC