mbox series

[GIT,PULL] tee subsystem pin_user_pages for v5.8

Message ID 20200526131259.GA97001@jade (mailing list archive)
State Superseded
Headers show
Series [GIT,PULL] tee subsystem pin_user_pages for v5.8 | expand

Pull-request

git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8

Checks

Context Check Description
olof/soc/check-signature warning
olof/soc/test1 success test1 description

Message

Jens Wiklander May 26, 2020, 1:12 p.m. UTC
Hello arm-soc maintainers,

Please pull this small patch converting the tee subsystem to use
pin_user_pages() instead of get_user_pages().

Thanks,
Jens

The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:

  Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)

are available in the Git repository at:

  git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8

for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:

  tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)

----------------------------------------------------------------
Converts tee subsystem to use pin_user_pages() instead of get_user_pages()

----------------------------------------------------------------
John Hubbard (1):
      tee: convert get_user_pages() --> pin_user_pages()

 drivers/tee/tee_shm.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

Comments

Olof Johansson Aug. 21, 2020, 6:49 p.m. UTC | #1
On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote:
> Hello arm-soc maintainers,
> 
> Please pull this small patch converting the tee subsystem to use
> pin_user_pages() instead of get_user_pages().
> 
> Thanks,
> Jens
> 
> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:
> 
>   Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)
> 
> are available in the Git repository at:
> 
>   git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8
> 
> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:
> 
>   tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)

Hi, I noticed this never got merged, but I don't see any follow-up here that
retracts it. Is it still pending merge such that I should queue it for v5.10?


-Olof
John Hubbard Aug. 21, 2020, 7:58 p.m. UTC | #2
On 8/21/20 11:49 AM, Olof Johansson wrote:
> On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote:
>> Hello arm-soc maintainers,
>>
>> Please pull this small patch converting the tee subsystem to use
>> pin_user_pages() instead of get_user_pages().
>>
>> Thanks,
>> Jens
>>
>> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:
>>
>>    Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)
>>
>> are available in the Git repository at:
>>
>>    git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8
>>
>> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:
>>
>>    tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)
> 
> Hi, I noticed this never got merged, but I don't see any follow-up here that
> retracts it. Is it still pending merge such that I should queue it for v5.10?
> 

I think so. I had marked it in my notes as "accepted, and the maintainer will
eventually merge it", and I left it at that. It's still desirable.

thanks,
Olof Johansson Aug. 21, 2020, 9:18 p.m. UTC | #3
On Fri, Aug 21, 2020 at 12:58 PM John Hubbard <jhubbard@nvidia.com> wrote:
>
> On 8/21/20 11:49 AM, Olof Johansson wrote:
> > On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote:
> >> Hello arm-soc maintainers,
> >>
> >> Please pull this small patch converting the tee subsystem to use
> >> pin_user_pages() instead of get_user_pages().
> >>
> >> Thanks,
> >> Jens
> >>
> >> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:
> >>
> >>    Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)
> >>
> >> are available in the Git repository at:
> >>
> >>    git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8
> >>
> >> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:
> >>
> >>    tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)
> >
> > Hi, I noticed this never got merged, but I don't see any follow-up here that
> > retracts it. Is it still pending merge such that I should queue it for v5.10?
> >
>
> I think so. I had marked it in my notes as "accepted, and the maintainer will
> eventually merge it", and I left it at that. It's still desirable.
>

Looks like it conflicts with some of the later work. Jens, given the
timelines here it's probably easiest all around if you rebase/respin
and send a fresh pull request. I could fix it up but you'd still need
to review that so the amount of work is probably less if you do it
directly.


-Olof
Jens Wiklander Aug. 24, 2020, 6:51 a.m. UTC | #4
On Fri, Aug 21, 2020 at 11:19 PM Olof Johansson <olof@lixom.net> wrote:
>
> On Fri, Aug 21, 2020 at 12:58 PM John Hubbard <jhubbard@nvidia.com> wrote:
> >
> > On 8/21/20 11:49 AM, Olof Johansson wrote:
> > > On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote:
> > >> Hello arm-soc maintainers,
> > >>
> > >> Please pull this small patch converting the tee subsystem to use
> > >> pin_user_pages() instead of get_user_pages().
> > >>
> > >> Thanks,
> > >> Jens
> > >>
> > >> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:
> > >>
> > >>    Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)
> > >>
> > >> are available in the Git repository at:
> > >>
> > >>    git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8
> > >>
> > >> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:
> > >>
> > >>    tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)
> > >
> > > Hi, I noticed this never got merged, but I don't see any follow-up here that
> > > retracts it. Is it still pending merge such that I should queue it for v5.10?
> > >
> >
> > I think so. I had marked it in my notes as "accepted, and the maintainer will
> > eventually merge it", and I left it at that. It's still desirable.
> >
>
> Looks like it conflicts with some of the later work. Jens, given the
> timelines here it's probably easiest all around if you rebase/respin
> and send a fresh pull request. I could fix it up but you'd still need
> to review that so the amount of work is probably less if you do it
> directly.

Agree, I'll send a fresh pull request once we have this rebased.
The conflict is with the recently added call to get_kernel_pages()
when kernel memory is shared.
The conflict isn't trivial, I guess we need to handle the different
types of pages differently when releasing them.
John, would you mind rebasing and posting the patch again?

Thanks,
Jens
John Hubbard Aug. 24, 2020, 7:18 a.m. UTC | #5
On 8/23/20 11:51 PM, Jens Wiklander wrote:
> On Fri, Aug 21, 2020 at 11:19 PM Olof Johansson <olof@lixom.net> wrote:
>>
>> On Fri, Aug 21, 2020 at 12:58 PM John Hubbard <jhubbard@nvidia.com> wrote:
>>>
>>> On 8/21/20 11:49 AM, Olof Johansson wrote:
>>>> On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote:
>>>>> Hello arm-soc maintainers,
>>>>>
>>>>> Please pull this small patch converting the tee subsystem to use
>>>>> pin_user_pages() instead of get_user_pages().
>>>>>
>>>>> Thanks,
>>>>> Jens
>>>>>
>>>>> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:
>>>>>
>>>>>     Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)
>>>>>
>>>>> are available in the Git repository at:
>>>>>
>>>>>     git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8
>>>>>
>>>>> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:
>>>>>
>>>>>     tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)
>>>>
>>>> Hi, I noticed this never got merged, but I don't see any follow-up here that
>>>> retracts it. Is it still pending merge such that I should queue it for v5.10?
>>>>
>>>
>>> I think so. I had marked it in my notes as "accepted, and the maintainer will
>>> eventually merge it", and I left it at that. It's still desirable.
>>>
>>
>> Looks like it conflicts with some of the later work. Jens, given the
>> timelines here it's probably easiest all around if you rebase/respin
>> and send a fresh pull request. I could fix it up but you'd still need
>> to review that so the amount of work is probably less if you do it
>> directly.
> 
> Agree, I'll send a fresh pull request once we have this rebased.
> The conflict is with the recently added call to get_kernel_pages()
> when kernel memory is shared.
> The conflict isn't trivial, I guess we need to handle the different
> types of pages differently when releasing them.
> John, would you mind rebasing and posting the patch again?
> 

Sure. Should it be against 5.9-rc2, or something else? I can do this in the morning,
about 10 hrs from now.

thanks,
Jens Wiklander Aug. 24, 2020, 7:46 a.m. UTC | #6
On Mon, Aug 24, 2020 at 9:18 AM John Hubbard <jhubbard@nvidia.com> wrote:
>
> On 8/23/20 11:51 PM, Jens Wiklander wrote:
> > On Fri, Aug 21, 2020 at 11:19 PM Olof Johansson <olof@lixom.net> wrote:
> >>
> >> On Fri, Aug 21, 2020 at 12:58 PM John Hubbard <jhubbard@nvidia.com> wrote:
> >>>
> >>> On 8/21/20 11:49 AM, Olof Johansson wrote:
> >>>> On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote:
> >>>>> Hello arm-soc maintainers,
> >>>>>
> >>>>> Please pull this small patch converting the tee subsystem to use
> >>>>> pin_user_pages() instead of get_user_pages().
> >>>>>
> >>>>> Thanks,
> >>>>> Jens
> >>>>>
> >>>>> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936:
> >>>>>
> >>>>>     Linux 5.7-rc2 (2020-04-19 14:35:30 -0700)
> >>>>>
> >>>>> are available in the Git repository at:
> >>>>>
> >>>>>     git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8
> >>>>>
> >>>>> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530:
> >>>>>
> >>>>>     tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200)
> >>>>
> >>>> Hi, I noticed this never got merged, but I don't see any follow-up here that
> >>>> retracts it. Is it still pending merge such that I should queue it for v5.10?
> >>>>
> >>>
> >>> I think so. I had marked it in my notes as "accepted, and the maintainer will
> >>> eventually merge it", and I left it at that. It's still desirable.
> >>>
> >>
> >> Looks like it conflicts with some of the later work. Jens, given the
> >> timelines here it's probably easiest all around if you rebase/respin
> >> and send a fresh pull request. I could fix it up but you'd still need
> >> to review that so the amount of work is probably less if you do it
> >> directly.
> >
> > Agree, I'll send a fresh pull request once we have this rebased.
> > The conflict is with the recently added call to get_kernel_pages()
> > when kernel memory is shared.
> > The conflict isn't trivial, I guess we need to handle the different
> > types of pages differently when releasing them.
> > John, would you mind rebasing and posting the patch again?
> >
>
> Sure. Should it be against 5.9-rc2, or something else? I can do this in the morning,
> about 10 hrs from now.

5.9-rc2 sounds good.

Thanks,
Jens