Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/server/drivers/xf86-video-wsfb wsfb: Disab...



details:   https://anonhg.NetBSD.org/src/rev/55b61e2dc61e
branches:  trunk
changeset: 369470:55b61e2dc61e
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Aug 20 01:02:44 2022 +0000

description:
wsfb: Disable broken DGA support:
 - dga(1) crashes X server since pScrn->AdjustFrame is NULL.
 - If nop is provided as pScrn->AdjustFrame, dga(1) crashes X server *AND*
   kernel. This is because DGA uses physical address of framebuffer via
   /dev/mem (oops!), but we provide only mmap(2)'ed virtual address.

diffstat:

 external/mit/xorg/server/drivers/xf86-video-wsfb/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r e4956f0c400e -r 55b61e2dc61e external/mit/xorg/server/drivers/xf86-video-wsfb/Makefile
--- a/external/mit/xorg/server/drivers/xf86-video-wsfb/Makefile Fri Aug 19 21:37:12 2022 +0000
+++ b/external/mit/xorg/server/drivers/xf86-video-wsfb/Makefile Sat Aug 20 01:02:44 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2018/08/03 02:26:00 kamil Exp $
+#      $NetBSD: Makefile,v 1.6 2022/08/20 01:02:44 rin Exp $
 
 DRIVER=                xf86-video-wsfb
 DRIVER_NAME=   wsfb_drv
@@ -11,3 +11,11 @@
 CWARNFLAGS.clang+=     -Wno-format
 
 .include "../Makefile.xf86-driver"
+
+# XXX
+# DGA support for this driver is broken:
+# - dga(1) crashes X server since pScrn->AdjustFrame is NULL.
+# - If nop is provided as pScrn->AdjustFrame, dga(1) crashes X server *AND*
+#   kernel. This is because DGA uses physical address of framebuffer via
+#   /dev/mem (oops!), but we provide only mmap(2)'ed virtual address.
+CPPFLAGS+=     -UXFreeXDGA



Home | Main Index | Thread Index | Old Index