Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp678196lqh; Thu, 28 Mar 2024 12:51:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVELwG0n8npqtZ42a51527dsTmsruWwCKEOrhZLg5zMRcJlb6t7WZ9nhnkEAb9P+z8vSjPfwhbEWV50RYWPvzxZWq71wzMbiQaOjxPtJA== X-Google-Smtp-Source: AGHT+IGa7d0td94TC6Qkzb/TJFlkxA43WOB7wz4GKiNYBClWoKzccle8AcL68W3udziqbr3yHImg X-Received: by 2002:a25:8544:0:b0:dca:e4fd:b6d6 with SMTP id f4-20020a258544000000b00dcae4fdb6d6mr302550ybn.61.1711655498845; Thu, 28 Mar 2024 12:51:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711655498; cv=pass; d=google.com; s=arc-20160816; b=Nrs5KbNo6ARaJ6RAQZyAIF1DHhiwTCk3bJ2rZiJhprIjkDNiF7a4pd+JY4TavrzBX4 WRbA6IhrVPUOjhw362Zir+xWFu/CaF2POpxSN574yoJUQM64ND1iOIumqfMljBJswOEl 3rNhJBbzZHLqqgW7vkDw/rdBjzKyfRheJZb4lgGFA5xJQK0XVGUcfbp8IDeOePjMk5fc rE/lO76c96OEtesbNOxicleLX+8PfpGt1VvwIvEGfoHWz09NNBSPRaUxDumix3nZtaoC gfE90BwwD+ZgDFWdP4I/2F5NnAOsiSVAtOnCfg2R4KziejN1rLYfidjMfAqS4+vMiv/Q c+Mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=BW4gpjPip0MIz7Sv02WTjVBL1poTtTjeiFToXn5W8yQ=; fh=BigWF1YVpbGtgc4yHhXRU8Qxz8KXGhoHthvIu147BNc=; b=XdLcYSZBucAUqzVYmJoiySY0PNClHLso7hd3ZPSlNQPKvLb3JdHocodxeo+a9ZedTv 1tU4ucKj67e/lyCvNMNbea7hS89IQQvHQdASlk31PZHnMz1fO6+FpoOB7Rt16F9Q3ZLs 8cehbyysZ0eh1pqSsqAMTVHlMWVLhaOLofRxaRyiqkZAsn/ovmexiJkCa4jVq3WY1g8V kqVN8NW766vIe3EGuRt09an1EUquvMFNWq6T79HJEixkv45E5xO2K/EwnR8gawosfme5 urClpO+lAPZdmgULZBrRo1Z+mlXVX6SllJKl+4v4Vx5m1iyix5bDx5GM5r5g7NvSIdVG bM7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=X3sVGjuP; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=er4EJv7v; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-123506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u5-20020a0ced25000000b0068efcba558fsi2058341qvq.480.2024.03.28.12.51.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 12:51:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=X3sVGjuP; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=er4EJv7v; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-123506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 445681C2DE58 for ; Thu, 28 Mar 2024 19:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62F1B13AA53; Thu, 28 Mar 2024 19:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="X3sVGjuP"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="er4EJv7v" Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BC2D13A87F; Thu, 28 Mar 2024 19:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711655412; cv=none; b=Y9Bb4rzsF4fR355Mb8eM4k7P1bYCD8k33El6W4rz2T5DYhI9xdNaxXTDUD+m/gaARdp33mz2rG2TY3n0ko2XdR7kiK+WG2s5TISka+D+r7fsfcGezxRRolRY7Av7eexkDOJgtoEpFajRgCw7YeGGKOSxkm+KSRMg5JV2Lp7+QKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711655412; c=relaxed/simple; bh=82WZ09r8X2wdE/vjUS1bY2Z6AeLXgQBKptYWCvEjiiY=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=YlOwbM24sHVz27nZkQhWE+YS53sVX9gwDY+QgDtw2i06Ro6zFe4mpCX7qtMde0cePtoVqsWYw9OgkHmi2APKAKz+rQ8KotLXutbz34Gi4k9M6r9Pk0brNkOPHi7BXDwPvu3QlDT+UQIu493UiaWWl6G6Z3HenDj/HY1O/jZlMi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=X3sVGjuP; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=er4EJv7v; arc=none smtp.client-ip=103.168.172.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 1AE681140139; Thu, 28 Mar 2024 15:50:08 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 28 Mar 2024 15:50:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1711655408; x=1711741808; bh=BW4gpjPip0 MIz7Sv02WTjVBL1poTtTjeiFToXn5W8yQ=; b=X3sVGjuPXyGkNnz0RtLc111lKk iDA1+K/BClsRH/uoanrfo/6bUQanVYQGzizx/DSwhnCo9sAk53BamXVqtPGpHHDN IoMhB+caj4C2Zvu1VkwXJcOGhb00OnxZr7g1p1ImAxtXgScCWekOI3dh5lq7+kK8 756x4TJzYdvoyrophAYiXt3KYjXHkYVzLL2RyHA1PDPWAJmACkkFpqeR6hEX5FWT 8c+kLk7X+ZdAN3MXMwTxay2K4pZLpTmn7xiq0pgk0vvm3NWi8FMLAxTocO69OSqh iJ1J/qbrLrXkBf3IzrD8N71zNtnUgScU7RzH9WmVJ74k6IuTpmP08DQuCAXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1711655408; x=1711741808; bh=BW4gpjPip0MIz7Sv02WTjVBL1poT tTjeiFToXn5W8yQ=; b=er4EJv7vpQ314GUweWPL7lb7mIhf28FJ1g9uM9zUGh2E 2hJujbQy01D5uJiU+OhkzwzO5csza+Cp1GOmcNOUTlMRDQak6Pb9OSCJ6JkVwDj+ gDz2/CPyETbRahetWWZUmB359hYjbZANj30LmxFaNIYCbGIXcp200wWOQ5C3lt7U wL2g3ZZiveDcSKL4doiViZZ/AzcmMVwa6UrlQu5ph8EFzqsMY7PlJiM3xVszFBkD 3rej2/Dqt/gc5KWKhCEilqKC3u4JlI1NT0dd69L/vBrSbcox+G2fv831znRQvhaC sQ026xHWJtNDKBsnQOWf2mAIzAI88OLjwBwJfxQ+hQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduledguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7B52EB6008D; Thu, 28 Mar 2024 15:50:05 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <678ba20b-9f1d-41cb-8a25-e716b61ffafe@app.fastmail.com> In-Reply-To: References: <20240327160314.9982-1-apais@linux.microsoft.com> <20240327160314.9982-3-apais@linux.microsoft.com> <2e9257af-c123-406b-a189-eaebeecc1d71@app.fastmail.com> Date: Thu, 28 Mar 2024 20:49:44 +0100 From: "Arnd Bergmann" To: Allen , "Vinod Koul" Cc: "Allen Pais" , linux-kernel@vger.kernel.org, "Tejun Heo" , "Kees Cook" , "Hector Martin" , "Sven Peter" , "Florian Fainelli" , "Ray Jui" , "Scott Branden" , "Paul Cercueil" , Eugeniy.Paltsev@synopsys.com, "Manivannan Sadhasivam" , "Viresh Kumar" , "Frank Li" , "Leo Li" , zw@zh-kernel.org, "Zhou Wang" , haijie1@huawei.com, "Shawn Guo" , "Sascha Hauer" , "Sean Wang" , "Matthias Brugger" , "AngeloGioacchino Del Regno" , =?UTF-8?Q?Andreas_F=C3=A4rber?= , logang@deltatee.com, "Daniel Mack" , "Haojian Zhuang" , "Robert Jarzmik" , "Bjorn Andersson" , "Konrad Dybcio" , "Orson Zhai" , "Baolin Wang" , "Chunyan Zhang" , "Patrice Chotard" , "Linus Walleij" , "Chen-Yu Tsai" , "Jernej Skrabec" , peter.ujfalusi@gmail.com, "K. Y. Srinivasan" , "Haiyang Zhang" , "Wei Liu" , "Dexuan Cui" , "Jassi Brar" , "Mauro Carvalho Chehab" , maintainers@bluecherrydvr.com, aubin.constans@microchip.com, "Ulf Hansson" , "Manuel Lauss" , =?UTF-8?Q?Micha=C5=82_Miros=C5=82aw?= , "jh80.chung" , oakad@yahoo.com, "Kunihiko Hayashi" , "Masami Hiramatsu" , brucechang@via.com.tw, HaraldWelte@viatech.com, pierre@ossman.eu, "Duncan Sands" , "Alan Stern" , "Oliver Neukum" , openipmi-developer@lists.sourceforge.net, dmaengine@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-mips@vger.kernel.org, imx@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, "linux-mmc @ vger . kernel . org" , Linux-OMAP , Linux-Renesas , linux-s390@vger.kernel.org, Netdev , linux-usb@vger.kernel.org Subject: Re: [PATCH 2/9] dma: Convert from tasklet to BH workqueue Content-Type: text/plain On Thu, Mar 28, 2024, at 20:39, Allen wrote: >> > >> > Since almost every driver associates the tasklet with the >> > dma_chan, we could go one step further and add the >> > work_queue structure directly into struct dma_chan, >> > with the wrapper operating on the dma_chan rather than >> > the work_queue. >> >> I think that is very great idea. having this wrapped in dma_chan would >> be very good way as well >> >> Am not sure if Allen is up for it :-) > > Thanks Arnd, I know we did speak about this at LPC. I did start > working on using completion. I dropped it as I thought it would > be easier to move to workqueues. It's definitely easier to do the workqueue conversion as a first step, and I agree adding support for the completion right away is probably too much. Moving the work_struct into the dma_chan is probably not too hard though, if you leave your current approach for the cases where the tasklet is part of the dma_dev rather than the dma_chan. Arnd