diff mbox

[i-g-t] Use uint64_t in eviction memory subtest parameters

Message ID 1454943039-31354-1-git-send-email-mika.kuoppala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mika Kuoppala Feb. 8, 2016, 2:50 p.m. UTC
With large apertures we need to use uint64_t for
counts and sizes. commit 0e2071411a4d4e1488a821daf522dffde2809e03
paved way for this but forgot to change the subtest parameters.

References: https://bugs.freedesktop.org/show_bug.cgi?id=93849
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 tests/gem_evict_alignment.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Comments

Chris Wilson Feb. 10, 2016, 3:22 p.m. UTC | #1
On Mon, Feb 08, 2016 at 04:50:39PM +0200, Mika Kuoppala wrote:
> With large apertures we need to use uint64_t for
> counts and sizes. commit 0e2071411a4d4e1488a821daf522dffde2809e03
> paved way for this but forgot to change the subtest parameters.
> 
> References: https://bugs.freedesktop.org/show_bug.cgi?id=93849
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
> ---
>  tests/gem_evict_alignment.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c
> index 6fa70f0cd0f9..d7d0ed0aec73 100644
> --- a/tests/gem_evict_alignment.c
> +++ b/tests/gem_evict_alignment.c
> @@ -129,10 +129,11 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo, int alignme

int n_bo.
int alignment
-Chris
diff mbox

Patch

diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c
index 6fa70f0cd0f9..d7d0ed0aec73 100644
--- a/tests/gem_evict_alignment.c
+++ b/tests/gem_evict_alignment.c
@@ -129,10 +129,11 @@  copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo, int alignme
 	free(obj);
 }
 
-static void minor_evictions(int fd, int size, int count)
+static void minor_evictions(int fd, uint64_t size, uint64_t count)
 {
 	uint32_t *bo, *sel;
-	int n, m, alignment, pass, fail;
+	uint64_t n, m, alignment;
+	int pass, fail;
 
 	intel_require_memory(2 * count, size, CHECK_RAM);
 
@@ -159,9 +160,10 @@  static void minor_evictions(int fd, int size, int count)
 	free(bo);
 }
 
-static void major_evictions(int fd, int size, int count)
+static void major_evictions(int fd, uint64_t size, uint64_t count)
 {
-	int n, m, loop, alignment, max;
+	uint64_t n, m, alignment, max;
+	int loop;
 	uint32_t *bo;
 
 	intel_require_memory(count, size, CHECK_RAM);