Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4116928pxb; Fri, 11 Feb 2022 16:10:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzTl4Z6KKD4zxrF8D3gB1S/i3+R2bQS/gd2znozLZOnXfJ/+ytM94vbKCYY8jrnRboxkdS X-Received: by 2002:a17:902:b495:: with SMTP id y21mr3848990plr.82.1644624646464; Fri, 11 Feb 2022 16:10:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644624646; cv=none; d=google.com; s=arc-20160816; b=Hd45grhcpXqRgX9kdRZTByziMDUjURL+XTEysnGxcBlF9Cc2vFuyxAgXnjmyuwhC0G aejlIXx+jAsAQ6ycAJhS53FZzMOHLPOjsWI92m/2Gvgt7Hl4TXDCm8XWu8DlPoGIEIfE N8CpnjcCnYOtfXn+6gkhusgr/lsRuY1qceSrTVda/KAsGiYtVvY1kXK3LuUltIWr/7DK 9oVPERYZmj4gdvf8gE7/uvIo+6SCJIYPBjXxbrKAJPdImcXsBsjk0EIzGVexZ2FS+ynx O3xXlco+6QQ33X/cq3cE2eX1ApNR4PEFHW7WZ3d8/A0wPe/bxFtAnBxDXHX6hWZmCjiJ wmXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:sender:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=vrnOCz2NomAXmrx0f/P+Vxs/1qaeoeQZUYqZcethPZM=; b=FFL1GjDIKopPujMj7ns/JfCsdBwDtGXJXP+fQnHzHkQA51ph1cI0ucRFJMvQCsTwjk OcBYlyzd97fH1I2kxt5gmM3Rjz6f5koyyqmHYAAfnxKIlQ7vRX8zR+hrI8sA9hOoW2D0 ujbYKuXH7kFzLnj9m/6m1TDCR2o06dJZQYL5urylIaZYvslvPIgKnKjLJHzjrjjsbRVM ehnJRxMIKM31mxDVCfO80jcr3O9JVbCq+D39h1RpQ8/X5BoXxrqwRgNC6RfKbGUn4a5o nvoa5jzkzLwQU+EABBCNKvZyQfwGKO44vVZYrkH0UzNautvJiP5Zu38aseVx6DKxVJWh bJHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=ioDj6vgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13si6055729plo.505.2022.02.11.16.10.31; Fri, 11 Feb 2022 16:10:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=ioDj6vgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350320AbiBKMvL (ORCPT + 99 others); Fri, 11 Feb 2022 07:51:11 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350310AbiBKMvI (ORCPT ); Fri, 11 Feb 2022 07:51:08 -0500 X-Greylist: delayed 600 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 11 Feb 2022 04:51:04 PST Received: from ni.piap.pl (ni.piap.pl [195.187.100.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F17E60; Fri, 11 Feb 2022 04:51:04 -0800 (PST) Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPSA id A03BFC3F3EF3; Fri, 11 Feb 2022 13:31:08 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl A03BFC3F3EF3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1644582669; bh=vrnOCz2NomAXmrx0f/P+Vxs/1qaeoeQZUYqZcethPZM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ioDj6vgYLexSO6/P/YS7xj5X+MHUqhZNuyqqDndPm1CEV3MAZON2EKMc8eIr0Zpon jCb8D2vB8Ae5Ic8G+8qbRdXdaqz0MSD1hkfm7kOEk9BbKJnDeZTWucfU4Jm7IyjxLX +Vj4Qe78Vc2PEobT1c8qXg71qAeZm1iSYHdK3oSg= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Bjorn Helgaas Cc: Pali =?utf-8?Q?Roh=C3=A1r?= , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi , Gregory Clement , Andrew Lunn , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Koen Vandeputte , Dexuan Cui Subject: Re: PCI: Race condition in pci_create_sysfs_dev_files (can't boot) References: <20220208234023.GA505306@bhelgaas> Sender: khalasa@piap.pl Date: Fri, 11 Feb 2022 13:31:08 +0100 In-Reply-To: <20220208234023.GA505306@bhelgaas> (Bjorn Helgaas's message of "Tue, 8 Feb 2022 17:40:23 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 3 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bjorn, > Krzysztof, you're running v5.14, which includes Krzysztof W's work, > but that shouldn't affect the imx6_pcie_probe()/pci_sysfs_init() > ordering. Your log shows the error in imx6_pcie_probe(). > > Would you mind adding the patch below and attaching a complete dmesg > log to the bugzilla? Sure. In fact I was using 5.16-rc4 (with the media tree) lately, without the fix from the other Krzysztof, and, as I can now see, it worked without the problem in question. I switched it to 5.14 I was using previously, reverted the fix, added your patch, and tried again. It booted 100+ times without experiencing the problem, too. I will try again with the previous 5.14-rc3+ (which needed the fix) next week. Perhaps it was an unrelated bug affecting 5.14-rc only (fixed before final 5.14)? I haven't checked back then if 5.14 needed the fix, most probably I've simply rebased from rc3+ to final. The other possibility is changed .config. Or, I don't know, the gcc versions. We will see. --=20 Krzysztof "Chris" Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa