Commit graph

1084 commits

Author SHA1 Message Date
Krzysztof Kosiński
5239e8db46 Update GCH configuration for gs101. am: f7395d2bf5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687087

Change-Id: Ifa5170aaf69ef797e378bb0ba8ee191c939c0771
2021-05-25 05:12:37 +00:00
Krzysztof Kosiński
06861b99cc Update GCH configuration for gs101.
Bug: 188327280
Test: camera preview on oriole
Change-Id: Id7b9b1c6129a45edd0c65ed37531c4f34555a6e0
2021-05-25 04:46:41 +00:00
Ray Chi
73431f3d60 Revert "gs101: usb: add state of usb extcon to monitorffs" am: cc02825538
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518349

Change-Id: Ie2e406d3bb6bdd9ee3ec7721b7122412eb71be9c
2021-05-24 16:28:12 +00:00
Ray Chi
387995b245 Revert "gs101: usb: add state of usb extcon to monitorffs"
This reverts commit 72ef08cafa.

Reason for revert: using alternate method for original behavior change
Bug: 187261232
Test: build pass

Change-Id: I5643a4109f6e4a64d167ed9ee1ce0bc3492cea42
2021-05-24 16:02:50 +00:00
Tim Murray
a8a44a559a gs101: use 64-bit dex2oat am: 1435f7e99c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680446

Change-Id: I979e5100c1667c0fa250b209aee5f1722e1e0214
2021-05-24 15:56:11 +00:00
Tim Murray
be4b7b6366 gs101: use 64-bit dex2oat
64-bit dex2oat uses slightly more memory in exchange for significantly improved compile time.

Test: boots, works
bug: 188906345
Change-Id: Ie91a2401504596cabacbb04b5d6b7039865c193d
2021-05-24 15:41:36 +00:00
Peter Csaszar
37e1e7c0f7 init.gs101.rc: Change owner/group of SJTAG files am: adaa5d69fb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14653698

Change-Id: I6036c38c98029e4e4e832f540af91dfa93f17159
2021-05-21 23:27:36 +00:00
Peter Csaszar
9cd8c6e58f init.gs101.rc: Change owner/group of SJTAG files
On userdebug & eng builds, change the owner/group of SJTAG sysfs files
that need to be written to 'system'. This became necessary after these
files were migrated out of DebugFS, as write access to the world is no
longer supported.

Bug: 188817349

Test: Ensure that the writable files in the following directories have
'system' as their owner & group:

  /sys/devices/platform/sjtag_ap/interface/
  /sys/devices/platform/sjtag_gsa/interface/

Signed-off-by: Peter Csaszar <pcsaszar@google.com>

Change-Id: I4420fccd92522a48f44b80bd0a19f4a20eb32442
2021-05-21 14:42:51 -07:00
Rick Yiu
7e1755a604 gs101: Modify system and system-background gropus am: c589f13219
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680130

Change-Id: I40119db9650f570c58710eaa18443b3193b8d6af
2021-05-21 17:19:15 +00:00
Rick Yiu
daa6fa640b gs101: Modify system and system-background gropus
NormalPerformance is for system, and ServicePerformance is for
system-background.

Bug: 182509410
Test: build pass
Change-Id: Ifeec11de42fa880cd00b34d504bf6d8ff90dd15c
2021-05-21 17:13:34 +00:00
Andrew Chant
cdf2dc61f2 Add rebalance_interrupts am: 77ceae1c09
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14603549

Change-Id: I99b937c42a0dfac80de77a4313c9dc3c1a916b77
2021-05-21 17:11:13 +00:00
Jesse Hall
b31c817dcf device.mk: Collect and clean up gpu-related settings am: e2be4ec29a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14680370

Change-Id: I9669629d7ce87f0c5a72b726a8b4c028daab377b
2021-05-21 17:11:06 +00:00
Andrew Chant
e16045f7c6 Add rebalance_interrupts
Add rebalance_interrupts to run at boot and rebalance interrupts.
Run once after modules have loaded and a second time after boot
has completed to ensure all interrupts have been assigned to
individual cores.

Bug: 148403062
Change-Id: I9685807e3028bef509c4064a5c09cbc48b91f7f0
2021-05-21 16:52:25 +00:00
Jesse Hall
56aa41bcf4 device.mk: Collect and clean up gpu-related settings
Mostly this change just collects existing GPU-related settings into one
place so they can be found more easily. It also removes some vestigial
and redundant settings.

* Renderscript is deprecated and we never planned to include the RS HAL.
  But it was copied in (twice) from some previous device. Remove it and
  things that only the RS HAL depends on.
* The separate "*32" PRODUCT_PACKAGES entries were left over from when
  prebuilts had separate prebuilts modules for 32-bit and 64-bit
  variants of the package, instead of using a single multilib package.

Bug: 188672865
Test: boot to home, check all moved properties are still correct
Change-Id: Id9a9152b3b4c3a7167f147558f5f01da7f940311
2021-05-21 16:46:55 +00:00
eddielan
5686503666 fpc: Refine fpc HIDL & AIDL build mechanism
Bug: 185464439
Test: Build Pass
Change-Id: Id78789186efc1edf7480e61ab9f60b0286df6e45
2021-05-21 08:49:35 +00:00
Ted Wang
303cb012cd Enable Bluetooth Ccc Timesnyc feature for gs101
Bug: 175836015
Test: make; ccc_tes
Change-Id: I235eaf0e1fc42d4882eeb7c57729fa96c6f2e80c
2021-05-21 06:41:18 +00:00
Meng Wang
d4768daa65 Temporarily revoke location pre-grant to SCONE
Will revert once issue fixed and CBRS will launch.

Bug: 188236995
Test: manual
Change-Id: I5f0577a90ba2c60a7bd5a9d796ba8803f6206a27
2021-05-21 03:16:11 +00:00
Peter Liu
5618aa14c8 camera power hint: add mid cap based on current constraint
Current mid cpu max clock is constrained by little cpu cap.
The cpu cluster clock constraint is going to be significantly reduced,
so put the current mid cap to avoid mid cpu regression.

Further fine tuning on the cap will be continued later.

Bug: 186564130

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I1e4568bb6e6167c91d8f98da337b1dd849a278bb
2021-05-21 00:48:44 +00:00
Yuriy Romanenko
103f3cad62 Revert "Update GCH configuration for gs101."
Revert "Directly link Lyric into GCH."

Revert "Adjust reference to libgoogle_camera_hal_tests."

Revert "Only compile camera HAL tests for primary arch."

Revert "Update commented-out GCH configuration for zebu201."

Revert "Adjust reference to libgoogle_camera_hal_tests."

Revert "Changes to support direct linking of Lyric into GCH."

Revert "Update GCH configuration for coral."

Revert submission 14596214-gch_dlopen

Reason for revert: Breaks master-without-vendor because of hardware/google/camera -> vendor/google/services/LyricCameraHAL/src dependency that needs to be broken somehow.

Bug: 188731034

Reverted Changes:
I7f1780f25:Adjust reference to libgoogle_camera_hal_tests.
Ief35ee657:Adjust reference to libgoogle_camera_hal_tests.
I9070712e1:Update commented-out GCH configuration for zebu201...
I33c989b24:Adjust reference to libgoogle_camera_hal_tests.
I8250a5874:Update GCH configuration for coral.
I76cb1957a:Adjust reference to libgoogle_camera_hal_tests.
I628ac0367:Use a single toplevel library for Lyric.
I647189d9f:Only compile camera HAL tests for primary arch.
I72cf7918b:Changes to support direct linking of Lyric into GC...
I556322b01:Update GCH configuration for gs101.
I43f7f675e:Directly link Lyric into GCH.

Change-Id: Ia72c97f4044ecac8bda438fdb917a978643cbbfe
2021-05-20 20:32:43 +00:00
George Lee
9cf36fcccb bcl: Updated BCL metrics per sysfs change.
Update BCL triggered stats reporting.

Bug: 180620276
Test: adb bugreport
dumpstate_board.txt shows:
------ Mitigation Stats (/vendor/bin/sh -c echo "Source\t\tCount\tSOC\tTime\tVoltage"; for f in `ls /sys/devices/virtual/pmic/mitigation/last_triggered_count/*` ; do count=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/last_triggered_count\//}; b=${f/last_triggered_count/last_triggered_capacity}; c=${f/last_triggered_count/last_triggered_timestamp/}; d=${f/last_triggered_count/last_triggered_voltage/}; cnt=`cat $f`; cap=`cat ${b/count/cap}`; ti=`cat ${c/count/time}`; volt=`cat ${d/count/volt}`; echo "${a/_count/} \t$cnt\t$cap\t$ti\t$volt" ; done) ------
Source		Count	SOC	Time	Voltage
batoilo 	0	0	0	0
ocp_cpu1 	0	0	0	0
ocp_cpu2 	0	0	0	0
ocp_gpu 	0	0	0	0
ocp_tpu 	0	0	0	0
smpl_warn 	0	0	0	0
soft_ocp_cpu1 	0	0	0	0
soft_ocp_cpu2 	0	0	0	0
soft_ocp_gpu 	0	0	0	0
soft_ocp_tpu 	0	0	0	0
vdroop1 	0	0	0	0
vdroop2 	0	0	0	0
------ Clock Divider Ratio (/vendor/bin/sh -c echo "Source\t\tRatio"; for f in `ls /sys/devices/virtual/pmic/mitigation/clock_ratio/*` ; do ratio=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/clock_ratio\//}; echo "${a/_ratio/} \t$ratio" ; done) ------
Source		Ratio
cpu0_clk 	0xf041c3
cpu1_heavy_clk 	0xf041c3
cpu1_light_clk 	0xf041c5
cpu2_heavy_clk 	0xf041c3
cpu2_light_clk 	0xf041c5
gpu_heavy_clk 	off
gpu_light_clk 	off
tpu_heavy_clk 	off
tpu_light_clk 	off
------ Clock Stats (/vendor/bin/sh -c echo "Source\t\tStats"; for f in `ls /sys/devices/virtual/pmic/mitigation/clock_stats/*` ; do stats=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/clock_stats\//}; echo "${a/_stats/} \t$stats" ; done) ------
Source		Stats
cpu0_clk 	0x101
cpu1_clk 	0x101
cpu2_clk 	0x101
gpu_clk 	off
tpu_clk 	off
------ Triggered Level (/vendor/bin/sh -c echo "Source\t\tLevel"; for f in `ls /sys/devices/virtual/pmic/mitigation/triggered_lvl/*` ; do lvl=`cat $f`; a=${f/\/sys\/devices\/virtual\/pmic\/mitigation\/triggered_lvl\//}; echo "${a/_lvl/} \t$lvl" ; done) ------
Source		Level
ocp_cpu1 	7000mA
ocp_cpu2 	12000mA
ocp_gpu 	12000mA
ocp_tpu 	10500mA
smpl 	2900mV
soft_ocp_cpu1 	7000mA
soft_ocp_cpu2 	12000mA
soft_ocp_gpu 	12000mA
soft_ocp_tpu 	10500mA

Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4ea25ebc86eb772c69e8047b2d5466ca52ec2d2c
2021-05-20 15:12:44 +00:00
Jack Wu
50437f63d5 dumpstate: dump wireless fw version
Bug: 188021156
Test: can show in dumpstate
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I51cb5dded02e0cbb1e9d16334472bab4d9a82150
2021-05-20 10:31:30 +00:00
Ilya Matyukhin
c5761abf62 Remove sysprop assignment left over from a WIP change
Bug: 188193467
Test: on device with shipping image
Change-Id: I5fe71d029e47b83522208a8add8183701b6c12d2
2021-05-20 07:36:17 +00:00
Peter Liu
7bb4e1f1b3 camera power hint: add prefer high cap in all modes
Prefer high cap will choose the mid / high cores when possible with
consideration of energy efficiency.

Running task on high cores with low clock is more efficient than running
at little core with high clock.

This hint also addresses CTS issues with keeping latency_sensitive = 1.
(equivalent to prefer idle)

This hint adds:
1) Enable prefer_high_cap of camera vendor group
2) Set high_capacity_start_cpu to 4
4) Set MemFreq floor
5) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130

Test:
android.hardware.camera2.cts.RobustnessTest#testAeAndAfCausality (5/5)
android.hardware.cts.CameraTest#testPreviewCallback (5/5)
android.hardware.camera2.cts.CameraDeviceTest#testCameraDeviceRepeatingBurst (5/5)
android.hardware.cts.CameraTest#testFocusDistances (3/6). (3/6) without CL.

*****************************************************************
              raven Camera CTS Test Results

*****************************************************************
Tests Passed: 217, Failed: 0, Not found: 0, Status unknown: 0

Change-Id: Ia2abb0eb9c57fa05c4db7bf1d02053e303301781
2021-05-20 03:24:07 +00:00
Taeju Park
c36b562b57 Enable prefer_idle for nnapi vendor group
Bug: 182509410
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I1b58018120f4575f2b12faa15c24c41f1c3b4e8e
2021-05-20 02:28:47 +00:00
Kevin DuBois
3cbaa92aad GPU nnhal: update service name.
There's a vts test that requires presence of a hyphen in service name.

Fixes: 180648109
Test: vts
Change-Id: I66154167c46962734b2950a9ba5fe81daf21d460
2021-05-20 00:06:57 +00:00
Edmond Chung
f2a5afd136 Revert "Update power hint for camera workload"
This reverts commit 3a0efffdbc722cb8a9684ce3c0080d2476c0abb8.

Reason for revert: This CL causes performance/frame drop issues which leads to more CTS flakiness.

Bug: 188462637
Bug: 185233206
Test: Camera CTS
Change-Id: I1796ba29da0e2c19874531bda8c21bc10e248055
2021-05-19 20:05:16 +00:00
Vinay Kalia
dc873081f9 Enable adaptive playback feature for AV1
bug: 188121584
Test: Secure AV1 playback

Signed-off-by: Vinay Kalia <vinaykalia@google.com>
Change-Id: I32961ea6e21103a4dfd9adb201f3ceccd2b31995
2021-05-19 20:05:04 +00:00
Ilya Matyukhin
4d054df74c Split UDFPS makefiles into common, factory, and shipping
Bug: 188193467
Test: build factory_oriole-userdebug
Test: build factory_raven-userdebug
Test: build oriole-userdebug
Test: build raven-userdebug
Change-Id: Ia2b725214189ff123239dbafad3bcb567f11f47b
2021-05-19 17:11:58 +00:00
Alex Johnston
a1f2ab72b2 Add Device ID attestation support gs101
Bug: 187151761
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyPairCertificateLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyPairCertificateLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testAddNetworkWithKeychainKey_granted
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testKeyManagement
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testAdminControlOverSensorPermissionGrantsDefault
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testInstallKeyPairLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testGenerateKeyPairLogged
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegatedCertInstallerDirectly
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyGrant
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyPairCertificateLogged

Change-Id: I71f8811780cfbc78515c69c1a5170b6451ff7821
2021-05-19 13:06:50 +00:00
Peter Liu
f2db0e370f camera power hint: raise CPU clock more conservatively at STREAM_HIGH mode
During streaming high fps mode, the BW is high and lead to CPU memory
high latency. This hint tries to avoid raising the CPU clock
at the condition when CPU is waiting for data access.

Bug: 184583714
Test:
4k60: 59+fps
1080p60fps: 58fps (b/186806120, disable eis can get 60fps)
Power benefit 80-100mW

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I3849dfd170085f7e10b5c53d27af353026a4093a
2021-05-19 06:21:29 +00:00
George Chang
f989b01a09 Temporary disable eSE2 terminal
Bug: 187937707
Test: manual
Change-Id: I8d5a2b75851e9a42976db2ceb29d91374b914851
2021-05-19 05:30:36 +00:00
Ilya Matyukhin
a23bc411fe gs101: remove fingerprint HIDL HAL config
This config should be specified in individual device overlays.

Bug: 188588725
Test: build
Change-Id: I1e0798026c3e367ae3847fb8367c9dddb8a9b28d
2021-05-19 04:28:41 +00:00
Krzysztof Kosiński
6e46cb4474 Update GCH configuration for gs101.
Bug: 188327280
Test: camera preview on oriole
Change-Id: I556322b01f2ded68b34099ea41e53f966f5ec8b6
2021-05-19 04:25:28 +00:00
Yu-Chi Cheng
6917051ecb Renamed edgetpu_service to edgetpu_app_service.
edgetpu_service was splitted into two in previous change:
edgetpu_service and edgetpu_vendor_service, where the new
vendor service for vendor clients, and the old service keeps
serving app clients.

This change renamed the edgetpu_service into edgetpu_app_service
in the device.mk to make the naming clearer.

Bug: 188463446
Test: Oriole + GCA
Change-Id: I969e264a82a4ebc77407a0eee45fe6be6a3a2ba8
2021-05-18 19:13:20 +00:00
Stephane Lee
80c8b07636 Enable Battery Defender on gs101
Bug: 188110823
Test: Ensure that Dwell-Defend can trigger with 'setprop
vendor.battery.defender.threshold 61'

Change-Id: I4782e2c387b147fc48cf4134d27af8675964dc44
2021-05-18 18:48:49 +00:00
Siddharth Kapoor
d7e3a56290 Increase earlySf duration to accomodate animation cases
Bug: 161945010
Test: traces shared at b/161945010#comment17
Change-Id: I894b139e71b50c9b6e64b6f73a633da67f00dd16
2021-05-18 17:44:58 +00:00
Roger Fang
b555d6c912 device: google: gs101: IAudioMetricExt hidl manifest settings
Bug: 180627405
Test: Manually test

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: If84d94703bdbb3621dc03bdb2101c42bfd4a3c91
2021-05-18 17:21:45 +00:00
Kevin DuBois
f56e018ca4 Upgrade GPU NNhal to 1.3 revision.
Upgrades GPU NNHal to 1.3 revision.

Fixes: 187981206
Test: Boot, VTS for 1.3 revision
Change-Id: I2f860cd092168cb5093794dcfdef60242bfb9b6b
2021-05-18 15:07:04 +00:00
Ted Lin
122923fc74 Dump tcpm for the new path
Bug:188213293
Test: check bugreport
Change-Id: Ib6f2e374d80da88a39440a3de9d0e2d732b2f95e
Signed-off-by: Ted Lin <tedlin@google.com>
2021-05-18 15:05:05 +00:00
Beverly
4747f7c675 Raviole: use hybrid prox sensor on keyguard
Bug: 184176119
Test: manual
Change-Id: Ib2a6c75986ea9e4f7514767ef6d4090e5d71f93c
2021-05-18 11:36:31 +00:00
Alec Mouri
336e603ad2 Enable SurfaceFlinger Cache by default
Bug: 167936510
Test: Multiple fixes for flickering issues have landed.
Change-Id: I3da8f94e736c6dd5347585c3edb1a1080e9fff58
2021-05-18 08:51:00 +00:00
Devika Krishnadas
f25a39d71e Change VSYNC duration
Bug: 161945010
Change-Id: I2bfa217cf3e2e8fc7cf27551f405eac6c0d39ec4
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2021-05-18 07:32:51 +00:00
Rick Chen
7325f58e86 Add debug property for sensor on userdebug/eng build.
Bug: 187248983
Test: lshal debug android.hardware.sensors@2.0::ISensors/default
      See b/187248983#comment2 for the output.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: I174af99b6f1318c7420e8e6c5d4ed745c2328cf0
2021-05-18 07:26:39 +00:00
Jenny Ho
90217296e8 device-common: set testing_battery_profile default 2
set 2 to prevent limit battery level in unexpected testing situation

Bug: 180511460
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I9f0e66cf92b26c6946af162003378dcf0fd749f9
2021-05-18 09:00:06 +08:00
Sidath Senanayake
3f13d8aa5e powerhint: Use 'hint' node for GPU
This changes PowerHAL to use a sysfs node created
specifically for use by PowerHAL when influencing
GPU clocks.

Bug: 188404581
Bug: 188034128
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: Icf120454ff908776c8717826689a0528aebf2f64
2021-05-18 00:50:53 +00:00
Zhijun He
8a52881a41 dumpstate: add camera hal graph state dump
Only dump the latest dump files so that bugreport
size won't be increased by too much.

Test: build and capture bugreport
Bug: 178737594
Change-Id: I699ee76997c9107dad13419688f3c6c04551313b
2021-05-18 00:42:11 +00:00
Tim Murray
c1db6b7386 gs101: preopt SystemUI
SystemUI should always be speed-preopted on these devices.

Test: flashed, SysUI is preopted
Bug: 188465988
Change-Id: I990ce9d7d8c08b8e80fe4ca0b73c9eb339f065f3
2021-05-18 00:40:15 +00:00
Long Ling
736b673c95 display: update vendor color file
Update boosted color data

Bug: 187301816
Change-Id: Iec740f3e933dc564f39fb78605fd5c3b428b167c
2021-05-18 00:03:56 +00:00
Minchan Kim
c9f14081cd gs101: enable page_pinner
Enable Page Pinner.

Bug: 187552095
Test: adb bugreport <zip> and confirmed it contains page_pinner
      information at dumpstate_board.txt
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I509c5a825a798d8f1851cb65c5dd28dbddf11d33
2021-05-17 18:22:16 +00:00
Minchan Kim
637041f47e init.gs101.rc: dump page_pinner information into bugreport
Dump page_pinner information into dumpstate_board.txt.
It helps to find vulnerable place of CMA failure.

Page pinned ts 13 us count 0
PFN 10292273 Block 10051 type CMA Flags 0x8000000000080024(uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x278/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Page pinned ts 2 us count 0
PFN 10436170 Block 10191 type CMA Flags 0x8000000000080026(referenced|uptodate|active|swapbacked)
 try_grab_page+0x168/0x17c
 follow_page_pte+0x2e4/0x4c8
 follow_pmd_mask+0x180/0x498
 __get_user_pages+0x1a0/0x42c
 __get_user_pages_remote+0xa4/0x28c
 get_user_pages_remote+0x20/0x48
 copy_strings+0x188/0x2ac
 do_execveat_common+0x290/0x300
 __arm64_sys_execve+0x44/0x5c
 el0_svc_common+0xa4/0x180
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x19c/0x1c0

Bug: 187552095
Test: adb bugreport <zip> and confirmed it contains page_pinner
      information.

Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I59bd41ad9e06cab0348ce85059f73d0796632868
2021-05-17 18:22:16 +00:00