mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 17:06:14 +00:00
tests/pm_pc8: add reg-read-ioctl subtest
After I finally fixed the code that WARNs if we're runtime suspended when reading registers I started getting the WARNs, so this test should reproduce them on a Kernel with the problem. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
81ade89d64
commit
31b20f7478
@ -1391,6 +1391,21 @@ static void gem_idle_subtest(void)
|
|||||||
gem_quiescent_gpu(drm_fd);
|
gem_quiescent_gpu(drm_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* This also triggered WARNs on dmesg at some point. */
|
||||||
|
static void reg_read_ioctl_subtest(void)
|
||||||
|
{
|
||||||
|
struct drm_i915_reg_read rr = {
|
||||||
|
.offset = 0x2358, /* render ring timestamp */
|
||||||
|
};
|
||||||
|
|
||||||
|
disable_all_screens(&ms_data);
|
||||||
|
igt_assert(wait_for_suspended());
|
||||||
|
|
||||||
|
do_ioctl(drm_fd, DRM_IOCTL_I915_REG_READ, &rr);
|
||||||
|
|
||||||
|
igt_assert(wait_for_suspended());
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int rounds = 50;
|
int rounds = 50;
|
||||||
@ -1434,6 +1449,8 @@ int main(int argc, char *argv[])
|
|||||||
gem_idle_subtest();
|
gem_idle_subtest();
|
||||||
|
|
||||||
/* Misc */
|
/* Misc */
|
||||||
|
igt_subtest("reg-read-ioctl")
|
||||||
|
reg_read_ioctl_subtest();
|
||||||
igt_subtest("i2c")
|
igt_subtest("i2c")
|
||||||
i2c_subtest();
|
i2c_subtest();
|
||||||
igt_subtest("pc8-residency")
|
igt_subtest("pc8-residency")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user