Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp141954lqb; Tue, 4 Jun 2024 07:24:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2uBbvAbNx9MLmGZwL1MOTi+YW9O/zV6ndqIdX5b7Dgt0zi46IAa31jkQNvNMvNYnbIkaQAUMvivGy8TZMTJBFHKP2Jp9Yu15F3I+ktQ== X-Google-Smtp-Source: AGHT+IGGcqpsw3lSSvdu8BfZUil/zV26ZTtOrIes+0XTnTrQ3SUaV4AcID2saWUnKlt91lgH8qYD X-Received: by 2002:a50:9fa5:0:b0:578:56e1:7ba3 with SMTP id 4fb4d7f45d1cf-57a364eb3f0mr7879190a12.38.1717511098326; Tue, 04 Jun 2024 07:24:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717511098; cv=pass; d=google.com; s=arc-20160816; b=ZFFuPMmR7CYdKWFHMt8YrzqSt2ot2MvE7VzuGchefv322+SF1fcZ8vytMgutuCjFQp A31z6oPKyLLhkKSyXIs2fsivumPacFxi8eNJB/OuLUG1Ty9/BatCUuMP/fis86PW0V6k mFQSt2xb+8P2TGnruKOzdqbcdrBd+EYsEqLACcIGUXuyuZhfiJ/SHGmn4IqniSEekEIO kdNmXsQONcwDjxJH4G4n6jAnzRg134+v5YuuHJqhjb1KH4b13Cn/reOVs0kZY0y5ARIw Bvdy1tbJ6CWOJWEt2WbUy6oKa69zVROn1VFwrpjSbsGE4kMpSvn0phQc94Ht5Oi1VFNN YYRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:user-agent:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=FG1FQXeuciirQ71PBlH7iwtRbfdGBP8U6zOBQ5mNGxk=; fh=f+XTiobu/GpcICyyBI7TZReM0mCFv/By5BdhAmFsGHg=; b=yll1wkSI5HLVJLQgL83qONcGSZHAAEi7eVzzNsdqIdM/Y7w91hdzDxZa3h0Ky6oQw4 eul9BCXJQK4vk/L9A+P/JZvfP6jnO6feMRM96Jvvu+iytOYEHDPESlAbQUx8Vrgxg95B +OYn1nKP6RSakKDHGAFgNcYUovoaxpWSbtcABP/ZyNcsPV5mU2G5l3TY5irn+UnPqG6G WaepZSrN14V5S1jh7P42JAmHyVgKpojp7Uw2IR4Fq5VIqhJk6y2XQe3HrfVRPRLbq/5B rdU18iUslpu//26Y0DA4vLDegw2XwmN3nNP3A07Xux25OLUwXlx1nusYk39TYqmMCLCd IHyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ItL64zfI; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-200806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a4bc9926csi3804033a12.171.2024.06.04.07.24.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:24:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200806-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=@ibm.com header.s=pp1 header.b=ItL64zfI; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-200806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E95411F260A5 for ; Tue, 4 Jun 2024 14:23:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D26D12D203; Tue, 4 Jun 2024 14:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="ItL64zfI" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 AEE6F12AAE0; Tue, 4 Jun 2024 14:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717510993; cv=none; b=Z9DKvrBYbLq5FZtUdcL7ka9D6ryowYp4KvLgHe/qSJGzaqqEWvmV6GwR43s4swa1d28G4UoGdH2PkJWs1pY9QYHy9aUcSAFoaH/+yawLAfC/jA1itd4pZ2xiwxRymK7kbxPMGVxM1q+WfgUnQAl9cEGDUr7aGPENRCr5udTuFL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717510993; c=relaxed/simple; bh=6wtMO9jjdBSgiV0rCA9xQ8IrArGt4hrC0flY/6Hdk5s=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=XrMS1RUo/HUTZvEqiIQ4ZILC6FjOilXRE9F6P4V342S7gBoJijGGoGxs5C946LK53nFMtaEKlK6l73CwiQfS1cSIT1R0RYY8Jvy5kflQvp7Rq4NiS7G2AuUWp/+NbsRSTDALeyeZyPLZkA354sxJy0OmFfQ31L06Dn7UkHelrBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=ItL64zfI; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454EHumb012428; Tue, 4 Jun 2024 14:23:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=FG1FQXeuciirQ71PBlH7iwtRbfdGBP8U6zOBQ5mNGxk=; b=ItL64zfI7XewzNI99mLS5Bv5srixFgU6ll2PB4AVSzAFWktSythEDmzyJwOoNEBt30Io 6CTj9UY8V9SCSLjspLwVMBOWMDMHF4doKQ8t0DoThFgoiy288/94gcP2LnaHKHVvRRur m36ML5CzHXWZT1A5chSUL64nL6VoXhU7zVD5AXYcnS5xZCQkg8NRHP/VyO69u7N7BxY/ C+XX3yvpp4q0EJszNZIaFpwHdbu68iOgmxBDfoPiX29OiukO6gnmpKjcIn8KGZx62JmO pLdL/XfwrHJN9pPvyGTa1bsOPHCWHobZn/NiCVNjQEwHiQYB8vIiY2hBxfG/58Bw4hxO jA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj4jf00en-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 14:23:07 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 454EN7wD020342; Tue, 4 Jun 2024 14:23:07 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yj4jf00ek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 14:23:07 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 454EFRiQ022835; Tue, 4 Jun 2024 14:23:06 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3ygg6m66hh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 14:23:06 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 454EN3GN41615804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Jun 2024 14:23:05 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 419E758065; Tue, 4 Jun 2024 14:23:03 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C08158068; Tue, 4 Jun 2024 14:23:02 +0000 (GMT) Received: from oc-fedora.boeblingen.de.ibm.com (unknown [9.152.212.216]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 4 Jun 2024 14:23:02 +0000 (GMT) Message-ID: <00aba58c1175e0bfb4480b36831d314bc39b5aa1.camel@linux.ibm.com> Subject: Re: [PATCH] PCI: Add missing lockdep assertion in pci_cfg_access_trylock() From: Niklas Schnelle To: Bjorn Helgaas , Dan Williams , Dave Jiang Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Rosato Date: Tue, 04 Jun 2024 16:23:01 +0200 In-Reply-To: <20240604-pci_cfg_lockdep-v1-1-00da1706c9fd@linux.ibm.com> References: <20240604-pci_cfg_lockdep-v1-1-00da1706c9fd@linux.ibm.com> Autocrypt: addr=schnelle@linux.ibm.com; prefer-encrypt=mutual; keydata=mQINBGHm3M8BEAC+MIQkfoPIAKdjjk84OSQ8erd2OICj98+GdhMQpIjHXn/RJdCZLa58k /ay5x0xIHkWzx1JJOm4Lki7WEzRbYDexQEJP0xUia0U+4Yg7PJL4Dg/W4Ho28dRBROoJjgJSLSHwc 3/1pjpNlSaX/qg3ZM8+/EiSGc7uEPklLYu3gRGxcWV/944HdUyLcnjrZwCn2+gg9ncVJjsimS0ro/ 2wU2RPE4ju6NMBn5Go26sAj1owdYQQv9t0d71CmZS9Bh+2+cLjC7HvyTHKFxVGOznUL+j1a45VrVS XQ+nhTVjvgvXR84z10bOvLiwxJZ/00pwNi7uCdSYnZFLQ4S/JGMs4lhOiCGJhJ/9FR7JVw/1t1G9a UlqVp23AXwzbcoV2fxyE/CsVpHcyOWGDahGLcH7QeitN6cjltf9ymw2spBzpRnfFn80nVxgSYVG1d w75ksBAuQ/3e+oTQk4GAa2ShoNVsvR9GYn7rnsDN5pVILDhdPO3J2PGIXa5ipQnvwb3EHvPXyzakY tK50fBUPKk3XnkRwRYEbbPEB7YT+ccF/HioCryqDPWUivXF8qf6Jw5T1mhwukUV1i+QyJzJxGPh19 /N2/GK7/yS5wrt0Lwxzevc5g+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2VztS6SEGcmAE1qxtGhi5Kuln4ZJ/ UO2yxhPHgoW99OuZw3IRHe0+mNR67JbIpSuFWDFNjZ0nckQcU1taSEUi0euWs7i4MEkm0NsOsVhbs 4D2vMiC6kO/FqWOPmWZeAjyJw/KRUG4PaJAr5zJUx57nhKWgeTniW712n4DwCUh77D/PHY0nqBTG/ B+QQCR/FYGpTFkO4DRVfapT8njDrsWyVpP9o64VNZP42S+DuRGWfUKCMAXsM/wPzRiDEVfnZMcUR9 vwLSHeoV7MiIFC0xIrp5ES9R00t4UFgqtGc36DV71qjR+66Im0= Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.52.1 (3.52.1-1.fc40) X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: xkyKszPIpxMJa2yGcBZ8QFCYEctPiDyn X-Proofpoint-GUID: 2GlaT4i6861GLjIFdRLuCRPnz79oTckh Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_05,2024-06-04_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040114 On Tue, 2024-06-04 at 15:38 +0200, Niklas Schnelle wrote: > In commit 7e89efc6e9e4 ("PCI: Lock upstream bridge for > pci_reset_function()") it was missed that pci_cfg_access_trylock() needs > the same lockdep assertion as pci_cfg_access_lock(). This leads to false > positive lockdep splats for users of pci_cfg_access_trylock(). Add the > missing assertion when the lock was successfully acquired. >=20 > Fixes: 7e89efc6e9e4 ("PCI: Lock upstream bridge for pci_reset_function()") > Signed-off-by: Niklas Schnelle > --- > drivers/pci/access.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/pci/access.c b/drivers/pci/access.c > index 30f031de9cfe..5b6620da30d7 100644 > --- a/drivers/pci/access.c > +++ b/drivers/pci/access.c > @@ -319,6 +319,8 @@ bool pci_cfg_access_trylock(struct pci_dev *dev) > dev->block_cfg_access =3D 1; > raw_spin_unlock_irqrestore(&pci_lock, flags); >=20=20 > + if (locked) > + lock_map_acquire(&dev->cfg_access_lock); > return locked; > } > EXPORT_SYMBOL_GPL(pci_cfg_access_trylock); >=20 > --- > base-commit: c3f38fa61af77b49866b006939479069cd451173 > change-id: 20240604-pci_cfg_lockdep-b6914e62d726 >=20 > Best regards, Matt just pointed out to me that the same issue is also discussed with a proposed fix in the discussion of the fixed commit[0]. That additionally moves the lockdep asserts into the pci_lock critical section. [0] https://lore.kernel.org/all/20240523153839.16102e26.alex.williamson@redhat.= com/