Wifi can occasionally cause crashes on the host, and we don't need it for graphics testing. [ 401.084158] Unable to handle kernel paging request at virtual address ff800099ff80ffb2 [ 401.092309] Mem abort info: [ 401.095190] ESR = 0x0000000096000004 [ 401.099045] EC = 0x25: DABT (current EL), IL = 32 bits [ 401.104501] SET = 0, FnV = 0 [ 401.107640] EA = 0, S1PTW = 0 [ 401.110875] FSC = 0x04: level 0 translation fault [ 401.115885] Data abort info: [ 401.118850] ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 [ 401.124489] CM = 0, WnR = 0, TnD = 0, TagAccess = 0 [ 401.129684] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [ 401.135140] [ff800099ff80ffb2] address between user and kernel address ranges [ 401.142468] Internal error: Oops: 0000000096000004 [#1] SMP [ 401.148283] Modules linked in: vhost_vsock vhost vhost_iotlb ipv6 [ 401.154556] CPU: 2 UID: 0 PID: 718 Comm: Wi-Fi HwsimMsg Tainted: G W 6.17.3-gddf65230edb2 #1 PREEMPT Signed-off-by: Valentine Burley <valentine.burley@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39993>
93 lines
2.5 KiB
Bash
Executable file
93 lines
2.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
# shellcheck disable=SC1091 # paths only become valid at runtime
|
|
|
|
. "${SCRIPTS_DIR}/setup-test-env.sh"
|
|
|
|
set -uex
|
|
|
|
section_start cuttlefish_setup "cuttlefish: setup"
|
|
|
|
# Structured tagging check for angle
|
|
if [ -n "${ANGLE_TAG:-}" ]; then
|
|
# Bail out if the ANGLE_TAG differs from what is offered in the system
|
|
ci_tag_test_time_check "ANGLE_TAG"
|
|
fi
|
|
|
|
export PATH=/cuttlefish/bin:$PATH
|
|
export LD_LIBRARY_PATH=/cuttlefish/lib64:${CI_PROJECT_DIR}/install/lib:${LD_LIBRARY_PATH:-}
|
|
|
|
# Pick up a vulkan driver
|
|
ARCH=$(uname -m)
|
|
export VK_DRIVER_FILES=${CI_PROJECT_DIR}/install/share/vulkan/icd.d/${VK_DRIVER}_icd.$ARCH.json
|
|
|
|
syslogd
|
|
|
|
chown root:kvm /dev/kvm
|
|
|
|
pushd /cuttlefish
|
|
|
|
# Add a function to perform some tasks when exiting the script
|
|
function my_atexit()
|
|
{
|
|
section_switch cuttlefish_stop "cuttlefish: stop + storing logs"
|
|
set -x
|
|
set +e # Be resilient and get logs even if stop_cvd fails
|
|
|
|
# shellcheck disable=SC2317
|
|
HOME=/cuttlefish stop_cvd -wait_for_launcher=40
|
|
|
|
# shellcheck disable=SC2317
|
|
cp /cuttlefish/cuttlefish/instances/cvd-1/logs/logcat $RESULTS_DIR
|
|
# shellcheck disable=SC2317
|
|
cp /cuttlefish/cuttlefish/instances/cvd-1/kernel.log $RESULTS_DIR
|
|
# shellcheck disable=SC2317
|
|
cp /cuttlefish/cuttlefish/instances/cvd-1/logs/launcher.log $RESULTS_DIR
|
|
|
|
set -e
|
|
set +x
|
|
section_end cuttlefish_stop
|
|
}
|
|
|
|
# stop cuttlefish if the script ends prematurely or is interrupted
|
|
trap 'my_atexit' EXIT
|
|
trap 'exit 2' HUP INT PIPE TERM
|
|
|
|
ulimit -n 32768
|
|
|
|
VSOCK_BASE=10000 # greater than all the default vsock ports
|
|
VSOCK_CID=$((VSOCK_BASE + (CI_JOB_ID & 0xfff)))
|
|
|
|
HOME=/cuttlefish launch_cvd \
|
|
-daemon \
|
|
-verbosity=INFO \
|
|
-file_verbosity=VERBOSE \
|
|
-vsock_guest_cid=$VSOCK_CID \
|
|
-enable_audio=false \
|
|
-enable_bootanimation=false \
|
|
-enable_minimal_mode=true \
|
|
-enable_modem_simulator=false \
|
|
-enable_wifi=false \
|
|
-guest_enforce_security=false \
|
|
-report_anonymous_usage_stats=no \
|
|
-gpu_mode="$CUTTLEFISH_GPU_MODE" \
|
|
-cpus=${FDO_CI_CONCURRENT:-4} \
|
|
-memory_mb ${CUTTLEFISH_MEMORY:-4096}
|
|
|
|
sleep 1
|
|
|
|
popd
|
|
|
|
# download Android Mesa from S3
|
|
curl-with-retry -O "${FDO_HTTP_CACHE_URI:-}https://${PIPELINE_ARTIFACTS_BASE}/${S3_ANDROID_ARTIFACT_NAME}.tar.zst"
|
|
mkdir /mesa-android
|
|
tar -C /mesa-android -xf ${S3_ANDROID_ARTIFACT_NAME}.tar.zst
|
|
|
|
# shellcheck disable=SC2034 # used externally
|
|
INSTALL="/mesa-android/install"
|
|
|
|
# shellcheck disable=SC2034 # used externally
|
|
ADB=adb
|
|
|
|
# The script exits with the appropriate exit code
|
|
. "$(dirname "$0")/android-runner.sh"
|