[Intel-gfx] [PATCH 1/2] mm: Handle prefault for size >= 2GB

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Mon Feb 13 10:48:38 UTC 2017


On ma, 2017-02-13 at 12:14 +0530, Sagar Arun Kamble wrote:
> From: "sagar.a.kamble at intel.com" <sagar.a.kamble at intel.com>

https://kernel.org/doc/html/latest/process/submitting-patches.html#the-
canonical-patch-format

# git config --global user.name "Sagar Arun Kamble"

> i915 gem_exec_reloc subtests *-31 exercise relocation entries object
> that is of size >=2GB. This patch will allow prefaulting >=2GB size.
> 
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Sagar Arun Kamble <sagar.a.kamble at intel.com>

<SNIP>

> @@ -538,7 +538,8 @@ static inline void wait_on_page_writeback(struct page *page)
>  /*
>   * Fault everything in given userspace address range in.
>   */
> -static inline int fault_in_pages_writeable(char __user *uaddr, int size)
> +static inline int fault_in_pages_writeable(char __user *uaddr,
> +					   unsigned long size)
>  {
>  	char __user *end = uaddr + size - 1;

ptrdiff_t would be more appropriate for both functions. With those and
correct "From:", this is;

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list