Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4717888ioa; Wed, 27 Apr 2022 09:34:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgj16ZJphz6+j5WfRrLW/tbqQzkw/B6HGsSrXZblmmSEDLMiCkgv5OUxQky/juZ/ppdFit X-Received: by 2002:a17:903:40c2:b0:15d:1e38:d417 with SMTP id t2-20020a17090340c200b0015d1e38d417mr14383109pld.76.1651077250720; Wed, 27 Apr 2022 09:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651077250; cv=none; d=google.com; s=arc-20160816; b=QcqQsZlBncR7BW1x1eOtkIeid7rLjffArngJxtBzyp8EYZsYfB5oArQt0R6mhy8gSW cbhue5BNAIEiV+zkH7Kbo13HB112SdHUMpzjSRtoQNELwrupO/ZmjkoJOgyOy8Qvfhcp +AfOvsZ0P2zd7aPp5mb4BxZ+qLNUcUW9xT2PwudZBK0SANf5jHjG6zyT1AIeF3xkmGf9 mpsW4tf9VV9TQ15p1cnAUlU/HF9v4ZLDA2/7AXxMHuc8pJVJeAYdofqpp0lo+DdhaTnX wLnpx8g9jlhclqlzVV/t/Ee41mgbV0qU6jHbheBU5KC8sx4XeUPj220QqfBy8ODMi4dB 0mjw== 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=LOLk8KFWAb5rXU/Jm0ZFnROrkWq5xdzno1Ze707Mg8Q=; b=Lvpxmh2VIEOMlcFiYFaC3dlQXGRg1IiPPN2w5/FlHBh+PJxyJ/aLPzTz8ZRqhmOpRb Qo8E77QOl2LCQfpk7FXIICxuK8JdX5CAORsfBPlMkl3wSRQsgpjUb9yZ6WoHrcKRffcx mIAyx1i5BnshnRfQC/5Svcyc3LV7D+TebHkv7vWQTHganUBBLYDDalVAVZPLhtkFyakR H2YOM3zXom2unSwNVt3i77OeEf5S5iJagtpPz+kYZWvyySRnEgzmfmku4KSEJ8PdO6Fp zKQJNPnipZ2sVlprT4dLHL3QdBTYWCSvM4fiVvKIGtybbg36AoASdkipQOuxH7Lmm7dw qZNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=lCin7lh3; 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 o2-20020a656142000000b003aa86a67659si1870091pgv.406.2022.04.27.09.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 09:34:10 -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=lCin7lh3; 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 023B53E8D53; Wed, 27 Apr 2022 09:04:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241366AbiD0QDm (ORCPT + 99 others); Wed, 27 Apr 2022 12:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241571AbiD0QDX (ORCPT ); Wed, 27 Apr 2022 12:03:23 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44635170E33; Wed, 27 Apr 2022 08:59:35 -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 6DA7720E97CA; Wed, 27 Apr 2022 08:58:53 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6DA7720E97CA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1651075134; bh=LOLk8KFWAb5rXU/Jm0ZFnROrkWq5xdzno1Ze707Mg8Q=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=lCin7lh3eOWoC8NOgWTsOU0C03Zh/WxRxATeRAsLc9arDLmXdbC8Xz3cFZXKGqkcf DfBeM6nu6FeQm0CloG/1lp+Jr4MIPORFywV2OmiQ61fJFZoc5aJpPjVsFbvFPSlF4R uU8SBBkMZMrfVfX7uVGZLvABbGZFb3L5JMNn+Qfs= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [RFC 1/1] drivers/dma/*: replace tasklets with workqueue From: Allen Pais In-Reply-To: Date: Wed, 27 Apr 2022 08:58:52 -0700 Cc: Vinod Koul , olivier.dautricourt@orolia.com, sr@denx.de, Kees Cook , linux-hardening@vger.kernel.org, ludovic.desroches@microchip.com, tudor.ambarus@microchip.com, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, nsaenz@kernel.org, paul@crapouillou.net, Eugeniy.Paltsev@synopsys.com, gustavo.pimentel@synopsys.com, vireshk@kernel.org, andriy.shevchenko@linux.intel.com, leoyang.li@nxp.com, zw@zh-kernel.org, wangzhou1@hisilicon.com, shawnguo@kernel.org, s.hauer@pengutronix.de, sean.wang@mediatek.com, matthias.bgg@gmail.com, afaerber@suse.de, mani@kernel.org, logang@deltatee.com, sanju.mehta@amd.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, agross@kernel.org, bjorn.andersson@linaro.org, krzysztof.kozlowski@linaro.org, green.wan@sifive.com, orsonzhai@gmail.com, baolin.wang7@gmail.com, zhang.lyra@gmail.com, patrice.chotard@foss.st.com, linus.walleij@linaro.org, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <27B51CB8-FCC0-49FB-AA28-93594943423E@linux.microsoft.com> References: <20220419211658.11403-1-apais@linux.microsoft.com> <20220419211658.11403-2-apais@linux.microsoft.com> To: Dave Jiang X-Mailer: Apple Mail (2.3696.80.82.1.1) 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,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 >> On 19-04-22, 21:16, Allen Pais wrote: >>> The tasklet is an old API which will be deprecated, workqueue API >>> cab be used instead of them. >> What is the reason for tasklet removal, I am not sure old is a reason = to >> remove an API... >>=20 >>> This patch replaces the tasklet usage in drivers/dma/* with a >>> simple work. >> Dmaengines need very high throughput, one of the reasons in dmaengine >> API design to use tasklet was higher priority given to them. Will the >> workqueue allow that...? >=20 > Wouldn't the logical move be to convert threaded irq IF tasklets are = being deprecated rather than using workqueue as replacement? Logically yes. Would all tasklets need to be moved to threaded irq, = that I am not sure. I think Workqueues does the job. >=20 > Also, wouldn't all the spin_lock_bh() calls need to be changed to = spin_lock_irqsave() now? Probably not as simple as just replace tasklet = with workqueue. >=20 Yes, this was carefully looked at as we have moved from the = interrupt/softirq context to process context. Thanks.