From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Dorminy Subject: Re: [PATCH 21/29] mm: remove the pgprot argument to __vmalloc Date: Thu, 30 Apr 2020 22:33:28 -0400 Message-ID: References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-22-hch@lst.de> <20200414151344.zgt2pnq7cjq2bgv6@debian> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004b5c5705a48d02f1" Return-path: In-Reply-To: <20200414151344.zgt2pnq7cjq2bgv6@debian> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane-mx.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: Wei Liu Cc: linux-hyperv@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Michael Kelley , linux-mm@kvack.org, "K. Y. Srinivasan" , Sumit Semwal , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Stephen Hemminger , x86@kernel.org, Christoph Hellwig , Peter Zijlstra , Gao Xiang , Laura Abbott , Nitin Gupta , Daniel Vetter , Haiyang Zhang , linaro-mm-sig@lists.linaro.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Robin Murphy , Linux Kernel Mailing List , Minchan Kim , iommu@lists.linux-foundation.org, Sakari Ailus List-Id: linux-arch.vger.kernel.org --0000000000004b5c5705a48d02f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings; I recently noticed this change via the linux-next tree. It may not be possible to edit at this late date, but the change description refers to PROT_KERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNEL was meant? The mismatch caused me and a couple other folks some confusion briefly until we decided it was supposed to be PAGE_KERNEL; if it's not too late, editing the description to clarify so would be nice. Many thanks. John Dorminy On Tue, Apr 14, 2020 at 11:15 AM Wei Liu wrote: > On Tue, Apr 14, 2020 at 03:13:40PM +0200, Christoph Hellwig wrote: > > The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove > > it. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Michael Kelley [hyperv] > > Acked-by: Gao Xiang [erofs] > > Acked-by: Peter Zijlstra (Intel) > > --- > > arch/x86/hyperv/hv_init.c | 3 +-- > [...] > > > > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c > > index 5a4b363ba67b..a3d689dfc745 100644 > > --- a/arch/x86/hyperv/hv_init.c > > +++ b/arch/x86/hyperv/hv_init.c > > @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu) > > * not be stopped in the case of CPU offlining and the VM will > hang. > > */ > > if (!*hvp) { > > - *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > > - PAGE_KERNEL); > > + *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO); > > } > > Acked-by: Wei Liu > > --0000000000004b5c5705a48d02f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings;

I recently noticed this = change via the linux-next tree.

It may not be poss= ible to edit at this late date, but the change description refers to PROT_K= ERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNE= L was meant? The mismatch caused me and a couple other folks some confusion= briefly until we decided it was supposed to be PAGE_KERNEL; if it's no= t too late, editing the description to clarify so would be nice.

Many thanks.

John Dorminy


<= /div>

On Tue, Apr 14, 2020 at 11:15 AM Wei Liu <wei.liu@kernel.org> wrote:
On Tue, Apr 14, 2020 at 03:13:40PM +0200, = Christoph Hellwig wrote:
> The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove<= br> > it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com> [hyperv]
> Acked-by: Gao Xiang <xiang@kernel.org> [erofs]
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>=C2=A0 arch/x86/hyperv/hv_init.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 3 +--
[...]
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index 5a4b363ba67b..a3d689dfc745 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 * not be stopped in the case of CPU offlini= ng and the VM will hang.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 */
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!*hvp) {
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PAGE_KERNEL);
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}

Acked-by: Wei Liu <wei.liu@kernel.org>

--0000000000004b5c5705a48d02f1-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-22-hch@lst.de> <20200414151344.zgt2pnq7cjq2bgv6@debian> In-Reply-To: <20200414151344.zgt2pnq7cjq2bgv6@debian> From: John Dorminy Date: Thu, 30 Apr 2020 22:33:28 -0400 Message-ID: Subject: Re: [PATCH 21/29] mm: remove the pgprot argument to __vmalloc Content-Type: multipart/alternative; boundary="0000000000004b5c5705a48d02f1" Sender: owner-linux-mm@kvack.org To: Wei Liu Cc: Christoph Hellwig , Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta , Robin Murphy , Christophe Leroy , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, Linux Kernel Mailing List , Michael Kelley , Gao Xiang List-ID: Message-ID: <20200501023328.GSoBBo2VGmXDJsZfQVD6EqTAGnGUNi6akFXQB3fIEok@z> --0000000000004b5c5705a48d02f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings; I recently noticed this change via the linux-next tree. It may not be possible to edit at this late date, but the change description refers to PROT_KERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNEL was meant? The mismatch caused me and a couple other folks some confusion briefly until we decided it was supposed to be PAGE_KERNEL; if it's not too late, editing the description to clarify so would be nice. Many thanks. John Dorminy On Tue, Apr 14, 2020 at 11:15 AM Wei Liu wrote: > On Tue, Apr 14, 2020 at 03:13:40PM +0200, Christoph Hellwig wrote: > > The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove > > it. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Michael Kelley [hyperv] > > Acked-by: Gao Xiang [erofs] > > Acked-by: Peter Zijlstra (Intel) > > --- > > arch/x86/hyperv/hv_init.c | 3 +-- > [...] > > > > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c > > index 5a4b363ba67b..a3d689dfc745 100644 > > --- a/arch/x86/hyperv/hv_init.c > > +++ b/arch/x86/hyperv/hv_init.c > > @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu) > > * not be stopped in the case of CPU offlining and the VM will > hang. > > */ > > if (!*hvp) { > > - *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > > - PAGE_KERNEL); > > + *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO); > > } > > Acked-by: Wei Liu > > --0000000000004b5c5705a48d02f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings;

I recently noticed this = change via the linux-next tree.

It may not be poss= ible to edit at this late date, but the change description refers to PROT_K= ERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNE= L was meant? The mismatch caused me and a couple other folks some confusion= briefly until we decided it was supposed to be PAGE_KERNEL; if it's no= t too late, editing the description to clarify so would be nice.

Many thanks.

John Dorminy


<= /div>

On Tue, Apr 14, 2020 at 11:15 AM Wei Liu <wei.liu@kernel.org> wrote:
On Tue, Apr 14, 2020 at 03:13:40PM +0200, = Christoph Hellwig wrote:
> The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove<= br> > it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com> [hyperv]
> Acked-by: Gao Xiang <xiang@kernel.org> [erofs]
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>=C2=A0 arch/x86/hyperv/hv_init.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 3 +--
[...]
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index 5a4b363ba67b..a3d689dfc745 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 * not be stopped in the case of CPU offlini= ng and the VM will hang.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 */
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!*hvp) {
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PAGE_KERNEL);
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}

Acked-by: Wei Liu <wei.liu@kernel.org>

--0000000000004b5c5705a48d02f1-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69CCAC28CBC for ; Fri, 1 May 2020 02:33:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1E0DD2064A for ; Fri, 1 May 2020 02:33:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJKCu/Cm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E0DD2064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AF7E08E0005; Thu, 30 Apr 2020 22:33:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AA7868E0001; Thu, 30 Apr 2020 22:33:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BDA98E0005; Thu, 30 Apr 2020 22:33:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0229.hostedemail.com [216.40.44.229]) by kanga.kvack.org (Postfix) with ESMTP id 857258E0001 for ; Thu, 30 Apr 2020 22:33:45 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 2B7FE5848 for ; Fri, 1 May 2020 02:33:45 +0000 (UTC) X-FDA: 76766579610.15.frame71_3dd29ae638424 X-HE-Tag: frame71_3dd29ae638424 X-Filterd-Recvd-Size: 8817 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Fri, 1 May 2020 02:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588300424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WoEKQ4lWoOTrBQAr9fSIywvhXH2CJ/MfFxWkNiilf98=; b=ZJKCu/CmsK/6FisRxgFiLPGjtyCgkcVd1sf1yF6ECXuNLS+9e33VvGVIszgYGBOyNgKbcS 1GeA6J8U09WvrJWPFn/X9IbL9oOshKcwYMfHEXfYX3Cg35RiLLxiUGzSSUYNFBrkpi5N4V f3KpKSXT9U5kpKT1QuXnJFp5ClySC6A= Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-379-dt6R-0OGOiydRW9McnNyYQ-1; Thu, 30 Apr 2020 22:33:40 -0400 X-MC-Unique: dt6R-0OGOiydRW9McnNyYQ-1 Received: by mail-vs1-f71.google.com with SMTP id z15so1984663vsp.12 for ; Thu, 30 Apr 2020 19:33:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FmTXwQDIMo+IjpBIspuTIpC6trFCfV96jFy7feBDa3U=; b=X/Nr1MwKo9gzazmgIHU6BvlUtXQ/99jiGncipWgh35Zplpf7jSot59JfFOdZ7yGcEz 7iFLvcTpDzrUyDzVwcMR+MMAHMKlr/dUb/LX82gdx6M+tD5+2U+23V6/YzDzXs2XEYG+ xHbPXwacsjRdGPTbFGFOi67jgknyaVNBn0bCQNaYuvjaFTEslrMtA92v6y7eGP8xftmr 2kkLNIWb8TDoNoPmqJGlN8r9UJTZaWFRIB5KxV71/qQBdBTqa5sDrdzJd3WZhurtZHrH oPXDb8zujzdjndOpD/eIy/lFPBMdw8Nwaf8gNCy0R2jwvSZaceqXASqRlauhVMMPc1z7 OsUA== X-Gm-Message-State: AGi0PuYa5d1sWvIjgGWGgrSQ9NviDzHOow+3RCDAo6erFQ5oETTbMh9D eLK5DJIc0fM+dx9kIwDpn07Y+9idp2VsE1JN5YKYOSQ3nipJMmJrx3+DfKkw6FDNKpvRywZV84a S+wBVWin9Pxjgs4VgzeFrPnl2WrU= X-Received: by 2002:a1f:4106:: with SMTP id o6mr1255005vka.52.1588300419596; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKzJZChxr1bIOT3BrCLUuQh+Ikon7C/tnK/FqweuMnIX4otnNYFiYRZlgH/GIaMCFHcKeYabPii/TDhlHZceM8= X-Received: by 2002:a1f:4106:: with SMTP id o6mr1254987vka.52.1588300419383; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) MIME-Version: 1.0 References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-22-hch@lst.de> <20200414151344.zgt2pnq7cjq2bgv6@debian> In-Reply-To: <20200414151344.zgt2pnq7cjq2bgv6@debian> From: John Dorminy Date: Thu, 30 Apr 2020 22:33:28 -0400 Message-ID: Subject: Re: [PATCH 21/29] mm: remove the pgprot argument to __vmalloc To: Wei Liu Cc: Christoph Hellwig , Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta , Robin Murphy , Christophe Leroy , Peter Zijlstra , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, Linux Kernel Mailing List , Michael Kelley , Gao Xiang X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="0000000000004b5c5705a48d02f1" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --0000000000004b5c5705a48d02f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings; I recently noticed this change via the linux-next tree. It may not be possible to edit at this late date, but the change description refers to PROT_KERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNEL was meant? The mismatch caused me and a couple other folks some confusion briefly until we decided it was supposed to be PAGE_KERNEL; if it's not too late, editing the description to clarify so would be nice. Many thanks. John Dorminy On Tue, Apr 14, 2020 at 11:15 AM Wei Liu wrote: > On Tue, Apr 14, 2020 at 03:13:40PM +0200, Christoph Hellwig wrote: > > The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove > > it. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Michael Kelley [hyperv] > > Acked-by: Gao Xiang [erofs] > > Acked-by: Peter Zijlstra (Intel) > > --- > > arch/x86/hyperv/hv_init.c | 3 +-- > [...] > > > > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c > > index 5a4b363ba67b..a3d689dfc745 100644 > > --- a/arch/x86/hyperv/hv_init.c > > +++ b/arch/x86/hyperv/hv_init.c > > @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu) > > * not be stopped in the case of CPU offlining and the VM will > hang. > > */ > > if (!*hvp) { > > - *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > > - PAGE_KERNEL); > > + *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO); > > } > > Acked-by: Wei Liu > > --0000000000004b5c5705a48d02f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings;

I recently noticed this = change via the linux-next tree.

It may not be poss= ible to edit at this late date, but the change description refers to PROT_K= ERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNE= L was meant? The mismatch caused me and a couple other folks some confusion= briefly until we decided it was supposed to be PAGE_KERNEL; if it's no= t too late, editing the description to clarify so would be nice.

Many thanks.

John Dorminy


<= /div>

On Tue, Apr 14, 2020 at 11:15 AM Wei Liu <wei.liu@kernel.org> wrote:
On Tue, Apr 14, 2020 at 03:13:40PM +0200, = Christoph Hellwig wrote:
> The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove<= br> > it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com> [hyperv]
> Acked-by: Gao Xiang <xiang@kernel.org> [erofs]
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>=C2=A0 arch/x86/hyperv/hv_init.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 3 +--
[...]
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index 5a4b363ba67b..a3d689dfc745 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 * not be stopped in the case of CPU offlini= ng and the VM will hang.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 */
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!*hvp) {
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PAGE_KERNEL);
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}

Acked-by: Wei Liu <wei.liu@kernel.org>

--0000000000004b5c5705a48d02f1-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CDD3C4724C for ; Fri, 1 May 2020 03:21:32 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1583206B8 for ; Fri, 1 May 2020 03:21:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJKCu/Cm"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJKCu/Cm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1583206B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49CyG22mkpzDrBk for ; Fri, 1 May 2020 13:21:30 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=205.139.110.61; helo=us-smtp-delivery-1.mimecast.com; envelope-from=sweettea@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJKCu/Cm; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJKCu/Cm; dkim-atps=neutral Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49CxC83RmjzDqD8 for ; Fri, 1 May 2020 12:33:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588300424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WoEKQ4lWoOTrBQAr9fSIywvhXH2CJ/MfFxWkNiilf98=; b=ZJKCu/CmsK/6FisRxgFiLPGjtyCgkcVd1sf1yF6ECXuNLS+9e33VvGVIszgYGBOyNgKbcS 1GeA6J8U09WvrJWPFn/X9IbL9oOshKcwYMfHEXfYX3Cg35RiLLxiUGzSSUYNFBrkpi5N4V f3KpKSXT9U5kpKT1QuXnJFp5ClySC6A= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588300424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WoEKQ4lWoOTrBQAr9fSIywvhXH2CJ/MfFxWkNiilf98=; b=ZJKCu/CmsK/6FisRxgFiLPGjtyCgkcVd1sf1yF6ECXuNLS+9e33VvGVIszgYGBOyNgKbcS 1GeA6J8U09WvrJWPFn/X9IbL9oOshKcwYMfHEXfYX3Cg35RiLLxiUGzSSUYNFBrkpi5N4V f3KpKSXT9U5kpKT1QuXnJFp5ClySC6A= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-418-y_LPwF4QMKyVd7rnepb7FQ-1; Thu, 30 Apr 2020 22:33:40 -0400 X-MC-Unique: y_LPwF4QMKyVd7rnepb7FQ-1 Received: by mail-vk1-f198.google.com with SMTP id w25so4125188vkm.8 for ; Thu, 30 Apr 2020 19:33:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FmTXwQDIMo+IjpBIspuTIpC6trFCfV96jFy7feBDa3U=; b=VCuh0/clZvGl82L1EoYFq2fFlziRmHP8PczgvsLKwK4cp/KtigzJXO0yBJhebruR9n Qje8frsZwXLOOUBarzNI7fdCRgKm9bUO7PPQ81Objcq4Y1Adg583oMcH/BzrBYsk35At a29HUWujzCkuGAb+yfolKplgJPObLpIlBtLHUtYsBTzbPWMJ8i85Wmrj9D9l8iAt++Ct aQZ0WKUj7Y2d8z3gTa0nBl+iHYGgmj1n4i7Q7if7o3+oFeQQ+ZBMNieY4slPcFuvriAI lCYrNlIXZe0e8GVMbFda7L7kF6I2sqgjwyvZSWuuPdnlKu7X1/G5NNAqYxPJA+PMQccq wyyQ== X-Gm-Message-State: AGi0PubODtltkoyi+KA17BQ7ZiC5WjkSVer42NUkvtCxTj396mwznn/g ftNegwrG+47dnM6PMd7d1K9/q8Mc7TYsdP+YQRDqUSLPc/xEtIvAvTLmpm7bY++BbCb06wUL+6G y12fOaSxVi97UxttpKnlxcHxqq6RaSAOSHHd+FYhGiw== X-Received: by 2002:a1f:4106:: with SMTP id o6mr1255015vka.52.1588300419602; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKzJZChxr1bIOT3BrCLUuQh+Ikon7C/tnK/FqweuMnIX4otnNYFiYRZlgH/GIaMCFHcKeYabPii/TDhlHZceM8= X-Received: by 2002:a1f:4106:: with SMTP id o6mr1254987vka.52.1588300419383; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) MIME-Version: 1.0 References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-22-hch@lst.de> <20200414151344.zgt2pnq7cjq2bgv6@debian> In-Reply-To: <20200414151344.zgt2pnq7cjq2bgv6@debian> From: John Dorminy Date: Thu, 30 Apr 2020 22:33:28 -0400 Message-ID: Subject: Re: [PATCH 21/29] mm: remove the pgprot argument to __vmalloc To: Wei Liu X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="0000000000004b5c5705a48d02f1" X-Mailman-Approved-At: Fri, 01 May 2020 13:16:54 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-hyperv@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Michael Kelley , linux-mm@kvack.org, "K. Y. Srinivasan" , Sumit Semwal , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Stephen Hemminger , x86@kernel.org, Christoph Hellwig , Peter Zijlstra , Gao Xiang , Laura Abbott , Nitin Gupta , Daniel Vetter , Haiyang Zhang , linaro-mm-sig@lists.linaro.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Robin Murphy , Linux Kernel Mailing List , Minchan Kim , iommu@lists.linux-foundation.org, Sakari Ailus , Andrew Morton , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" --0000000000004b5c5705a48d02f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings; I recently noticed this change via the linux-next tree. It may not be possible to edit at this late date, but the change description refers to PROT_KERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNEL was meant? The mismatch caused me and a couple other folks some confusion briefly until we decided it was supposed to be PAGE_KERNEL; if it's not too late, editing the description to clarify so would be nice. Many thanks. John Dorminy On Tue, Apr 14, 2020 at 11:15 AM Wei Liu wrote: > On Tue, Apr 14, 2020 at 03:13:40PM +0200, Christoph Hellwig wrote: > > The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove > > it. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Michael Kelley [hyperv] > > Acked-by: Gao Xiang [erofs] > > Acked-by: Peter Zijlstra (Intel) > > --- > > arch/x86/hyperv/hv_init.c | 3 +-- > [...] > > > > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c > > index 5a4b363ba67b..a3d689dfc745 100644 > > --- a/arch/x86/hyperv/hv_init.c > > +++ b/arch/x86/hyperv/hv_init.c > > @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu) > > * not be stopped in the case of CPU offlining and the VM will > hang. > > */ > > if (!*hvp) { > > - *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > > - PAGE_KERNEL); > > + *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO); > > } > > Acked-by: Wei Liu > > --0000000000004b5c5705a48d02f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings;

I recently noticed this = change via the linux-next tree.

It may not be poss= ible to edit at this late date, but the change description refers to PROT_K= ERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNE= L was meant? The mismatch caused me and a couple other folks some confusion= briefly until we decided it was supposed to be PAGE_KERNEL; if it's no= t too late, editing the description to clarify so would be nice.

Many thanks.

John Dorminy


<= /div>

On Tue, Apr 14, 2020 at 11:15 AM Wei Liu <wei.liu@kernel.org> wrote:
On Tue, Apr 14, 2020 at 03:13:40PM +0200, = Christoph Hellwig wrote:
> The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove<= br> > it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com> [hyperv]
> Acked-by: Gao Xiang <xiang@kernel.org> [erofs]
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>=C2=A0 arch/x86/hyperv/hv_init.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 3 +--
[...]
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index 5a4b363ba67b..a3d689dfc745 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 * not be stopped in the case of CPU offlini= ng and the VM will hang.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 */
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!*hvp) {
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PAGE_KERNEL);
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}

Acked-by: Wei Liu <wei.liu@kernel.org>

--0000000000004b5c5705a48d02f1-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FDD0C4724C for ; Fri, 1 May 2020 04:48:04 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D56EB20857 for ; Fri, 1 May 2020 04:48:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ImTUdlEg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D56EB20857 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A5F36882CB; Fri, 1 May 2020 04:48:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9+KP6dE+gmcN; Fri, 1 May 2020 04:48:02 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 49E0888279; Fri, 1 May 2020 04:48:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 31B36C0864; Fri, 1 May 2020 04:48:02 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id AE74AC016F for ; Fri, 1 May 2020 02:33:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 942B886DF3 for ; Fri, 1 May 2020 02:33:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j9eVYTUxCpQg for ; Fri, 1 May 2020 02:33:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9022C86D39 for ; Fri, 1 May 2020 02:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588300424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FmTXwQDIMo+IjpBIspuTIpC6trFCfV96jFy7feBDa3U=; b=ImTUdlEggsmq7N1QtnckU3WKGA0GsL5qX4BAzcsXQpsZwTieDq6KlhvAUNFfGrvC4aWOFa HFu0Vg1ThMKWDoAfIbKpxbag8lvBIAn9I0pKThT58E72grx3wKIo06a2r8pgn504LUSpET htTaFPiZx6J40lFDguggBH/FcP57Xg0= Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-5GMjnOeSPJ6w9eWq6hiKfw-1; Thu, 30 Apr 2020 22:33:40 -0400 X-MC-Unique: 5GMjnOeSPJ6w9eWq6hiKfw-1 Received: by mail-vk1-f199.google.com with SMTP id n1so4167559vke.6 for ; Thu, 30 Apr 2020 19:33:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FmTXwQDIMo+IjpBIspuTIpC6trFCfV96jFy7feBDa3U=; b=czINjvkSl3iWsuMHTsz9WAxYHXOuD9spJBOp/7TEO1neh8HZKRcoP4UhNtK6wd25Oq Q5b2yb7gc4jNku+Kj2xmsVo3Y4QT2yAJxeiJPvhgswqxYpvySl3VJdEteQLh8EOR5VTa Kle4KRFnbjE+ES9dhZOdhp9b+Hl0u9RuflUBqNwoJM9T+hJsZ0G0WR581o2gth/6qBoU doJKXtyBrfOqJfmnODsvuovooaan2hjd6O3WysEdVsi0FfMVzAgpscSXJ1iSCr8R9VxH ts8eM06Fkqjnm0PcOeqPmGWzuwYJ2BolBywy5g+5jcNzOkao8NJ8zWpgF2lQ1k5iIJeq UmPw== X-Gm-Message-State: AGi0PuZm2biAMhVNSSAL3AWXnS/j4iOj+hzSxTi8tAjqDFqIA7JNM15B o4Q36b9rTl/QoKBoIvooOlvOG0Bwm2JHhPsagFPWC8lPV/q4ccRjIvj7iBHQINl4tZNn3FDfyaD h/BSVjP/g8S2Z3Yl3dM35H0T5Pn2H1AGJEVeLj0o6lRFXlw== X-Received: by 2002:a1f:4106:: with SMTP id o6mr1255006vka.52.1588300419596; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKzJZChxr1bIOT3BrCLUuQh+Ikon7C/tnK/FqweuMnIX4otnNYFiYRZlgH/GIaMCFHcKeYabPii/TDhlHZceM8= X-Received: by 2002:a1f:4106:: with SMTP id o6mr1254987vka.52.1588300419383; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) MIME-Version: 1.0 References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-22-hch@lst.de> <20200414151344.zgt2pnq7cjq2bgv6@debian> In-Reply-To: <20200414151344.zgt2pnq7cjq2bgv6@debian> From: John Dorminy Date: Thu, 30 Apr 2020 22:33:28 -0400 Message-ID: Subject: Re: [PATCH 21/29] mm: remove the pgprot argument to __vmalloc To: Wei Liu X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Mailman-Approved-At: Fri, 01 May 2020 04:48:01 +0000 Cc: linux-hyperv@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Michael Kelley , linux-mm@kvack.org, "K. Y. Srinivasan" , Sumit Semwal , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Stephen Hemminger , x86@kernel.org, Christoph Hellwig , Peter Zijlstra , Gao Xiang , Laura Abbott , Nitin Gupta , Daniel Vetter , Haiyang Zhang , linaro-mm-sig@lists.linaro.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy , Robin Murphy , Linux Kernel Mailing List , Minchan Kim , iommu@lists.linux-foundation.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0770348132251471010==" Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" --===============0770348132251471010== Content-Type: multipart/alternative; boundary="0000000000004b5c5705a48d02f1" --0000000000004b5c5705a48d02f1 Content-Type: text/plain; charset="UTF-8" Greetings; I recently noticed this change via the linux-next tree. It may not be possible to edit at this late date, but the change description refers to PROT_KERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNEL was meant? The mismatch caused me and a couple other folks some confusion briefly until we decided it was supposed to be PAGE_KERNEL; if it's not too late, editing the description to clarify so would be nice. Many thanks. John Dorminy On Tue, Apr 14, 2020 at 11:15 AM Wei Liu wrote: > On Tue, Apr 14, 2020 at 03:13:40PM +0200, Christoph Hellwig wrote: > > The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove > > it. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Michael Kelley [hyperv] > > Acked-by: Gao Xiang [erofs] > > Acked-by: Peter Zijlstra (Intel) > > --- > > arch/x86/hyperv/hv_init.c | 3 +-- > [...] > > > > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c > > index 5a4b363ba67b..a3d689dfc745 100644 > > --- a/arch/x86/hyperv/hv_init.c > > +++ b/arch/x86/hyperv/hv_init.c > > @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu) > > * not be stopped in the case of CPU offlining and the VM will > hang. > > */ > > if (!*hvp) { > > - *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > > - PAGE_KERNEL); > > + *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO); > > } > > Acked-by: Wei Liu > > --0000000000004b5c5705a48d02f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings;

I recently noticed this = change via the linux-next tree.

It may not be poss= ible to edit at this late date, but the change description refers to PROT_K= ERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNE= L was meant? The mismatch caused me and a couple other folks some confusion= briefly until we decided it was supposed to be PAGE_KERNEL; if it's no= t too late, editing the description to clarify so would be nice.

Many thanks.

John Dorminy


<= /div>

On Tue, Apr 14, 2020 at 11:15 AM Wei Liu <wei.liu@kernel.org> wrote:
On Tue, Apr 14, 2020 at 03:13:40PM +0200, = Christoph Hellwig wrote:
> The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove<= br> > it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com> [hyperv]
> Acked-by: Gao Xiang <xiang@kernel.org> [erofs]
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>=C2=A0 arch/x86/hyperv/hv_init.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 3 +--
[...]
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index 5a4b363ba67b..a3d689dfc745 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 * not be stopped in the case of CPU offlini= ng and the VM will hang.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 */
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!*hvp) {
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PAGE_KERNEL);
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}

Acked-by: Wei Liu <wei.liu@kernel.org>

--0000000000004b5c5705a48d02f1-- --===============0770348132251471010== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu --===============0770348132251471010==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83A0DC4724C for ; Fri, 1 May 2020 02:33:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A8312064A for ; Fri, 1 May 2020 02:33:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJKCu/Cm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A8312064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BFBA06E288; Fri, 1 May 2020 02:33:46 +0000 (UTC) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id CEA306E288 for ; Fri, 1 May 2020 02:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588300424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WoEKQ4lWoOTrBQAr9fSIywvhXH2CJ/MfFxWkNiilf98=; b=ZJKCu/CmsK/6FisRxgFiLPGjtyCgkcVd1sf1yF6ECXuNLS+9e33VvGVIszgYGBOyNgKbcS 1GeA6J8U09WvrJWPFn/X9IbL9oOshKcwYMfHEXfYX3Cg35RiLLxiUGzSSUYNFBrkpi5N4V f3KpKSXT9U5kpKT1QuXnJFp5ClySC6A= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-421-meCj_nOQN3mhqZ-CPfcOGw-1; Thu, 30 Apr 2020 22:33:40 -0400 X-MC-Unique: meCj_nOQN3mhqZ-CPfcOGw-1 Received: by mail-vs1-f72.google.com with SMTP id h8so1996973vsq.19 for ; Thu, 30 Apr 2020 19:33:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FmTXwQDIMo+IjpBIspuTIpC6trFCfV96jFy7feBDa3U=; b=NjYFUVgs6JqDozp6sBmWczZlB98LosWmj2E/3tsT9hYYUKJ6ruwtEEeCpfIwG672iw JPSazF7lX90fYU9a7gjb6YVyWy/QjVKtz55SrKL94AE/fPMN0eVYqHHm4Sa8aPkLA/Z2 jGrndQoFgGZj3FP7t6pvr3/5YrYrpdaDGRmYLyOrMVoog/Nis3V2Y84xH4shcZGOH3R/ ig/ZR0YSXx5EPcUUglgev98owC5VP1203kvcBWglLFQoJH/T7ncWj1j7enKJkahxxftO 6vZ6GHvHo1OXQnc5EJmUNsUH3CHF+ZJeLFa+Biih6erEH3kJoIKS7mfj90YOHu+hXoa6 u/rA== X-Gm-Message-State: AGi0PuaNP4yPYkYzmNQ/7f4um/7ExbKM12kGn5JJRZaYJw3CzwiF9+0x GQWn0s+CaXvUF8Wyd0im4KTUPDSWSOFpwRkYd58cdnc9V/bk00PsOd2Tdf51a3vWoP6z81nOgQK 6ME4RfqVZjahD0JUihD9cHom9h3ev3YKSGZ2n0/Ek2ykG X-Received: by 2002:a1f:4106:: with SMTP id o6mr1255019vka.52.1588300419618; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKzJZChxr1bIOT3BrCLUuQh+Ikon7C/tnK/FqweuMnIX4otnNYFiYRZlgH/GIaMCFHcKeYabPii/TDhlHZceM8= X-Received: by 2002:a1f:4106:: with SMTP id o6mr1254987vka.52.1588300419383; Thu, 30 Apr 2020 19:33:39 -0700 (PDT) MIME-Version: 1.0 References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-22-hch@lst.de> <20200414151344.zgt2pnq7cjq2bgv6@debian> In-Reply-To: <20200414151344.zgt2pnq7cjq2bgv6@debian> From: John Dorminy Date: Thu, 30 Apr 2020 22:33:28 -0400 Message-ID: Subject: Re: [PATCH 21/29] mm: remove the pgprot argument to __vmalloc To: Wei Liu X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-hyperv@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Michael Kelley , linux-mm@kvack.org, "K. Y. Srinivasan" , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Stephen Hemminger , x86@kernel.org, Christoph Hellwig , Peter Zijlstra , Gao Xiang , Laura Abbott , Nitin Gupta , Haiyang Zhang , linaro-mm-sig@lists.linaro.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy , Robin Murphy , Linux Kernel Mailing List , Minchan Kim , iommu@lists.linux-foundation.org, Sakari Ailus , Andrew Morton , linuxppc-dev@lists.ozlabs.org Content-Type: multipart/mixed; boundary="===============1718727707==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============1718727707== Content-Type: multipart/alternative; boundary="0000000000004b5c5705a48d02f1" --0000000000004b5c5705a48d02f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings; I recently noticed this change via the linux-next tree. It may not be possible to edit at this late date, but the change description refers to PROT_KERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNEL was meant? The mismatch caused me and a couple other folks some confusion briefly until we decided it was supposed to be PAGE_KERNEL; if it's not too late, editing the description to clarify so would be nice. Many thanks. John Dorminy On Tue, Apr 14, 2020 at 11:15 AM Wei Liu wrote: > On Tue, Apr 14, 2020 at 03:13:40PM +0200, Christoph Hellwig wrote: > > The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove > > it. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Michael Kelley [hyperv] > > Acked-by: Gao Xiang [erofs] > > Acked-by: Peter Zijlstra (Intel) > > --- > > arch/x86/hyperv/hv_init.c | 3 +-- > [...] > > > > diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c > > index 5a4b363ba67b..a3d689dfc745 100644 > > --- a/arch/x86/hyperv/hv_init.c > > +++ b/arch/x86/hyperv/hv_init.c > > @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu) > > * not be stopped in the case of CPU offlining and the VM will > hang. > > */ > > if (!*hvp) { > > - *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > > - PAGE_KERNEL); > > + *hvp =3D __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO); > > } > > Acked-by: Wei Liu > > --0000000000004b5c5705a48d02f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings;

I recently noticed this = change via the linux-next tree.

It may not be poss= ible to edit at this late date, but the change description refers to PROT_K= ERNEL, which is a symbol which does not appear to exist; perhaps PAGE_KERNE= L was meant? The mismatch caused me and a couple other folks some confusion= briefly until we decided it was supposed to be PAGE_KERNEL; if it's no= t too late, editing the description to clarify so would be nice.

Many thanks.

John Dorminy


<= /div>

On Tue, Apr 14, 2020 at 11:15 AM Wei Liu <wei.liu@kernel.org> wrote:
On Tue, Apr 14, 2020 at 03:13:40PM +0200, = Christoph Hellwig wrote:
> The pgprot argument to __vmalloc is always PROT_KERNEL now, so remove<= br> > it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Michael Kelley <mikelley@microsoft.com> [hyperv]
> Acked-by: Gao Xiang <xiang@kernel.org> [erofs]
> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>=C2=A0 arch/x86/hyperv/hv_init.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |=C2=A0 3 +--
[...]
>
> diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
> index 5a4b363ba67b..a3d689dfc745 100644
> --- a/arch/x86/hyperv/hv_init.c
> +++ b/arch/x86/hyperv/hv_init.c
> @@ -95,8 +95,7 @@ static int hv_cpu_init(unsigned int cpu)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 * not be stopped in the case of CPU offlini= ng and the VM will hang.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 */
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (!*hvp) {
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PAGE_KERNEL);
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*hvp =3D __vmalloc(PA= GE_SIZE, GFP_KERNEL | __GFP_ZERO);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}

Acked-by: Wei Liu <wei.liu@kernel.org>

--0000000000004b5c5705a48d02f1-- --===============1718727707== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1718727707==--