Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5779175ioo; Wed, 1 Jun 2022 12:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvdTTivAFW2jiw2tXR001oF03ejg8lHKG3rlrVap/TdSU2hVqVWLhzjcnAkU8k4Oud5tud X-Received: by 2002:a17:90a:df16:b0:1e3:1cd:6c6f with SMTP id gp22-20020a17090adf1600b001e301cd6c6fmr17343887pjb.10.1654111497182; Wed, 01 Jun 2022 12:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654111497; cv=none; d=google.com; s=arc-20160816; b=trb+mO8pSt0ycLJBr/khBG7wMVFd372Mx2zunQicUb3BXXHoKzWunvjlOyUrh7kbVS KnHMlq5k3hPjTEO0nwwRs/5X1zy9inf7ijjmXglv7+BZnsukECvJSgE6Y4J0imh5DgMo nba5JoV7R2BdmZGSIkgDSGn+XzFGPanRgOjGAToAFsrTLq11xdGFuUEB2cIbtKr/4W4/ t2hfaxqKvNyGvruXHsdzDKZGjdq2r8pPoOuFgF5jCoi5sf5T9CuxwudoPTpuDuIEEJbB MLPAbHsobBwvdaNeq+XYKgvN0GJibHTPlOdO8vBC5MaYeA66DwWu5W6NIHL1Ku6mggu3 uzJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=QpylujuIWIiDpf4EcLYw4sLWaRYTPS23Dtql3nFdLsk=; b=WX9heS+JJiIZAofkwLvhddx0nd1MvthpiLnSmYcquAM+UIrE+ZyCG5aTgM+tKeDvmA cGykrRr173AbZkcmpqce5YhJGFVPo76uCr2/DG3WsSbIR3B1d5jmlnWDJ/isHcE8fCl5 alITle116o+D+46fEHETJyCBMIhCtVZlLoykGxThxHwM5KbNsG32JFJCKfMyguNd0RRk mXNgCIZvoI5n03W8KR2dYLzXCEFyN1XOSPlgjgEPGpK0H6eFL9ysRWlfrx3eg5ybN3SQ bZqe40hIOAu2+alUjwMmyHww7vuh3I1p9jcOJZejnIk3IwliIqM4UOlaaZhwUK9puHZR zN/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x19-20020a17090300d300b001639a2a0c3bsi2953536plc.251.2022.06.01.12.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:24:57 -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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6405B166880; Wed, 1 Jun 2022 11:58:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346774AbiEaSCh (ORCPT + 99 others); Tue, 31 May 2022 14:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233752AbiEaSCf (ORCPT ); Tue, 31 May 2022 14:02:35 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31BBA50E06; Tue, 31 May 2022 11:02:33 -0700 (PDT) Received: from mail-yb1-f176.google.com ([209.85.219.176]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MyK5K-1nbFSO0mbc-00yjob; Tue, 31 May 2022 20:02:32 +0200 Received: by mail-yb1-f176.google.com with SMTP id p13so13702398ybm.1; Tue, 31 May 2022 11:02:31 -0700 (PDT) X-Gm-Message-State: AOAM530eRoinXj/sLkSXe86Nv9+bOvHZoCGwK+0RiPasmo/lNI+5uWvN woZMlAkRUC9hIyIx6TvvlfFJD5IDADXr6LC4EmY= X-Received: by 2002:a25:db8a:0:b0:65c:b04a:f612 with SMTP id g132-20020a25db8a000000b0065cb04af612mr16322691ybf.106.1654020150830; Tue, 31 May 2022 11:02:30 -0700 (PDT) MIME-Version: 1.0 References: <20220419211658.11403-1-apais@linux.microsoft.com> <20220419211658.11403-2-apais@linux.microsoft.com> <0A9EDEDC-9E6C-47F8-89C0-48DCDD3F9DE3@linux.microsoft.com> In-Reply-To: <0A9EDEDC-9E6C-47F8-89C0-48DCDD3F9DE3@linux.microsoft.com> From: Arnd Bergmann Date: Tue, 31 May 2022 20:02:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 1/1] drivers/dma/*: replace tasklets with workqueue To: Allen Pais Cc: Vinod Koul , Arnd Bergmann , 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-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:IJ1K80200rib6/6tXN6GT3BD3Ebp7d57MAQTsQcwUCpfBNwo2d/ fViC3OY5YCcQMBkzLw7M1TKpbj6dzjDkxUKRcuQb1MEGxJe8t3kJ4JeuTpckPfAPuXUbxLV 8zHpjLgX7mwTVDMA0TH9eeBaOcD3ThFsE1kqy1FzkfkpBIc55dnTdn+ojJw71nWTnGaP3MA LoSOMACAbTAiDJSeZwBwA== X-UI-Out-Filterresults: notjunk:1;V03:K0:R7kKsU5Hx9A=:CDBT6FMK4FPGF9yi+gPs4H Z4EJ9ks9vUQwUiSDw96wrUj+cl0cTbF3wnT5Zb7rG7IP/5ZOh/pHDFoCsMOziJZwVtRG/IARt 0mX0fhVYtd1pdNb5zC2R9mrqTo0VbzwhDpP4swGe9+pUiYN2Zmu9w8ZBN2Jdwe4IVHTMqcPiY xOb1T2eq+EIm9hordaxfufTFpcSHtJ9rhYfTXirK1VqejeAeL/00HQm8itbGgcOEDwn4vgXc8 57jz4zJA8aluQ+r5UxmxYD3jDYGQ7przn8BUBrZSoMpmkncbuwdHI1SJlQPmdGSxFWHIGNeOB F3y397a3x9KDsOYA58+td/05cGuTFSc0y2LuNMwPJudD+CqkQxn1TIVW15zz5BdLfl/esk9fA v/nkQM/QwBqpJMgqpj0Ahuk9EmOq5z6GqcMYdZT2scUy7lYbOMrF+cHfAhHp9fIOZID4h+u9M Pcq7G2k8pSywYW0bEzirvfxZ/RmdyAm1eFa2O9dE4X2BcFTVcXf8pjNo/uGOt1wHVGBBkf/Qu 7IqB5i7vC7hRi1WInV9fy5qZi5r/AiDCnx9+3tkpGQWzJKSgVfwlUD7rRm5fG3x/YiAg4/ObU zW0hc68UUf5uFeSJUEJGo5RznJie2TddJIoZQnfYcMXEHHAdndVkKo8LTHpzt4s0qTgua1OC7 7FwWudxQ7njaii8LynC7usRFB+jL3oMdqA9wbUKPP0EnVy2Yl+HUjI+GfLTK3KhW3fyFSbpB3 nCMgC9LpL+nguWeMeX5w980Eel1QYHqnpV3lpQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, May 31, 2022 at 7:02 PM Allen Pais wrote: [note: something is wrong with your email client, your previous reply appears to be in HTML] > > 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. > > > I am not an expert in dma subsystem, but by using completion from > Hardirq context be a concern? Especially with latency. 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. > > Yes that would be a very reasonable mechanism, thanks for the > > suggestions. > > I have started working on the idea of global softirq. A RFC should be ready > For review soon. Ok, thanks! Arnd