Date: Wed, 28 Jun 2023 05:25:57 +0000 From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 270509] Various x11-drivers/xf86-video drivers erroneously assume that no kernel driver will attach to graphics cards (need local patches) Message-ID: <bug-270509-7141-r4BLq2bWw1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-270509-7141@https.bugs.freebsd.org/bugzilla/> References: <bug-270509-7141@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270509 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 =3D NULL; + MGAPtr pMga; +=20 ++#ifndef __FreeBSD__ + if (pci_device_has_kernel_driver(dev)) { + /* If it's a G200 server chip, it's probably on KMS, so bail; if no= t, + * it might be using matroxfb, which is ok. */ +@@ -721,6 +722,7 @@ + return FALSE; + } + } ++#endif +=20 + /* Allocate a ScrnInfoRec and claim the slot */ + pScrn =3D xf86ConfigPciEntity(pScrn, 0, entity_num, MGAPciChipsets, --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270509-7141-r4BLq2bWw1>