Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp21409ioo; Wed, 25 May 2022 19:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5qgjM2eB7LAwF8NQ+TaetiATyExrb7k56EBK2LA6Z2MFiosITIGa3uCs8QMvxqkwFPm8b X-Received: by 2002:a17:902:d4c1:b0:162:dd2:407 with SMTP id o1-20020a170902d4c100b001620dd20407mr22680088plg.15.1653531448169; Wed, 25 May 2022 19:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653531448; cv=none; d=google.com; s=arc-20160816; b=uH8dh6MPKzFp1UMVIDgCNA+Eo1xK2na/iugLcz1vP+4B48LpJHa6wnD6w28wzp8ly5 UGoCshcWjDdcZMRdD8VWWc875zeKqYjQh2PKJWPZyGEhhSzyjKF0AOtGFRjpX5IC+NMc bC2QP8LmBZyoQ+57CggormXlXIo4CENh7EGW33Ix7X7t6QvMBUuX+leJEkzInm/c/TYf J8zWYrqN1FninmezLpQwQcF2ZPUwXvT3yCyxQnK8yArfNISQU/amzm/oHrAm8+lLzMUd HefKWNy1EqpnNgqTt3mV7pFNHyrk2KEpfyhx+wb+BVEt3xMechxFC5+RIIx3RjOkvQv/ 8amQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=z/MzuokzzXUbupN9AYkFFXTM2jXXxWEvHe9wqMouuvY=; b=cn6Ry2JIKkUX43nNa7cvzJUTkjCfKyilViKhaxBRb2BE9Ayl4GzV5OoW7QhsxhI2Vb P3moHzM3e/vg1wicMw9Ou/gSIbyPxfKgmFOw75+BLkb7w2OqrYSHBry43mXDOWe72pg7 UJxjRh9JY1j/avGfGTDa9GfCKRVxX6FCNO542Qi6B7rdn1QJWlbdGZlCMUwJPRIkDCWS gQtIRE2pUdtDoPgV1k7kb9cKhKM1C6rkuBj4HyqYIONKCkd9AACBujz973Rym7+3fe9R k+McO6L6t5MGCvS1yBVbixJOWQOabE86grYPlqb8aiYGwjyVH8Ne2Rho1F5x3xD2XbNP 2MsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u32-20020a632360000000b003f5f32a50adsi644750pgm.705.2022.05.25.19.17.17; Wed, 25 May 2022 19:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343512AbiEYRtC convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 May 2022 13:49:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245754AbiEYRs6 (ORCPT ); Wed, 25 May 2022 13:48:58 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED4743EDE; Wed, 25 May 2022 10:48:56 -0700 (PDT) Received: from mail-yb1-f171.google.com ([209.85.219.171]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M2fM1-1nqKtN3I7j-004Dtu; Wed, 25 May 2022 19:48:55 +0200 Received: by mail-yb1-f171.google.com with SMTP id x2so37194248ybi.8; Wed, 25 May 2022 10:48:54 -0700 (PDT) X-Gm-Message-State: AOAM532z4B2YsGkU8NqMTxoEHFwQiwnHVwNZYXi3Ob308zaQ5j+FnF0w jni83HTZDNvGbs4RAq2ICINuaLpPa14NdBma8vI= X-Received: by 2002:a25:31c2:0:b0:641:660f:230f with SMTP id x185-20020a2531c2000000b00641660f230fmr32038430ybx.472.1653500933346; Wed, 25 May 2022 10:48:53 -0700 (PDT) MIME-Version: 1.0 References: <20220419211658.11403-1-apais@linux.microsoft.com> <20220419211658.11403-2-apais@linux.microsoft.com> <9947cfa64667406996de191f07b9e8b9@AcuMS.aculab.com> <6E248F41-6687-4F2B-B847-DB5459BA1344@linux.microsoft.com> In-Reply-To: <6E248F41-6687-4F2B-B847-DB5459BA1344@linux.microsoft.com> From: Arnd Bergmann Date: Wed, 25 May 2022 19:48:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 1/1] drivers/dma/*: replace tasklets with workqueue To: Allen Pais Cc: David Laight , Arnd Bergmann , Linus Walleij , Vincent Guittot , "olivier.dautricourt@orolia.com" , Stefan Roese , Vinod Koul , 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03: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5wcnd1+RNgkBO4ZMcNgq7HOTx Gp/a84DbgEMF/TRGogdido+ObB6tSesdcyYLUBa4VW+lGUtvtjGqLBAmLoAW9lPdLXhgPho+Z v4rP1Jf+ynDUBxrD5BRQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, May 25, 2022 at 6:56 PM Allen Pais wrote: > > Thank you Linus, Arnd, Vincent and David for the feedback. > > This is a lot more than a just conversion of API’s. I am in the process > Of replacing tasklets with threaded irq’s and hopefully that should be > A better solution than using workqueues. I don't think that is much better for the case of the DMA engine callbacks than the work queue, the problem I pointed out here is scheduling into task context, which may be too expensive in some cases, but whether it is or not depends on the slave driver, not the dmaengine driver. Even if all the slave drivers are better off using task context (threaded irq or workqueue), you need to look at the slave drivers first before you can convert the dmaengine drivers. Arnd