Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2805238imu; Sun, 11 Nov 2018 01:05:08 -0800 (PST) X-Google-Smtp-Source: AJdET5dTesUTiiPZUHEw5uf3pLA0YFKbgLSGeIl8afW8celrDfrKPzGRIcMUfOt/2OmDRTU45IZT X-Received: by 2002:a63:61c8:: with SMTP id v191mr13676664pgb.242.1541927108299; Sun, 11 Nov 2018 01:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541927108; cv=none; d=google.com; s=arc-20160816; b=l7K+r7dIWqT6yWjVdQjPVejgEbkEAi/NxZ/mUmIYxhLgvL+kCkZBYLIvhD/dj7S4gQ hoyNiAUwEZEWAWCGzKzGRi/mepwPL3/HqYPFh757NC9i0xNI12JQ34EMSVBVXfULUTCh /auj5DHAeFmI/gxlC9yY92GkNPqJRWiRp/fbrQvbiAYUqghw6dFi+5WqsvuCMEvcpzEW SrIT/Nb55ojooxEnwk+ZwjBPZcRBElKELiA+PZkzmvJOctMZlauuvcJ3dNawE6R/wXl8 JwXE0rh5f4mglCF3YK0np2sykb+UhtOYX1DWME+Nzj44S8xj/kW9DpHx8ShEZTvW79Xb L6vw== 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=YH0dpLemzETchXwysz1a293wDlVR1tlxLKZnu56Wuas=; b=JACtSg2q3C/kZrOIRSrUdfaTkUsaRJmMJzYXY3qUZpL7xh2MHG+1s/AVkg78XtEwng 7Y/SqB/7Qubhdj4+MCrV+AFnvpVw4Ntc0CXM/YNqG5yKv/HmGLF7o6dNhu1noJ9IGkNY 6EeKxvjmcCLHos1hDQEZTHe2j7/fvBBHQPcoyzidjwYroG/mbBOm3hDua6+nVSsxfSKR 8sVgcPTrWlCKc+JZ4mrw52r+6TCyPiLzsh/2jaHwkMkpDTXATbp0yCVzcPjKiQnLfZs+ YDK82ZXShPbayGN6mJt4JzoCLYKujWjXoIgfq0+5MXxeV1K/hVY/gVk82q/ss8AkRqRw tcCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nTVGFkxO; 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 l62-v6si14004850pfc.114.2018.11.11.01.04.37; Sun, 11 Nov 2018 01:05:08 -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=nTVGFkxO; 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 S1727479AbeKKSwC (ORCPT + 99 others); Sun, 11 Nov 2018 13:52:02 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39985 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727334AbeKKSwC (ORCPT ); Sun, 11 Nov 2018 13:52:02 -0500 Received: by mail-pl1-f194.google.com with SMTP id q19-v6so2863761pll.7 for ; Sun, 11 Nov 2018 01:04:03 -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=YH0dpLemzETchXwysz1a293wDlVR1tlxLKZnu56Wuas=; b=nTVGFkxOErxYFfdmoxWfmHfjGNbk62h55lL3zEjAkuWhGdoO61xN6eXeKEtaT789my lPKE0n4qgCeJCY9/4S2si17Uf5q9HNdIIzAQ9mPXiATgyxuTEa1DJLMi4kahnoegyIkW jTI+kdqxT/lcn8tL7VvR68HG9RudI/BJJ8bAs= 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=YH0dpLemzETchXwysz1a293wDlVR1tlxLKZnu56Wuas=; b=mpIM4tQOlNYQBD6TBfMn7MT4E8/P+cmvZx7FjFPoua5xgXiu2Sj6FeufHki/MjpcRb WjIYKcluWY5f0IAMNTkNkmbUd+xyWTk2L9rT3SKBZMTvrfhF86N1Z2/bYB8ZKxzN2JHu CxGR7wZKGLPlCkIH1m1koma6axRT5HRI8s0gkuqrNKqxiQaDPDTmE6gB4nuiAjKi3rWQ dV/0C/EXv089hxM4isJ1u6or4usP7dHPUoT/AewBZhmvYYD/+WbQ98uMsajL1V6UCgt2 yXuI3GhT/jVdPPpy9+1dI5p0UYjDG2lvSMjZ5ZAnvQoGZxBXzy6HAYkGyAvV4racAr+8 pZtA== X-Gm-Message-State: AGRZ1gJaPVEpUdekUzirnD6uIQvFeeKxl89trY42AGuYfpbxHLG5x709 jEihX37vqmB/McVlRqZoLaF/UA== X-Received: by 2002:a17:902:8ec2:: with SMTP id x2-v6mr15716258plo.157.1541927043030; Sun, 11 Nov 2018 01:04:03 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:f659:7f17:ea11:4e8e]) by smtp.gmail.com with ESMTPSA id 69sm8107956pgg.86.2018.11.11.01.03.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 01:04:02 -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 v2 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables Date: Sun, 11 Nov 2018 17:03:38 +0800 Message-Id: <20181111090341.120786-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 Fixes since v1: - Add support for SLAB_CACHE_DMA32 in slab and slub (patches 1/2) - iommu/io-pgtable-arm-v7s (patch 3): - Changed approach to use SLAB_CACHE_DMA32 added by the previous commit. - Use DMA or DMA32 depending on the architecture (DMA for arm, DMA32 for arm64). Nicolas Boichat (3): mm: slab/slub: Add check_slab_flags function to check for valid flags mm: Add support for SLAB_CACHE_DMA32 iommu/io-pgtable-arm-v7s: Request DMA32 memory, and improve debugging drivers/iommu/io-pgtable-arm-v7s.c | 20 ++++++++++++++++---- include/linux/slab.h | 2 ++ mm/internal.h | 21 +++++++++++++++++++-- mm/slab.c | 10 +++------- mm/slab.h | 3 ++- mm/slab_common.c | 2 +- mm/slub.c | 24 +++++++++++++++++------- 7 files changed, 60 insertions(+), 22 deletions(-) -- 2.19.1.930.g4563a0d9d0-goog