diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-24 16:08:32 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-24 16:29:27 +0100 |
commit | 57259d714d3fe1170cf931af72648219856a9918 (patch) | |
tree | 0935c8d34785f96c0227b02834c2d2e2d50dadb3 /tests/kms_pwrite_crc.c | |
parent | d8078911f63494eba67f8f07ffb56c4bdeae7bc9 (diff) |
lib/igt_debugfs: Don't setup crc in _new
The problem is that this causes writes to registers, and if the pipe
is off they might go nowhere (e.g. when runtime pm is enabled).
Furthermore we can only really check once the modeset setup is done,
but again most tests set up the CRC structure before calling
igt_commit and friends. We could add crc restore support to the
kernel's rpm code, but that will end up being rather invasive and
fragile hard-to-test code.
Now originally this was needed back when CRC support wasn't available
everywhere. But that's fixed now.
So given all this just drop that sanity check and make sure that we
only touch the debugfs file (and so the hw state) when we know the
pipe is running in the desired configuration.
A complementary kernel patch will try to catch offenders by returning
-EIO if the pipe is off.
v2: Forgot to git add one hunk.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86092
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/kms_pwrite_crc.c')
-rw-r--r-- | tests/kms_pwrite_crc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/kms_pwrite_crc.c b/tests/kms_pwrite_crc.c index 9c5dabfc..aa1d3a30 100644 --- a/tests/kms_pwrite_crc.c +++ b/tests/kms_pwrite_crc.c @@ -136,11 +136,6 @@ static bool prepare_crtc(data_t *data) data->pipe_crc = igt_pipe_crc_new(data->pipe, INTEL_PIPE_CRC_SOURCE_AUTO); - if (!data->pipe_crc) { - igt_info("auto crc not supported on this connector with pipe %i\n", - data->pipe); - return false; - } /* get reference crc for the white fb */ igt_pipe_crc_collect_crc(data->pipe_crc, &data->ref_crc); |