All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] PCI/VGA: Fix boot device detection after framebuffer relocation
@ 2026-11-10 20:05 kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2026-11-10 20:05 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261028094634.766723-1-wuqianhai@loongson.cn>
References: <20261028094634.766723-1-wuqianhai@loongson.cn>
TO: wuqianhai@loongson.cn
TO: bhelgaas@google.com
CC: wuqianhai <wuqianhai@loongson.cn>
CC: linux-pci@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: tzimmermann@suse.de
CC: javierm@redhat.com
CC: dri-devel@lists.freedesktop.org

Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on pci/next]
[also build test ERROR on pci/for-linus linus/master v7.4-rc2 next-20261109]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/wuqianhai-loongson-cn/PCI-VGA-Fix-boot-device-detection-after-framebuffer-relocation/20261028-174634
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link:    https://lore.kernel.org/r/20261028094634.766723-1-wuqianhai%40loongson.cn
patch subject: [PATCH] PCI/VGA: Fix boot device detection after framebuffer relocation
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20261111/202611110347.EpCc8ug6-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261111/202611110347.EpCc8ug6-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202611110347.EpCc8ug6-lkp@intel.com/

All errors (new ones prefixed by >>):

   alpha-linux-ld: drivers/pci/vgaarb.o: in function `vga_arb_device_init':
   drivers/pci/vgaarb.c:1536:(.init.text+0x8): undefined reference to `screen_info_apply_fixups'
>> alpha-linux-ld: drivers/pci/vgaarb.c:1536:(.init.text+0x24): undefined reference to `screen_info_apply_fixups'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH] PCI/VGA: Fix boot device detection after framebuffer relocation
@ 2026-11-11 15:59 kernel test robot
  0 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2026-11-11 15:59 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261028094634.766723-1-wuqianhai@loongson.cn>
References: <20261028094634.766723-1-wuqianhai@loongson.cn>
TO: wuqianhai@loongson.cn
TO: bhelgaas@google.com
CC: wuqianhai <wuqianhai@loongson.cn>
CC: linux-pci@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: tzimmermann@suse.de
CC: javierm@redhat.com
CC: dri-devel@lists.freedesktop.org

Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on pci/next]
[also build test ERROR on pci/for-linus linus/master v7.4-rc2 next-20261110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/wuqianhai-loongson-cn/PCI-VGA-Fix-boot-device-detection-after-framebuffer-relocation/20261028-174634
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link:    https://lore.kernel.org/r/20261028094634.766723-1-wuqianhai%40loongson.cn
patch subject: [PATCH] PCI/VGA: Fix boot device detection after framebuffer relocation
:::::: branch date: 27 hours ago
:::::: commit date: 27 hours ago
config: xtensa-common_defconfig (https://download.01.org/0day-ci/archive/20261111/202611112305.j7RhAOKu-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261111/202611112305.j7RhAOKu-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202611112305.j7RhAOKu-lkp@intel.com/

All errors (new ones prefixed by >>):

>> xtensa-linux-ld: drivers/pci/vgaarb.o:(.init.literal+0x14): undefined reference to `screen_info_apply_fixups'
   xtensa-linux-ld: drivers/pci/vgaarb.o: in function `vga_arb_device_init':
   vgaarb.c:(.init.text+0x3): undefined reference to `screen_info_apply_fixups'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH] PCI/VGA: Fix boot device detection after framebuffer relocation
@ 2026-10-28  9:46 wuqianhai
  2026-10-28 10:11 ` sashiko-bot
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: wuqianhai @ 2026-10-28  9:46 UTC (permalink / raw)
  To: bhelgaas
  Cc: wuqianhai, linux-pci, linux-kernel, tzimmermann, javierm,
	dri-devel

From: wuqianhai <wuqianhai@loongson.cn>

PCI resource assignment can relocate the firmware framebuffer BAR, which
leaves the base address in screen_info stale.  The VGA arbiter then calls
screen_info_pci_dev() from vga_is_firmware_default(), which fails to match
the framebuffer against any PCI device's BARs.  As a result, the boot VGA
device is not recognized and the arbiter may select the wrong default
device.

Fix this by calling screen_info_apply_fixups() in vga_arb_device_init()
before adding the VGA devices.  This relocates lfb_base to the assigned
BAR address so that vga_is_firmware_default() matches the boot device
again.

Tested on a LoongArch platform, with vga_is_firmware_default()
additionally enabled for CONFIG_LOONGARCH via local changes.

Fixes: 337bf13aa9ddab8ae47f2677ab75cf69ae33437b ("PCI/VGA: Replace vga_is_firmware_default() with a screen info check")
Signed-off-by: wuqianhai <wuqianhai@loongson.cn>
---
 drivers/pci/vgaarb.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/pci/vgaarb.c b/drivers/pci/vgaarb.c
index 3e58b2c05c85..aca594651f58 100644
--- a/drivers/pci/vgaarb.c
+++ b/drivers/pci/vgaarb.c
@@ -1527,6 +1527,14 @@ static int __init vga_arb_device_init(void)
 	int rc;
 	struct pci_dev *pdev;
 
+	/*
+	 * PCI resource assignment may have relocated the firmware
+	 * framebuffer BAR. Update screen_info's lfb_base so that
+	 * vga_is_firmware_default() can match it against the boot
+	 * device's relocated resource.
+	 */
+	screen_info_apply_fixups();
+
 	rc = misc_register(&vga_arb_device);
 	if (rc < 0)
 		pr_err("error %d registering device\n", rc);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-11 16:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 20:05 [PATCH] PCI/VGA: Fix boot device detection after framebuffer relocation kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-11-11 15:59 kernel test robot
2026-10-28  9:46 wuqianhai
2026-10-28 10:11 ` sashiko-bot
2026-10-28 23:15 ` Bjorn Helgaas
2026-10-29  3:39   ` wuqianhai
2026-10-29 20:03     ` Bjorn Helgaas
2026-10-29  7:54   ` Thomas Zimmermann
2026-10-29  7:00 ` kernel test robot
2026-10-29 13:30 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.