Skip to content
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
6 changes: 5 additions & 1 deletion .github/workflows/apple-build-kunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
paths:
- 'arch/arm64/configs/**'
- 'drivers/accel/ane/**'
- 'drivers/dma/apple-sio*'
- 'drivers/gpu/drm/apple/**'
- 'drivers/gpu/drm/asahi/**'
- 'drivers/hid/spi-hid/**'
Expand Down Expand Up @@ -72,6 +73,7 @@ on:
paths:
- 'arch/arm64/configs/**'
- 'drivers/accel/ane/**'
- 'drivers/dma/apple-sio*'
- 'drivers/gpu/drm/apple/**'
- 'drivers/gpu/drm/asahi/**'
- 'drivers/hid/spi-hid/**'
Expand Down Expand Up @@ -151,14 +153,15 @@ jobs:
for opt in RUST=y DRM_ASAHI=m DRM_APPLE=m DRM_ACCEL_ANE=m VIDEO_APPLE_AVD=m \
NVME_APPLE=m APPLE_DART=y PCIE_APPLE=y USB4=m USB4_APPLE_SOC=m \
SPI_HID_APPLE_OF=m MFD_MACSMC=y MACSMC_POWER=m POWER_RESET_MACSMC=m \
APPLE_SEP=m KSM=y MM_SUBPAGE=y APPLE_CENTAURI_T6050_WIFI=y; do
APPLE_SEP=m APPLE_SIO=m KSM=y MM_SUBPAGE=y APPLE_CENTAURI_T6050_WIFI=y; do
grep -qx "CONFIG_$opt" .config || { echo "::error::CONFIG_$opt is not set"; exit 1; }
done
- name: Compile the Apple drivers
run: |
make -j"$(nproc)" LLVM=1 ARCH=arm64 modules_prepare
make -j"$(nproc)" LLVM=1 ARCH=arm64 \
drivers/accel/ane/ \
drivers/dma/apple-sio.o \
drivers/gpu/drm/apple/ \
drivers/gpu/drm/asahi/ \
drivers/hid/spi-hid/ \
Expand Down Expand Up @@ -192,6 +195,7 @@ jobs:
- { suite: dcp-fabric, kunitconfig: drivers/gpu/drm/apple/tests/.kunitconfig }
- { suite: dcp-topology, kunitconfig: drivers/gpu/drm/apple/tests/topology.kunitconfig }
- { suite: asahi, kunitconfig: drivers/gpu/drm/asahi/.kunitconfig, rust: true }
- { suite: apple-sio, kunitconfig: drivers/dma/apple-sio.kunitconfig }
- { suite: spi-hid-apple, kunitconfig: drivers/hid/spi-hid/.kunitconfig }
# avd-pm.kunitconfig runs the same AVD suites. PM_SLEEP, which it
# adds, is already on by default on arm64.
Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2715,6 +2715,7 @@ F: drivers/dma/apple-sio-probe-test.dtso
F: drivers/dma/apple-sio-t6030-test.dtso
F: drivers/dma/apple-sio-test.c
F: drivers/dma/apple-sio.c
F: drivers/dma/apple-sio.kunitconfig
F: include/linux/dma/apple-sio.h
F: sound/soc/apple/*
F: sound/soc/codecs/cs42l83-i2c.c
Expand Down
8 changes: 7 additions & 1 deletion drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ config APPLE_SIO_KUNIT_TEST
Also check protocol-9 table order, DMA array counts and ACK failures.
And check that a firmware ACK, NACK or report naming a tag that
is not outstanding, or a channel the device does not have, is
dropped.
dropped; that a reply answers only the request its tag was handed
out for, on that request's endpoint and of its reply type; and
that a call that timed out keeps its tag until its late reply,
which answers nothing else, with calls refused while half the
tags are kept so. Also check that a transfer whose TERMINATE was
refused or not answered keeps its descriptors, and that synchronizing
the channel waits until it is stopped.

config APPLE_SIO_T6030_KUNIT_TEST
bool "KUnit tests for the T6030 SIO boot-table check" if !KUNIT_ALL_TESTS
Expand Down
Loading
Loading