Commit a2ea88b1 authored by huxiaodong's avatar huxiaodong
Browse files

When the graphics card driver of the lower kernel version cannot support the...

When the graphics card driver of the lower kernel version cannot support the graphics card, there will be no /dev/drm/card [0.. n] device node on the system, so the modestings driver will probe failed, and fbdev and VESA will probe successfully. So, fbslotclaimed will be assigned to true, and the value of pcislotclaimed will become non-zero after plus 1. When the program runs to the xf86postprobe() function, the error branch will be executed, and the fatalerror() function will be executed to print the error log: "cannot run in framebuffer mode. Please specify busids for all framebuffer devices", xorg will be forced to exit.
parent da9d012a
Pipeline #453251 failed with stages
in 1 minute and 50 seconds
......@@ -212,6 +212,9 @@ xf86ClaimPciSlot(struct pci_device *d, DriverPtr drvp,
EntityPtr p = NULL;
int num;
if fbSlotClaimed
return -1;
if (xf86CheckPciSlot(d)) {
num = xf86AllocateEntity();
p = xf86Entities[num];
......
......@@ -401,6 +401,9 @@ xf86ClaimPlatformSlot(struct xf86_platform_device * d, DriverPtr drvp,
EntityPtr p = NULL;
int num;
if fbSlotClaimed
return -1;
if (xf86_check_platform_slot(d)) {
num = xf86AllocateEntity();
p = xf86Entities[num];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment