Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1164123rwd; Wed, 31 May 2023 10:12:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ptpJZ7ZY20Ssf3tA4t5d/73edwTsrnATI4LHQvzyrw8ofByXGyvwsr1lkCjCXge8PNbJw X-Received: by 2002:a17:90a:280c:b0:252:f7b1:943f with SMTP id e12-20020a17090a280c00b00252f7b1943fmr4846648pjd.24.1685553157948; Wed, 31 May 2023 10:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685553157; cv=none; d=google.com; s=arc-20160816; b=VCgRVJsxwbK8fKOh3e8Q/hfLrHEEjRmeQneEQoqrwC8mEzL8RyPAnKrKrB5DJoiVwE mhRt5KJ/hfc8rFayb5pY8jlUNGtrccsEVRvOq1m4zJijrXjzvniGXd8+Iq01hL14WqkC uucEF/C3Cxqt/tiumsOZLW/J7yG5SOPKZdb32l7mI621o1QRi5WqkDwG0QgARONuuYm8 J1YB39LL2iTuVSLrOA9qwr8S3R9su/N93vGpVYJq1igfEQpvzmudzbWYzrJ9i5Lhp4aO oFW2xjRRgotSKLKTsrKFSIo25LTWoR+TTDLuvnIMBN3uEkp2QxdsmNmwXT3cDmfiiyW0 wB8w== 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-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=airXCdXbnkur6HApQJrAPLD8gtbz83WoWEVQ3Tk8yGg=; b=eQWO2lczUwr/SvXI7mtWKRDbq9/kAVIglfo9O+CtFuG8I737bhFyE3LnfegTIPR85c Hx4mH6iM3wcyf/8WpKX74uVwLXX2GQ4RnwqVDeD1PpwE90K2guvXyrK6aHCuc6/s4jXo LhrRdpmDOMPp7CCtjhn5RJ6h+cxzsTgMZOGHxRfIA5iFSPyMe67jwSW35ztlCsMLUCyF 1p1U+k0n0JBtfu2/o2Z6a6C4ih7dQ4Nfww3lPXOQ5x7H6yh1PTlGGD0s4XC4SGWtru7/ 3aQ1gkwJr+Y1Px1/svwIglAcWZCfd2vZxl15kVUmDWPWeya4dXE/sn7gLuyeN/syS+dG IfPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nP6xNKIB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a63ac42000000b0053fc3bc33e4si1209005pgn.795.2023.05.31.10.12.24; Wed, 31 May 2023 10:12:37 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=nP6xNKIB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjEaQ4H (ORCPT + 99 others); Wed, 31 May 2023 12:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjEaQ4F (ORCPT ); Wed, 31 May 2023 12:56:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A03BE; Wed, 31 May 2023 09:56:04 -0700 (PDT) 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 7533461597; Wed, 31 May 2023 16:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 928B4C4339B; Wed, 31 May 2023 16:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685552163; bh=5Q+EdMzh/OPsDaBAUFWrZ15Js9jdbpqY6IvL32TdOck=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=nP6xNKIBHLsYQhpkuVVK8f7l9YtWdRK3Al9ksT3IQdBcYhOxjRdo6e41UVxLViPbI gaiM8BoCy9/6yjE5vZcmO5/qDX5kL4M6nLkgfhozYpxOIeKgGcBKpR8ps5tkmPKwCM di+BZdXLddt/YkIBgU3kqc7OkTT3qTqDQGHM9lH2eAYZA1GVPbj39RmMY5F108Oihb zDC3nhh7TFmZnoc+ma/BtzSLW+o33lVfiH64COcP7na4kAlVmIQXYdmiyyX8p9Bag5 nC3gywto8lmzPU3bqvelNq132OyTpo+6jodKCc+GggtvVuqR+Ohrlovt1La6vKK76W mANf69aUGP46w== Date: Wed, 31 May 2023 11:56:02 -0500 From: Bjorn Helgaas To: Vladimir Oltean Cc: linux-pci@vger.kernel.org, netdev@vger.kernel.org, Bjorn Helgaas , Rob Herring , Claudiu Manoil , Michael Walle , linux-kernel@vger.kernel.org Subject: Re: [PATCH pci] PCI: don't skip probing entire device if first fn OF node has status = "disabled" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530231509.4bybb5nw4xyxxq2m@skbuf> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, May 31, 2023 at 02:15:09AM +0300, Vladimir Oltean wrote: > On Tue, May 30, 2023 at 05:27:24PM -0500, Bjorn Helgaas wrote: > > Ah, you're right, sorry I missed that. Dispensing with the SERDES > > details would make this more obvious. > > Lesson learned. When I had just gotten out of college, every time I asked > the coworkers in my company what they're up to, I was amazed by them just > proceeding to tell me all the nitty gritty details of what they're doing > and debugging, like I was supposed to understand or care for that matter. > "Dude, can't you just paint the high level idea without using dorky words?" > Now I'm one of them... Haha :) Communication is the hardest part! > > Seems like something in pci_set_of_node() or a quirk could do whatever > > you need to do. > > Could you help me out with a more detailed hint here? I'm not really > familiar with the PCI core code. You probably mean to suggest leaving a > stateful flag somewhere, though I'm not exactly sure where that is, that > would reach pci_scan_slot() enough to be able to alter its decision. What bad things happen without this patch? I guess we enumerate Function 0 but in some cases it's not useful? That in itself wouldn't be a disaster; there are lots of things we enumerate but don't use. But in this case, maybe a driver would claim Function 0 but it wouldn't work as expected? Bjorn