Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4068025imm; Tue, 25 Sep 2018 10:45:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61uljOnrC2ujwHiYkIiysUkmLCqjEzukTozpRB/7yL2xeKvusYmIbJtQOqjJCAwhE3s8BlA X-Received: by 2002:aa7:86cb:: with SMTP id h11-v6mr2267322pfo.58.1537897537425; Tue, 25 Sep 2018 10:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537897537; cv=none; d=google.com; s=arc-20160816; b=P1Ey2u15WmlvvWpRwDM/A5s2TlQzuVKj7Y5Op2iNanMDy/bqB14ReuH7umkkh7e954 qBQLvEshqmNd2PRhVFKBEUscBFB5Hc3ttlzRHe27X+6sCN0JJXQL3LRraZ+9VD+BVJWl iQM2MX7exFVBvbns3ynsj/mew66WKUFxYvCSMWV1qxMLCmFtUdkjBKtaKwRwE42+zVX6 ys4tNKunOy32LbNS4jenSemrvnoqvOfdix/lAw/qLkGXqBf0f+NPwt2vf5XBSlSV2iGt JlTFnJ/ZXrJr7XFk5C4TXIc9CzDnN7276byFzblV38smr2aYu/KwywM30Gt7MgFRAzYE FEzA== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=N5YPZ1Js+MhU5+id8aVn6vrc6v5YK5p9tQ89yUGn2AA=; b=Kiz5opt7P8DRp1sQ6SNkI3JEIBC918ceD0TLW3fD1EoyQPLB+xfHbp8AqctCRr7s1n bb5bdEEG1BoO6w9V7FaZX76caSDW46i7M4pxJ/PCvQs1h/SQHwip09S1rGXtypOv3F4H Xu7u2XK1BCRvle5/8kl7agWQVIfM8fHeLfT+14YILMt/5FEeIQfGybhpyK4rMWe4OmJO BRzoRA8a194kmrMqvx2g6tLITa/yhXPqpk1PlnKjqfpPVmWyv3z0whyCnOsGFoTpBZhH niq8yir/g4qtQ6csD4QYw9tfNH8B4vmeVko7Fhrm//LhmXUyMWi0Bvc/nMtXZ1zz6o+S +uCQ== 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 z68-v6si2662119pfz.163.2018.09.25.10.45.20; Tue, 25 Sep 2018 10:45:37 -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 S1727149AbeIYXwM (ORCPT + 99 others); Tue, 25 Sep 2018 19:52:12 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:38658 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbeIYXwM (ORCPT ); Tue, 25 Sep 2018 19:52:12 -0400 Received: from localhost (96-89-128-221-static.hfc.comcastbusiness.net [96.89.128.221]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 44F5014229673; Tue, 25 Sep 2018 10:43:37 -0700 (PDT) Date: Tue, 25 Sep 2018 10:43:36 -0700 (PDT) Message-Id: <20180925.104336.2276354373880447447.davem@davemloft.net> To: salil.mehta@huawei.com Cc: yisen.zhuang@huawei.com, lipeng321@huawei.com, mehta.salil@opnsrc.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, linyunsheng@huawei.com Subject: Re: [PATCH net] net: hns: fix for unmapping problem when SMMU is on From: David Miller In-Reply-To: <20180925092155.11024-1-salil.mehta@huawei.com> References: <20180925092155.11024-1-salil.mehta@huawei.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 25 Sep 2018 10:43:37 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Salil Mehta Date: Tue, 25 Sep 2018 10:21:55 +0100 > From: Yunsheng Lin > > If SMMU is on, there is more likely that skb_shinfo(skb)->frags[i] > can not send by a single BD. when this happen, the > hns_nic_net_xmit_hw function map the whole data in a frags using > skb_frag_dma_map, but unmap each BD' data individually when tx is > done, which causes problem when SMMU is on. > > This patch fixes this problem by ummapping the whole data in a > frags when tx is done. > > Signed-off-by: Yunsheng Lin > Signed-off-by: Peng Li > Reviewed-by: Yisen Zhuang > Signed-off-by: Salil Mehta Applied, thank you.