Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp473654imu; Fri, 9 Nov 2018 00:25:38 -0800 (PST) X-Google-Smtp-Source: AJdET5fKJwRKpi3VkxbO5cpGCa2yL65/uiey4IwQ13uai2zbGWtNJwgkZJQBDeFCHOz7w1HVpJ1X X-Received: by 2002:a17:902:3283:: with SMTP id z3-v6mr8028195plb.308.1541751938816; Fri, 09 Nov 2018 00:25:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541751938; cv=none; d=google.com; s=arc-20160816; b=iQsHm1AIp/45HCqYF2jmHptnjItGb1mWDo4RP8gjUzdEcPks4/yaHv9ekgKitlscJ6 UMwhVSSHTKyqg/Ls0pA6yVMx31KRDYMYYTyrsXhSU+sw5m3UGZH8ioodbN41vr4Cc+Fd kP1HgBi81JXJdTm3hQdB2wSE0zvOn1uJs+k6gO2YWb6jO8oFp44ZHd7M33HxphDCKHUK 97mSZGHIRt6XqBaJJfBKTlTdC5TFRNVgOVxJKUMY9MbALvVDhVmQKMWVX1b7SDw9ua24 7+OfpxC1KSQrB8cVovcB1qFtzs0OsawU1JE2i1ZhMISulDGcFGuTRZR0mbgTG2zMBP7e h68g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Xt7QCGw++akA77vlfkmWoTE9LyFDe/QX/BbsCJDsPBk=; b=klhxFs1LyXzuXzh90HrhwEQbqckDt1B9YI4GIkmQ/8FygoQwd4Q/IdG6d/6h+2PvlT q8xBX+NUWPQiX+S7TMEH5L8RMPMGSVhdixl2v1UNWDczhHFhqO7m+c+7gHWAzP74jWUa JDhP9x7TFi5HDTzIk13cH6rKdpNgRF/K+KsqdXph1CeOdkLAa9Bveq6kCh2MjXK9m6vD aG0HqfMBRR4wxh82BA9FT+Gr6PSd8e32bRHvHHVyF1y0/Bm2QHWnxFMVHC8dwAWbcb90 Scq3CuVZlUNx8yiBYhRZrPs7IURP8t20zioenUpxfgNG5Dffemd/JjfiNEhEXY6/aTmD nJbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="A/SA9FCl"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si5881303pgr.69.2018.11.09.00.25.22; Fri, 09 Nov 2018 00:25:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="A/SA9FCl"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727637AbeKISE3 (ORCPT + 99 others); Fri, 9 Nov 2018 13:04:29 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33758 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbeKISE2 (ORCPT ); Fri, 9 Nov 2018 13:04:28 -0500 Received: by mail-pf1-f196.google.com with SMTP id v68-v6so618098pfk.0 for ; Fri, 09 Nov 2018 00:24:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xt7QCGw++akA77vlfkmWoTE9LyFDe/QX/BbsCJDsPBk=; b=A/SA9FClORwx0R6elb0IcLTjl5KNb0T15LI40GkkJrx+BXwnXE6fcM1HCD61ERQX5w YmWs9aU0cWpVJfRjp0vD5bk1ab8ZBXXulsNByoHxTgM1jPmdzosCsmVIeJSh084dwyfd kdNi0jL3MAm5aBAQ5Clrw3O4ZdZL/5wTPxF8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xt7QCGw++akA77vlfkmWoTE9LyFDe/QX/BbsCJDsPBk=; b=c/tTiYwv0jhcDQJgfW/EAI1qh+nHEJyu6TIY8rg1WTTDtFwDzoaWpxiswV/A/55ToT K4w3TyuP44nZ/2VnesC4OvvcNEaJECO9N2WIR5t5H39zdAf3wN4V5uS11WrAwpZGobO9 JonRRLvUF+eGumE2v2d6u/vAT+p8YeV/7h9wal5zVIQH/VSox9GHf5DiwzHzTMk41lKH 8y6Caz3H1EJuLpA6x/8qOEc13SvhYn8RQ076r1KfbYwYgxe33M30n+YOWSDIz8nFnqeG yqIyJGuyKvcAmZGhnX1Hq0wkxVS8k4fjTiwHLRac+Yp30jszgnQcXB/XVwhEkeLPbtlR gDBw== X-Gm-Message-State: AGRZ1gIyjn1fWNT2sF3pA0pLAluD+dfYwPLHKdYZ0IdLfhvZZDhKx0pm oCF0jVawUwdAuAL98tfgi7ge7g== X-Received: by 2002:a62:f599:: with SMTP id b25-v6mr8149413pfm.253.1541751899094; Fri, 09 Nov 2018 00:24:59 -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.24.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 00:24:58 -0800 (PST) From: Nicolas Boichat To: Robin Murphy Cc: Will Deacon , Joerg Roedel , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Michal Hocko , Mel Gorman , Levin Alexander , Huaisheng Ye , Mike Rapoport , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Yong Wu , Matthias Brugger , Tomasz Figa , yingjoe.chen@mediatek.com Subject: [PATCH RFC 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables Date: Fri, 9 Nov 2018 16:24:45 +0800 Message-Id: <20181109082448.150302-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow-up to the discussion in [1], to make sure that the page tables allocated by iommu/io-pgtable-arm-v7s are contained within 32-bit physical address space. [1] https://lists.linuxfoundation.org/pipermail/iommu/2018-November/030876.html Nicolas Boichat (3): mm: When CONFIG_ZONE_DMA32 is set, use DMA32 for SLAB_CACHE_DMA include/linux/gfp.h: Add __get_dma32_pages macro iommu/io-pgtable-arm-v7s: Request DMA32 memory, and improve debugging drivers/iommu/io-pgtable-arm-v7s.c | 6 ++++-- include/linux/gfp.h | 2 ++ include/linux/slab.h | 13 ++++++++++++- mm/slab.c | 2 +- mm/slub.c | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) -- 2.19.1.930.g4563a0d9d0-goog