[Bug 270509] Various x11-drivers/xf86-video drivers erroneously assume that no kernel driver will attach to graphics cards (need local patches)
Date: Wed, 28 Jun 2023 05:25:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270509 NAKAJI Hiroyuki <nakaji@kankyo-u.ac.jp> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nakaji@kankyo-u.ac.jp --- Comment #29 from NAKAJI Hiroyuki <nakaji@kankyo-u.ac.jp> --- (In reply to wbe from comment #28) How about this patch for x11-drivers/xf86-video-mga? diff -urN /usr/ports/x11-drivers/xf86-video-mga/files/patch-src_mga__driver.c ./x11-drivers/xf86-video-mga/files/patch-src_mga__driver.c --- /usr/ports/x11-drivers/xf86-video-mga/files/patch-src_mga__driver.c 1970-01-01 09:00:00.000000000 +0900 +++ ./x11-drivers/xf86-video-mga/files/patch-src_mga__driver.c 2023-06-28 14:09:39.602063000 +0900 @@ -0,0 +1,18 @@ +--- src/mga_driver.c.orig 2018-12-08 10:08:01.000000000 +0900 ++++ src/mga_driver.c 2023-06-28 14:08:34.513506000 +0900 +@@ -702,6 +702,7 @@ + ScrnInfoPtr pScrn = NULL; + MGAPtr pMga; + ++#ifndef __FreeBSD__ + if (pci_device_has_kernel_driver(dev)) { + /* If it's a G200 server chip, it's probably on KMS, so bail; if not, + * it might be using matroxfb, which is ok. */ +@@ -721,6 +722,7 @@ + return FALSE; + } + } ++#endif + + /* Allocate a ScrnInfoRec and claim the slot */ + pScrn = xf86ConfigPciEntity(pScrn, 0, entity_num, MGAPciChipsets, -- You are receiving this mail because: You are the assignee for the bug.