Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp695494imm; Wed, 22 Aug 2018 10:58:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyypNxAdfvOn06fI13OeZlnmJUrJkeZ3gUfyDT6def0XWHE9IsCLonrWDpJ1MDRpOHkKuIw X-Received: by 2002:a62:1a8f:: with SMTP id a137-v6mr58896792pfa.190.1534960723295; Wed, 22 Aug 2018 10:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534960723; cv=none; d=google.com; s=arc-20160816; b=kswKtobbkqPltdIvf+BPqn3hMAmT2MudN1sAMvqFwKsc+FaYEWRtW/wEdY+wkXQEza owKJyVq/Dv1AFGHn076kwfYCMuCLXLKcq84q97LOk5Zc5rZQc1YdjXGWXvX2IybO5vTY q6YxQ4diL8BCOPodysS6bXSCAHqeu+3fBrPXHPo6xmEg+lepvs79vwZlIouQvyQl7iL5 B1mPwaxRvV6z3VRy0BSs8yG8AuH3BwJKwTDdx/orcPywqS24dra6pkfWKBTAaLWvvmj/ HxLhaShn/Vhybn6bo633gdqCxDJlX3YDeMmhBvsB7Hboz97ImvCyDxGmnGxYmCInvS0j xNrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=j+Duo5Zd3dc2U2bmtFSOK65PK3BsP/GWImhAiwC5ulM=; b=QAx1907Y1buOaXNRkmDOmmfUu+BtZnZUtTR6AqLJnFb6g3SN8DRuwSDOiKf/mFkgCJ gXeagsWDUJSBBfvQmd+qcSOuYTS9Z+hBHDcs6FBfdW4UhCpjwAJZQBASisU98+5ZCg6n 8BiEdeFiIol+F6xKe+fKfwcoDWS6+xx1c9TrMXytXI03hd1BHUJECrPpVTWy+jozeh7E jok6LOI6jaj+i30OyMnPUSrDZYiFACFahxjr5QIzxBLfCs3qNDJOHn/ZUXSrQBpPQVrB VTA7ynn9L3vUgJNgwhfG+zLvQrARCjX1ekAXlN+UhdkNnKMOsehm5O4uxZEx2Tu8PWgg KE6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ozVOMdGL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1-v6si2066360pln.250.2018.08.22.10.58.27; Wed, 22 Aug 2018 10:58:43 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=ozVOMdGL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727602AbeHVVXN (ORCPT + 99 others); Wed, 22 Aug 2018 17:23:13 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:46113 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbeHVVXN (ORCPT ); Wed, 22 Aug 2018 17:23:13 -0400 Received: by mail-oi0-f67.google.com with SMTP id y207-v6so4600731oie.13 for ; Wed, 22 Aug 2018 10:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j+Duo5Zd3dc2U2bmtFSOK65PK3BsP/GWImhAiwC5ulM=; b=ozVOMdGLX1CMFwqXsupwbyOx7vnJ2JfyjwrfbGhxcF+XUWBtJ/jJwBRCwiOdNAr/26 90vWlmXbBCNTSUslmkkb43ucBGB3f4lK9Pap7Foclypt68sI2epyQ+TD2nfy4zBfbZde 1AnwLR4sdlVSopCfQ7WCNxtrmAHBCw6evEmEKSq7BGozy0kvWJPf5O7I3COyOo+HUYE4 GUo4qmmoxCwcbX2Kop4EIyWeIbmSKjm4eOMXr7euMjJEtmYninAKL5eIfoW2L9nEDZJv TA/gPYC4x6okdhOPDH6geIzuEXD6Wll4qjrrTXXjjbQnFgapcI4LDW+wXFJxKAtZdlDR Vo4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j+Duo5Zd3dc2U2bmtFSOK65PK3BsP/GWImhAiwC5ulM=; b=bzJunkZsWN+fDCmWY+3G0/irQjQsoeb6MBr8nOBgemRTNt+qdGbDmAgGZXc8ikjTpB xgJvMpU6Y7dgnnrUbmkdbPc/4tWK77W3e3RRYm5pGoIzguQg/DALX8jt5dZyQIYSuHQA 8+K349FgHXw6MfntRMyq35kcE/499x04VIL3EOS7tjJF2wmwuqaRIlmksuKfEksWNFhi ChygW5KtdjwaEU46WIZx9TEJqvfIe8tMP2hbXCRqHJF1fvcuDePRgt3Oja9YrS/HJgmG AUwZZJYahUUWp+hyXBa0uGyUUhlExAVFErrKzHXNyXemqTc50xhHcsBVhijE1sS1GsnO rjWw== X-Gm-Message-State: APzg51B9Vx7xMiFyRoUjkZSDq1k3pbDkMOPn6+MROLszmM80Jh4G6hKN IZo8JFma6v+qxX6bSo9xLddCzw60Rn3fQCEdS4k= X-Received: by 2002:aca:a12:: with SMTP id 18-v6mr5263336oik.292.1534960639722; Wed, 22 Aug 2018 10:57:19 -0700 (PDT) MIME-Version: 1.0 References: <20170921085922.11659-1-ganapatrao.kulkarni@cavium.com> <452f1665-eb3a-5e8c-f671-099ef4a15d84@huawei.com> In-Reply-To: From: Ganapatrao Kulkarni Date: Wed, 22 Aug 2018 10:57:07 -0700 Message-ID: Subject: Re: [PATCH 0/4] numa, iommu/smmu: IOMMU/SMMU driver optimization for NUMA systems To: John Garry Cc: Robin Murphy , Ganapatrao Kulkarni , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-mm@kvack.org, Will Deacon , Tomasz.Nowicki@cavium.com, Robert Richter , mhocko@suse.com, akpm@linux-foundation.org, vbabka@suse.cz, jnair@caviumnetworks.com, Marek Szyprowski , "Leizhen (ThunderTown)" , Linuxarm , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 22, 2018 at 9:08 AM John Garry wrote: > > On 22/08/2018 15:56, Robin Murphy wrote: > > Hi John, > > > > On 22/08/18 14:44, John Garry wrote: > >> On 21/09/2017 09:59, Ganapatrao Kulkarni wrote: > >>> Adding numa aware memory allocations used for iommu dma allocation and > >>> memory allocated for SMMU stream tables, page walk tables and command > >>> queues. > >>> > >>> With this patch, iperf testing on ThunderX2, with 40G NIC card on > >>> NODE 1 PCI shown same performance(around 30% improvement) as NODE 0. > >>> > >>> Ganapatrao Kulkarni (4): > >>> mm: move function alloc_pages_exact_nid out of __meminit > >>> numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu > >>> translation tables > >>> iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and > >>> comamnd queues > >>> iommu/dma, numa: Use NUMA aware memory allocations in > >>> __iommu_dma_alloc_pages > >>> > >>> drivers/iommu/arm-smmu-v3.c | 57 > >>> +++++++++++++++++++++++++++++++++++++----- > >>> drivers/iommu/dma-iommu.c | 17 +++++++------ > >>> drivers/iommu/io-pgtable-arm.c | 4 ++- > >>> include/linux/gfp.h | 2 +- > >>> mm/page_alloc.c | 3 ++- > >>> 5 files changed, 67 insertions(+), 16 deletions(-) > >>> > >> > >> Hi Ganapatrao, > >> > >> Have you any plans for further work on this patchset? I have not seen > >> anything since this v1 was posted+discussed. > > > > Hi Robin, > > Thanks for the info. I thought I remembered 4b12 but couldn't put my > finger on it. > > > Looks like I ended up doing the version of the io-pgtable change that I > > suggested here, which was merged recently (4b123757eeaa). Patch #3 > > should also be effectively obsolete now since the SWIOTLB/dma-direct > > rework (21f237e4d085). Apparently I also started reworking patch #4 in > > my tree at some point but sidelined it - I think that was at least > > partly due to another thread[1] which made it seem less clear-cut > > whether this is always the right thing to do. > > Right, so #4 seems less straightforward and not directly related to > IOMMU driver anyway. > thanks Robin for pulling up the patch. I couldn't followup with this due to other tasks. > Cheers, > John > > > > > Robin. > > > > [1] > > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1693026.html > > > > . > > > > thanks, Ganapat