Commit graph

618 commits

Author SHA1 Message Date
Daeho Jeong
bb82be6a2a bfq: set slice_idle to 0
Bug: 191606824
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I6a2e52cdf5a43fb2e74b756eb0f1249761d76b0e
2021-08-09 23:10:42 +00:00
Siqi Lin
1858f3c579 dumpstate: dump recent AP wakeups from AoC DRAM exception
Bug: 186456919
Test: adb bugreport, open Bug Sections "dumpstate_board.txt"
Test: search for "AoC memory exception wake"
Change-Id: I45edeb5138957405f29b9556acb8ff36fdc9310b
2021-08-09 19:52:01 +00:00
Edwin Tung
25b2c66ba9 gps: update gps driver 129.20.23.511166
Reset VDR instead of assert when sensor misalignment is detected
Updated the heading process noise logic
Fixed the issue of unintentional COLD start trigger
Fixed the late acquisition by 1 sec due to missing sat aiding
Fix "libgps  : proxy__gps_start, CP Cold Start is running, skip gps_start"
Change in scheduling capability to treat less than 1000ms interval as 1000ms
and ignore accuracy mask
Relax the magnitude check of L5 bias to write to NVMEM
Added CpLppeHighAcc3DPosInAgnssProvideLoc (default:false) to combine a_gnss
and lppe ProvideLocationInformation
Change LogJava to retry connection to log service
Aiding B2a from B1I measurement was fixed
Fixed not to make assistance data request for CP
Change to allow IgnoreRomAlm to work.
Change the searching strategies.
Cange to use previous SIM card's IMSI
More adjustment for the LTE filter Bias
Added xml attribute OnDemandTimeCapability
SW change for the altitude
Implemented robustness for position loss after position request restarts
Fix SUPL OTDOA capability issue

Bug: 195607949
Bug: 193609637
Bug: 195489111
Bug: 194752965
Bug: 194728243
Bug: 194633864
Bug: 194309353
Bug: 194133982
Bug: 193477020
Bug: 193374889
Bug: 193114467
Bug: 192630262
Bug: 192047043
Bug: 191340913
Bug: 189412038
Bug: 193476205
Bug: 194974278

Sanity Test: 195599028
Test: build pass

Change-Id: I2d0367eb8e736c7e349609532d04d891cd51621e
2021-08-07 03:53:24 +00:00
Edwin Tung
204765d8ff gps: Remove GpsCarrierType from XML
Bug: 195087664
Bug: 193476205
Test: build pass
Change-Id: I6dfd0d7dcc349084eaabff64cbf9d3e813dc515f
2021-08-07 03:53:24 +00:00
Adrian Roos
25eb91fba1 Revert "firmware: mfc: update release MFC F/W(21/08/03)"
This reverts commit 41b4175e030e1bb46805975926a16077c811a4ae.

Reason for revert: Crashes test devices
Bug: 194873668
Fixes: 195743186

Change-Id: Ie857e54138684777c8c402aceccb9181fc090790
2021-08-06 13:49:55 +00:00
ByungGwan Kang
e5938b1e5e firmware: mfc: update release MFC F/W(21/08/03)
- Implemented so that H.264 decoder return FEATURE_NOT_SUPPORTED error
  when content is 10-bit.
- Implemented to support dynamic frame rate change for Hierarchical-B
  encoder.
- Implemented to support the adaptive GOP feature.
- Fix the MinQuality rate control (20210629 release) bug which encoded
  stream is corrupted when Hierarchical-P/B is enabled.

Bug: 194873668
Test: 1 day pretest (ATL0)
Test: DevCam video recording
Test: Hierarchical-B testing
Signed-off-by: ByungGwan Kang <bk0917.kang@samsung.com>
Signed-off-by: wenchangliu <wenchangliu@google.com>
Change-Id: Ic924c0c6479b952c16f5fa4a4a3511f852774aab
2021-08-06 09:13:08 +00:00
George Lee
2107135c90 bcl: Enable Instruction print in bugreport
MPMM/PPM readings, OFFSRC and PWRONSRC will be printed out.

Bug: 195455000
Test: Local Test and confirm its printed.
------ Instruction ... ------
enable_mitigation=1
mpmm_settings=0x1a
offsrc=0x0
ppm_settings=0x0
pwronsrc=0x4
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I1f3e10edc416966f0eba18e0ba94fb56a487eaee
2021-08-05 20:43:54 +00:00
Michael Eastwood
fe6dbce8df Attach more CPA traces to bug reports.
These are small, usually <1MB. Attaching more CPA traces gives us some
buffer to ensure that the relevant trace is actually included in the bug
report. Previously if the user opens one or two more camera sessions
after they observe the performance issue, the trace will be missing.

Bug: 191169822
Test: Build
Change-Id: I4c10217c39991e80f25a7fd90eee9e8b8c5b6cdb
2021-08-04 20:46:57 +00:00
linjoey
3097b78f95 Change prebuild path to gs101
Bug: 181204804
Test: Build passed and boot to home.

Change-Id: I4fdc6032ac16134de53675a5f00ee7e7765c7f32
SigSigned-off-by: linjoey <linjoey@google.com>
2021-08-04 12:17:24 +00:00
Wayne Lin
ebec3cf12a gps: Remove Google SUPL certs from gps.cer and enable Android platform root cert mechanism
Remove below Google SUPL certs from gps.cer
 - GoogleSuplCertificateEquifax
 - GoogleSuplCertificateGeo
 - GoogleSuplCertificateGlobalSignR2
 - GlobalSign Root R1

Bug: 193865889
Test: basic GNSS function test pass and SUPL NI test pass
Change-Id: I2fee22f0832784d20aa055239ac0d92c0d3a671d
2021-08-04 11:35:03 +00:00
Super Liu
d3e2787491 dumpstate: support CM2 data dump for touch.
This also change the sequence of run_rawcap_read_all
and run_self_rawcap_read_all to last. Because these
two commands need to run selftest first to read data,
this will make ambient update to make other raw data with
differen baseline.

Bug: 195111369
Test: check touch data in bugreport.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I4693b099fbc98d80fbe166525773e3ab803c98d8
2021-08-04 05:28:30 +00:00
Vinay Kalia
4f62d6b733 Support height/width swap
Enable support for height/width swap so that vertical videos
with supported resolution can be played with HW AV1 decoder.

bug: 195409679
Test: AV1 video playback in vertical as well as horizontal orientation.

Signed-off-by: Vinay Kalia <vinaykalia@google.com>
Change-Id: I939f6a0dc432f6b1c92a1e818647afb66c20d856
2021-08-03 17:15:51 +00:00
Ruofei Ma
d2e0f9f79b Publish performance points for 720p video
Publish performance points for 720p video. This fixes
a CTS testcase.

Bug: 195356114
Change-Id: Iddd8e3ed5edbdf35735fa679ab516a5f84bbdb0e
2021-08-03 15:36:09 +00:00
Stephane Lee
75619b9882 Create one-shot clear for Trickle-Defend
Test: Ensure there are no sepolicy/permissions errors
Bug: 194447428
Change-Id: Ie295e33967edc3294e1bf6d2192639d6b0377659
2021-08-03 00:20:07 +00:00
George Lee
433a2566e6 bcl: enable batoilo thermal zone
Enabling batoilo thermal zone.
Reduced soft_ocp_warn per bug 184739333.

Bug: 194240210
Test: Local test: flash and boot
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4cad70946af1cd8ffd2131df9f505dac49b8c8f8
2021-07-30 20:49:41 +00:00
Lisa Liu
d79a11550b gs101: Start bootanimation explicitly.
Start bootanimation explicitly by name. Let animation start before
surfaceflinger to avoid the condition ctl.start bootanim queued after mount_all command.

Bug: 193726798
Bug: 191910503
Test: boot test
Change-Id: Id0d276ac8bca39c6ac1dae2b2d542107a9522b91
2021-07-30 14:08:15 +08:00
Tom Hsu
fbf3ed5d4c Revert "Disable TTY as it is not supported on these devices."
This reverts commit ce6f6da1587615240b7cd2582209c6838cb3bec8.

Reason for revert: Due to b/194243206, TTY shall keep supporting for WCDMA/GSM devcie. Thus revert this CL for pixel 2021 and after.

Bug:194243206
Test: b/194243206#comment22
Change-Id: I650eb50a12bebcd55d04a4ab18bf1d78480a0af5
2021-07-30 02:06:55 +00:00
Bart Van Assche
864a08d3a7 init.gs101.rc: Reduce the queue depth for /dev/sda
Use the default chosen by the block layer (64). The purpose of this patch is
to reduce storage latency. Without this patch:

 # grep -aH . /sys/block/sd*/queue/nr_requests
/sys/block/sda/queue/nr_requests:256
/sys/block/sdb/queue/nr_requests:64
/sys/block/sdc/queue/nr_requests:64
/sys/block/sdd/queue/nr_requests:64

With this patch applied:

 # grep -aH . /sys/block/sd*/queue/nr_requests
/sys/block/sda/queue/nr_requests:64
/sys/block/sdb/queue/nr_requests:64
/sys/block/sdc/queue/nr_requests:64
/sys/block/sdd/queue/nr_requests:64

Bug: 194450129
Test: Built Android images and installed these on an Android phone.
Change-Id: I236874f3791d62a2d5faf0d37a149025639f5c4a
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
2021-07-29 13:31:50 -07:00
David Chao
e00e552787 dumpstate: dump state2power table
Dump state2power table in cooling_device

Bug: 189488358
Test: local test and state2power table can be dumped.
Change-Id: Ifb9a8e41158c5452b2f6e856d30ac97011460298
Signed-off-by: David Chao <davidchao@google.com>
2021-07-29 07:13:33 +00:00
Rick Yiu
e05964f062 gs101: Disable system group boost in off charger mode
Bug: 193192017
Test: build pass
Change-Id: Ieb5ff22808f22eb5796950d427986f352d748839
2021-07-28 01:24:48 +00:00
Andrew LeCain
20c4f4090c Set owner for mfg_data partiton.
Enable the FP HAL to read from the mfg_data partition chowning to system

Bug: 193549276
Test: sideload cal with valid signature. auth. enroll.
Change-Id: I0897e545dc368782587ae031716012a806d05485
2021-07-27 21:32:11 +00:00
Badhri Jagan Sridharan
a7c0b48fc4 gs101: recovery: Set maxpower to allow charging from SDP port
Leaving maxpower at default i.e. 2mA prevents the phone from
charging from SDP ports. Setting this to 900mA. Kernel would
then set the current limit to 500/900mA based on the configured
speed.

Bug: 194722479
Test: Boot to recovery; Through uart cat maxpower;
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I763c70eb5d19f74e6e846155af69c25ca3e91f85
2021-07-27 20:07:58 +00:00
Max Kogan
e1039ea565 Add AoC wakeup stats to dump state
Need wakeup stats to track AoC to AP messages resulting
in frequent wake-ups.

Bug: 192668026
Change-Id: I99cca607d74b63a974d0b89bc0ba14022bcc22ec
2021-07-27 19:23:05 +00:00
Minchan Kim
c0f6127a16 gs101: increase swap size
Since we have 8G/12GB ram, increase swap size from 2G to 3G
since 3G swap shows best result.

note: we had used 2G swap for even 4G ram devices.

Bug: 187488125
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iea8ab1126c378cd02a89c2ef982262431c894487
2021-07-27 19:08:10 +00:00
Jack Wu
b089995845 add permission for pca charge_stats access
Bug: 194386750
Test: no Permission denied while accessing the file node
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ia399e59a2f7098147522161d5c7458545febfb77
2021-07-24 06:42:51 +00:00
Ankit Goyal
099ff5167b Include memtrack in product packages
Bug: 191966412
Test: adb shell dumpsys meminfo
Change-Id: Ie521d242274502d70d228faeab0727abee5284b4
2021-07-23 20:52:52 +00:00
Meng Wang
fbb1a572a1 Move CDMA feature XML inclusion to device specific mk files
So devices not supporting CDMA don't include the feature by mistake.

Bug: 194307361
Test: inspect build artifacts - telephony.cdma.xml is included
Change-Id: I0fe3a3624d2cda2b57347402d62e8a16513174e5
Merged-In: I0fe3a3624d2cda2b57347402d62e8a16513174e5
(cherry picked from commit d808d99ce089ca4c7ff4e2abe8ee76b4eeb38a64)
2021-07-23 17:50:41 +00:00
YiHo Cheng
2bb5a796f9 thermal: Update usb_pwr_therm2 emul_temp control
Update usb_pwr_therm2 emul_temp control to allow
vendor.disable.usb.overheat.mitigation.control to disable/enable
usbc-port throttling to prevent device offline during thermal
mitigation test in lab.

Bug: 194252201
Test: setprop vendor.disable.usb.overheat.mitigation.control 0/1 to
check usb_pwr_therm2 temperature reading

Change-Id: Ia522706ce32bee68596b977a3e526f0b951a95ca
2021-07-23 17:45:41 +00:00
Rick Yiu
853246aeb8 gs101: Add a new profile for camera power tuning
Create CameraServicePower profile.

Bug: 192607122
Test: build pass
Change-Id: Ia4ff63dabc51d449d4b4acc95a2685c10643c509
2021-07-23 13:49:53 +00:00
Devika Krishnadas
be6acfd1c5 Update late duration
Bug: 192099706
Test: Run UIBench b/194024035
Change-Id: I7954214df1210df19e79308a950cc22d7d96fbe2
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2021-07-23 13:20:29 +00:00
Jack Wu
9e5b9c54c0 move permission for WirelessCharger HAL to init
Bug: 194354746
Test: there is no wireless access error
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I2dcc54047129132c38899d5e4310dc7c1ca7bc80
2021-07-23 12:09:26 +00:00
SongFerngWang
373005fd5e Overlay the config_network_selection_list_aggregation_enabled
Bug: 173387374
Test: build pass
Change-Id: I84c899e9c7aae4e4cbd1f76ae3d021b507ea6fb2
2021-07-23 09:05:48 +00:00
vincechiu
f3b644db0c Camera: create three new groups for camera threads
high-group is running on CPU 6-7.
mid-group is running on CPU 4-5.
mid-high-gropu is running on CPU 4-7.
Move camera tasks to CPU 4-7 for 1 seconds when AP launch.

Bug: 194271751
Test: GCA
Change-Id: I8e13e9ad0057b8f42f8ed3958bf0c6d58a5a02bc
2021-07-23 09:03:24 +00:00
Lisa Liu
9a20a9faee gs101: tune vendor_sched parameters for boot time
Set uclamp_min and prefer_idle to sys_group to improve 2nd init
stage boot time performance.
* original
boot_progress_start_avg: 4832.3
* with tuning
boot_progress_start_avg: 4028.75

Bug: 193192017
Test: boot test
Change-Id: I8ebd52fddceadbee22e9a8c75969d52047b2acfc
2021-07-23 06:38:38 +00:00
Firman Hadi Prayoga
fd9a189315 Add CAMERA_SHOT power hint.
This will improve the snapshot performance, especially JPEG encode.

Bug: 192067605
Test: Boot, CTS
Change-Id: I9b879d2c462e0a59891d9a36c770484d00b53e6e
2021-07-23 03:08:48 +00:00
Weizhung Ding
c90e372d4f gs101: declare IDisplay to V3
Bug: 184697262
Test: build pass
Change-Id: I780fbf0fc9ee5eb6fd52739e8a9ab5505215bed1
2021-07-23 01:40:46 +00:00
Rick Yiu
4b4ee6e226 gs101: Change uclamp max setting for bg group
Set to 60% or 615.

Bug: 188947181
Test: build pass
Change-Id: I93a423b1c0cb297df709971304f8101b27e46a1d
2021-07-23 01:06:10 +00:00
Petri Gynther
a0b391dd6a Pixel 2021: enable vbmeta_vendor
Bug: 181909612
Test: build + install + boot to home
Test: manual A/B OTA update
Change-Id: Ie27936cc10efd2f6dfbcd982e6855877e3308af2
2021-07-22 21:20:03 +00:00
Badhri Jagan Sridharan
09719be64b gs101: usb: Report USB port overheat event
Read duration stats expoted by google,usbc_port_cooling_dev and
push suez atom when the uevent is received. The plugged temperature
is queried every time when the USB port is connected. Maximum
temperature during overheat is queried when the uevent is received.

Bug: 193615568
Change-Id: Ib02e14dbdbe1390476e864d351158c1523a5c311
2021-07-22 20:31:12 +00:00
Edwin Tung
1ef99f7606 gps: remove psds address from xml
Bug: 194208838
Test: download lto padd
Change-Id: I0d81240d0e519b3de2b9fe64afaa2613b7081978
2021-07-22 17:29:26 +00:00
Edwin Tung
dea270f4b4 gps: update gps driver 129.20.23.509086
Correct the LTO error msg for RTO case
Fix Control Plane issue
Fix a bug of causing a race condition in LogJava.
Fixed CTS GnssMeasurementValuesTest CTS issue
Aiding B2a from B1I measurement was fixed.
Improve satellite acquisition at lower signal levels
Adjust Bias for LTE filter

Bug: 193425221
Bug: 193379101
Bug: 192800862
Bug: 193749870
Bug: 193589742
Bug: 194133982
Bug: 193114467
Bug: 192047043

Sanity test: 194276682
Test: build pass

Change-Id: I728a0e0058beaca6a7fe75e43dab20ab5e955937
2021-07-22 17:28:52 +00:00
Edwin Tung
d183e5478a gps: remove lhd traffic logs
Bug: 193749870
Test: build pass
Change-Id: Ibe1748ec1d983b63b869dde0e3c5295295a630ec
2021-07-22 17:28:31 +00:00
George Lee
99e853801e pixelstats: enable mitigation stats for gs101
Corresponding change to reflect changes that enable mitigation stats.

Bug: 186806028
Test: Local Test.
$>cmd stats print-logs
$>logcat | grep <atom id>

Signed-off-by: George Lee <geolee@google.com>
Change-Id: If4b7185345145c6f25444ed88ef1e4f24becde86
2021-07-22 17:03:32 +00:00
Petri Gynther
645bea6054 gs101: use prebuilt GKI boot.img for production builds
Use:
* boot-user.img for -user builds
* boot.img for -userdebug and -eng builds

Bug: 188095549
Test: make dist (oriole-user)
Test: make dist (oriole-userdebug)
Change-Id: Ic4df227f2b4c261297272f17e6645b7ce1f5d4f3
2021-07-22 16:08:00 +00:00
Edwin Tung
f5ec0f6726 gps: prevent lhd hold wakelock
Bug: 193549062
Test: build pass and SUPL pass
Change-Id: Iff8407634350b47457108632445dc9deb58e35b4
2021-07-22 15:24:13 +00:00
Sunyoung Kang
6125b2db19 firmware: mfc: update release signed MFC F/W(21/07/20)
- Implemented the IDR-frame encoding on H.264 Hierarchical-B
	all-layer Open GOP
- Fix the HEVC decoder 161-warning bug which return continuous
	161-warning when the stream is only CRA + RASL frame
- Fix the HEVC encoder bug which VPS/SPS/PPS is added at every
	frame when I-period is changed

Bug: 192819468
Bug: 193761849
Bug: 193393118
Test: Verify repro step in bugs
Change-Id: I0fd6f7354890c90041a5438b52b7c4baa91a944e
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
Signed-off-by: wenchangliu <wenchangliu@google.com>
2021-07-22 14:53:47 +00:00
TeYuan Wang
d0a506b5d9 thermal: Enable thermalHAL in off charging mode
To support USB port overheat protection, we need to launch thermalHAL in
off charging mode.

Bug: 183573049
Test: verified usb port overheat protection in off charging mode with
emul temp

Change-Id: I0b36646d9779c2c1a25f38aafea5ca178bf91be1
2021-07-21 17:09:36 +00:00
Super Liu
4ee5627c11 dumpstate: force touch active by using bugreport specific flag
Bug: 194157915
Test: bugreport works normally for touch.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: Ice27991a4cac9cca875b55241126bc6f88fb62b6
2021-07-21 02:35:34 +00:00
Jimmy Shiu
b653411208 ADPF: taskprofile for uclamp fork reset group
Add ResetUclampGrp and NoResetUclampGrp taskprofiles to manage vendor
uclamp_fork_set flag.

Bug: 191973176
Test: build and manual test
Change-Id: Ia9c5677c7d5855bb874a714678246ee06c9471bb
2021-07-21 00:47:38 +00:00
TeYuan Wang
cf33914f6c thermal: change permission for usbc related thermal sysfs
Bug: 183573049
Test: check permission for usbc related thermal sysfs
Change-Id: Id5af18d9f0fc5acfe29d9b5be3f3beabaa36f480
2021-07-20 23:53:52 +00:00