Message ID | 20181109082448.150302-3-drinkcat@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B91B55A4 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 9 Nov 2018 08:25:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A951228FBA for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 9 Nov 2018 08:25:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CF442E661; Fri, 9 Nov 2018 08:25:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FF4F28FBA for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 9 Nov 2018 08:25:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9166C6B06B7; Fri, 9 Nov 2018 03:25:08 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 89FB56B06B8; Fri, 9 Nov 2018 03:25:08 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 71B496B06B9; Fri, 9 Nov 2018 03:25:08 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by kanga.kvack.org (Postfix) with ESMTP id 2D4986B06B7 for <linux-mm@kvack.org>; Fri, 9 Nov 2018 03:25:08 -0500 (EST) Received: by mail-pg1-f199.google.com with SMTP id z13-v6so740555pgv.18 for <linux-mm@kvack.org>; Fri, 09 Nov 2018 00:25:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=LemySw+6VGiamWvqm4d+lqoRj+4VmarF9XYWRMSCiY0=; b=ieb4hPcFuaIDHwFjCU0usGWwhC+jduP7eOo/V2isA0RRP3/UaC1lrVouay65CEtqyz 2M70ssjEvlu2NAzgIEyM5x1/vViXfbK6tjEVviDDMqqNVb95qYQmFa+lA5nXGxexpmZw YwJRBXXPtRcCe9fQTrovHP2qiACcu5YMgCkNZcMc/IJXu9rDdwdaXZGiaXj8d43/K/P3 SgL6e8tdLfQs2Y8H0keODXEC71rikPNYQz4OIuIbEKFVbCgFCwThWp3J86gJLC4ozHu5 TRoJTF8uwsxxZz6NWm05F8R3cntyHLixmr5v2+nNO83p81IMhON49ox9q5VAlNHDr25i h4JQ== X-Gm-Message-State: AGRZ1gI6+3ZmaOYoaYTYh28DaBcM/Xo2fGtthxaYG4lE3okjnI5NqEZ1 ckyfsS2gw+ZZf34hhmXLQgAX4zFBrlkp9oo4JEt4LcWjYsYHsReFCg/Bi0ZJW0+FFCJK+CD9Yo5 RUD5DEZ0ey0zd0eZMrGLgm8tSC0vaJw/ay0mrty5XD+MNS6T3CWS5FRfG11sWPC8Z6S/umJANRs soGgRqyJuYsj/IBsRtpMJVaQSqSHrd3thxptQWTCO6SNJ4hw9HvmUR4+DTy9HVzkCBBi/QLi6nD ozuxeTUnETq6PDUEd9TK4MiX1SRcvmb9RlO9ppLKxrAw3bCEXmiJg4cuKRurffz0mF1ihEa1Q82 PdXAhj7ZdavOf2YZAVQzO1R+nzz8eG31VGaJ5CxJK34TP7QoNty4KU3p+CjUTOSi3jBLBUbHiRx i X-Received: by 2002:a63:235f:: with SMTP id u31mr6600660pgm.122.1541751907730; Fri, 09 Nov 2018 00:25:07 -0800 (PST) X-Received: by 2002:a63:235f:: with SMTP id u31mr6600642pgm.122.1541751907149; Fri, 09 Nov 2018 00:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541751907; cv=none; d=google.com; s=arc-20160816; b=VcioKOfPXxh40U3wVf7c1yLWyKlzYpHqsb/dSjxXc8BbiqMdqmXi+4v1bDqkaZ+g4E B6s1kv6U7CGrtOqUtvTxNyUw75AE6WKBv38UBSG0fF4aAmcKuU8LrIM9weM6z0hgrrHG 64yUdjcA87z6qb36TYDahaOE/aet576T6z+oHRcsJEaRglP+V1ybkLQ75fJr8yiBBYiR oQPXuCeR08LBaGO0BukrTP//GcOqKpDBY4VXQHJ7IXodVwANgvlfwHMz8uTbauTw1bY3 i8AcySAKuqbRVHXJlSI0K8quTEgE+YMqDXUZKdlyYXFOl5W6XXwtqhGnrD4Q5F4XiQ4u SwyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LemySw+6VGiamWvqm4d+lqoRj+4VmarF9XYWRMSCiY0=; b=XOW2wXXGzRRcmd7L8Ywmq6Q7quoATgG/YNc7JJcaZh3+IyHGuA++jT9nUBsqZHX+2L teaqjJsCYSjE39SDJbCpK0B8KePMsSmxdkahm+LWrrs5ZQgV1kROE5YLdlo925qCNnlF buAa4Z+2dzDcPuDTmwNf4pHo13hYx6adyWa2TxGecckH1a7m468LNJmQSDkJ+YKctZau WD7C8KiTLQKGj8Ux2hN/qBrNSqadaGIpkk4xRHeC/o/kq3540OBD/DcAZejWF39nzP4V l6V4dmKh9sWm4wPZW5mGxsDPMQqrJ8Re4YcckO5XiNW2TAIJju36QauhYFblNDKwMW/s u+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kXRqBVeN; spf=pass (google.com: domain of drinkcat@chromium.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=drinkcat@chromium.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n67-v6sor8415883pfk.14.2018.11.09.00.25.07 for <linux-mm@kvack.org> (Google Transport Security); Fri, 09 Nov 2018 00:25:07 -0800 (PST) Received-SPF: pass (google.com: domain of drinkcat@chromium.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kXRqBVeN; spf=pass (google.com: domain of drinkcat@chromium.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=drinkcat@chromium.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LemySw+6VGiamWvqm4d+lqoRj+4VmarF9XYWRMSCiY0=; b=kXRqBVeNEZdfgT3ytQbgbNo0uRTe3Xsc6d3oPkkEZhjcWlI18sIckVu6vbliNO90tc olUj5T/CnTthMuYB9ChqlAk12gsPARZ7DmsTtDZXCLYlzQAffFO20/PQnFgJJl2kYV6j 5FpNkBRpuQUMncbBrRoIectbjBfuwZzMPWSr8= X-Google-Smtp-Source: AJdET5eNDtelDWete20VE7bb/tq+ntm0saZaFjUUpOGpXNsrDwjhGsWR0JG3+RHsaoUhprmNgBhOCQ== X-Received: by 2002:a62:7514:: with SMTP id q20-v6mr8165586pfc.8.1541751906702; Fri, 09 Nov 2018 00:25:06 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:f659:7f17:ea11:4e8e]) by smtp.gmail.com with ESMTPSA id u2-v6sm6415667pfn.50.2018.11.09.00.25.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 00:25:06 -0800 (PST) From: Nicolas Boichat <drinkcat@chromium.org> To: Robin Murphy <robin.murphy@arm.com> Cc: Will Deacon <will.deacon@arm.com>, Joerg Roedel <joro@8bytes.org>, Christoph Lameter <cl@linux.com>, Pekka Enberg <penberg@kernel.org>, David Rientjes <rientjes@google.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Andrew Morton <akpm@linux-foundation.org>, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>, Mel Gorman <mgorman@techsingularity.net>, Levin Alexander <alexander.levin@verizon.com>, Huaisheng Ye <yehs1@lenovo.com>, Mike Rapoport <rppt@linux.vnet.ibm.com>, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Yong Wu <yong.wu@mediatek.com>, Matthias Brugger <matthias.bgg@gmail.com>, Tomasz Figa <tfiga@google.com>, yingjoe.chen@mediatek.com Subject: [PATCH RFC 2/3] include/linux/gfp.h: Add __get_dma32_pages macro Date: Fri, 9 Nov 2018 16:24:47 +0800 Message-Id: <20181109082448.150302-3-drinkcat@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog In-Reply-To: <20181109082448.150302-1-drinkcat@chromium.org> References: <20181109082448.150302-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables
|
expand
|
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 76f8db0b0e715c..50e04896b78017 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -535,6 +535,8 @@ void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask); #define __get_dma_pages(gfp_mask, order) \ __get_free_pages((gfp_mask) | GFP_DMA, (order)) +#define __get_dma32_pages(gfp_mask, order) \ + __get_free_pages((gfp_mask) | GFP_DMA32, (order)) extern void __free_pages(struct page *page, unsigned int order); extern void free_pages(unsigned long addr, unsigned int order);
Some callers (e.g. iommu/io-pgtable-arm-v7s) require DMA32 memory when calling __get_dma_pages. Add a new macro for that purpose. Fixes: ad67f5a6545f ("arm64: replace ZONE_DMA with ZONE_DMA32") Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> --- include/linux/gfp.h | 2 ++ 1 file changed, 2 insertions(+)