Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2653663rdg; Mon, 16 Oct 2023 10:32:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjOliy1XBztWDpIZL3pyDiATLm+DIm3KMbSTN/wJ0IgXSKhQzzAHUyfJ85XCQJAIoE4fXD X-Received: by 2002:a17:902:e38c:b0:1c9:d6f8:1902 with SMTP id g12-20020a170902e38c00b001c9d6f81902mr10201118ple.15.1697477522233; Mon, 16 Oct 2023 10:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697477522; cv=none; d=google.com; s=arc-20160816; b=WPpEE4NmMYCnJOMcctmmTsCpgcBUgiDxjyBdEfvxup/fwo+/lqtonGlF4nJ8f3HBno RglnQ+RAeR1RgOSWMea8RdfZUkA5Z/Cc5f4NQE6WrUXHVLx2KFIgbqPsyvfPcE5MSLky RNFTTWWzyUdlD5wdbn8JUwEWZq/t+8eTRGronPGpu+3w2/sz36GigShx1Vpiuyi9maJZ iWe/m2PtjOe7r0cfqHNBsxOrLWDpi53aPXJCUm2/oiJlm8Ec8eFjCWnjKWrxXpwNG70k sb7DyjBrgvFNqMQXCGobJ3OoTWCziOoH6Gche/GBbLLWA9UcoUg0akuYZ+pHa1GWMo/S DZ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RoK4NjzlcN0DSSQ5c5iy22hwER0ky4DkRlazi7yFitg=; fh=ziH6AqjcMAvHDbbuYhB2UMLIJ1wrChU+QKAaLUKUtjI=; b=Ta8LqPN3mtIruj2OWKHy8zPe8g13NyZ76jruywGFw62qHv4ijcX4YS3S2G+llc7KKU aU9L0PUoqU3tbVGAOqtJ5nrs1JSVA8lVLpJoH+v8ZsNCzE1MiHyBraRxqtirna8fOG26 xz5+O40qYWfnO0jyMH3m1b5+hbPEk+WYp+s3UblQM9XkclIZGQ1aY6ue+wEZnhVU7BLw WutCY+YoYpxFl8vGxJ9IlbZWbHJJ30CwlOedXwfeSCyvbtOKLJkKWiXdwUO9MZxz9OaB 6/38eGgPe2jtAzoVOFstMMBa/MneqVcV4GupCID6T7XuP7gCe6+YalBxT00GDgCLPbOa b2wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i5-20020a170902eb4500b001bdcb1e2d91si10487293pli.88.2023.10.16.10.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:32:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2BF20802A6E3; Mon, 16 Oct 2023 10:32:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232570AbjJPRb5 (ORCPT + 99 others); Mon, 16 Oct 2023 13:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjJPRb4 (ORCPT ); Mon, 16 Oct 2023 13:31:56 -0400 Received: from pepin.polanet.pl (pepin.polanet.pl [193.34.52.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A76383; Mon, 16 Oct 2023 10:31:53 -0700 (PDT) Date: Mon, 16 Oct 2023 19:31:50 +0200 From: Tomasz Pala To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Dan J Williams , Kan Liang , Tony Luck , David E Box , Yunying Sun , Dave Jiang , Mika Westerberg , Giovanni Cabiddu , Herbert Xu , Hans de Goede , Florent DELAHAYE , Konrad J Hambrick , Matt Hansen <2lprbe78@duck.com>, Nicholas Johnson , Benoit =?iso-8859-2?Q?Gr=E9goire?= , Werner Sembach , mumblingdrunkard@protonmail.com, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 2/2] x86/pci: Treat EfiMemoryMappedIO as reservation of ECAM space Message-ID: <20231016173150.GA22012@polanet.pl> References: <20230110180243.1590045-1-helgaas@kernel.org> <20230110180243.1590045-3-helgaas@kernel.org> <20231012153347.GA26695@polanet.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <20231012153347.GA26695@polanet.pl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 10:32:01 -0700 (PDT) On Thu, Oct 12, 2023 at 17:33:47 +0200, Tomasz Pala wrote: > I'm still having a problem initializing ixgbe NICs with pristine 6.5.7 kernel. > > efi: Remove mem63: MMIO range=[0x80000000-0x8fffffff] (256MB) from e820 map > [...] > [mem 0x7f800000-0xfed1bfff] available for PCI devices > [...] > PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0x80000000-0x8fffffff] (base 0x80000000) > [Firmware Info]: PCI: MMCONFIG at [mem 0x80000000-0x8fffffff] not reserved in ACPI motherboard resources > PCI: MMCONFIG at [mem 0x80000000-0x8fffffff] reserved as EfiMemoryMappedIO > [...] > ixgbe 0000:02:00.0: enabling device (0140 -> 0142) > ixgbe 0000:02:00.0: BAR 0: can't reserve [mem 0x80000000-0x8007ffff 64bit] > ixgbe 0000:02:00.0: pci_request_selected_regions failed 0xfffffff0 > ixgbe: probe of 0000:02:00.0 failed with error -16 FWIW, as I got no response - there were other people facing the issue as well: https://forum.proxmox.com/threads/proxmox-8-kernel-6-2-16-4-pve-ixgbe-driver-fails-to-load-due-to-pci-device-probing-failure.131203/ Apparently this might be some hardware quirk, therefore I'm not sure if the internal EfiMemoryMappedIO reservation logic should be reviewed, or some quirk handling to be added, or maybe some CONFIG_option introduced. Anyone please? -- Tomasz Pala