[Intel-gfx] [PATCH 1/2] mm: Handle prefault for size >= 2GB
Kamble, Sagar A
sagar.a.kamble at intel.com
Mon Feb 13 15:53:36 UTC 2017
On 2/13/2017 4:18 PM, Joonas Lahtinen wrote:
> 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"
Thanks Joonas. Even though ~/.gitconfig has user.name set properly
"From" is not getting set properly.
Will find out the problem.
>
>> 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
More information about the Intel-gfx
mailing list