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

baseline regression in kevin #142

Closed
r-c-n opened this issue Dec 1, 2022 · 4 comments
Closed

baseline regression in kevin #142

r-c-n opened this issue Dec 1, 2022 · 4 comments

Comments

@r-c-n
Copy link

r-c-n commented Dec 1, 2022

The following bootrr tests failed starting on kernel v5.19-rc1:

  • bootrr.cros-ec-accel0-probed
  • bootrr.cros-ec-accel1-probed
  • bootrr.cros-ec-sensors-gyro0-probed
  • bootrr.rockchip-i2s1-probed

Initially discussed in https://lore.kernel.org/chrome-platform/[email protected]/T/#m232b9217365668316bfc59acd6dc5ae2b96d2dc9

The problem seems to be related to how these bootrr tests are defined:

assert_driver_present cros-ec-sensors-driver-present cros-ec-sensors
if kernel_greater_than "5.5"; then
    assert_device_present cros-ec-sensors-accel0-probed cros-ec-sensors cros-ec-accel.11.*
    assert_device_present cros-ec-sensors-accel1-probed cros-ec-sensors cros-ec-accel.13.*
    assert_device_present cros-ec-sensors-gyro0-probed cros-ec-sensors cros-ec-gyro.12.*

    assert_driver_present cros-ec-sensorhub-driver-present cros-ec-sensorhub
    assert_device_present cros-ec-sensorhub-probed cros-ec-sensorhub cros-ec-sensorhub.1.*
else
    assert_device_present cros-ec-sensors-accel0-probed cros-ec-sensors cros-ec-accel.0
    assert_device_present cros-ec-sensors-accel1-probed cros-ec-sensors cros-ec-accel.1
    assert_device_present cros-ec-sensors-gyro0-probed cros-ec-sensors cros-ec-gyro.0
fi

This way of probing the devices doesn't look very future proof, as Brian Norris remarked:

That sounds like we're trying to test kernel implementation details, asynchronous probe race conditions, Makefile / linker ordering, and similar -- not anything that we actually expect to remain stable across kernel versions :(

For instance, in kevin, for v5.19-rc1 onwards these devices are named with a different device index:

/sys/bus/platform/drivers/cros-ec-sensors/cros-ec-gyro.11.auto
/sys/bus/platform/drivers/cros-ec-sensors/cros-ec-accel.12.auto
/sys/bus/platform/drivers/cros-ec-sensors/cros-ec-accel.10.auto

KernelCI dashboard link: https://linux.kernelci.org/test/plan/id/635f585b4cac8cb70ce7db4e/

@computersforpeace
Copy link

The i2s1 failure is because of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b5fbaf7d779f5f02b7f75b080e7707222573be2a

We should just delete that case, and perhaps add a case for the spdif device.

@gctucker
Copy link
Contributor

gctucker commented Dec 9, 2022

Note that it's also possible to check the kernel version in bootrr and look for a different device accordingly, if that makes sense in practice.

@crazoes
Copy link

crazoes commented Dec 23, 2022

@gctucker created this PR for staging kernelci/bootrr#23 as a short term fix. We can avoid checking for the ID in the device name for now.

@padovan
Copy link
Contributor

padovan commented Jul 9, 2024

Old issue. (also we are not tracking kernel test failure/issues through GitHub anymore)

@padovan padovan closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants