Message ID | 170795147587.2393.15577527626926144858.stgit@bgt-140510-bm01.eng.stellus.in |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-66089-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp45317dyb; Wed, 14 Feb 2024 15:23:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdWxRG2z3cYz2LpeB3zVsXtrHo6pxkp7q7JGxMWv52Oh42PheeoxvW4hI4ElYTtXO3zv353QVfZM6ScgeleFBZ1wj/Pg== X-Google-Smtp-Source: AGHT+IEbdtt7mpGOw3YzBCEhdXHhTm52w3rBEyrRxBMrIbtqun2u9YilMsgr6jCWJB9tsUJvHd+g X-Received: by 2002:a05:6a20:d486:b0:19c:58fa:5a71 with SMTP id im6-20020a056a20d48600b0019c58fa5a71mr427867pzb.54.1707953002017; Wed, 14 Feb 2024 15:23:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707953002; cv=pass; d=google.com; s=arc-20160816; b=vDnkqjGQsEYeyJ70N5eLW4I1/AeUYJDnJ4bTHBffGDJAK7Dzse1A9G+huvbRR73anV j0yaQuJcu9u18NIg/Y/PrnUCFtgmzl6f908GJu70L1X2BJnGFpglgR4r7YMxM94NTyVH QUH6f7MxYx7cxNsIqwRzMNtqi9CLMX0bzOtphPwGkeMGdOAsbe6AM8tzsgQXdWuu8SZQ yZJf7LVlkFHwqDdL9RqYu3yDhQ74wxr34DZJQHar4eRmw6HOxLrMj9IPZ1pcnl7sf9ZP TxYmB/csSf88zMbw9uNFFz4yt+n1n0MkvRMgP6CQkcB0oa8wBTgdrY1tYWNvhZ/z+fg0 Tc5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:content-transfer-encoding:content-id :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature:dkim-filter; bh=2ROaEgqkwNNPiQW7EVRrBqCtC40xE0B+dzq3++mYJCQ=; fh=JCCJgeotx/m0tnisC8Wo8fH5XA3UmgP9gd185wPI8pc=; b=GCQweMwG0a2RijtanBaZ7hgX85yEfdjtimcdf9lfQTzweWolBXR0j4Mhb30nh4ur2v WjRxNpuQfDcB4GwpZQpS2r/X0l+rQMNrqrN58IQ7o/5kiupISDRRxoxq0TLtSKBCGhJh 0L8CREOpjv3GN8SNjfVGrnqPq1zWr6Z0h1ch6J5RJqsjjCfTi2GKSPUzzdPQ9UM0UIaw iwJEYT4tH0LH6pm5+lyumPyaQ9T0/EVT9NswH6cHOSZkR8Tk1mmYQwoHmKfAZRwakKQt Gcu6cFHUFs3r9sYuchUi5SvbsTJFkIYlhC42jfKj52ax4HEBvXHSYKncwoH2Mvlo2OgL Qz8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="mR5/mFSE"; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-66089-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66089-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fw22-20020a17090b129600b00298b51537e0si1885670pjb.141.2024.02.14.15.23.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 15:23:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66089-ouuuleilei=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=pass header.i=@samsung.com header.s=mail20170921 header.b="mR5/mFSE"; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-66089-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66089-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 5F544B256E1 for <ouuuleilei@gmail.com>; Wed, 14 Feb 2024 23:00:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C643141996; Wed, 14 Feb 2024 22:59:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="mR5/mFSE" Received: from mailout1.w2.samsung.com (mailout1.w2.samsung.com [211.189.100.11]) (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 D8BAF2E629; Wed, 14 Feb 2024 22:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.189.100.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707951583; cv=none; b=h7GtUY890sVMDsMZWFLVYqGL7J+7ir2i5pKqQBJg72kCI98NiC7cagy9k7gEZuO6u8o0mqkk7I0lJwxT5CQUqkU4KA1MRhwuDi24CzCliLQgF+6/u2ZKLVgdfWxenmnWIzExRLD3dHOdgZE0tmL4RPrbiBWajvOj+yKYe6zdO+g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707951583; c=relaxed/simple; bh=2ROaEgqkwNNPiQW7EVRrBqCtC40xE0B+dzq3++mYJCQ=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version: References; b=avtfos/w0k4mpYZ+/VkNkxZWfzTCnbzPD7iJ6XgJ42d1KOzYrCLnUZftFEriCLPNllcGHw1s+OkaSSgIrtDfgIpuwUyaLPLx1S+D0GcINFiHBJfMWZnWBKlUgVX4YbGuUBu0g7jV27GnIRWMQSVhjyaC00Qy1hXByF+JD+ydOh4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=mR5/mFSE; arc=none smtp.client-ip=211.189.100.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from uscas1p2.samsung.com (unknown [182.198.245.207]) by mailout1.w2.samsung.com (KnoxPortal) with ESMTP id 20240214225939usoutp015a2256c4791d245d2f57aaa6751c393c~z3OmPAL2b0141401414usoutp01I; Wed, 14 Feb 2024 22:59:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w2.samsung.com 20240214225939usoutp015a2256c4791d245d2f57aaa6751c393c~z3OmPAL2b0141401414usoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707951579; bh=2ROaEgqkwNNPiQW7EVRrBqCtC40xE0B+dzq3++mYJCQ=; h=From:To:Subject:Date:References:From; b=mR5/mFSEceW96BS9Zp8ZR6PYaw/xKiJshbmMRW/macZguAGiT6lcOZ1N1XklqKPV3 SgbEQysIqowDnkqN3yIU1r3PlANGUS44qm6Thpk3bMxhZNmMgPgm7NSk3xlWWgXTPV je9y9BYzTTo5qx24HiGoMMnf0BdRCoiD2CtTRTmM= Received: from ussmges2new.samsung.com (u111.gpu85.samsung.co.kr [203.254.195.111]) by uscas1p1.samsung.com (KnoxPortal) with ESMTP id 20240214225939uscas1p16b00de43837bdb8bd991be2655ac99e2~z3OmBfUa10931409314uscas1p1t; Wed, 14 Feb 2024 22:59:39 +0000 (GMT) Received: from uscas1p2.samsung.com ( [182.198.245.207]) by ussmges2new.samsung.com (USCPEMTA) with SMTP id AB.80.09760.BD54DC56; Wed, 14 Feb 2024 17:59:39 -0500 (EST) Received: from ussmgxs1new.samsung.com (u89.gpu85.samsung.co.kr [203.254.195.89]) by uscas1p2.samsung.com (KnoxPortal) with ESMTP id 20240214225938uscas1p28fc1f193d68b26b0e3b6e0e6da4574eb~z3OldINr42193821938uscas1p2Z; Wed, 14 Feb 2024 22:59:38 +0000 (GMT) X-AuditID: cbfec36f-7f9ff70000002620-17-65cd45dba205 Received: from SSI-EX1.ssi.samsung.com ( [105.128.3.67]) by ussmgxs1new.samsung.com (USCPEXMTA) with SMTP id 81.F3.50167.AD54DC56; Wed, 14 Feb 2024 17:59:38 -0500 (EST) Received: from SSI-EX2.ssi.samsung.com (105.128.2.227) by SSI-EX1.ssi.samsung.com (105.128.2.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.2375.24; Wed, 14 Feb 2024 14:59:37 -0800 Received: from SSI-EX2.ssi.samsung.com ([105.128.2.227]) by SSI-EX2.ssi.samsung.com ([105.128.2.227]) with mapi id 15.01.2375.024; Wed, 14 Feb 2024 14:59:37 -0800 From: Jim Harris <jim.harris@samsung.com> To: Davidlohr Bueso <dave@stgolabs.net>, Jonathan Cameron <jonathan.cameron@huawei.com>, Dave Jiang <dave.jiang@intel.com>, "Alison Schofield" <alison.schofield@intel.com>, Vishal Verma <vishal.l.verma@intel.com>, Ira Weiny <ira.weiny@intel.com>, Dan Williams <dan.j.williams@intel.com>, Kees Cook <keescook@chromium.org>, "Gustavo A. R. Silva" <gustavoars@kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>, "linux-hardening@vger.kernel.org" <linux-hardening@vger.kernel.org>, Leon Romanovsky <leonro@nvidia.com>, "Jason Gunthorpe" <jgg@nvidia.com>, Alex Williamson <alex.williamson@redhat.com>, "pierre.cregut@orange.com" <pierre.cregut@orange.com> Subject: [PATCH v3 0/2] PCI/IOV: sriov_numvfs bug fixes Thread-Topic: [PATCH v3 0/2] PCI/IOV: sriov_numvfs bug fixes Thread-Index: AQHaX5l7eXJDO8TLJEqs+FrXTi3ZpQ== Date: Wed, 14 Feb 2024 22:59:37 +0000 Message-ID: <170795147587.2393.15577527626926144858.stgit@bgt-140510-bm01.eng.stellus.in> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-ID: <E73177EA56B5054CA153BA47190B29DD@ssi.samsung.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOKsWRmVeSWpSXmKPExsWy7djX87q3Xc+mGiy4z2bx7X8Pm8XdxxfY LKZPvcBoceJmI5vF6ptrGC1+XZzGarH/6XMWiyv/9jBarFp4jc3iTHeuxaYNT1gszs86xWIx b/1PRovLu+awWaz/+p7N4taEY0wOAh6zGy6yeLQcecvqsXjPSyaPTas62Tx6m9+xebQ8O8nm 8X7fVTaPqbPrPT5vkgvgjOKySUnNySxLLdK3S+DKmHR+JUvBM46Kkw96GBsYT3B0MXJySAiY SHy+O521i5GLQ0hgJaPEo6vPmSCcViaJm0s+McNUdTS8YYRI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DG74SKLR8uRt6wei/e8ZPLYtKqTzaO3+R2bR8uzk2we 7/ddZfOYOrve4/MmuQDOKC6blNSczLLUIn27BK6MSedXshQ846g4+aCHsYHxBEcXIyeHhICJ REfDG8YuRi4OIYFVjBJ9p9+yQjifGCVOzutignCWATmXtjCDtLAJaEr8urIGLCEi8JFV4vOD qexdjBwcwgLmEh/+x4PUiAjYSDyauI0VwtaT6Hq3nxHEZhFQlbh69heYzSsQKfFw8z0wm1FA TOL7KZCZnBzMAuISt57MZ4I4T0BiyZ7zzBC2qMTLx/9YIWxFifvfX4KtZQa6Z/0ufYhWO4m7 G+ewQ9iKElO6H7JDrBKUODnzCQtEq6TEwRU3WCYwis5Csm0WwqRZSCbNQjJpFpJJCxhZVzGK lxYX56ZXFBvmpZbrFSfmFpfmpesl5+duYgSmg9P/DkfuYDx666PeIUYmDsZDjBIczEoivJN6 z6QK8aYkVlalFuXHF5XmpBYfYpTmYFES5737QCNVSCA9sSQ1OzW1ILUIJsvEwSnVwLQib9JK /99F4htjXHddOKKpzfrZyjptnry/BIewRP0kc2meA+0uHmG12w7GXDpQfHdJ9fQMNwmlpppD shzWh9f/rz5dGFzlsLNxmXrLs2u59ZFXnuhGBvQsse6f8PWBcHDFHp7VK54X767w+XnlkIhQ +REGzvdZ4vu7HmilRFSW++ccUHhxeW2WwtWPh0/vsIjS2pUy7eqnzAVml33CHzid7XxyeZ7J /sCGD3s87RM0/kvxJTG/smLVOPLt9Lf/v/2ty+bd2/xEQ14w8Mjs5v1/+j9cU2z99lV3Y+vy xTkS+v23L79s7n5vGiAzraVV48ilt2fXKLf/venubfLzw9spHxc51c+1k3x7t2dat68SS3FG oqEWc1FxIgBImar0dgMAAA== X-CMS-MailID: 20240214225938uscas1p28fc1f193d68b26b0e3b6e0e6da4574eb CMS-TYPE: 301P X-CMS-RootMailID: 20240214225938uscas1p28fc1f193d68b26b0e3b6e0e6da4574eb References: <CGME20240214225938uscas1p28fc1f193d68b26b0e3b6e0e6da4574eb@uscas1p2.samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790918527169979845 X-GMAIL-MSGID: 1790918527169979845 |
Series |
PCI/IOV: sriov_numvfs bug fixes
|
|
Message
Jim Harris
Feb. 14, 2024, 10:59 p.m. UTC
A deadlock condition was discovered by SPDK when removing an SRIOV-enabled and VFIO-attached device, with a specific threading model. While discussing this on the mailing list, a separate issue around updating sriov_numvfs and its kobject_uevent() was also discovered. This series fixes both of those issues. --- v1 => v2: * No code changes * Updated commit messages per feedback from Bjorn * Added Leon's Reviewed-by tags * Moved bulk of the v1 cover letter to the revert patch commit message where it belonged v2 => v3: * Update iov->num_VFs before VFs are probed --- Jim Harris (2): PCI/IOV: Revert "PCI/IOV: Serialize sysfs sriov_numvfs reads vs writes" PCI/IOV: set iov->num_VFs before VFs are probed drivers/pci/iov.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) --