From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2489CDB474 for ; Mon, 16 Oct 2023 17:31:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbjJPRb5 (ORCPT ); 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) Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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