Snap for 9121979 from 9913685877
to udc-release
Change-Id: I8d60cb2a557eef1c066f6b8b869368702306143b
This commit is contained in:
commit
017ea641cc
5 changed files with 12 additions and 60 deletions
|
@ -194,3 +194,6 @@ on property:sys.usb.config=charger && property:sys.usb.configfs=1
|
|||
|
||||
on property:ro.bootmode=usbuwb
|
||||
setprop persist.vendor.usb.usbradio.config uwb_acm
|
||||
|
||||
on property:vendor.usb.contaminantdisable=true
|
||||
exec /vendor/bin/hw/disable_contaminant_detection.sh
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#
|
||||
|
||||
include device/google/gs-common/device.mk
|
||||
include device/google/gs-common/gs_watchdogd/watchdog.mk
|
||||
|
||||
TARGET_BOARD_PLATFORM := gs201
|
||||
|
||||
|
@ -327,6 +328,7 @@ PRODUCT_COPY_FILES += \
|
|||
# Shell scripts
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/gs201/init.display.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.display.sh \
|
||||
device/google/gs201/disable_contaminant_detection.sh:$(TARGET_COPY_OUT_VENDOR)/bin/hw/disable_contaminant_detection.sh
|
||||
|
||||
include device/google/gs-common/insmod/insmod.mk
|
||||
|
||||
|
|
7
disable_contaminant_detection.sh
Normal file
7
disable_contaminant_detection.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/vendor/bin/sh
|
||||
|
||||
for f in /sys/devices/platform/10d60000.hsi2c/i2c-*/i2c-max77759tcpc; do
|
||||
if [ -d $f ]; then
|
||||
echo 0 > $f/contaminant_detection;
|
||||
fi
|
||||
done
|
|
@ -43,8 +43,6 @@
|
|||
#define GPS_LOG_NUMBER_PROPERTY "persist.vendor.gps.aol.log_num"
|
||||
#define GPS_LOGGING_STATUS_PROPERTY "vendor.gps.aol.enabled"
|
||||
|
||||
#define UFS_BOOTDEVICE "ro.boot.bootdevice"
|
||||
|
||||
#define TCPDUMP_LOG_DIRECTORY "/data/vendor/tcpdump_logger/logs"
|
||||
#define TCPDUMP_NUMBER_BUGREPORT "persist.vendor.tcpdump.log.br_num"
|
||||
#define TCPDUMP_PERSIST_PROPERTY "persist.vendor.tcpdump.log.alwayson"
|
||||
|
@ -226,7 +224,6 @@ Dumpstate::Dumpstate()
|
|||
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
|
||||
{ "modem", [this](int fd) { dumpModemSection(fd); } },
|
||||
{ "soc", [this](int fd) { dumpSocSection(fd); } },
|
||||
{ "storage", [this](int fd) { dumpStorageSection(fd); } },
|
||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
||||
{ "cpu", [this](int fd) { dumpCpuSection(fd); } },
|
||||
|
@ -956,62 +953,6 @@ void Dumpstate::dumpMemorySection(int fd) {
|
|||
"done"});
|
||||
}
|
||||
|
||||
static void DumpUFS(int fd) {
|
||||
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");
|
||||
DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev");
|
||||
DumpFileToFd(fd, "UFS size", "/sys/block/sda/size");
|
||||
|
||||
DumpFileToFd(fd, "UFS Slow IO Read", "/dev/sys/block/bootdevice/slowio_read_cnt");
|
||||
DumpFileToFd(fd, "UFS Slow IO Write", "/dev/sys/block/bootdevice/slowio_write_cnt");
|
||||
DumpFileToFd(fd, "UFS Slow IO Unmap", "/dev/sys/block/bootdevice/slowio_unmap_cnt");
|
||||
DumpFileToFd(fd, "UFS Slow IO Sync", "/dev/sys/block/bootdevice/slowio_sync_cnt");
|
||||
|
||||
RunCommandToFd(fd, "UFS err_stats", {"/vendor/bin/sh", "-c",
|
||||
"path=\"/dev/sys/block/bootdevice/err_stats\"; "
|
||||
"for node in `ls $path/* | grep -v reset_err_status`; do "
|
||||
"printf \"%s:%d\\n\" $(basename $node) $(cat $node); done;"});
|
||||
|
||||
|
||||
RunCommandToFd(fd, "UFS io_stats", {"/vendor/bin/sh", "-c",
|
||||
"path=\"/dev/sys/block/bootdevice/io_stats\"; "
|
||||
"printf \"\\t\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"ReadCnt ReadBytes WriteCnt WriteBytes RWCnt RWBytes; "
|
||||
"str=$(cat $path/*_start); arr=($str); "
|
||||
"printf \"Started: \\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"${arr[1]} ${arr[0]} ${arr[5]} ${arr[4]} ${arr[3]} ${arr[2]}; "
|
||||
"str=$(cat $path/*_complete); arr=($str); "
|
||||
"printf \"Completed: \\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"${arr[1]} ${arr[0]} ${arr[5]} ${arr[4]} ${arr[3]} ${arr[2]}; "
|
||||
"str=$(cat $path/*_maxdiff); arr=($str); "
|
||||
"printf \"MaxDiff: \\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\\n\" "
|
||||
"${arr[1]} ${arr[0]} ${arr[5]} ${arr[4]} ${arr[3]} ${arr[2]}; "});
|
||||
|
||||
RunCommandToFd(fd, "UFS req_stats", {"/vendor/bin/sh", "-c",
|
||||
"path=\"/dev/sys/block/bootdevice/req_stats\"; "
|
||||
"printf \"\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"All Write Read Security Flush Discard; "
|
||||
"str=$(cat $path/*_min); arr=($str); "
|
||||
"printf \"Min:\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"${arr[0]} ${arr[5]} ${arr[3]} ${arr[4]} ${arr[2]} ${arr[1]}; "
|
||||
"str=$(cat $path/*_max); arr=($str); "
|
||||
"printf \"Max:\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"${arr[0]} ${arr[5]} ${arr[3]} ${arr[4]} ${arr[2]} ${arr[1]}; "
|
||||
"str=$(cat $path/*_avg); arr=($str); "
|
||||
"printf \"Avg.:\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" "
|
||||
"${arr[0]} ${arr[5]} ${arr[3]} ${arr[4]} ${arr[2]} ${arr[1]}; "
|
||||
"str=$(cat $path/*_sum); arr=($str); "
|
||||
"printf \"Count:\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\\n\" "
|
||||
"${arr[0]} ${arr[5]} ${arr[3]} ${arr[4]} ${arr[2]} ${arr[1]};"});
|
||||
|
||||
std::string ufs_health = "for f in $(find /dev/sys/block/bootdevice/health_descriptor -type f); do if [[ -r $f && -f $f ]]; then echo --- $f; cat $f; echo ''; fi; done";
|
||||
RunCommandToFd(fd, "UFS health", {"/vendor/bin/sh", "-c", ufs_health.c_str()});
|
||||
}
|
||||
|
||||
// Dump items related to storage
|
||||
void Dumpstate::dumpStorageSection(int fd) {
|
||||
DumpUFS(fd);
|
||||
}
|
||||
|
||||
// Dump items related to display
|
||||
void Dumpstate::dumpDisplaySection(int fd) {
|
||||
DumpFileToFd(fd, "CRTC-0 underrun count", "/sys/kernel/debug/dri/0/crtc-0/underrun_cnt");
|
||||
|
|
|
@ -61,7 +61,6 @@ class Dumpstate : public BnDumpstateDevice {
|
|||
void dumpCpuSection(int fd);
|
||||
void dumpDevfreqSection(int fd);
|
||||
void dumpMemorySection(int fd);
|
||||
void dumpStorageSection(int fd);
|
||||
void dumpDisplaySection(int fd);
|
||||
void dumpSensorsUSFSection(int fd);
|
||||
void dumpAoCSection(int fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue