Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5767651ioo; Wed, 1 Jun 2022 12:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6u6m3QLRPgJdOAspHumPbtPUk6JAoClUETYjfut61M2PKPkVzRzdEBXkJQu97CsHU8uUu X-Received: by 2002:a63:d507:0:b0:3fb:22d1:8a51 with SMTP id c7-20020a63d507000000b003fb22d18a51mr691293pgg.377.1654110515204; Wed, 01 Jun 2022 12:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654110515; cv=none; d=google.com; s=arc-20160816; b=hb2O7mN6N3l29x+AZpdZqEkWPU7nZxlJyZ4Q9yGzVwjbZcKqq19If7XyBWn85d6Nw+ OHKT6CE9oQ+ueFm8Kzh9cLjFcFSIGI6n4dE7B/myF4pa0F2jLi6KU1Tt4drKc03CDA9r Ps20I0vwcVR4xUeXVTgHfH+/PyBIvjGE779pvQrwJxPq8uYthf67NEKoNlNPbTFOjmPe 3yEoREPy7W5cyVgfbzfcerRyuKl5O4lXQpamcaUUkIW/ZYTuPd7zUcdxbtrg9JF7Q1En 3Ki02wNesXTvsTZAp/mE7AeWILRtOqTTMemu36RFcMV4Yyi7mBs5YFnTqVTDGoVf72MU Rmkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:dkim-filter; bh=6tBRLXB2e8RGJAhBvRCWJggyD6cUh5gaL2NlANSFO3E=; b=DtHszgHc9prghk1U6nwaiq2orbmbXBdT3CeeMc+AANh0EOl95aLZhaQQGnJ8+g8XiG buCYLpWv2bTykF+8pPu2NN4ovsXyoxN7y2a8MP7dEqvKLzaftLrLgGkZvVWP4LsagMiE vI/UxYxoARGoL4TJkdPQXHq3QjLNr6Gc7RT0m1Y05iJvqVvTyZL9UD7eLuweS+Su5T4H CEi3rgxnGAyrQTv0AT9SHxw83xpvFA8ASyWeq5ZaH3xs8RfsWyzi/dVjO99nvn9zrdUE XoCTiD7dhkqd5aDuRSUXlfEy6iYYNClmqe4HeQrZCmufcyYnp4ESKoagIDvvOCUIn1g+ JMhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=nnLnlFN1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h5-20020a63df45000000b003816043f159si2902131pgj.846.2022.06.01.12.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:08:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=nnLnlFN1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9FFEA119934; Wed, 1 Jun 2022 11:49:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346966AbiEaSUQ (ORCPT + 99 others); Tue, 31 May 2022 14:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346971AbiEaSTy (ORCPT ); Tue, 31 May 2022 14:19:54 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 228B39CC9C; Tue, 31 May 2022 11:19:52 -0700 (PDT) Received: from smtpclient.apple (d66-183-91-182.bchsia.telus.net [66.183.91.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 7EECF20BE4FF; Tue, 31 May 2022 11:19:50 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7EECF20BE4FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1654021191; bh=6tBRLXB2e8RGJAhBvRCWJggyD6cUh5gaL2NlANSFO3E=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=nnLnlFN18QpTmf2pxGdXKTd5CTRH+ISqH6g8Qx0KH4kWahuCrh9y6t6RO9R/vzWFH BjQ1ay5Vb/epIQW0KeVwjWHvTPZI97oyeDCRm0TRRWiDO4qlk9MdIQZfN5f/+tzfsl pScggM5IU9VolT+hDR97WnEeEPcKn+bpAt8jYoBo= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: [RFC 1/1] drivers/dma/*: replace tasklets with workqueue From: Allen Pais In-Reply-To: Date: Tue, 31 May 2022 11:19:49 -0700 Cc: Vinod Koul , Linus Walleij , Vincent Guittot , olivier.dautricourt@orolia.com, Stefan Roese , Kees Cook , linux-hardening@vger.kernel.org, Ludovic Desroches , Tudor Ambarus , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Nicolas Saenz Julienne , Paul Cercueil , Eugeniy.Paltsev@synopsys.com, Gustavo Pimentel , Viresh Kumar , Andy Shevchenko , Leo Li , zw@zh-kernel.org, Zhou Wang , Shawn Guo , Sascha Hauer , Sean Wang , Matthias Brugger , =?utf-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Logan Gunthorpe , Sanjay R Mehta , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , green.wan@sifive.com, Orson Zhai , Baolin Wang , Lyra Zhang , Patrice CHOTARD , Chen-Yu Tsai , =?utf-8?Q?Jernej_=C5=A0krabec?= , Samuel Holland , dmaengine@vger.kernel.org, Linux Kernel Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <708F627F-0F7D-477F-BDF7-274424501DA0@linux.microsoft.com> References: <20220419211658.11403-1-apais@linux.microsoft.com> <20220419211658.11403-2-apais@linux.microsoft.com> <0A9EDEDC-9E6C-47F8-89C0-48DCDD3F9DE3@linux.microsoft.com> To: Arnd Bergmann X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >=20 > [note: something is wrong with your email client, your previous reply = appears to > be in HTML] >=20 Sorry, fixed it. >>> That is a good idea, lot of drivers are waiting for completion which = can >>> be signalled from hardirq, this would also reduce the hops we have = and >>> help improve latency a bit. On the downside, some controllers = provide >>> error information, which would need to be dealt with. >>=20 >>=20 >> I am not an expert in dma subsystem, but by using completion from >> Hardirq context be a concern? Especially with latency. >=20 > I don't see how: to the task waiting for the completion, there should > be no difference, and for the irq handler sending it, it just avoids > a few cycles going into softirq context. Thanks for clarification.=20 If I have understood it correctly, your suggestion is to move the = current Callback mechanism out to dmaengine as a generic helper function And introduce completion in dma_async_tx_descriptor to handle what Tasklets currently do. Thanks. >=20 >>> Yes that would be a very reasonable mechanism, thanks for the >>> suggestions. >>=20 >> I have started working on the idea of global softirq. A RFC should = be ready >> For review soon. >=20 > Ok, thanks! >=20 > Arnd