Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp613796lqh; Thu, 28 Mar 2024 10:56:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUvdQqlmnbeT82b3CMjAGBq1dV814aoyaFCaEHAm19nyUraeDVj6sVS9jann9MOkBIJLrWFd0HGaD7r96p4q8IpF6GVsyYr7sxDacXbuw== X-Google-Smtp-Source: AGHT+IG77MGItkf+as5rVmyZglH4gd3eogj3nzsSKBJnu2hIY8kt5pbEoIo9QBy8PmUNnuYx+vKe X-Received: by 2002:a17:90b:1091:b0:2a0:2b14:6d8d with SMTP id gj17-20020a17090b109100b002a02b146d8dmr176085pjb.1.1711648614168; Thu, 28 Mar 2024 10:56:54 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x14-20020a17090a1f8e00b002a04076dc69si4097349pja.87.2024.03.28.10.56.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 10:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=MUsNPf2L; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-123376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 04BE7B22F26 for ; Thu, 28 Mar 2024 17:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CD76131E3C; Thu, 28 Mar 2024 17:47:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MUsNPf2L" Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (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 9AD0A128370; Thu, 28 Mar 2024 17:47:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711648041; cv=none; b=XAKCScK08pev/G397T6wbBVjFDQDs0QchDKNhkKXlOxurVxNXi7IVr3Yo+uVP1hT84HgHCZIRWjg6fsO/pPP7gDEcrXGfg9znMr6Y7aFkf3PmpJLZpIj7wGBgRVbncdZWFP8x/VnD7VdPPqnUBknJK61m57RNBoQY+rJFUA2QUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711648041; c=relaxed/simple; bh=2RJ4UftN8nrBTsBDUrVAd7hn5NaOKJnB1Fl2J9lWRkU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=M4/nI/blH1MF8+2yoP/n1fZ+Ue/1Zx6s/9F0+I9GEGsw21dTfK1ZAwTXK3KCQUbiBITvPcn46h3FwKAgJgYu9OGwaKRpSPSShNzL85kmxOwYRjcvVG/3s5MfwxHtMLZ+KurFtgPiiEtZf2RyPLR4/oeTxD/M/1HRHXjg8tW/f/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MUsNPf2L; arc=none smtp.client-ip=209.85.221.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-4d43d602cd6so385137e0c.0; Thu, 28 Mar 2024 10:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711648038; x=1712252838; 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=WOul4usuPisehHXyQcZLwgce2H6JwRccYEaJQWtP1Jo=; b=MUsNPf2LdIJPPW0QsF9yWj+TtesSZvxodFKQx4SR1NwzBHA0FZwXBUMhCjEMxw9C2t HhjFYUYs90eF6MJZkELF1PoTcSZqcyg/5bRNddJJv0cS9PWo+4uQ2iSCQaC4XlC8UlRR 7egy4uDmdazuOYjKAbr8/w/EJX5F5+Zpd9ah1DVfw25rSA+S4sG4xkMp2StUJJ7b4JHU N7LQMQMNr3dOAfB6CyReNMnb9qVkNTrfAY7khKDxiJa+E6t2DvdnnnTJsNr633HfFdbb ve1ickFoQcPaFy+3G/clglw6CJNhDXstrWbS38QiA1yLB7Lk4oUL2cIVTDzzuTJMxcUx 5ujw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711648038; x=1712252838; 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=WOul4usuPisehHXyQcZLwgce2H6JwRccYEaJQWtP1Jo=; b=FTqdh7Qk9JUJtRMcc6U9AWiJZGvkUNp0voAseEjoQewVGVAc3vTEffGhoAflhGfud8 Mfaet/iY/IDEOywdwNGMeKoghpS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c with SMTP id a6-20020a67f7c6000000b00476fbbb14bcmr3836850vsp.30.1711648038557; Thu, 28 Mar 2024 10:47:18 -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-10-apais@linux.microsoft.com> <9c31b697-3d80-407a-82b3-cfbb19fafb31@arm.com> In-Reply-To: <9c31b697-3d80-407a-82b3-cfbb19fafb31@arm.com> From: Allen Date: Thu, 28 Mar 2024 10:47:06 -0700 Message-ID: Subject: Re: [PATCH 9/9] mmc: Convert from tasklet to BH workqueue To: Christian Loehle Cc: Allen Pais , 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, linus.walleij@linaro.org, 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 On Thu, Mar 28, 2024 at 3:16=E2=80=AFAM Christian Loehle wrote: > > On 27/03/2024 16:03, 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 workque= ue > > behaves similarly to regular workqueues except that the queued work ite= ms > > are executed in the BH context. > > > > This patch converts drivers/infiniband/* from tasklet to BH workqueue. > s/infiniband/mmc Will fix it in v2. > > > > Based on the work done by Tejun Heo > > Branch: https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-6= 10 > > > > Signed-off-by: Allen Pais > > --- > > drivers/mmc/host/atmel-mci.c | 35 ++++----- > > drivers/mmc/host/au1xmmc.c | 37 ++++----- > > drivers/mmc/host/cb710-mmc.c | 15 ++-- > > drivers/mmc/host/cb710-mmc.h | 3 +- > > drivers/mmc/host/dw_mmc.c | 25 ++++--- > > drivers/mmc/host/dw_mmc.h | 9 ++- > For dw_mmc: > Performance numbers look good FWIW. > for i in $(seq 0 5); do echo performance > /sys/devices/system/cpu/cpu$i/= cpufreq/scaling_governor; done > for i in $(seq 0 4); do fio --name=3Dtest --rw=3Drandread --bs=3D4k --run= time=3D30 --time_based --filename=3D/dev/mmcblk1 --minimal --numjobs=3D6 --= iodepth=3D32 --group_reporting | awk -F ";" '{print $8}'; sleep 30; done > Baseline: > 1758 > 1773 > 1619 > 1835 > 1639 > to: > 1743 > 1643 > 1860 > 1638 > 1872 > (I'd call that equivalent). > This is on a RK3399. > I would prefer most of the naming to change from "work" to "workqueue" in= the driver > code. > Apart from that: > Reviewed-by: Christian Loehle > Tested-by: Christian Loehle Thank you very much for testing and the review. Will have your concerns addressed in v2. - Allen