Skip to contentSkip to conversation

mm/gup: fixup gup.c for "mm/gup: refactor and de-duplicate gup_fast() code"

PATCH In review John Hubbard 3 participants 4 messages May 21, 2020 – May 23, 2020

Subsystems (2)
lore
Share & tools
lore

John Hubbard

author reviewer
#0 lore raw

PATCH 1/1 mm/gup: fixup gup.c for "mm/gup: refactor and de-duplicate gup_fast() code"

Include FOLL_FAST_ONLY in the list of flags to *not* WARN() on, in internal_get_user_pages_fast().

Cc Chris Wilson <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc David Airlie <[email protected]>
Cc Jani Nikula <[email protected]>
Cc "Joonas Lahtinen" <[email protected]>
Cc Matthew Auld <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Souptick Joarder <[email protected]>
Cc Tvrtko Ursulin <[email protected]>

---

Hi Andrew, Chris,

Andrew: This is a fixup that applies to today's (20200521) linux-next. In that tree, this fixes up:

commit dfb8dfe80808 ("mm/gup: refactor and de-duplicate gup_fast() code")

Chris: I'd like to request another CI run for the drm/i915 changes, so for that, would you prefer that I post a v2 of the series [1], or is it easier for you to just apply this patch here, on top of [2]?

[1] https://lore.kernel.org/r/[email protected]

[2] https://lore.kernel.org/r/[email protected]

thanks,
John Hubbard
NVIDIA

 mm/gup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mm/gup.c +2 -1
index dd8895f2fafa1..ada6aa79576dc 100644
@@ -2724,7 +2724,8 @@ static int internal_get_user_pages_fast(unsigned long start, int nr_pages,
 	int nr_pinned = 0, ret = 0;
 
 	if (WARN_ON_ONCE(gup_flags & ~(FOLL_WRITE | FOLL_LONGTERM |
-				       FOLL_FORCE | FOLL_PIN | FOLL_GET)))
+				       FOLL_FORCE | FOLL_PIN | FOLL_GET |
+				       FOLL_FAST_ONLY)))
 		return -EINVAL;
 
 	start = untagged_addr(start) & PAGE_MASK;
Signature · 6 lines
2.26.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Quoting John Hubbard (2020-05-22 00:38:41)

Quoted 18 lines

Include FOLL_FAST_ONLY in the list of flags to *not* WARN() on, in internal_get_user_pages_fast().

Cc Chris Wilson <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc David Airlie <[email protected]>
Cc Jani Nikula <[email protected]>
Cc "Joonas Lahtinen" <[email protected]>
Cc Matthew Auld <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Souptick Joarder <[email protected]>
Cc Tvrtko Ursulin <[email protected]>

---

Hi Andrew, Chris,

Quoted 8 lines

Andrew: This is a fixup that applies to today's (20200521) linux-next. In that tree, this fixes up:

commit dfb8dfe80808 ("mm/gup: refactor and de-duplicate gup_fast() code")

Chris: I'd like to request another CI run for the drm/i915 changes, so for that, would you prefer that I post a v2 of the series [1], or is it easier for you to just apply this patch here, on top of [2]?

If you post your series again with this patch included to intel-gfx, CI will pick it up. Or I'll do that in the morning.
-Chris

author reviewer
#2 lore raw
Quoted 24 lines · Chris Wilson

Quoting John Hubbard (2020-05-22 00:38:41)

Quoted 23 lines

Include FOLL_FAST_ONLY in the list of flags to *not* WARN() on, in internal_get_user_pages_fast().

Cc Chris Wilson <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc David Airlie <[email protected]>
Cc Jani Nikula <[email protected]>
Cc "Joonas Lahtinen" <[email protected]>
Cc Matthew Auld <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Souptick Joarder <[email protected]>
Cc Tvrtko Ursulin <[email protected]>

---

Hi Andrew, Chris,

Andrew: This is a fixup that applies to today's (20200521) linux-next. In that tree, this fixes up:

commit dfb8dfe80808 ("mm/gup: refactor and de-duplicate gup_fast() code")

Quoted 8 lines
Quoted 3 lines

Chris: I'd like to request another CI run for the drm/i915 changes, so for that, would you prefer that I post a v2 of the series [1], or is it easier for you to just apply this patch here, on top of [2]?

If you post your series again with this patch included to intel-gfx, CI will pick it up. Or I'll do that in the morning.
-Chris

OK, perfect. I'll post a version for linux.git in a moment here.

thanks,

Signature · 2 lines
John Hubbard
NVIDIA
#3 lore raw

[Intel-gfx] ✗ Fi.CI.BUILD: failure for mm/gup: fixup gup.c for "mm/gup: refactor and de-duplicate gup_fast() code"

In reply to John Hubbard
== Series Details ==

== Series Details ==

Series: mm/gup: fixup gup.c for "mm/gup: refactor and de-duplicate gup_fast() code"
URL : https://patchwork.freedesktop.org/series/77597/
State : failure

== Summary ==

CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
CC mm/gup.o
In file included from ./arch/x86/include/asm/bug.h:83:0,

                 from ./include/linux/bug.h:5,
                 from ./include/linux/thread_info.h:12,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from mm/gup.c:5:
mm/gup.c: In function ‘internal_get_user_pages_fast’:
mm/gup.c:2757:12: error: ‘FOLL_FAST_ONLY’ undeclared (first use in this function); did you mean ‘FOLL_ANON’?
            FOLL_FAST_ONLY)))
            ^
./include/asm-generic/bug.h:96:25: note: in definition of macro ‘WARN_ON_ONCE’
  int __ret_warn_on = !!(condition);   \
                         ^~~~~~~~~
mm/gup.c:2757:12: note: each undeclared identifier is reported only once for each function it appears in
            FOLL_FAST_ONLY)))
            ^
./include/asm-generic/bug.h:96:25: note: in definition of macro ‘WARN_ON_ONCE’
  int __ret_warn_on = !!(condition);   \
                         ^~~~~~~~~

scripts/Makefile.build:266: recipe for target 'mm/gup.o' failed make[1]: *** [mm/gup.o] Error 1
Makefile:1729: recipe for target 'mm' failed
make: *** [mm] Error 2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx