[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [External] Re: [RFC PATCH v2 00/12] get rid of GFP_ZONE_TABLE/BAD
- To: Huaisheng HS1 Ye <yehs1@xxxxxxxxxx>
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Wed, 30 May 2018 11:11:19 +0200
- Cc: "kstewart@xxxxxxxxxxxxxxxxxxx" <kstewart@xxxxxxxxxxxxxxxxxxx>, Ocean HY1 He <hehy1@xxxxxxxxxx>, "gregkh@xxxxxxxxxxxxxxxxxxx" <gregkh@xxxxxxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "willy@xxxxxxxxxxxxx" <willy@xxxxxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxxxx>, "linux-mm@xxxxxxxxx" <linux-mm@xxxxxxxxx>, "colyli@xxxxxxx" <colyli@xxxxxxx>, "iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx" <iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx>, "linux-btrfs@xxxxxxxxxxxxxxx" <linux-btrfs@xxxxxxxxxxxxxxx>, NingTing Cheng <chengnt@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "akpm@xxxxxxxxxxxxxxxxxxxx" <akpm@xxxxxxxxxxxxxxxxxxxx>, "alexander.levin@xxxxxxxxxxx" <alexander.levin@xxxxxxxxxxx>, "mgorman@xxxxxxxxxxxxxxxxxxx" <mgorman@xxxxxxxxxxxxxxxxxxx>, Christoph Hellwig <hch@xxxxxx>, "vbabka@xxxxxxx" <vbabka@xxxxxxx>
- Delivery-date: Wed, 30 May 2018 09:05:06 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, May 30, 2018 at 09:02:13AM +0000, Huaisheng HS1 Ye wrote:
>
> I don't quite understand that. I think those, mostly drivers, need to
> get the correct zone they want. ZONE_DMA32 is an example, if drivers can be
> satisfied with a low mem zone, why they mark the gfp flags as
> 'GFP_KERNEL|__GFP_DMA32'?
Drivers should never use GFP_DMA32 directly. The right abstraction is
the DMA API, ZONE_DMA32 is just a helper.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|