Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WiFi basic test #2294

Merged
merged 6 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions config/core/build-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ fragments:
mediatek/mt8195/scp.img
mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
mediatek/WIFI_RAM_CODE_MT7961_1.bin
mrvl/sd8897_uapsta.bin
ath10k/QCA6174/hw3.0/firmware-sdio-6.bin
ath10k/QCA6174/hw3.0/board-2.bin
ath10k/WCN3990/hw1.0/firmware-5.bin
ath10k/WCN3990/hw1.0/board-2.bin
"'


Expand Down Expand Up @@ -510,6 +515,8 @@ fragments:
x86-board:
path: "kernel/configs/x86-board.config"
configs:
- 'CONFIG_ATH10K_PCI=m'
- 'CONFIG_ATH10K=m'
- 'CONFIG_BLK_DEV_NVME=y'
- 'CONFIG_CHARGER_CROS_USBPD=m'
- 'CONFIG_CHARGER_WILCO=m'
Expand Down Expand Up @@ -545,6 +552,9 @@ fragments:
- 'CONFIG_IIO_CROS_EC_SENSORS=m'
- 'CONFIG_IIO=m'
- 'CONFIG_INTEL_ISH_HID=m'
- 'CONFIG_IWLDVM=m'
- 'CONFIG_IWLMVM=m'
- 'CONFIG_IWLWIFI=m'
- 'CONFIG_KEYBOARD_CROS_EC=m'
- 'CONFIG_MEDIA_CAMERA_SUPPORT=y'
- 'CONFIG_MEDIA_SUPPORT=y'
Expand All @@ -556,6 +566,7 @@ fragments:
- 'CONFIG_MMC_SDHCI_PCI=y'
- 'CONFIG_MMC_SDHCI=y'
- 'CONFIG_MMC=y'
- 'CONFIG_MT7921E=m'
- 'CONFIG_NFS_FS=y'
- 'CONFIG_NFS_V2=y'
- 'CONFIG_NFS_V3_ACL=y'
Expand All @@ -567,6 +578,10 @@ fragments:
- 'CONFIG_PINCTRL_SX150X=y'
- 'CONFIG_ROOT_NFS=y'
- 'CONFIG_RTC_DRV_CROS_EC=m'
- 'CONFIG_RTW88_8822CE=m'
- 'CONFIG_RTW88=m'
- 'CONFIG_RTW89_8852AE=m'
- 'CONFIG_RTW89=m'
- 'CONFIG_SERIAL_8250_DW=y'
- 'CONFIG_SERIAL_8250=y'
- 'CONFIG_SND_DESIGNWARE_I2S=m'
Expand Down Expand Up @@ -638,6 +653,19 @@ fragments:
i915/kbl_dmc_ver1_04.bin
rtl_nic/rtl8153a-4.fw
rtl_nic/rtl8153b-2.fw
ath10k/QCA6174/hw3.0/firmware-6.bin
ath10k/QCA6174/hw3.0/board-2.bin
rtw88/rtw8822c_fw.bin
rtw88/rtw8822c_wow_fw.bin
rtw89/rtw8852a_fw.bin
iwlwifi-so-a0-gf-a0-86.ucode
iwlwifi-so-a0-gf-a0.pnvm
iwlwifi-QuZ-a0-hr-b0-77.ucode
iwlwifi-7265D-29.ucode
iwlwifi-cc-a0-77.ucode
mediatek/WIFI_RAM_CODE_MT7961_1.bin
mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
iwlwifi-9000-pu-b0-jf-b0-46.ucode
"'

x86_kvm_guest:
Expand Down
13 changes: 13 additions & 0 deletions config/core/rootfs-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,19 @@ rootfs_configs:
- e2fsprogs
script: "scripts/bullseye-vdso.sh"

bullseye-wifi:
rootfs_type: debos
debian_release: bullseye
arch_list:
- amd64
- arm64
- armhf
extra_packages:
- rfkill
- iw
- iproute2
test_overlay: "overlays/wifi"

sid:
rootfs_type: debos
debian_release: sid
Expand Down
8 changes: 8 additions & 0 deletions config/core/rootfs-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ file_systems:
ramdisk: bullseye-vdso/20230623.0/{arch}/rootfs.cpio.gz
root_type: ramdisk
type: debian
debian_bullseye-wifi_nfs:
boot_protocol: tftp
nfs: bullseye-wifi/20240109.0/{arch}/full.rootfs.tar.xz
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One note: the name of the image should be updated once a bullseye-wifi rootfs image has been built and is available in the KernelCI storage.
I see some staging jobs being run in LAVA (https://lava.collabora.dev/scheduler/alljobs?length=25&search=wifi#table), but they're all failing as such image does not exist yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like bullseye-wifi rootfs image is available from 2024.01.29

params: {}
prompt: '/ #'
ramdisk: bullseye-wifi/20240109.0/{arch}/initrd.cpio.gz
root_type: nfs
type: debian
debian_bullseye_nfs:
boot_protocol: tftp
nfs: bullseye/20230623.0/{arch}/full.rootfs.tar.xz
Expand Down
17 changes: 17 additions & 0 deletions config/core/test-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,12 @@ test_plans:
params:
job_timeout: '20'

wifi-basic: &wifi-basic
Copy link
Contributor

@pawiecz pawiecz Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To other reviewers: although this anchor is not used anywhere yet, it's a placeholder for more complex wifi tests, see e.g. v4l2-decoder-conformance in L698

rootfs: debian_bullseye-wifi_nfs
pattern: 'wifi/{category}-{method}-{protocol}-{rootfs}-wifi-template.jinja2'
params: &wifi-basic-params
job_timeout: '10'

device_types:

acer-R721T-grunt:
Expand Down Expand Up @@ -2341,6 +2347,7 @@ test_configs:
- baseline
- baseline-nfs
- kselftest-cpufreq
- wifi-basic

- device_type: acer-cb317-1h-c3z6-dedede
test_plans:
Expand All @@ -2351,6 +2358,7 @@ test_configs:
test_plans:
- baseline
- baseline-nfs
- wifi-basic

- device_type: acer-chromebox-cxi4-puff
test_plans:
Expand All @@ -2366,6 +2374,7 @@ test_configs:
test_plans:
- baseline
- baseline-nfs
- wifi-basic

- device_type: alpine-db
test_plans:
Expand Down Expand Up @@ -2496,6 +2505,7 @@ test_configs:
- baseline
- baseline-nfs
- kselftest-cpufreq
- wifi-basic

- device_type: asus-cx9400-volteer
test_plans:
Expand All @@ -2508,6 +2518,7 @@ test_configs:
- kselftest-mm
- kselftest-vm
- ltp-ipc
- wifi-basic

- device_type: at91-sama5d2_xplained
test_plans:
Expand Down Expand Up @@ -2611,6 +2622,7 @@ test_configs:
- baseline
- baseline-nfs
- kselftest-cpufreq
- wifi-basic

- device_type: dove-cubox
test_plans:
Expand Down Expand Up @@ -2724,6 +2736,7 @@ test_configs:
- kselftest-alsa
- kselftest-cpufreq
- kselftest-landlock
- wifi-basic

- device_type: hp-x360-12b-ca0500na-n4000-octopus
test_plans:
Expand Down Expand Up @@ -2990,6 +3003,7 @@ test_configs:
- baseline
- baseline-nfs
- kselftest-cpufreq
- wifi-basic

- device_type: meson-g12a-sei510
test_plans:
Expand Down Expand Up @@ -3145,6 +3159,7 @@ test_configs:
- preempt-rt
- sleep
- v4l2-compliance-uvc
- wifi-basic

- device_type: mt8183-kukui-jacuzzi-juniper-sku16
test_plans:
Expand All @@ -3165,6 +3180,7 @@ test_configs:
- preempt-rt
- sleep
- v4l2-compliance-uvc
- wifi-basic

- device_type: mt8192-asurada-spherion-r0
test_plans:
Expand Down Expand Up @@ -3200,6 +3216,7 @@ test_configs:
test_plans:
- baseline
- kselftest-dt
- wifi-basic

- device_type: mt8195-cherry-tomato-r2
test_plans:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends 'boot-nfs/generic-depthcharge-tftp-nfs-template.jinja2' %}

{% block actions %}
{{ super () }}

{% include 'wifi/wifi.jinja2' %}

{% endblock %}
8 changes: 8 additions & 0 deletions config/lava/wifi/generic-grub-tftp-nfs-wifi-template.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends 'boot-nfs/generic-grub-tftp-nfs-template.jinja2' %}

{% block actions %}
{{ super () }}

{% include 'wifi/wifi.jinja2' %}

{% endblock %}
11 changes: 11 additions & 0 deletions config/lava/wifi/generic-qemu-wifi-template.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends 'boot/generic-qemu-boot-template.jinja2' %}
{% block actions %}
{{ super () }}

{% include 'wifi/wifi.jinja2' %}

{% endblock %}

{%- block image_arg %}
image_arg: '-kernel {kernel} -append "console={{ console_dev }},115200 root=/dev/ram0 debug verbose {{ extra_kernel_args }}"'
{%- endblock %}
8 changes: 8 additions & 0 deletions config/lava/wifi/generic-uboot-tftp-nfs-wifi-template.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends 'boot-nfs/generic-uboot-tftp-nfs-template.jinja2' %}

{% block actions %}
{{ super () }}

{% include 'wifi/wifi.jinja2' %}

{% endblock %}
19 changes: 19 additions & 0 deletions config/lava/wifi/wifi.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- test:
timeout:
minutes: {{ job_timeout }}
definitions:
- repository:
metadata:
format: Lava-Test Test Definition 1.0
name: {{ plan }}
description: "WiFi test plan"
os:
- debian
scope:
- functional
run:
steps:
- KERNELCI_LAVA=y /usr/bin/wifi-basic-parser.sh
from: inline
name: {{ plan }}
path: inline/{{ plan }}.yaml
Loading
Loading