From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D809C3A5A2 for ; Fri, 23 Aug 2019 07:50:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 10F5722CE3 for ; Fri, 23 Aug 2019 07:50:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N4Kmmbhz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="oQWM/EOS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10F5722CE3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qdC5RaV0VBY/360kYMiTe4+vSGAwAphDHBMfX+XX5OU=; b=N4KmmbhzQvobmd TVuUeXUXWtFFudWj/KiHeGNvXQ07TIL3ekPACYIrsxcbzpBlJzkaq5ouyy5J4u2jMbOXNxoO+GINP uSGD28FFUociHjsPRdcqEvYFk/fpoQrIARjAIGJxAuaORldjiT64wfI7BrPutlGtioFOwx30sL4mH SxGYM2QA+WOzYD42QhDYehWNQE2Lt+Ht+udu8CumnycvKGgzkWFMIvM2nZbBOISBT3vHa7uEHNMlK nY9jXaEdjbZNrHkjV7NHoWOQmRYvUdo5EUmA1PldwG4tQkOI5MhoLZApJKDaOdbWqZKF+EzJhZFC9 dr8EEOyfQyvQneTVg31Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i14LF-00044n-0A; Fri, 23 Aug 2019 07:50:37 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i14LB-00044O-DR for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2019 07:50:35 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 924B322CE3; Fri, 23 Aug 2019 07:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566546631; bh=QGB1QBbRBrvFJ0/ORqHfkbvDtYwROh22ycSAYGYaOko=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oQWM/EOSnXMuyItw5blNA1dLPvsG9tdgOjJwfMILly3AcaU7CRSxARkh8ZDSpDlqt dHAT8oq0KUFejzdqkF502yLNsk25p7Tp/O48oKVoQNwPOq5s1xI9pqTKG7kczP9vat 7EunzJrmSyE8pluvsRyanF/+guAD9slGOQ8zl0dE= Date: Fri, 23 Aug 2019 08:50:27 +0100 From: Will Deacon To: Zhen Lei Subject: Re: [PATCH v3 0/2] improve the concurrency of arm_smmu_atc_inv_domain() Message-ID: <20190823075026.pwlx33e4crh3m6tn@willie-the-truck> References: <20190823024551.24448-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190823024551.24448-1-thunder.leizhen@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190823_005033_481948_EE04B1D3 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jean-Philippe Brucker , Joerg Roedel , John Garry , iommu , Robin Murphy , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 23, 2019 at 10:45:49AM +0800, Zhen Lei wrote: > v2 --> v3: > As Will Deacon's suggestion, I changed the lock type of > arm_smmu_domain.devices_lock from spinlock_t to rwlock_t, and I saw that the > performance is all right. And further use nr_ats_masters to quickly check have > no obvious effect, so I drop it. :/ I already sent two versions of a series fixing this without any locking at all on the ->unmap() path, and you were on cc. I've also queued that stuff up. Did you not receive my patches? v1: https://lists.linuxfoundation.org/pipermail/iommu/2019-August/038306.html v2: https://lists.linuxfoundation.org/pipermail/iommu/2019-August/038374.html Queued: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/log/?h=for-joerg/arm-smmu/smmu-v3 Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel