Commit Graph

2918 Commits

Author SHA1 Message Date
Wei Wang
920bd9af1f Remove PowerHAL in CleanSpec.mk
Test: Build
Change-Id: If06a71df9abfd7833a691a77951b22ce8363bf26
2018-01-12 21:34:26 -08:00
Elisa Pascual Trevino
2a7e46447c Update SVN to 7 for March 2018 Monthly Update Bug:71860241 am: da9a297f50
am: add33e685b

Change-Id: Ia5f29b0b4e9cc5622c58418900e569ec1cbfc72d
2018-01-12 20:51:00 +00:00
Elisa Pascual Trevino
add33e685b Update SVN to 7 for March 2018 Monthly Update Bug:71860241
am: da9a297f50

Change-Id: Id9a4dd112850eb0b36f798f13d171b698dbe0bab
2018-01-12 20:46:58 +00:00
Wei Wang
429f833f60 Merge "wahoo: power: Reorder cpu max node value priority" 2018-01-12 18:40:13 +00:00
Tri Vo
5cf6d726a8 Merge "Revert "system_executes_vendor_violators: google_camera_app and tango_core"" 2018-01-12 18:10:36 +00:00
Tri Vo
840d4a5ea4 Revert "system_executes_vendor_violators: google_camera_app and tango_core"
This reverts commit f4494825c5.

Reason for revert: albacore build broken

Change-Id: I79bccbab740d545261afd8f7f3ffec3be20d0a27
2018-01-12 18:07:20 +00:00
TreeHugger Robot
b173ec1a08 Merge changes from topic "storage_health_interface"
* changes:
  Create sepolicy for Wahoo health HAL service
  Add health service for Wahoo
2018-01-12 17:44:17 +00:00
Tri Vo
13fe0c4056 Merge "system_executes_vendor_violators: google_camera_app and tango_core" 2018-01-12 17:16:36 +00:00
Wei Wang
fadd4b28e0 wahoo: power: Reorder cpu max node value priority
Add CPUBigClusterMaxFreq to Launch and Camera hints with higher priority
than Video Encode's hint value. In this case, Video Encode hint doesn't
need to be canceled during those hints.

Bug: 71869406
Test: Build
Change-Id: I53d17d32a8ff77257ba44cef7b8be2911b20b85f
2018-01-11 23:44:57 -08:00
Sooraj Sasindran
6ba332939e Merge "enable power anomaly detection" 2018-01-12 05:58:18 +00:00
Elisa Pascual Trevino
da9a297f50 Update SVN to 7 for March 2018 Monthly Update
Bug:71860241
2018-01-11 23:13:52 +00:00
Daniel Colascione
bda684d81f Merge "Make zram swap mounting conditional on persist.sys.zram_enabled" 2018-01-11 19:03:47 +00:00
Hridya Valsaraju
dd69b2ca0c Create sepolicy for Wahoo health HAL service
Bug: 68388678
Test: vts-tradefed run vts -m VtsHalHealthV2_0

Change-Id: I4d7214c760948bc07cfdf3143526d137718e4f9a
2018-01-11 10:43:24 -08:00
Hridya Valsaraju
c5a707bc2f Add health service for Wahoo
Bug: 68388678
Test: vts-tradefed run vts -m VtsHalHealthV2_0

Change-Id: I37c2c66d26b1af04ccfedb59a24bb4e4aa492041
2018-01-11 10:43:09 -08:00
Tri Vo
f4494825c5 system_executes_vendor_violators: google_camera_app and tango_core
Bug: 62041836
Test: policy builds
No rules were added to google_camera_app and tango_core domains

Change-Id: Ib8605db10d28998ca564bf9f17a1a89a1b76d504
2018-01-11 10:32:38 -08:00
Sooraj Sasindran
86815f4889 enable power anomaly detection
Move connectivity monitor sepolicies to specific policy file
Allow Power Anomaly detector to access  /data/vendor/radio

Fixes below errors

12-28 18:01:37.294 W/ectivitymonitor( 3619): type=1400 audit(0.0:13):
avc: denied { search } for name="radio" dev="sda13" ino=1835015
scontext=u:r:radio:s0 tcontext=u:object_r:radio_vendor_data_file:s0
tclass=dir permissive=0

12-28 18:15:03.838 W/ectivitymonitor( 3621): type=1400 audit(0.0:18):
avc: denied { read } for name="u:object_r:tel_mon_prop:s0" dev="tmpfs"
ino=9592 scontext=u:r:con_monitor_app:s0:c233,c259,c512,c768
tcontext=u:object_r:tel_mon_prop:s0 tclass=file permissive=0

01-10 19:38:17.399   939   939 W rild    : type=1400 audit(0.0:87): avc:
denied { read } for name="u:object_r:tel_mon_prop:s0" dev="tmpfs"
ino=17732 scontext=u:r:rild:s0 tcontext=u:object_r:tel_mon_prop:s0
tclass=file permissive=

add power_anomaly_data.txt to be picked up in bugreport

Test: tested by testing power anomaly detector and connectivity monitor
Bug: 67058502
Change-Id: I8ad45d5e9cedde8f498627f97b35db27dfd2ea28
2018-01-10 19:45:53 -08:00
Mark Salyzyn
bb267fa16f STOPSHIP: sys.vdso reflector for experiments
On userdebug or eng, permit vdso to be enabled or disabled at will to
manage performance experiments on the dogfood population.

ro.debuggable=1 -> permit sys.vdso to maintain an influence over vdso
sys.vdso=false  -> 32 and 64 bit vdso disabled
sys.vdso=32     -> 64 bit vdso disabled
sys.vdso=64     -> 32 bit vdso disabled
sys.vdso=       -> 32 and 64 bit vdso enabled

NB: sys.vdso set to any other value will default to vdso enabled.

Test: manual, bionic-benchmarks --bionic_xml=vdso.xml to confirm.
Bug: 70518189
Change-Id: I839feff206a1404f228a5bdf35fb0c392fd8974a
2018-01-10 19:53:27 +00:00
Wei Wang
763e14d06a wahoo: power: set cpufreq max first
There is a small chance that canceling Encode hint and enabling launch
at the same time. In this case, CPU max is capped so it need to be
updated first.

This CL will make PowerHAL updates max node first, in favor of boosting
hints, such as launch, camera shot and etc. When these boost hints end,
the performance limiting (power conserving) hint such as encode hint
could fail to set at the beginning but will succeed in the second try in
500ms.

Also change the rc file to let init do not restart PowerHAL when
framework died and there is no active long-lasting hint.

Bug: 67648152
Bug: 62041945
Test: launch camera
Test: kill cameraHAL, powerHAL, system-server
Change-Id: I4a9d8d395dea9f42cf6659c86635852f332f7617
2018-01-09 14:32:22 -08:00
TreeHugger Robot
9c1eebab6c Merge "Fix directory permission issue for modem logging" 2018-01-09 20:08:49 +00:00
Wei Wang
21492cb5cf Merge "wahoo: power: Add hint state into PowerHAL in case of restart" 2018-01-09 19:43:18 +00:00
Jeff Sharkey
917074e010 Merge "Reserve 128MB for critical system components." 2018-01-09 19:27:39 +00:00
Wei Wang
1c36565762 wahoo: power: Add hint state into PowerHAL in case of restart
PowerHAL should remember the long-lasting hint when it (re)starts,
in case it crashed/killed. Also when clint crashed, the long-lasting
hint should be cancelled.

This CL adds a property for PowerHAL to store its long-lasting hint,
and uses init to clear the property and restart PowerHAL when client
died.


Bug: 67648152
Test: kill cameraHAL, powerHAL, system-server
Change-Id: I6b2cae3c2228da00bcb97a3befacf9ab045eeba8
2018-01-09 19:21:07 +00:00
Daniel Colascione
908a39eb89 Make zram swap mounting conditional on persist.sys.zram_enabled
Test: manual
Change-Id: Id0f73f9516e0b7858a96bd150a8474e51e0cf741
2018-01-08 20:46:39 -08:00
Jie Song
d78f9a1f87 Fix directory permission issue for modem logging
Bug: 71039120
Test: No permission issue after upgrade
Change-Id: Ide29dc94babc9db97bb85e7a5388954677c2aa10
2018-01-08 17:17:50 -08:00
Wei Wang
4c69ba7dda wahoo: power: add atrace into powerhint calls and improve camera powerhint
1) Add atrace into powerhint calls
2) Release encoder hint when placing camera and launch hint

Video Encode hint caps Big Cluster to 1.9G, so it will stop camera and launch hints setting Big
Cluster minfreq node to Max. If Video Encode hint is on, this CL will cancel it first and recover
it after camera/launch hints end.

Test: launch camera on walleye
Bug: 62041945
Change-Id: Ib278bdc55f58d5be9b2b4c2996c468bff5d71fbb
2018-01-06 17:45:09 -08:00
Jeff Sharkey
359818ed27 Reserve 128MB for critical system components.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

128MB ought to be enough for anybody.

Test: builds, boots
Bug: 62024591

Change-Id: I54bfde3fb1a198f6f6c0e03c4bf21e48324ed8fc
2018-01-05 17:24:18 -07:00
TreeHugger Robot
55ffbfec41 Merge "wahoo: power: change node owner early to reduce permission denial log spam" 2018-01-05 11:11:30 +00:00
Wei Wang
4a56f1b85a wahoo: power: change node owner early to reduce permission denial log spam
PowerHAL (started in class hal) will try to reset nodes to their initial values,
however the node permission is granted only upon boot_complete which leads some
permission log spam. This CL is to address the logspam.

Test: boot and do powerhint
Bug: 62041945
Change-Id: I35ad8dfe23f35c829f50479ca951445afeb46b87
2018-01-04 22:30:07 -08:00
Thierry Strudel
c4822cb332 Merge "wahoo: power: switch to libperfmgr for powerhint" 2018-01-05 06:18:34 +00:00
TreeHugger Robot
8c94d1d429 Merge "Revert "configstore: applied uprev of configstore"" 2018-01-05 06:02:45 +00:00
TreeHugger Robot
3df72381dc Merge "Restore KM4 reference HAL." 2018-01-04 23:20:35 +00:00
Jeff Tinker
445050c9d7 Merge "Allow widevine drm hal to access allocator hal" am: d1c8174061 am: b8cf647687
am: 7a35cb0518

Change-Id: I8399d17cca55cf7998073a36773dd63641dca609
2018-01-04 22:10:05 +00:00
Jeff Tinker
7a35cb0518 Merge "Allow widevine drm hal to access allocator hal" am: d1c8174061
am: b8cf647687

Change-Id: Ic0749608b04347460fbd94d85b65fd159b9d1d55
2018-01-04 22:05:34 +00:00
Jeff Tinker
b8cf647687 Merge "Allow widevine drm hal to access allocator hal"
am: d1c8174061

Change-Id: I812e0b6690a4938ffb9b0a3d0d3899c4fe5f0733
2018-01-04 22:01:33 +00:00
Treehugger Robot
d1c8174061 Merge "Allow widevine drm hal to access allocator hal" 2018-01-04 21:52:52 +00:00
Wei Wang
d7f901b58d wahoo: power: switch to libperfmgr for powerhint
Test: boot and do powerhint
Bug: 62041945
Change-Id: I7de1d2bf377fb46162171a084fca3413b1067d3b
2018-01-04 13:51:18 -08:00
Shawn Willden
e6657935e8 Restore KM4 reference HAL.
This is temporary, until we get the hardware implementation from
Qualcomm.  When we do, this reference implementation will be replaced.
Until then, keystore will notice this implementation when starting up,
but favor the hardware keymaster 3.0 implementation.  Engineers who
wish to do testing and development with the KM4 reference HAL on wahoo
can simply remove the hardware 3.0 implementation from the device.mk
file.  Keystore will then find no HW implementation and will load the
SW implementation.

Test: Boot and run KM4 VTS tests.
Change-Id: I1b7183b221041b55792200a2aa3e0ed974da2e0b
2018-01-04 12:29:50 -07:00
Sundong Ahn
6752f8c544 Revert "configstore: applied uprev of configstore"
This reverts commit aee1b828f7.

Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in master will be down
revisioned to 1.0.

Bug: 71555815
Test: build & run
Change-Id: Ie441c505ccc17403e4e5450b3ac86a23f2272e8f
2018-01-04 15:43:33 +09:00
Janis Danisevskis
c426d90f15 Remove KM4 reference HAL.
On wahoo devices we see bootloops due to failure to get KM4 HAL service
from hwservicemanager despite being running and registered.
This patch removes the reference KM4 HAL for now.

Test: N/A
Change-Id: I06cc6ce46d1fd754eefaff287e5e3cd8720507e3
2018-01-03 17:54:44 -08:00
Jeff Tinker
9246d7f0de Allow widevine drm hal to access allocator hal
This fixes failing vts drm tests

bug:67675811

Change-Id: Ic489b4cfac383e809f9c1f0503c337dce21a100e
2018-01-03 23:43:04 +00:00
Ke Bai
63207ac2a7 easel.te: read access to sysfs_thermal am: 401c245984 am: c97b49a5cb
am: ad080d19de

Change-Id: I46c78592ab1fb828100df97dec67c5e58c885faa
2018-01-03 20:34:56 +00:00
Ke Bai
ad080d19de easel.te: read access to sysfs_thermal am: 401c245984
am: c97b49a5cb

Change-Id: Ied8a65855553fe6cc8e00980a6b36ff01fa2b94f
2018-01-03 20:17:52 +00:00
Ke Bai
c97b49a5cb easel.te: read access to sysfs_thermal
am: 401c245984

Change-Id: I4a3902a053e8a176e457c0990ac6bf1e3243e87c
2018-01-03 20:11:17 +00:00
Ke Bai
401c245984 easel.te: read access to sysfs_thermal
Bug: b/70857705
Test: manual

Change-Id: I539f3cbc9fe69aa0c3f5bbf21599c0a126594188
2018-01-03 18:26:13 +00:00
Tri Vo
27e37c4fe1 Merge "Label sysfs_rtc files." am: ec90390658 am: 3036651d6c
am: eee4bf11cb

Change-Id: I5cfb2d00561a5147dfb43fe5b6c3f4123509ebfe
2017-12-30 05:05:48 +00:00
Tri Vo
eee4bf11cb Merge "Label sysfs_rtc files." am: ec90390658
am: 3036651d6c

Change-Id: I25cfebc7f611bd1ad792015823a41c882428be1e
2017-12-30 05:02:43 +00:00
Tri Vo
3036651d6c Merge "Label sysfs_rtc files."
am: ec90390658

Change-Id: I7b23362c4d36e3c5ca502a2f2d5d630edc39d179
2017-12-30 04:59:25 +00:00
Treehugger Robot
ec90390658 Merge "Label sysfs_rtc files." 2017-12-30 04:56:53 +00:00
Chenjie Luo
6796f6424d Revert "Use TARGET_EASEL_VARIANT := amber for Pixel 2017" am: d2afaced27 am: dcb4a38db8
am: d9ae567709

Change-Id: Ie57a4b9708e9f4836e17ed18a795d24d7bf995e9
2017-12-29 01:46:26 +00:00
Chenjie Luo
d9ae567709 Revert "Use TARGET_EASEL_VARIANT := amber for Pixel 2017" am: d2afaced27
am: dcb4a38db8

Change-Id: I259329830643d17f38dc8f42cfd44bd734670b87
2017-12-29 01:42:54 +00:00