Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp782549iog; Fri, 17 Jun 2022 13:35:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8f0Oa5w96Ecc2JJyMuWJilWFfT2R3LMRQ+Kvr98Q/5dLztHU96hNPp0AIhOD8GAS2Xa8n X-Received: by 2002:a17:907:8a17:b0:711:e3fe:7767 with SMTP id sc23-20020a1709078a1700b00711e3fe7767mr10533649ejc.380.1655498104351; Fri, 17 Jun 2022 13:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655498104; cv=none; d=google.com; s=arc-20160816; b=nal8atmqv7shZcqEzFwL8j9TZn/momzcZsxoQkjgCer4FvsA1Uu7MCht2AYuBorx1P a2pcH46otnzSQIt2EI403EOnl+hfF0PsfMk/rHEHeTn1G+P5kocCPRyR2HrKRIzXzwIG UYE0nD5dvf36BM7oZq6uh8mueALsBxhzG4WqVADjORbT1ngDsSSwXDNiSWCyxAhoS4Qr rN9CKZLWwXygu9pDW5y4+tMfZJYQcJwuZj6h6kyKJ4BsB75Ip1JXsKOv19LHCUTOoUfl XJr6xFrTJuan1QjMgmxZGRaE+CRVgkfLAXz47cIO1t63sNkUeM2U0by+7zsL27dXAPZI nzgw== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1xtvgfXYDHdIljqEw6y4bHykLlx/UFNI9bC13DmJEH0=; b=W19OiOJ7rcRLr+PdvZlubkc5zQ5qSxBLQlg/fYh5vjRx4Fz8Bbw51wxleEDH2/TUU2 MkGNsriReneBmr+d/f+JnnAkJIgeAZiaCWR0FOglLv4Ux+7bX2wVSKdMSvm6bZ6BcmY7 ABqbPA/SDq0lf8Dgf66vj26Gysm4bcKAfcWx6SilWnS6Hmq1/orplNgTq+3uk4RNfuKO j5vujtHOzXNsETvq4OwFaP9jlgd2jhWrrwZoeXaeHpuQmuQRWz6+vdL8IDCcNGjYj/2b gTfBPZBP1sf3JstIgeRtr0LmOGHFDNm+Tyum5ZFc0s4ZmUb5NkVw8ferJJPBwQtGeh8q voHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vAdK1iR7; 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 js5-20020a17090797c500b0071728eab6a8si6359399ejc.124.2022.06.17.13.34.39; Fri, 17 Jun 2022 13:35:04 -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=vAdK1iR7; 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 S242248AbiFQU1t (ORCPT + 99 others); Fri, 17 Jun 2022 16:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbiFQU1q (ORCPT ); Fri, 17 Jun 2022 16:27:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E722DEF8; Fri, 17 Jun 2022 13:27:45 -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 069B362020; Fri, 17 Jun 2022 20:27:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C76E9C3411B; Fri, 17 Jun 2022 20:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655497664; bh=1h7MPvCH+0ac659Y59O+LN7H9yf7FDL7AzRyBezl7Ms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vAdK1iR7a1WmLfVx5wRu4og+zBfk6P1uN39+gS6uvwC1k/3eefV6ILqmVxxWnZygQ bBBOoIxihb0QmMQWOSV4VTF/L2bWEchyx/e//N/c6pYQvi8xU2lKBgwnYRqy701IKG ssin1X/FApCNiJh7UqRMIBdBF9N8dHd9ROFutNCfyAobYjQv5VoAedCEVbGiDMcB6b oU7ul27EaaCoZMvopX6aBu27/m86c8BzFJVWs6TSb4O8xF5Q/pWYL/CNBCGDGXrx4S rgd2ceX8FSUrsv+DobF4lumuhsMka6+CtL70oaOV8GR5nfOmNwERtvTdMDNEnMURGm v2a45NA/RU2YA== Date: Fri, 17 Jun 2022 14:27:40 -0600 From: Keith Busch To: Bjorn Helgaas Cc: "Guilherme G. Piccoli" , Hans de Goede , "Rafael J . Wysocki" , Mika Westerberg , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Myron Stowe , Juha-Pekka Heikkila , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Benoit =?iso-8859-1?Q?Gr=E9goire?= , Hui Wang , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org Subject: Re: [PATCH] x86/PCI: Revert: "Clip only host bridge windows for E820 regions" Message-ID: References: <20220615151100.GA937185@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220615151100.GA937185@bhelgaas> X-Spam-Status: No, score=-7.7 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, Jun 15, 2022 at 10:11:00AM -0500, Bjorn Helgaas wrote: > On Tue, Jun 14, 2022 at 04:47:35PM -0700, Keith Busch wrote: > > On Tue, Jun 14, 2022 at 06:01:28PM -0500, Bjorn Helgaas wrote: > > > [+cc NVMe folks] > > > > > > On Tue, Jun 14, 2022 at 07:49:27PM -0300, Guilherme G. Piccoli wrote: > > > > On 14/06/2022 12:47, Hans de Goede wrote: > > > > > [...] > > > > > > > > > > Have you looked at the log of the failed boot in the Steam Deck kernel > > > > > bugzilla? Everything there seems to work just fine and then the system > > > > > just hangs. I think that maybe it cannot find its root disk, so maybe > > > > > an NVME issue ? > > > > > > > > *Exactly* that - NVMe device is the root disk, it cannot boot since the > > > > device doesn't work, hence no rootfs =) > > > > > > Beginning of thread: https://lore.kernel.org/r/20220612144325.85366-1-hdegoede@redhat.com > > > > > > Steam Deck broke because we erroneously trimmed out the PCI host > > > bridge window where BIOS had placed most devices, successfully > > > reassigned all the PCI bridge windows and BARs, but some devices, > > > apparently including NVMe, didn't work at the new addresses. > > > > > > Do you NVMe folks know of gotchas in this area? I want to know > > > because we'd like to be able to move devices around someday to > > > make room for hot-added devices. > > > > > > This reassignment happened before drivers claimed the devices, so > > > from a PCI point of view, I don't know why the NVMe device > > > wouldn't work at the new address. > > > > The probe status quickly returns ENODEV. Based on the output (we > > don't log much, so this is just an educated guesss), I think that > > means the driver read all F's from the status register, which > > indicates we can't read it when using the reassigned memory window. > > > > Why changing memory windows may not work tends to be platform or > > device specific. Considering the renumbered windows didn't cause a > > problem for other devices, it sounds like this nvme device may be > > broken. > > It sounds like you've seen this sort of problem before, so we > shouldn't assume that it's safe to reassign BARs. I haven't seen this type of problem in years, but as I recall, it was always low-end consumer crap that couldn't deal with changing BARs; you're stuck with whatever was set after it was initially powered on. The PCI topology will reflect the expected renumbering, but whatever is happening on the other side of the PCI function seems to be unaware of the change.