[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<SN6PR02MB41573CD2EA6CD82A0C238F66D494A@SN6PR02MB4157.namprd02.prod.outlook.com>
Date: Fri, 23 Jan 2026 06:39:24 +0000
From: Michael Kelley <mhklinux@...look.com>
To: Matthew Ruffell <matthew.ruffell@...onical.com>
CC: "DECUI@...rosoft.com" <DECUI@...rosoft.com>, "bhelgaas@...gle.com"
<bhelgaas@...gle.com>, "haiyangz@...rosoft.com" <haiyangz@...rosoft.com>,
"jakeo@...rosoft.com" <jakeo@...rosoft.com>, "kwilczynski@...nel.org"
<kwilczynski@...nel.org>, "kys@...rosoft.com" <kys@...rosoft.com>,
"linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"longli@...rosoft.com" <longli@...rosoft.com>, "lpieralisi@...nel.org"
<lpieralisi@...nel.org>, "mani@...nel.org" <mani@...nel.org>,
"robh@...nel.org" <robh@...nel.org>, "stable@...r.kernel.org"
<stable@...r.kernel.org>, "wei.liu@...nel.org" <wei.liu@...nel.org>
Subject: RE: [PATCH] PCI: hv: Allocate MMIO from above 4GB for the config
window
From: Matthew Ruffell <matthew.ruffell@...onical.com> Sent: Thursday, January 22, 2026 9:39 PM
>
> Hi Michael,
>
> > > I wonder if commit a41e0ab394e4 broke the initialization of screen_info in the
> > > kdump kernel. Or perhaps there is now a rev-lock between the kernel with this
> > > commit and a new version of the user space kexec command.
>
> a41e0ab394e4 isn't a mainline commit. Can you please mention the commit subject
> so I can have a read.
It's this patch:
https://lore.kernel.org/lkml/20251126160854.553077-5-tzimmermann@suse.de/
which is in linux-next, but not yet in mainline. Since you are dealing with older
kernels, it's not the culprit.
>
> > > There's a parameter to the kexec() command that governs whether it uses the
> > > kexec_file_load() system call or the kexec_load() system call.
> > > I wonder if that parameter makes a difference in the problem described for this
> > > patch.
>
> Yes, it does indeed make a difference. I have been debugging this the past few
> days, and my colleague Melissa noticed that the problem reproduces when secure
> boot is disabled, but it does not reproduce when secure boot is enabled.
> Additionally, it reproduces on jammy, but not noble. It turns out that
> kexec-tools on jammy defaults to kexec_load() when secure boot is disabled,
> and when enabled, it instead uses kexec_file_load(). On noble, it defaults to
> first trying kexec_file_load() before falling back to kexec_load(), so the
> issue does not reproduce.
This is good info, and definitely a clue. So to be clear, the problem repros
only when kexec_load() is used. With kexec_file_load(), it does not repro. Is that
right? I saw a similar distinction when working on commit 304386373007,
though in the opposite direction!
>
> > > > /*
> > > > * Set up a region of MMIO space to use for accessing configuration
> > > > - * space.
> > > > + * space. Use the high MMIO range to not conflict with the hyperv_drm
> > > > + * driver (which normally gets MMIO from the low MMIO range) in the
> > > > + * kdump kernel of a Gen2 VM, which fails to reserve the framebuffer
> > > > + * MMIO range in vmbus_reserve_fb() due to screen_info.lfb_base being
> > > > + * zero in the kdump kernel.
> > > > */
> > > > - ret = vmbus_allocate_mmio(&hbus->mem_config, hbus->hdev, 0, -1,
> > > > + ret = vmbus_allocate_mmio(&hbus->mem_config, hbus->hdev, SZ_4G, -1,
> > > > PCI_CONFIG_MMIO_LENGTH, 0x1000, false);
> > > > if (ret)
> > > > return ret;
> > > > --
>
> Thank you for the patch Dexuan.
>
> This patch fixes the problem on Ubuntu 5.15, and 6.8 based kernels
> booting V6 instance types on Azure with Gen 2 images.
Are you seeing the problem on x86/64 or arm64 instances in Azure?
"V6 instance types" could be either, I think, but I'm guessing you
are on x86/64.
And just to confirm: are you seeing the problem with the
Hyper-V DRM driver, or the Hyper-V FB driver? This patch mentions
the DRM driver, so I assume that's the problematic config.
>
> Tested-by: Matthew Ruffell <matthew.ruffell@...onical.com>
While this patch may solve the observed problem, I'm interested in
understanding the root cause of why vmbus_reserve_fb() is seeing
screen_info.lfb_base set to zero. It may be next week before I can
take a look, and I may need follow up with you on more details of the
scenario to reproduce the problem.
Michael
Powered by blists - more mailing lists