Skip to content
Snippets Groups Projects
Commit 17d0e16d authored by Janusz Krzysztofik's avatar Janusz Krzysztofik
Browse files

tests/core_hotunplug: Select health checks for initially detected chipset


As soon as we first time open a drm device to be exercised, we identify
its chipset and perform some basic device specific checks.  We also
install a filter that matches the device bus address to make sure we will
exercise still one and the same device after each driver unbind-rebind /
device unplug-rediscover cycle.

However, each time before we select device specific health checks, whether
before or after a driver unbind-rebind / device unplug-rediscover
sequence, we identify the device chipset again.  Besides being more
expensive, that approach could also result in using different set of
health checks should device filters not work as expected.

Store detected chipset type at test start and always use that information
instead of identifying the chipset now and again.

Signed-off-by: default avatarJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Reviewed-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 1e964a73
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment