From: Zhao Yakui Subject: [PATCH I-g-t 0/2] Tests: Add two test cases based on multi drm_fd to test sync Date: Mon, 14 Apr 2014 12:19:56 +0800 Message-ID: <1397449198-3148-1-git-send-email-yakui.zhao@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id A18326E6C3 for ; Sun, 13 Apr 2014 21:31:07 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This follows Daniel's advice to add the two test cases based on multi drm_fd to test the ring sync and CPU<->GPU sync. The Broadwell GT3 machine has two independent BSD rings that can be used to process the video commands. This is implemented in kernel driver and transparent to the user-space. But we still need to check the ring sync and CPU<->GPU sync for the second BSD ring. Two tests are created based on the multi drm_fds to test the sync. Multi drm_fd can assure that the second BSD ring has the opportunity to dispatch the GPU command. Zhao Yakui (2): tests: Add one ring sync case based on multi drm_fd to test ring semaphore sync under multi BSD rings tests: Add dummy_reloc test case based on multi drm_fd to test CPU<->GPU sync under multi BSD rings tests/Makefile.sources | 2 + tests/gem_dummy_reloc_multi_bsd.c | 258 +++++++++++++++++++++++++++++++++++++ tests/gem_multi_bsd_sync_loop.c | 172 +++++++++++++++++++++++++ 3 files changed, 432 insertions(+) create mode 100644 tests/gem_dummy_reloc_multi_bsd.c create mode 100644 tests/gem_multi_bsd_sync_loop.c -- 1.7.10.1