Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5070750pxv; Tue, 20 Jul 2021 18:42:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9KjhsbDDsLd2HZnt22OUq+7v/3gSIaaTzIwXIDoxlR9GAEVumREr7TjXU0uRz40ZV4+0l X-Received: by 2002:a6b:c40d:: with SMTP id y13mr25329485ioa.78.1626831751069; Tue, 20 Jul 2021 18:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626831751; cv=none; d=google.com; s=arc-20160816; b=eeQ+/PmJr4Tvzv/THRZYoTeN9fE8VbgeXLShEglDsS+QZ38NRAZwF9QW4FXIZwOJxY h+gotGvA2pmc8LmK+nqGjX41hsv3jdBTVwLdGlkOv2PqBOymVjKOTFEqgt0mtxOij36a G+W4q2BsQYkmEbJk/IBIaCITkjOyoLfF5ckgTukBReloi050gXdV+nQmaYscExPNZsYt nVXejejYLBOT6P8ztpqVa6R4HxYK5w7f81nXaWqmZZfnb0kTGPX6/Pf/4Qs9Qh6PUZ52 SJgnFdvWpf4rk22TfKUVbMuCDld500ZzmWNs6nXWn0uq5HMhs798IPgr5RmB+5pwJO6l HshA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SyII5sjQfVW2iEOXEHyiVYmuKihq8QrTV1vY6sLK7cs=; b=nO7EIrwqJWtSkDn8fdzsY+okyMD+ol61VePz/PIUnXn33npLnxfgZlXCHymps3Hv8i VTeu5lruLcEKmVnh3LRHtQUS9dA94k/QWQPh7GjtRh5cqfOBohkz/IAnWS+XAutupJO6 iEGy4AZKRCCAeyc8pmv3YueeFSFsSWPrmkGSH/OoTE7SvsgcMyFdQdmgUyElqu5ovjay nBQSAKzF0jbnmw1AyvtBoQ4vpQoRxFVcfC7WxGekh76MTO3/neyJ08IUIy52xRKDdk6B OQ+KCPZj/vymDbxd7KNEYlNV5ck+ROXB+VagTL/nK39EzoZVBS6TqGNJApv1wZbegcpL T3yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="B2p/Y9Iz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si30948721ilu.63.2021.07.20.18.42.19; Tue, 20 Jul 2021 18:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="B2p/Y9Iz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbhGUBA1 (ORCPT + 99 others); Tue, 20 Jul 2021 21:00:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36404 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbhGUBA0 (ORCPT ); Tue, 20 Jul 2021 21:00:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626831663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SyII5sjQfVW2iEOXEHyiVYmuKihq8QrTV1vY6sLK7cs=; b=B2p/Y9IzzPA8P9nX2KCELbOEBhWLPNfFhYqIm/Pz6t8985Xm5IeBt5mSVq5pgAmTaL4H8Y MpFtCMhmV4kgCOZshz2r2SMMTXWSG/A0B/rmzA64L1qfY8c+47DxZUMVm40tV2id/iqbZd lXnrx7yoWPKfFCTUWGGWBwpT1FZmT7A= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-3TZXnutvN6Wd7PFM0fVGXA-1; Tue, 20 Jul 2021 21:41:01 -0400 X-MC-Unique: 3TZXnutvN6Wd7PFM0fVGXA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 81BD9802C80; Wed, 21 Jul 2021 01:41:00 +0000 (UTC) Received: from T590 (ovpn-12-206.pek2.redhat.com [10.72.12.206]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 65F035D9DC; Wed, 21 Jul 2021 01:40:53 +0000 (UTC) Date: Wed, 21 Jul 2021 09:40:48 +0800 From: Ming Lei To: John Garry Cc: Robin Murphy , iommu@lists.linux-foundation.org, Will Deacon , linux-arm-kernel@lists.infradead.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [bug report] iommu_dma_unmap_sg() is very slow then running IO from remote numa node Message-ID: References: <23e7956b-f3b5-b585-3c18-724165994051@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 19, 2021 at 05:14:28PM +0100, John Garry wrote: > On 09/07/2021 15:24, Ming Lei wrote: > > > associated compromises. > > Follows the log of 'perf report' > > > > 1) good(run fio from cpus in the nvme's numa node) > > Hi Ming, > > If you're still interested in this issue, as an experiment only you can try > my rebased patches here: > > https://github.com/hisilicon/kernel-dev/commits/private-topic-smmu-5.14-cmdq-4 > > I think that you should see a significant performance boost. There is build issue, please check your tree: MODPOST vmlinux.symvers MODINFO modules.builtin.modinfo GEN modules.builtin LD .tmp_vmlinux.btf ld: Unexpected GOT/PLT entries detected! ld: Unexpected run-time procedure linkages detected! ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.o: in function `smmu_test_store': /root/git/linux/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:3892: undefined reference to `smmu_test_core' BTF .btf.vmlinux.bin.o pahole: .tmp_vmlinux.btf: No such file or directory LD .tmp_vmlinux.kallsyms1 .btf.vmlinux.bin.o: file not recognized: file format not recognized make: *** [Makefile:1177: vmlinux] Error 1 Thanks, Ming