[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64
- To: "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "linux@xxxxxxxxxxxxxxx" <linux@xxxxxxxxxxxxxxx>
- From: Peng Fan <peng.fan@xxxxxxx>
- Date: Tue, 23 Jul 2019 03:21:14 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=nxp.com;dmarc=pass action=none header.from=nxp.com;dkim=pass header.d=nxp.com;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e5nGytv3kdNJiFIuhNlujKN5XwzFGqOxaWwABV1NKGg=; b=Y8r3Vez6z3T+If6LjgjWn1jQfU2+XVDIBpZOYC5/QvQKobz84BIbyyDOvLyCxLQgJ6WCntZSI+gVu4iF4f0eZPTvCMNJSIbhX4ACY7U3eKcQ3vAaDwOV68tWRzyOTU8fYQ7Dk6+8AKN+CfHwWcw0kcMur8sRhDrjp91TnDVKwF72fAupETROR2HGjwcJrJyJb4Wfa+wlHzGsRbXBJM2pGNoDAIeUYXAwgaRt55/QV+MU2rwk+AaIet0r1NKlcDMYwyAsytUTK6UgZe1KGK6Jqinfs0Q0OCmf5pbk0s+CJuYdjRSgQVRvwMUjnY0d8iHVvFfFUIdlI6EDtg300O0rSw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZVaJsqzo88iM2eDvG/Z903pmCfBZjbHBQ4kyPZAy1IFyHxq9svIeOiSFYqSEjONxfOW60c6qWhgnJtL/HITcVdhKu+bDABLY9PvuinYP5Hhm0LRvoQT+SPhHIgtWvL2AOVqsGFBkO/fgam/L1Dy57BNbP/I4K9TElCUrbBfjvZq2vwrB+C1lIMi4QZ5/TXhdgI2G6kUP8Ca8RoxxlqWNGH8p3wNSSSNYX9synywOl1Gz6dRTu+82Nx9McbUMWyE5DMbEz+6DV5zCs+l0FgtALoUiBHrl89PZwwDb3ShU2Xh8wRIsOruHLGr73x9sJE4rb3Wfy1yu4LZNkiSyH9sRg==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@xxxxxxx;
- Cc: "van.freenix@xxxxxxxxx" <van.freenix@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, dl-linux-imx <linux-imx@xxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>
- Delivery-date: Tue, 23 Jul 2019 03:21:37 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVNi9zmpVhxJk2Z0aPUBEkePn3c6bXnoow
- Thread-topic: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64
Hi Russell, Stefano
> Subject: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64
Any comments?
>
> arm64 shares some code under arch/arm/xen, including mm.c.
> However ZONE_DMA is removed by commit
> ad67f5a6545("arm64: replace ZONE_DMA with ZONE_DMA32").
> So to ARM64, need use __GFP_DMA32.
>
> Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
> ---
> arch/arm/xen/mm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c index
> e1d44b903dfc..a95e76d18bf9 100644
> --- a/arch/arm/xen/mm.c
> +++ b/arch/arm/xen/mm.c
> @@ -27,7 +27,7 @@ unsigned long xen_get_swiotlb_free_pages(unsigned int
> order)
>
> for_each_memblock(memory, reg) {
> if (reg->base < (phys_addr_t)0xffffffff) {
> - flags |= __GFP_DMA;
> + flags |= __GFP_DMA | __GFP_DMA32;
> break;
> }
> }
Thanks,
Peng.
> --
> 2.16.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|