Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp586912imm; Wed, 22 Aug 2018 09:10:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwkJTxosvkV+coAsfoIzB0HI9JtgIbAsgAI9UM0idr9rfmF4PJR4VQcALgq90Nh7Gu2EZKL X-Received: by 2002:a62:fd06:: with SMTP id p6-v6mr57861860pfh.167.1534954201075; Wed, 22 Aug 2018 09:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534954201; cv=none; d=google.com; s=arc-20160816; b=Zo8k3Gf81ad6BZryvzXMkVyU9P9bWnAPYeXHGAUAbW5FfgnHbeGj+l4F2I2gB3ZUjs EhWxB03/pVZULJ/6Vs+X7pBsEtPg4L2hBisWhRPKk3WOAd5WZn+fHroIuE+l7xVUFnUD wMdtsMaw5jQjbKF+IbuhLjFBVzeIG1H+uWgSBzD+qSLcpMP5MiBtTSFvgT53yW1P46Wc PPG+zyy+BjmouqcE5ZfwL0P+b0SACGhoHT9RDdR1GjZ9y3q2qh3A/uDzSJvjbh7hpjmX E2Vvx5GBZCvFp0l4tE50myM6YF1VqrHz3JrXoc01AYqW+A0uibPPcUeTLuxacvVgDxJ9 sX7A== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=zCX3fFxXNRjzZx+kwQAZC6E3IeIg8nRnTs6dcFm+gDA=; b=C9qxzt5OqQ9MJbpVEhYIuCj8J89IdARLRWpRNqnc+IQTgMBhOKCTvymsZeWcl1xkgA CVe3oqCMD4ET3L1XeCNogwcK+55/hV+r4KZDF007VRtqGz/dr5WJmkdwgW8bEQQzw0x2 pYXg2N7z6PTICY2IQcyr06LlqMEFX9+2os9qi/jPPFTtFNk18/NfPdgyZ/9mwNrG78aj RDGadB0xlM7KAUeskQ4TpIPypAxCP9uDBU4bG1b2N5JLz3M53WIgjGv7i7L5Xu9uvvRv iuWCW2yvIcVzdpr/IiiinNED1QlAXAQnZzFT5W95BX3D0x2IUT9ejWy+8nFSBKTSJDc/ vAbQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j8-v6si1786222pll.493.2018.08.22.09.09.45; Wed, 22 Aug 2018 09:10:01 -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; 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 S1726911AbeHVTeG (ORCPT + 99 others); Wed, 22 Aug 2018 15:34:06 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56294 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726581AbeHVTeG (ORCPT ); Wed, 22 Aug 2018 15:34:06 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7195968B9F11E; Thu, 23 Aug 2018 00:08:32 +0800 (CST) Received: from [127.0.0.1] (10.202.226.41) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.399.0; Thu, 23 Aug 2018 00:08:10 +0800 Subject: Re: [PATCH 0/4] numa, iommu/smmu: IOMMU/SMMU driver optimization for NUMA systems To: Robin Murphy , Ganapatrao Kulkarni References: <20170921085922.11659-1-ganapatrao.kulkarni@cavium.com> <452f1665-eb3a-5e8c-f671-099ef4a15d84@huawei.com> CC: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "iommu@lists.linux-foundation.org" , "linux-mm@kvack.org" , "Will.Deacon@arm.com" , "gklkml16@gmail.com" , "Tomasz.Nowicki@cavium.com" , "Robert.Richter@cavium.com" , "mhocko@suse.com" , "akpm@linux-foundation.org" , "vbabka@suse.cz" , "jnair@caviumnetworks.com" , Marek Szyprowski , "thunder.leizhen@huawei.com" , Linuxarm , "Christoph Hellwig" From: John Garry Message-ID: Date: Wed, 22 Aug 2018 17:07:55 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.41] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, John > > Robin. > > [1] > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1693026.html > > . >