Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1409121pxb; Fri, 21 Jan 2022 18:00:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8oPI7rZx6ZcuDx9V2OMJEfiqQQt2Uk6iPxP8smuEncN/2pWJa4wk+Y0zcXE+5JJ1arvdc X-Received: by 2002:a17:90a:199b:: with SMTP id 27mr3271135pji.158.1642816845600; Fri, 21 Jan 2022 18:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816845; cv=none; d=google.com; s=arc-20160816; b=xdEELiGwYd2gk18ogkrotrUUXhoKJFHk592uPT4bEgtp10OC/NleyAPyrfY04G8dv4 Pbz3sMwmXX00SffMFlq1ASnVxzsvjfBgb9rDDbRwU/r/XI/36Lo4+mgbOCYnH22gKpDR ZSybtd7C/kSnP0ghF2wGpk3G3p9V0qXDzDTLTBeS2yxUIGT7u7PPkNszq5c6d00xJ+z6 eF1V6D9Xj4nONOfu4ZWQ0I3rArVp1ILg7mpH6ZVkkMrTRxFERDhcSKyiZS4MSTAC00No 3Nxf0fJ3ykfFVHcrt5VkQKghMDA7owzLHt5vNq0Lh2a5Rf06GCe1TP5XO0RK5/TI/aoc cDDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=yEqsNBi7AqjwQ2m4NsgNZ0EtmvlIQZfPQzYSY3Pypyg=; b=FDu6BT2k315Q49Vt2Md1L9bMyF1JEFpzAWuKz8tbXI86iAJ071ui7OvAFcoKA/+y13 GwWr5o18M/QqWtBZpepiX83TLeIezcCAj59Wv0SYlUgDZoKYm5rOVtTCDUdlqIcHd075 2U4tZrYuyQgzQaiErisniB2+5FujyCmnbPMdAp6R49Sr0ww05o27pG+6pXidz//VdXMs 5A5Qt/0TSFISsrLHdFMZwz1O+I6kP4Ho1Y6/VEXhdzk/yVNeJPn2BfWb7JnHUWIMpeOA r0tP8/nXPso0AiddPBGueRVKCBxVHrxcfwl5CSK5e0A8GbCCJ3FD5v4KNCD/2quuUIQ6 1m3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ObJENak7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 207si8115958pga.681.2022.01.21.18.00.27; Fri, 21 Jan 2022 18:00:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ObJENak7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381977AbiAUQ5v (ORCPT + 99 others); Fri, 21 Jan 2022 11:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380427AbiAUQ5L (ORCPT ); Fri, 21 Jan 2022 11:57:11 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 634F8C06173B; Fri, 21 Jan 2022 08:57:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0169B61A5F; Fri, 21 Jan 2022 16:57:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A9D0C340E1; Fri, 21 Jan 2022 16:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642784229; bh=VAH/EB9un3em4rOt5evA5NBqtb1X5kVyOQuIem/HfhI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ObJENak7V3h9A2S++J8N8+hw/43AqvzdDjNkj7XZRkXxp4MYigrM6Xo6DYE5vwt6m mx+9CJKOwEMoj5/lC1sFyMvnAzwvNmwpjctkTTvL23WpWWIMsXcayaCyqVypvtr9Wi AWMqx38L1s9yBSJNMAYY2awOpbDHZp5CFrkgF7guSO/U+F2L1YHM/QfkRraf2JvmiD jPPu1eGOAiPU5LR46o8mCrrsUC3i7kxl3ic9e+sPTq8e+SGNK7WCT/nPTUbc8so8PD n0if+30ZJGlfEOymuqqgiDrUGNJhdxLV/PIaJuDHtEnsVCkokb5SxyhKQHbvT5pzz+ zH0J1q2Mbwm6Q== Date: Fri, 21 Jan 2022 10:57:07 -0600 From: Bjorn Helgaas To: Krzysztof =?utf-8?Q?Ha=C5=82asa?= Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , 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?= Subject: Re: PCI: Race condition in pci_create_sysfs_dev_files (can't boot) Message-ID: <20220121165707.GA1129091@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 21, 2022 at 08:14:46AM +0100, Krzysztof Hałasa wrote: > Hi Bjorn, Krzysztof, > > Bjorn Helgaas writes: > > > On Fri, Jul 30, 2021 at 10:18:44AM +0200, Krzysztof Hałasa wrote: > >> I'm encountering a problem booting an i.MX6-based device (Gateworks > >> Ventana SBC). This is apparently a known issue: > >> https://lkml.org/lkml/2020/7/16/388 > > > Hi Krzysztof, is this still an issue? > > Well... I'm still using i.MX6 with 5.14 and Krzysiek Wilczyński's "PCI: > Race condition in pci_create_sysfs_dev_files (can't boot)" patch (which > fixes the problem). It seems parts of this patch are now in mainline, > but most of it is still missing. So I guess the problem isn't fixed. > > Perhaps because the DEC Alpha part of the patch is not yet ready? > Krzysztof? > > > e1d3f3268b0e ("PCI/sysfs: Convert "config" to static attribute") and > > similar patches appeared in v5.13, > > Right, but they hadn't fixed the problem. 5.13 was released in June, and > I have started using the patch in August (apparently with pre-5.14 > first, then with final 5.14). Thanks. e1d3f3268b0e and related patches converted individual files ("config", "rom", "vpd", etc) to static attributes, but since the problem you're seeing is with a directory, it's likely different. I opened this bugzilla report to try to keep this from getting lost: https://bugzilla.kernel.org/show_bug.cgi?id=215515 Bjorn