From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 554346E519 for ; Thu, 30 Jan 2020 01:24:57 +0000 (UTC) From: Vinay Belgaumkar Date: Wed, 29 Jan 2020 17:23:58 -0800 Message-Id: <20200130012358.5798-2-vinay.belgaumkar@intel.com> In-Reply-To: <20200130012358.5798-1-vinay.belgaumkar@intel.com> References: <20200130012358.5798-1-vinay.belgaumkar@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_mmap_offset_exhaustion: Use gem_mmap__device_coherent List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Daniel Vetter List-ID: Allow test to run on platforms that do not have aperture. Signed-off-by: Vinay Belgaumkar Cc: Antonio Argenziano Cc: Chris Wilson Cc: Daniel Vetter --- tests/i915/gem_mmap_offset_exhaustion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/i915/gem_mmap_offset_exhaustion.c b/tests/i915/gem_mmap_offset_exhaustion.c index f243507e..992bc43b 100644 --- a/tests/i915/gem_mmap_offset_exhaustion.c +++ b/tests/i915/gem_mmap_offset_exhaustion.c @@ -60,9 +60,9 @@ create_and_map_bo(int fd) handle = gem_create(fd, OBJECT_SIZE); - ptr = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE); + ptr = gem_mmap__device_coherent(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); - /* touch it to force it into the gtt */ + /* touch it to force backing storage allocation */ *ptr = 0; /* but then unmap it again because we only have limited address space on -- 2.22.0.245.g4d8ec15c66 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev