Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1927363iog; Tue, 14 Jun 2022 17:05:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8C9rS7AMfsMTj6OVIH+P+PP/Anjt+iTTh+Xu8XLCpMwdZ3RDhWWhbIJoOVhKh34sQ7qFR X-Received: by 2002:a17:903:248:b0:168:cf03:eefe with SMTP id j8-20020a170903024800b00168cf03eefemr6628445plh.124.1655251519909; Tue, 14 Jun 2022 17:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655251519; cv=none; d=google.com; s=arc-20160816; b=f27q7JmYjBunolAHA9B5WgqdRbnw+cmlWvN4Dd0z3BJXFLKoMsK0s++LAbIWtz9Qiv 6kOWq5PDuDpkUG7La2v04I4yrw1F9VpjbjYJifPdFcxQkULEVroJu60s+/OPselxa2kW BlxDqWIRcPeydMu+P+U7W92TiprfIzdDHO4nnLmEno1PTwxMDgZF512o/HkzisBJrcsb G0uL9ipBug0Ja2l7GC6jNSJST9P8X6aoKqiTYMbxyV1hAerlIRMnfizQBfY69P0+foGL hi5d607tTH0kz9FDMG7uxRQPadujid3C2O0wNslxVzpo/fmg7TkLvu6GRLTN28HDjsb9 YR8A== 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=tOUdjm+nDQmq+Bz9s+u1VV+eU95fEsTseHkAZ5csNLw=; b=upymiCWSQvKp8vOgeGKqMtxNCpMIqajWbxRp1ueTPDb4zEK0HuAKyBitHYv/oxhqPL GeMpCRrfvX1wryvp9pV8MmjeBVx2shZ2WwYBIUSPkA2mO11TjbpFV32SiTieBCP83M0Y CfSnEIXuXSrPphgNxk61HNuHD1e9TEtCP0/Evr8SoHn/M+s6yNEty4BnquYSNnmOfLNv vmnAeMpIrJQTgLvWPhxpE2O1GQ1Cszag3pxwAeX86SYs1NcT8hoXx6KDTzSS2TW/j4sO DlFBaVJgthsgKcXkZZ9knu5bdH+8nvwQ0GwUG61WLdk0UClA47n1rlJo8fqZqfJdMks4 p5NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VN1Hvl0I; 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 mq2-20020a17090b380200b001e2f3831109si675136pjb.92.2022.06.14.17.05.07; Tue, 14 Jun 2022 17:05:19 -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=VN1Hvl0I; 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 S230205AbiFNXrl (ORCPT + 99 others); Tue, 14 Jun 2022 19:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbiFNXrk (ORCPT ); Tue, 14 Jun 2022 19:47:40 -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 4E2521CB11; Tue, 14 Jun 2022 16:47:39 -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 DECBC61900; Tue, 14 Jun 2022 23:47:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FD23C3411B; Tue, 14 Jun 2022 23:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655250458; bh=1JsanDZNOK4cubwngvXHwGnNaBFzu4Cguyto6qNV48I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VN1Hvl0IQM48SGQ7YHPXBdJOzdiOiBDn7Zt7dlUADf3kWtMYuH+lYphpc0zPYVpiN cBbmii9DwcKc3lsH4T06FKQ0RvTknVQzQ/2x7TtdITd9ofPGdHxB4K5mmkYpeQ78CR i9aefKOoTd7uTYxVFvVLXfb4UOYAM/5sNmRCL5RiYL2enpd7sBLsFyB7P7XzollYMT wG5XHGs/AEaKmscEKnyHJ2gpZP9qEGtPizNT6jeeh7In1SG4DfjV/2+cOfciiJV2ga XUoGp2FK5XYSWYEDKS9eaQ3auP0VWaNgDv1Eb/HxrlmiFNAgSNBMwkcaYj48EEi7v4 JGxS2brKeGYTg== Date: Tue, 14 Jun 2022 16:47:35 -0700 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: <6eae37ce-dd44-9c32-3f68-2b4e102dce8e@igalia.com> <20220614230128.GA901712@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614230128.GA901712@bhelgaas> X-Spam-Status: No, score=-8.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 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.