From patchwork Fri Jul 14 15:18:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 107808 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1034719qge; Fri, 14 Jul 2017 08:19:39 -0700 (PDT) X-Received: by 10.98.149.198 with SMTP id c67mr5825848pfk.134.1500045579242; Fri, 14 Jul 2017 08:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500045579; cv=none; d=google.com; s=arc-20160816; b=JtPPA/LX5JRllhvvz2hVSuYQLlbsdw+09NiIbqY9z8nuapeAjntrhWsN5dnc5FxpSh ikjOZZ2PPI5iFKpx9RB84Ove+8XGfXIicbr4LsyEwhh6zbvxC0kEQQpqQufYdtD1J8de vSkzZbzAyQyZONOVHMMXQHwhbTH2xZRskHgs58k028pRtcWC+IL2fDPHvpNiXIXqDDWG m1kqaPHo14ICLDBoNTIYbaxk2sIIVmuUoBlpTSdxj0P91+vgf4uHDyS0SuSjmhKt7DYI MZ+SVKQqcA4uEpVxbTrtpeCNAInGDBRTZgXdqvDe72tD/cRkf96QveIeyAXNZb1tLmCX m1/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=RmPqHD01bNGZ7yQY9VzIeDqE5gIEIxrz8J4qq9czIm0=; b=GnxVW/Op1g24KReUdaQPxHLIBGNcpwwttizO6g+0MBXYUjXtbEqvxV1oN2Vao7s0yv bEg6rAnw03WrV9nPklWkn/qmI3V4F65tUSGtHtdt0pBPFZYfzIsyO4oIfv6MTddGyxQ9 gIqWliIvo8JOPtUtxUMF5ChmLZP6bjbj675O7qzFCfeg4DKWcrdt/8CMDP1tHKXCA05Z ui4VIJPP4Xds/P6jS409Q1U3hq6695P1faaPR9toPRyBQjwTgUbRPGduVamqot92jYzw MePx4JKT/B75bkhPW/0gc+fkGB/+RikLoFbXvZ4u5NP+yJVuI7VAH4ssCZF0cPzDgZm3 d4yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id q20si6681770pfq.106.2017.07.14.08.19.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 08:19:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 759126E86F; Fri, 14 Jul 2017 15:19:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9FB5E6E865; Fri, 14 Jul 2017 15:19:01 +0000 (UTC) Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.9]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id v6EFIuFJ000867; Fri, 14 Jul 2017 16:18:56 +0100 From: Liviu Dudau To: Intel GFX discussion Subject: [PATCH i-g-t v2 0/7] igt: Add support for testing writeback connectors Date: Fri, 14 Jul 2017 16:18:49 +0100 Message-Id: <20170714151856.32041-1-liviu.dudau@arm.com> X-Mailer: git-send-email 2.13.2 Cc: Boris Brezillon , DRI devel X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" We're trying to introduce support for writeback connectors, a way to expose in DRM the hardware functionality from display engines that allows to write back into memory the result of the DE's composition of supported planes. Generic DRM support is available here [1] and will be merged once this patchset gets approved for inclusion into igt. VC4 support for writeback is added here [2] and for mali-dp is added here [3]. Changelog: - v2: Rebased on top of a844ccbdbab9fd16c37de81281c6281bc800e97a - v1: Original (re)submission [4] Many thanks, Liviu [1] https://lists.freedesktop.org/archives/dri-devel/2017-May/141796.html [2] https://lists.freedesktop.org/archives/dri-devel/2017-June/143337.html [3] https://lists.freedesktop.org/archives/dri-devel/2017-May/141799.html [4] https://lists.freedesktop.org/archives/intel-gfx/2017-July/132344.html Brian Starkey (7): igt: lib/igt_crc: Split out CRC functionality lib/igt_kms: Add writeback support in lib/ kms_writeback: Add initial writeback tests lib: Add function to hash a framebuffer kms_writeback: Add writeback-check-output lib/igt_kms: Add igt_output_clone_pipe for cloning kms_writeback: Add tests using a cloned output lib/Makefile.sources | 2 + lib/igt_aux.c | 1 + lib/igt_chamelium.h | 1 + lib/igt_crc.c | 563 ++++++++++++++++++++++++++++++++++++++ lib/igt_crc.h | 125 +++++++++ lib/igt_debugfs.c | 547 ------------------------------------ lib/igt_debugfs.h | 81 ------ lib/igt_fb.c | 65 +++++ lib/igt_fb.h | 5 + lib/igt_kms.c | 172 +++++++++--- lib/igt_kms.h | 26 ++ tests/Makefile.sources | 1 + tests/chamelium.c | 1 + tests/kms_atomic_transition.c | 1 + tests/kms_ccs.c | 1 + tests/kms_chv_cursor_fail.c | 1 + tests/kms_crtc_background_color.c | 1 + tests/kms_cursor_crc.c | 1 + tests/kms_cursor_legacy.c | 1 + tests/kms_draw_crc.c | 1 + tests/kms_fbc_crc.c | 1 + tests/kms_flip_tiling.c | 1 + tests/kms_frontbuffer_tracking.c | 1 + tests/kms_mmap_write_crc.c | 1 + tests/kms_mmio_vs_cs_flip.c | 1 + tests/kms_pipe_color.c | 1 + tests/kms_pipe_crc_basic.c | 1 + tests/kms_plane.c | 1 + tests/kms_plane_lowres.c | 1 + tests/kms_plane_multiple.c | 1 + tests/kms_plane_scaling.c | 1 + tests/kms_pwrite_crc.c | 1 + tests/kms_rotation_crc.c | 1 + tests/kms_universal_plane.c | 1 + tests/kms_writeback.c | 541 ++++++++++++++++++++++++++++++++++++ tools/intel_display_crc.c | 1 + 36 files changed, 1487 insertions(+), 666 deletions(-) create mode 100644 lib/igt_crc.c create mode 100644 lib/igt_crc.h create mode 100644 tests/kms_writeback.c