Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp129613lqo; Wed, 27 Mar 2024 08:41:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpHJdFan2iXSBInZBwzEGvZ+Vmxa9g0f9ZLP6K00EUy+5ahAFrX5sjj+zUKIDuoHHbzd+fbKRVacYaKobCzJ2bnyslHlVA7Ewt8nEAYA== X-Google-Smtp-Source: AGHT+IECop8krTehhYZdXyG5nZn4gRXZVcRJNMsf7yITkT5BOskR1Z+hjPGdpLXHHUkVWIcQGspA X-Received: by 2002:a05:6512:3294:b0:515:b039:373e with SMTP id p20-20020a056512329400b00515b039373emr3342138lfe.10.1711554076108; Wed, 27 Mar 2024 08:41:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711554076; cv=pass; d=google.com; s=arc-20160816; b=Y9a/rX6wuMS6W8pmvAVGjdTTR+s19Wgt3OnuPKyj8cWR6yrgFGRXx9EmPE4QCA7uAD K0+ntHptgFOMKcUYa1ochVAEMcR7ikqvMK/Eo3vvz/5+lPzKUdruvQzSbD7/vVA9uHzW ttBzHFe9pBF1dt1wCI2LuHezrUngUc12/EdYxcap5MDbewY+tz6TCo2pStscYYhDFgB/ Pts4+KQmebYTW8r1kdXdCASyXotIxAUq0FzE3vKVkKZXwe/7OwEVDH3b0A7hDaI6wqmM 7+6gXGdwFxsWxMk5jmy28zOU6gfJagOMUhVZv12vKDsR5c1mI70/Ms0WgGy8EgGCcFAY dC4w== 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=gJ7Xh4n4V59XATJeqHFzpnTJe2/5ypdcmW4oC7ig2Jw=; fh=d2uPoiV9pXaxTrsorsn8pmh8B0A2ILO0uwlv6AZh6Ug=; b=FYmBcG4xbVgRbES2h3Yt9jwq5eViiOPloDh54WardIGKdlHrFmS+XH2uvrqiIgYpiU UiGI9HxILx/c/E+6QiWTlVaGH4QJ9NEYUtWCjRmyA6jdcwY5JcmM7T4SUIN9y4YezCEl n0kS4RCHzlx/2061rsMzOIWoj+zqYGF4C82+tpHmYsjIQ4E9uUk8HQhrLlN2I0pthh8Y /+qdUlD/nYDXC7mfh+DjAMIwKQZIf7KMiTpV31vV/vsH5o/Eud6Hind1h+MihMaFjP+E VXmzPkc7n0qSy6fM2AT5y08gPS94oQdlmTWRR98v45Mf0q9Hq96rWOucgzhxlfC9zaEF +Z5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=JnmygjQ3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=L5St7XrR; 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-121541-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jz11-20020a170906bb0b00b00a474ef5ecc7si3721314ejb.428.2024.03.27.08.41.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121541-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=JnmygjQ3; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=L5St7XrR; 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-121541-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121541-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C603F1F31F96 for ; Wed, 27 Mar 2024 15:41:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 847F212F583; Wed, 27 Mar 2024 15:34:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="JnmygjQ3"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="L5St7XrR" Received: from fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) (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 40A424F5F8; Wed, 27 Mar 2024 15:34:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553695; cv=none; b=feE3EWea2sSctiX4ahyCgn5GoKXKjoREEPUJ6iJTCrZU/4SjarwHbUjLet9CMa6DDdixnB7HDTAp9nsOIEbQUMcsSvEgJdnOpTyOXymrk6CtMjZ8scMVSKk6wjBe3pDJLelCSKq5Z83rgVFB/2xHAI2tyvnZRI3EespGLRttrVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711553695; c=relaxed/simple; bh=lUHWRBpXKfmP0a3SvWBrN/BSuWtzBTXtGgk7O5R0Pz8=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=IKckvJZvS1Hxc4/6vB9kkUUFitoPtKgTv+dehR3/KOMcKiGjFeoTWQfMl8Cz8hxSdKz4cXdac8taqa2+p2hCE+f9OOI8VDjpqHJMN9Rqpr7WfVRb4APShi/COUw3bqfRAiUtCtDj+dGgkScBsHyaV83OxShOxC64iKKu2LAGQQg= 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=JnmygjQ3; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=L5St7XrR; arc=none smtp.client-ip=103.168.172.146 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 mailfout.nyi.internal (Postfix) with ESMTP id 4EE5A1380090; Wed, 27 Mar 2024 11:34:52 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 27 Mar 2024 11:34:52 -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=1711553692; x=1711640092; bh=gJ7Xh4n4V5 9XATJeqHFzpnTJe2/5ypdcmW4oC7ig2Jw=; b=JnmygjQ3q8nH17VFO7y4ypXObv H5QudRFgGDXD3iPOWTOhnrfraaE2jEe2ZuERyQqkAvzguzWvrw9Xbrl0BgYPsuM1 GQ91t4Eis0L2+PN6k9VKMgJbLNAEAnTipnubkg4/slYpNAUjCl+7dl3rILjuauvY aYFmTGt9RAfZ5TxlObNwaJ+oNo8mE5Z20aV/t6095L8EmaBbAODemR5brQFz0I/m fuM0RyeEluV2vMB/1pEl0KkawNa/6R5bW15G4adjuaejW5wrxm8e4nDLNXKnA27p mnrmYFcBXYCaLlIpAzZ6XvBjrkwnGXvILz+PNvwuHH/zrAULDefFEz5MxgAA== 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=1711553692; x=1711640092; bh=gJ7Xh4n4V59XATJeqHFzpnTJe2/5 ypdcmW4oC7ig2Jw=; b=L5St7XrR3/MAPQEbqvRF4QviegIL+Af8tRM+ibhX+Aae E8zvBhoh6gXO0RvQC22z/HNJk0FQWX9oin4ojBOoC43Iif/1ukDnl7LtyhzQe/O7 WVmcp2VK6YD4xl8NARuAKzSaeCa01c5F4RffS1sQeaHJ9lGp/CPWI6d4lgHwzBmd i6tYyXQtIEvPGQzUOhKL5jfH44+kvvAA2DsBR2jzM1LiIrFRBvuUERZuU+fmuqta 0T/1W/EkmLWLaeSkC0IG3JOGUbQIijCPQRq3t1CPyFBv+2H6eO79zC97SXw1SDbH 2q9WhEDNMb0UjKsxgbNa+Wb/wiOnjmuOw+ITwsaFkg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduiedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7F4F4B60098; Wed, 27 Mar 2024 11:34:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-328-gc998c829b7-fm-20240325.002-gc998c829 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <6242198a-8559-4465-918a-36442ea03e32@app.fastmail.com> In-Reply-To: References: <20240326223825.4084412-1-arnd@kernel.org> <20240326223825.4084412-4-arnd@kernel.org> Date: Wed, 27 Mar 2024 16:34:31 +0100 From: "Arnd Bergmann" To: "Subbaraya Sundeep Bhatta" , "Arnd Bergmann" , "llvm@lists.linux.dev" , "Ariel Elior" , "Manish Chopra" Cc: "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Nathan Chancellor" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Simon Horman" , "Konstantin Khorenko" , "Sudarsana Reddy Kalluru" , Netdev , "linux-kernel@vger.kernel.org" Subject: Re: [EXTERNAL] [PATCH 3/9] qed: avoid truncating work queue length Content-Type: text/plain On Wed, Mar 27, 2024, at 15:04, Subbaraya Sundeep Bhatta wrote: >>- snprintf(name, NAME_SIZE, "slowpath-%02x:%02x.%02x", >>- cdev->pdev->bus->number, >>- PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id); >>+ hwfn->slowpath_wq = alloc_workqueue("slowpath- >>%02x:%02x.%02x", >>+ 0, 0, cdev->pdev->bus->number, >>+ PCI_SLOT(cdev->pdev->devfn), >>+ hwfn->abs_pf_id); > > Confused. This should be alloc_workqueue("slowpath-%02x:%02x.%02x", > cdev->pdev->bus->number, PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id, > 0, 0); > Right? I still think my version is the right one here, see the prototype: __printf(1, 4) struct workqueue_struct * alloc_workqueue(const char *fmt, unsigned int flags, int max_active, ...); so the first argument in the format, while the printf arguments start after the flags and max_active arguments that are still both set to zero. Arnd