Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2028051lqz; Tue, 2 Apr 2024 05:25:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmHyOn4JMkQKJwkAzYJd1mQ7Sz7oFhbBYKaiseb7xsdVqRN2RYzldcDYaTA5hTLUoo4OQqa8swBkWxpOfMS8JYu1CZyWMIgEGoQwmY/A== X-Google-Smtp-Source: AGHT+IFLMgGrkZo9b7yUgLcnBFIwH/MbyulSe89+1yTQkC/qoLRUeORTdk86tr21+qg6l/cIrk6s X-Received: by 2002:a17:906:2b55:b0:a4e:29c5:99c0 with SMTP id b21-20020a1709062b5500b00a4e29c599c0mr9338387ejg.53.1712060759360; Tue, 02 Apr 2024 05:25:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712060759; cv=pass; d=google.com; s=arc-20160816; b=uoSPVln+St/SzGfO9lH+O7wQOI2bTQ7bqR6hyn1ij3gN649hPH0l30e2N46tAQLFxc RIOd1Lm+2yJX5c4nPFOV/TgedohMVbWTbY/tsJPzQrIDyR1s3qRNBlTUX4HS+n7S00dh OM8N620LNc415uXmyLD5D0HExSGabJJGU5HRqFRQwR7terWz+5jLW5CjnpOaxsJZPAeO IIxhozORsMM8Xv8sAbLnuFTQF0xauEGxRRcK7FSzFipa9FRD7UlScqnafgIi8CzLiSWb OkEcQXSbBZk48xFc5RftSqW/hrh5E98zrldvs8skcr4gfPiKG5TGJJE6hue4rdj25JRc c3yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XYDEIQksW8zQ45WbeyUEVn5ldQ4luRyFOVVyheFSkHo=; fh=R+9OjMKDvjrmTtQs9T3rYuewaBTo/krqbmzGTczPoAE=; b=amXkS7wq2rpnAiMX3kIkYQ+IJ6TWRypGREniLuKevXwxEqqfR3lOwPMFrCKai9ObXy gmUu0XoYImsoSPkyc/+rOfJYSFMVMc8JI3uClFZRdcU2M2x7lnNhPEQaHPzCWNoh2QNl bpRkXaDUs/B25n0/C9ew/q2moVq50lkv0xG0aJk4x7dWJtfIWBfZ5Vf/0/UnkcrPMpfk W9PL5EsJgrKp44yqIv5ug64QDBPHdww0ypfkzd+4NNEDEum8ZDX9I68E25Blv0Kj2bYQ sqLrl6P5Z1cpOmmWSQBrDf+q25mJ9dbPBqAv3NzA+PH+gWPxcO5Tym1jaKpAEEqLYZYc Fj9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y/PM2lOG"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v7-20020a1709062f0700b00a4dfb16ac54si5519343eji.595.2024.04.02.05.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:25:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y/PM2lOG"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E2B5A1F2237A for ; Tue, 2 Apr 2024 12:25:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C78C57A15D; Tue, 2 Apr 2024 12:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Y/PM2lOG" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 681D777F2C for ; Tue, 2 Apr 2024 12:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712060731; cv=none; b=bg84Lg69Y9VKa/mZ++J5shGqMKSTsUHKg/3OdmK4hp7JUN3uSh8sGsNNHP3LrNftB1ZCZhPYbdQDNIPwWztjSVBuJ4dMqa2Dk+Y5cGXcmkT94EqbNRvPP5eNpA+gHShFa/sqyhp6rx4pS39fOfzEAO578efXv94vKEaF/QgSgsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712060731; c=relaxed/simple; bh=p/UeUz6BQzzlTj362U5Q+0hUyUg483V1OKi+HLKX4OI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bSbhbnstla9P8HmxlreKX1mjvForQZuEkbB75RHUbd4p3oIbnOhYr18pGoudnZdSO4kvXnr2hkeygO61KNrp3cOb9mP1oGZYtkhzJJ+NzkmJvlZQFe4x1z9E+neJM3S4gquxyJW9c9psBgzwflKRMtHsqJRWxlzs8AocndhAt+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Y/PM2lOG; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-6151d79db7bso8011287b3.1 for ; Tue, 02 Apr 2024 05:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712060727; x=1712665527; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XYDEIQksW8zQ45WbeyUEVn5ldQ4luRyFOVVyheFSkHo=; b=Y/PM2lOGfwWISYEdLESt2KTtPtlHr8yg1/CGBA9FdtQYocQGHfZ+cW0YX8gg6woOzV GW2SDVi0/W3ULE54zcjGLCvAVZmtCbh3VTBP3+tIbEtfDVbLhIKmqb1+a4TsXXIi5Yzk SmHdUNPRN3zFBd10rSJY/qlNyGVwoVukAF36q+yItox15kUXELlUSRxcl8Mpdx9vLxmG OY2lC+VOGMvXLQpb+r8L51QY+HHC99dDGGT3DX0N/M8WeSY9BE+U/oYh+6bWOLo9Abss DlybL2mtVJawsbxg5WOsIutmwfbaMVxbHlwZxE2sF43N12B5PAMcfpnEeYIqUQTLlbrm fqRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712060727; x=1712665527; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XYDEIQksW8zQ45WbeyUEVn5ldQ4luRyFOVVyheFSkHo=; b=Et0oVE2ml10yWbeMlEu6PuM6nKZ23PllQLj76HYfmdtPMbrC4OIkBg+/GndGIHDz+8 nGAUDXubkJji2SwitwuMBW2ckgCZbKXfMIf5YfF0Ao/0KH1jqhzJYSqmlR8gpmEEZCrS Ugjq6v9kQ8TwAF7RFqFowPnxm8Zryc8DyZstNhCZKH4tDTbJ+Gl+xaeBkOwnIiNwC/g/ 7CJTOOIQoh8ZXxSGEcoIzG9ZvXGss4BAfhqrxfC5brltun2NLbquL474S0aQOC2O6VVG T3Lb2i5kc9Qhcr3Fl365OEqavw3Onm4gSLfcwB3ca9R6jkQVWccOb3+ScJkQAUoP+qCx /s5w== X-Gm-Message-State: AOJu0Yz0LQSciWHsNDocaNoMqDfNjc5MCdRvlMx4x68WakBqAqDpj9Q5 RpS0MZxccn8XEGvtY04JOC1DCkEikdLw/JN527Wgg21SeOFKCiZncxpW4SJzSJJIdSWk7tGnmqj mNeGauQexOjFOQyKKujxrmZ2Bim+3tUIx1qz5WA== X-Received: by 2002:a5b:104:0:b0:dcc:ec02:38b0 with SMTP id 4-20020a5b0104000000b00dccec0238b0mr8733778ybx.64.1712060727251; Tue, 02 Apr 2024 05:25:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240327160314.9982-1-apais@linux.microsoft.com> <20240327160314.9982-3-apais@linux.microsoft.com> In-Reply-To: <20240327160314.9982-3-apais@linux.microsoft.com> From: Linus Walleij Date: Tue, 2 Apr 2024 14:25:15 +0200 Message-ID: Subject: Re: [PATCH 2/9] dma: Convert from tasklet to BH workqueue To: Allen Pais Cc: linux-kernel@vger.kernel.org, tj@kernel.org, keescook@chromium.org, vkoul@kernel.org, marcan@marcan.st, sven@svenpeter.dev, florian.fainelli@broadcom.com, rjui@broadcom.com, sbranden@broadcom.com, paul@crapouillou.net, Eugeniy.Paltsev@synopsys.com, manivannan.sadhasivam@linaro.org, vireshk@kernel.org, Frank.Li@nxp.com, leoyang.li@nxp.com, zw@zh-kernel.org, wangzhou1@hisilicon.com, haijie1@huawei.com, shawnguo@kernel.org, s.hauer@pengutronix.de, sean.wang@mediatek.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, afaerber@suse.de, logang@deltatee.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, andersson@kernel.org, konrad.dybcio@linaro.org, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, patrice.chotard@foss.st.com, wens@csie.org, jernej.skrabec@gmail.com, peter.ujfalusi@gmail.com, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, jassisinghbrar@gmail.com, mchehab@kernel.org, maintainers@bluecherrydvr.com, aubin.constans@microchip.com, ulf.hansson@linaro.org, manuel.lauss@gmail.com, mirq-linux@rere.qmqm.pl, jh80.chung@samsung.com, oakad@yahoo.com, hayashi.kunihiko@socionext.com, mhiramat@kernel.org, brucechang@via.com.tw, HaraldWelte@viatech.com, pierre@ossman.eu, duncan.sands@free.fr, stern@rowland.harvard.edu, oneukum@suse.com, 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@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Allen, thanks for your patch! On Wed, Mar 27, 2024 at 5:03=E2=80=AFPM Allen Pais wrote: > The only generic interface to execute asynchronously in the BH context is > tasklet; however, it's marked deprecated and has some design flaws. To > replace tasklets, BH workqueue support was recently added. A BH workqueue > behaves similarly to regular workqueues except that the queued work items > are executed in the BH context. > > This patch converts drivers/dma/* from tasklet to BH workqueue. > > Based on the work done by Tejun Heo > Branch: git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-6.10 > > Signed-off-by: Allen Pais (...) > diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c (...) > if (d40c->pending_tx) > - tasklet_schedule(&d40c->tasklet); > + queue_work(system_bh_wq, &d40c->work); Why is "my" driver not allowed to use system_bh_highpri_wq? I can't see the reasoning between some drivers using system_bh_wq and others being highpri? Given the DMA usecase I would expect them all to be high prio. Yours, Linus Walleij