From patchwork Fri Nov 9 08:24:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 10675509 Return-Path: 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 021F714D6 for ; Fri, 9 Nov 2018 08:25:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D4B2E661 for ; Fri, 9 Nov 2018 08:25:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9A452E664; Fri, 9 Nov 2018 08:25:20 +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.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8BB8C2E661 for ; Fri, 9 Nov 2018 08:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AAlUo0B1DZrxw0JPDL0LqHRAk0jMEaW65r5mcwkHG0E=; b=qn5PfEumGvIB8z bH+O10xp3fxs5gcBNpZyN5KU16Yb0GC/fIvCnHLGahiy4IQEI/F7a5UYqI3WGzAVwn73ai7YZ8lWH jwDf/CHLvAtSVkbrDZ46Nmu458iqoeNx0wF36dW1l5iXDfKIRgJn0H4N9+3z2Mcq2H2zCKY6l4IXi UXeVo6BQF+51svW+yTATDrtVW3xW4etBUg6IMknil6oaqlNhPDIir1rCRWu5uabHdb3pySBeJAX2i vWlpIwSCXDq+akeR0oBm68AsuDJ3l3ikCyrZqD43hgicBxcY+AIiEeiQzGSTHx+V/52g1MrkE3eWn 0JTZ1/T0hxA4mh8ISXKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL26L-0007NE-SJ; Fri, 09 Nov 2018 08:25:13 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL26I-00066n-Uy for linux-arm-kernel@lists.infradead.org; Fri, 09 Nov 2018 08:25:12 +0000 Received: by mail-pf1-x443.google.com with SMTP id s9-v6so590801pfm.13 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=mjkfSwor0pJ49d2/JJxgo9F3yhhjYoCqdDM+v934KCIGX8hiuMpo8SNmG5ne/riSQa pvlKGcdWa94GGbNOiVuVXv1FCjPRVBudtIxBhdxoSWgSwN0mZZXBttQkJHdC4WoJGEzw LfCbHwjhbAEBDhR99aGgSrcRF7/xXfWzh007enrJkI0ut9iNE23u8Ebb2lACWnLF8giH sZPqGSvMlID3LK3Hpaz9Q7dKIWN4bdvKBiUh1Wod7CHQI+tpeefTHwX2g8aYBtG8yZ1i PtQ28w0ZbbEDvRgddiLHr9WccmLaIy9kGUBhH+LjmduSxOt3Xni9U6SAxPxF6K5MBjPx HExQ== X-Gm-Message-State: AGRZ1gJn7AzJuWxwu1a7KkMOa2D0FUB+X21P+3KzyHjqbzRmAn1SjJb5 5h6IWLO9MOBaIHNJkYW/m7oQqQ== X-Google-Smtp-Source: AJdET5eSKbdk5UJHF0yrZ4GLXOcx7jYFXEFEDcZtMrya6XPJm7znurvMH5vqsl7N0/k3jYB0+0UiNA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181109_002510_999292_3DA8C748 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michal Hocko , Andrew Morton , Huaisheng Ye , Tomasz Figa , Joerg Roedel , Will Deacon , linux-kernel@vger.kernel.org, Levin Alexander , Pekka Enberg , linux-mm@kvack.org, iommu@lists.linux-foundation.org, Mike Rapoport , linux-arm-kernel@lists.infradead.org, David Rientjes , Matthias Brugger , yingjoe.chen@mediatek.com, Joonsoo Kim , Yong Wu , Mel Gorman , Christoph Lameter , Vlastimil Babka Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)