Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp443570yba; Fri, 26 Apr 2019 02:55:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4L/PH2ZswApIqsEWx167k79d6Z1CFp5+8pLFqeIxrGGTdnEsSxJqofQIE9YCepEJKW9ll X-Received: by 2002:a62:1c87:: with SMTP id c129mr21232676pfc.113.1556272505927; Fri, 26 Apr 2019 02:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556272505; cv=none; d=google.com; s=arc-20160816; b=sQLmmYpNgwzR/x4tYjK8DvEKJKdLERzOQZpv/NpzBCLc8TFuWMDDYDAZUdJ2FMprs0 f3wanbrGYKEl+6A1bzyyA8+QmFwMa7qBlUEkmSiDMXDkFRReGBbpk6RkFNfH+IS1WG5h YmQZUJWaZnrUPr5fgsYSmAL1M7vMiY8ng31zMeTXYq0cmd6dyf0APdKsq+2rd7hu0YbC gEW+OCjDWRI1/G3UGTzGaO0gN+/jhX36UkvoxGFGFbAmt9unJBYJMWERslyU4F5T7jGY jnbmtmw7/ej8D9O8W2gYgvichHOaeqwkiHegTT8YkbSbl67o1WCbecPjq3ZWl/bgm6ZO NRCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QOZLdR2lD8/lHPVcDQMaWidLRGULKACQlNQH2+6obcE=; b=F8zU0Hxhtn9GV3QEO4tJh0YVbW9tD2zbtgCgzH7cW2fzpin7Z3HdOudR1CJUL+DqIx vBgufVO+sUtnjSYqVahQnvnmWk1CSGhIa4f8blnEvKKkwiPmyfSfki+9U4gEFCKSuNsd CDjl3S/xfzB1GJewarm4SczFOViItQF1CiYiH3WA4Ky8/gqf3Ek0E2f0eyNmxemKfg/z npnN97mCo55BLg8AfZ1sPLemdmmsURcj7y/giDGH3uee1if/BoZwJwddFfbYiNA4d/P+ hvPVACvhd4W2rGq/aR/FCT+D1KiScRiCCTnx7LINePLnc0CeW1BJo+c9huL3cIzX6Zr2 FJlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=aZpKIHzM; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si25724798pfa.224.2019.04.26.02.54.51; Fri, 26 Apr 2019 02:55:05 -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=@nvidia.com header.s=n1 header.b=aZpKIHzM; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbfDZJwU (ORCPT + 99 others); Fri, 26 Apr 2019 05:52:20 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:5976 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfDZJwU (ORCPT ); Fri, 26 Apr 2019 05:52:20 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 26 Apr 2019 02:52:25 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 26 Apr 2019 02:52:19 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 26 Apr 2019 02:52:19 -0700 Received: from [10.21.132.148] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 09:52:17 +0000 Subject: Re: [PATCH v1] dmaengine: tegra: Use relaxed versions of readl/writel To: Dmitry Osipenko , Laxman Dewangan , Vinod Koul , Thierry Reding CC: , , References: <20190424231708.21219-1-digetx@gmail.com> From: Jon Hunter Message-ID: Date: Fri, 26 Apr 2019 10:52:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190424231708.21219-1-digetx@gmail.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1556272345; bh=QOZLdR2lD8/lHPVcDQMaWidLRGULKACQlNQH2+6obcE=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=aZpKIHzM03vyqkp1zj3rvxPPJKNVuJZnSre0OhNHCSX5nHmutzs5LXO32h235RUc1 FNrk4ULuaLoOc/7pmjirYH0AajET9/aS+aDitcT8c2Rr12jtce2XdKE6/dlaz/Cw/E +rpQH6AcU9hRT5dSXBIlMRGRcO2g9ly3yaHjEjNRsmI9Ch8T9sApDqz0y5M/F4RmnS 0Ect3WQtONs017lRyaUtMlpawqKAknAwRITBhKVanQevtqeoSgBaLezRjE4u7cCmmg u2vUwuVguO+AasRwBuxg3G1z3elCb8UEHvCYiMTYcX+VQgmiV5JNwxwiMQ8tBRQzPt X73B6t83daEbQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/04/2019 00:17, Dmitry Osipenko wrote: > The readl/writel functions are inserting memory barrier in order to > ensure that memory stores are completed. On Tegra20 and Tegra30 this > results in L2 cache syncing which isn't a cheapest operation. The > tegra20-apb-dma driver doesn't need to synchronize generic memory > accesses, hence use the relaxed versions of the functions. Do you mean device-io accesses here as this is not generic memory? Although there may not be any issues with this change, I think I need a bit more convincing that we should do this given that we have had it this way for sometime and I would not like to see us introduce any regressions as this point without being 100% certain we would not. Ideally, if I had some good extensive tests I could run to hammer the DMA for all configurations with different combinations of channels running simultaneously then we could test this, but right now I don't :-( Have you ... 1. Tested both cyclic and scatter-gather transfers? 2. Stress tested simultaneous transfers with various different configurations? 3. Quantified the actual performance benefit of this change so we can understand how much of a performance boost this offers? Cheers Jon