public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Rio Liu <rio@r26.me>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	 "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	 "regressions@lists.linux.dev" <regressions@lists.linux.dev>,
	 Bjorn Helgaas <bhelgaas@google.com>
Subject: Re: [REGRESSION] amdgpu fails to load eGPU after 6.19
Date: Wed, 15 Apr 2026 12:19:53 +0300 (EEST)	[thread overview]
Message-ID: <3bdf3453-8052-3626-f877-c769b88ee0c0@linux.intel.com> (raw)
In-Reply-To: <j-oL8G7jik8a-PYnIVU4kE-w4HJaq9pNshpbPC5zphvGa0SIno_vpSq1zEcBUVDx6hSMvbV1eAIcIO7C8jtMv0GTG7UfvWVZaEzabnQ-6YY=@r26.me>

On Tue, 14 Apr 2026, Rio Liu wrote:

> Hi Ilpo,
> 
> > This snippet only contains collateral damage and does not show where the
> > problem originates from. Please provide a full dmesg instead with
> > dyndbg="file drivers/pci/*.c +p" on the kernel command line.
> >
> > Preferrably test with the latest code + fixes that are in pci/resources
> > branch (you can just take all changes from there) and get the logs from
> > there. I wouldn't be surprised if your problem is already addressed by
> > those fixes but we'll see.
> 
> Thanks a lot for the help! I tested on pci/resources
> 8cb081667377709f4924ab6b3a88a0d7a761fe91 "PCI: Fix alignment calculation for
> resource size larger than align", and the eGPU is now loading! There are some
> messages in dmesg showing "can't assign; no space" and "failed to assign", but I
> don't see any functional impact from it. Including the dmesg anyways in case
> there's anything important: https://pastebin.com/n5hhtkz0.

Hi,

Thanks for testing.

Most of the assignment failures occur for io resources. It tends to be 
that in large systems of today, hotplug reservation consumes all io space 
for things that don't need any. Usually, the io resource assignment 
failures are harmless.

Then there's a bridge window pin for this bridge window:

pcieport 0000:04:00.0: bridge window [mem 0x6000000000-0x60201fffff 64bit pref]: was not released (still contains assigned resources)

That window is pinned in place by sibling devices so kernel cannot 
release it prior to attempting BAR resizing, which in turn prevents BAR 
resizing from succeeding as the bridge windows cannot be made large 
enough.

You should be able to see what the siblings are easily from /proc/iomem.

It may be possible to manually remove the siblings first, resize the 
eGPU's BAR through sysfs, and finally rescan.

-- 
 i.

      reply	other threads:[~2026-04-15  9:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-14  0:16 [REGRESSION] amdgpu fails to load eGPU after 6.19 Rio Liu
2026-04-14 14:28 ` Ilpo Järvinen
2026-04-14 23:03   ` Rio Liu
2026-04-15  9:19     ` Ilpo Järvinen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3bdf3453-8052-3626-f877-c769b88ee0c0@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=bhelgaas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=regressions@lists.linux.dev \
    --cc=rio@r26.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox