Disable cgroup kernel memory accounting to avoid unnecessary overhead
similar change ag/22891292 but now back-port to gs201
Flag: NONE kernel config
Bug: 373232814
Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases
-t com.google.android.perfwbs.pts.KernelModuleTest
and alternative tests on forrest.
Change-Id: I306b3e608655dc9e5f868a1f1a79e60e5b9b40fd
This patch prevents a Null Pointer Exception in
queryMoistureDetectionStatus() when getPortStatusHelper() fails to open
the /sys/class/typec file. The failure results in an empty
currentPortStatus vector, causing the NPE when accessing its first
element.
Bug: 361097811
Flag: EXEMPT bugfix
Test: NPE does not occur when getPortStatusHelper() fails
Change-Id: I61c9f7647aafca28b777e53f170764ddd02c060f
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
We're going to transition to using the kernel copy, not the HLOS copy.
Bug: 369686096
Test: build, flash, check /vendor_dlkm/etc/ (may or may not exist,
depending on kernel contents)
Flag: build.RELEASE_KERNEL_CHEETAH_DIR
Flag: build.RELEASE_KERNEL_FELIX_DIR
Flag: build.RELEASE_KERNEL_LYNX_DIR
Flag: build.RELEASE_KERNEL_PANTHER_DIR
Flag: build.RELEASE_KERNEL_TANGORPRO_DIR
Change-Id: I4c4350b8f77017902b75c8c077fcefbff6012d83
The I/O scheduler was changed to mq-deadline in ag/29073420,
making the previous BFQ configuration obsolete.
This commit removes the following lines which no longer
have any effect.
Bug: 186902601
Test: forrest build
Change-Id: I5d662e9762809f2d0598a7e980ef0468ac8aff38
Bug: 271887637
Test: Built and flashed on local device
Flag: build.RELEASE_SYSTEMUI_USE_SPEED_PROFILE
Change-Id: I49900d45a60f9f4b3bc15a4027751be30f63e272
Ported from I248fb250b94cbd4078e7f3c44da83f62002b53fb with some
modifications.
Bug: 369474465
Test: checked the content in dumpstate
Flag: EXEMPT bugfix
Change-Id: I405c15db38f084017599c465e8c3d49e0e1b2f3e
Signed-off-by: Kyle Tso <kyletso@google.com>
This variable only does something when it differs from
TARGET_CPU_VARIANT. Setting it to the same values doesn't do
anything.
Bug: 368635026
Test: presubmit
Change-Id: I15a3b367df0a5be2de23f535f9f9df0866dd306a
Bug: 347122505
Test: check the priority and latency of input thread in Perffeto
Flag: NONE early device setting updates
Change-Id: Ia05fc4592ebe3946a52e10e435bc8f8cef7becc9
std::vector<const T> uses std::allocator<const T>, which is an
undocumented libc++ extension to the C++ standard library. The extension
was removed in llvm.org/PR96319. Use an ordinary non-const T instead.
Bug: http://b/349681543
Test: m android.hardware.power.stats-impl.gs201
Flag: EXEMPT, refactor to fix build failure
Change-Id: Ic355f68c4ebb09e204ea3fb4822940aad07ccd7b
am skip reason: Merged-In Ib3cc0c6ad576e7cda26b7f50cdc61d52e6349c78 with SHA-1 cb51a640f4 is already in history
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3258434
Change-Id: Iace0355cab3fa84d65aa835aecb5cc2c7b528d50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
am skip reason: Merged-In Ib3cc0c6ad576e7cda26b7f50cdc61d52e6349c78 with SHA-1 cb51a640f4 is already in history
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/3258434
Change-Id: Ifaed61f09391c67f23f8bf0d4a15bdf2e9177644
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This variable doesn't do anything for devices launching with
API level 26 or later, and the initial gs201 devices (Pixel 7)
launched with API level 33.
Bug: 307369186
Test: presubmit
Flag: EXEMPT trivial build cleanup
Change-Id: I35bdec5d9e21abb25f12c0ad9681d3dee01aee67
The mq-deadline I/O scheduler is more stable than BFQ. Additionally, the
boot time is shorter with the mq-deadline I/O scheduler. It only changes the scheduler on new kernel.
Bug: 186902601
Test: forrest build
Change-Id: I5d336b3f146ca673c83c03304773d0ccf4c01e77
Signed-off-by: Ocean Chen <oceanchen@google.com>
system/core/init/init.cpp SetUsbController picks the first udc device if
there're multiple udc devices present on the system to populate
sys.usb.controller system property.
CONFIG_USB_DUMMY_HCD enabled in kernel-5.10 GKI would introduce a
dummy udc device named "dummy_udc.0". Depends on timing, the dummy
device might be picked up by the init process and incorrectly populate
sys.usb.controller.
This issue only applies to devices on kernel-5.10 GKI, the WAR is to
overwrite the sysprop if it's incorrectly populated by the dummy udc.
Bug: 333778731
Test: tested on Cheetah
Flag: EXEMPT bugfix
Change-Id: I7555dda7f0bb436200ef7cd8a46b785232187cfd
Some external hubs have the same VID and PID as the internal hub,
causing unintended hub tuning and compatibility issues.
This patch restricts hub tuning to only the internal hub located on
bus 1, port 1 when enable_hub is set to 1.
Bug: 353650207
Test: Verified an external GL852G speakerphone dock works when docked.
Test: adb shell cmd android.hardware.usb.IUsb/default hub-vendor-cmd
<hex wValue> <hex wIndex>
Flag: EXEMPT bugfix
Change-Id: If2cfe6684e4f5fafaab34bf7a4e4b4cd464d6575
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Bug: 340860065
Flag: EXEMPT this is a boot time parameter
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: Id8ce33fac746f3a873c69461f7f9054b274603d9
Set the variable is true when USE_LASSEN_OEMHOOK is true and
BOARD_WITHOUT_RADIO is not true.
Flag: EXEMPT bugfix
Bug: 325857852
Test: m ConnectivityMonitor
Change-Id: I10d1b9b198db960d1d6af0a69044907c8043c4e6
Pixel has removed unnecessary allocation padding, and we now pass
dEQP with a maximum physical core index setting of 4, which allows
the driver to utilize 4 GPU cores (1111b) in the extreme tests.
Bug: 221255664
Test: L10 atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.protected_memory.*'
Flag: EXEMPT bugfix
Change-Id: Iee15ed0d929f648ad45f7d5fe708e8cb14296e6f
Remove irrelevant copy and paste content. None of the gs201
devices ever included these services and these sockets are
not doing anything.
Bug: 234559097
Test: presubmit
Flag: EXEMPT dead code removal
Change-Id: I60698b026c2e456296943adc8c2a2f03fe3dd867