From: David Hildenbrand <david@redhat.com>
To: Jaewon Kim <jaewon31.kim@gmail.com>,
zhaoyang.huang@unisoc.com, jhubbard@nvidia.com
Cc: surenb@google.com, linux-mm@kvack.org
Subject: Re: [RFC] pin_user_pages_fast failure count increased
Date: Mon, 28 Apr 2025 17:21:11 +0200 [thread overview]
Message-ID: <67f83444-4d44-4ab8-950b-b41d69e5ec96@redhat.com> (raw)
In-Reply-To: <CAJrd-UuAZ6oLLUKnOkTQjKYxSwtPk5noaUFrnNantM7yFiRVuw@mail.gmail.com>
On 28.04.25 17:17, Jaewon Kim wrote:
> Hi
Hi,
>
> If pin_user_pages_fast does not pin all the requested number of pages,
> then drivers calling to pin_user_pages_fast should retry until the gup
> pins all?
It should continue from the first-not-pinned-one. If there is an error,
it will be reported, otherwise it will make progress.
>
> Our GPU driver uses pin_user_pages_fast.
> After the recent kernel update, pin_user_pages_fast sometimes does not
> pin all the pages, nr_pinned < nr_pages.
Yeah, that can happen as documented.
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2025-04-28 15:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-28 15:17 Jaewon Kim
2025-04-28 15:21 ` David Hildenbrand [this message]
2025-04-28 20:14 ` John Hubbard
2025-04-28 20:56 ` David Hildenbrand
2025-04-28 21:12 ` John Hubbard
[not found] ` <CGME20250522092944epcas2p1ca46168564555aad6d9880bda26ec8de@epcas2p1.samsung.com>
2025-05-22 9:27 ` Hyesoo Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67f83444-4d44-4ab8-950b-b41d69e5ec96@redhat.com \
--to=david@redhat.com \
--cc=jaewon31.kim@gmail.com \
--cc=jhubbard@nvidia.com \
--cc=linux-mm@kvack.org \
--cc=surenb@google.com \
--cc=zhaoyang.huang@unisoc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox