Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2491538imu; Wed, 21 Nov 2018 12:29:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/VY0q+MxMQFh1K2K1tSrvK93315Bi6PStWg3tCHmaEypN3zXdIHLCz4Htdc5Bdj3OZiP/nF X-Received: by 2002:a65:6645:: with SMTP id z5mr7366773pgv.351.1542832195329; Wed, 21 Nov 2018 12:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542832195; cv=none; d=google.com; s=arc-20160816; b=Krq5dhJ7pey+jtSg0dhLHc6xbBBw4h7oJuePoX3GClEdQzaXenCxFvLkObwGsevxVX dU4Av6qk14q7boQvBiw001MYUjB4vjPBAJUi76g19Fm/xQvTqSZ8jVEDI19xHujm3Jc0 fxYJvzTk/f5lqQhFOv21814B0Xtqz7PLOLO0beR00BFwh1gsW0HnM2GR27c4PA7j+NWI RkMDpMtQzp62gSiQP3vHHH4lomJvCxGUmts7FcC3+SjxTwy1Y4IAeT1MJBatSQDApMNw mQRIIyMCB294DtirKFPgXfnd3DizraLuh/U2WPx4nnnNwDErZRHA0Ua1AHNML01TJXDI xF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=TDS/KSSAe75SnjHwizG1Vlz0DTA4ie/UQ0Qa1GsDDmM=; b=OCmkfExsqfj45fwclUcUgNizwWVd7+0El5HTgaFG1OynbJeuu9M8bQpqb/JHvzdmWp gT5/Omlt+W2y+J4/lt1O68lkNLg2ufoXc+2LKfSkx6eTTh79e38/Tu/bigJETRmqpkBY Cm2Zz8SaNM8eXcX/hRYuo5cUeOLw2rL9th5p5jvCMSk6AwTvpWARYQwXg03fK/RzgBVl isLvpTBppgZD/SXIzVr7RdFACS88jvOrUMy5KiDV38OiqtUItsir85paa7cPb7TaX1/N rCnnxPekD+CLtnVfK+pJNQduIjZpUfKeE3d1Ch2pztaQ/fCwmYxJNGm6B4phY6QNI7rY hfJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=WAYQm0ly; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si45120410pgi.146.2018.11.21.12.29.40; Wed, 21 Nov 2018 12:29:55 -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=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=WAYQm0ly; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733083AbeKVExt (ORCPT + 99 others); Wed, 21 Nov 2018 23:53:49 -0500 Received: from a9-35.smtp-out.amazonses.com ([54.240.9.35]:34322 "EHLO a9-35.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729128AbeKVExt (ORCPT ); Wed, 21 Nov 2018 23:53:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1542824303; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=TDS/KSSAe75SnjHwizG1Vlz0DTA4ie/UQ0Qa1GsDDmM=; b=WAYQm0lyvi/k9f4dHBbDYfMfTF3Do7Smj479B6r1Hq6BAPwU0mgCQBoGFGjOzrty r2uoytJPtyxTUJoSqPiHiXpG2pukBxezPBJ71FD8hZ46M/oLpBhTTnjbFPBQfXWc91v tI+iL+nldwVTJjGWilUO2XPZSVdtDEvi//yiQr5A= Date: Wed, 21 Nov 2018 18:18:23 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Robin Murphy cc: Will Deacon , Nicolas Boichat , Joerg Roedel , 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: Re: [PATCH v2 3/3] iommu/io-pgtable-arm-v7s: Request DMA32 memory, and improve debugging In-Reply-To: Message-ID: <01000167377e99b6-10666044-2e7d-4af3-9cae-9db9c1a9b279-000000@email.amazonses.com> References: <20181111090341.120786-1-drinkcat@chromium.org> <20181111090341.120786-4-drinkcat@chromium.org> <20181121164638.GD24883@arm.com> <01000167375a15f8-362aa1e2-cf01-49b5-92b5-f0a4efcca477-000000@email.amazonses.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.11.21-54.240.9.35 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Nov 2018, Robin Murphy wrote: > On 21/11/2018 17:38, Christopher Lameter wrote: > > On Wed, 21 Nov 2018, Will Deacon wrote: > > > > > > +#define ARM_V7S_TABLE_SLAB_CACHE SLAB_CACHE_DMA32 > > > > SLAB_CACHE_DMA32??? WTH is going on here? We are trying to get rid of > > the dma slab array. > > See the previous two patches in this series. If there's already a (better) way > to have a kmem_cache which allocates its backing pages with GFP_DMA32, please > do let us know. Was not cced on the whole patchset. Trying to find it. Its best to allocate DMA memory through the page based allocation functions. dma_alloc_coherent() and friends.