From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B906288C8D for ; Thu, 24 Apr 2025 17:13:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745514820; cv=none; b=pJcmYMYgEgYrvNkJsdioZdWQZYmQ7PAExw72qwp0N3BNut1u2Ysa9EwxPNbvm7eSJ4kYebubCnA7CHVmwBBXPjMCgGQJqYcaHU7KT8Lb2E5F+S8FKcYETme2LP7VbLaSOy2jSGPleBC0bIHxlCQj3NzS3OK0vnQV2d786WesXbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745514820; c=relaxed/simple; bh=lSAmH3o9l+YijFyYgO9p/QiakOUJlWFuINqV67O554A=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=r7gte0MQxRoUAOinYS9Jc7NPdAnij5PFeP9lhAQKrnwqQuthvWlMvImc1MPjR/noRRysnFcnoxW+duMvaHl5EtDKwFcopmHVZQk1Ubk9uclSaOhP2iC46Owks9dzHWYRjXdyoJyLUuQOI0ECD+eXQRG6PUwMFtuacHAvay9+rqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aqgIHjTZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aqgIHjTZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C358C4CEE3; Thu, 24 Apr 2025 17:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745514819; bh=lSAmH3o9l+YijFyYgO9p/QiakOUJlWFuINqV67O554A=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=aqgIHjTZ5HkZix6tSDr/mkZFfXc2lmtRoeAwKWSQEuWh2N4B2bWqoCUjFpCXp8GBE pBiOQYS5wg4axYdg73n5UMtvi55gCcmH7u6YGofhMXITfA94Udq+AUadjsADJmQFnr VeLDGgesxl8J0t2EccxpK1NfJ1AkEunwR+ocHjKP6yN2isbPnGCDMyvxRZZuYattMX WaDuZG47KTzE9IJRLrA1IhxtF6ihrHwoKERcD4pE3uPRjWxdcliSDtwsVWuQt/kTzs HR4YRTkGkBlu4C5+jzVK2hwxuX6g4KwD2B7R2O4xeUl4GZgc0o6K++tY16FUYQpKOn LFMtDTkX9h2xw== Date: Thu, 24 Apr 2025 12:13:37 -0500 From: Bjorn Helgaas To: Maverickk 78 Cc: linux-pci@vger.kernel.org Subject: Re: Problem with kernel rescan and realloc BAR resource for endponts Message-ID: <20250424171337.GA492527@bhelgaas> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 24, 2025 at 10:19:44PM +0530, Maverickk 78 wrote: > Hello, > > The command line parameter > > pciehp.pciehp_force=1 pciehp.pciehp_debug=1 pcie_ports=native > pci=nocrs pci=hpmemsize=256M,realloc pci=noacpi pci=realloc=on > pci=nobios > > > There are a couple of endpoints connected to downstream ports on a > switch, and the endpoints are not visible during the BIOS (seabios) > enumeration, but they are brought out of reset just before kernel > starts pci scan. > > Even though the kernel enumerates the endpoint with proper bdf and is > able to read the config space but its not able to properly program the > BAR register, the lspci lists as > > > Region 0: Memory at (32-bit, non-prefetchable) [disabled] > [size=32M] > > > This is an emulation platform. Can't really give any suggestions without seeing a complete dmesg log and output of "sudo lspci -vv". This will give insight into how much space the devices require and what space is available. Bjorn