head 1.10; access; symbols netbsd-11-0-RC4:1.10 netbsd-11-0-RC3:1.10 netbsd-11-0-RC2:1.10 netbsd-11-0-RC1:1.10 perseant-exfatfs-base-20250801:1.10 netbsd-11:1.10.0.8 netbsd-11-base:1.10 netbsd-10-1-RELEASE:1.9 perseant-exfatfs-base-20240630:1.10 perseant-exfatfs:1.10.0.6 perseant-exfatfs-base:1.10 netbsd-8-3-RELEASE:1.1 netbsd-9-4-RELEASE:1.2 netbsd-10-0-RELEASE:1.9 netbsd-10-0-RC6:1.9 netbsd-10-0-RC5:1.9 netbsd-10-0-RC4:1.9 netbsd-10-0-RC3:1.9 netbsd-10-0-RC2:1.9 thorpej-ifq:1.10.0.4 thorpej-ifq-base:1.10 thorpej-altq-separation:1.10.0.2 thorpej-altq-separation-base:1.10 netbsd-10-0-RC1:1.9 netbsd-10:1.9.0.4 netbsd-10-base:1.9 bouyer-sunxi-drm:1.9.0.2 bouyer-sunxi-drm-base:1.9 netbsd-9-3-RELEASE:1.2 thorpej-i2c-spi-conf2:1.3.0.22 thorpej-i2c-spi-conf2-base:1.3 thorpej-futex2:1.3.0.20 thorpej-futex2-base:1.3 thorpej-cfargs2:1.3.0.18 thorpej-cfargs2-base:1.3 cjep_sun2x-base1:1.3 cjep_sun2x:1.3.0.16 cjep_sun2x-base:1.3 cjep_staticlib_x-base1:1.3 netbsd-9-2-RELEASE:1.2 cjep_staticlib_x:1.3.0.14 cjep_staticlib_x-base:1.3 thorpej-i2c-spi-conf:1.3.0.12 thorpej-i2c-spi-conf-base:1.3 thorpej-cfargs:1.3.0.10 thorpej-cfargs-base:1.3 thorpej-futex:1.3.0.8 thorpej-futex-base:1.3 netbsd-9-1-RELEASE:1.2 bouyer-xenpvh-base2:1.3 phil-wifi-20200421:1.3 bouyer-xenpvh-base1:1.3 phil-wifi-20200411:1.3 bouyer-xenpvh:1.3.0.6 bouyer-xenpvh-base:1.3 is-mlppp:1.3.0.4 is-mlppp-base:1.3 phil-wifi-20200406:1.3 netbsd-8-2-RELEASE:1.1 ad-namecache-base3:1.3 netbsd-9-0-RELEASE:1.2 netbsd-9-0-RC2:1.2 ad-namecache-base2:1.3 ad-namecache-base1:1.3 ad-namecache:1.3.0.2 ad-namecache-base:1.3 netbsd-9-0-RC1:1.2 phil-wifi-20191119:1.3 netbsd-9:1.2.0.4 netbsd-9-base:1.2 phil-wifi-20190609:1.2 netbsd-8-1-RELEASE:1.1 netbsd-8-1-RC1:1.1 isaki-audio2:1.2.0.2 isaki-audio2-base:1.2 pgoyette-compat-merge-20190127:1.1 pgoyette-compat-20190127:1.1 pgoyette-compat-20190118:1.1 pgoyette-compat-1226:1.1 pgoyette-compat-1126:1.1 pgoyette-compat-1020:1.1 pgoyette-compat-0930:1.1 pgoyette-compat-0906:1.1 netbsd-7-2-RELEASE:1.1.4.2 pgoyette-compat-0728:1.1 netbsd-8-0-RELEASE:1.1 phil-wifi:1.1.0.24 phil-wifi-base:1.1 pgoyette-compat-0625:1.1 netbsd-8-0-RC2:1.1 pgoyette-compat-0521:1.1 pgoyette-compat-0502:1.1 pgoyette-compat-0422:1.1 netbsd-8-0-RC1:1.1 pgoyette-compat-0415:1.1 pgoyette-compat-0407:1.1 pgoyette-compat-0330:1.1 pgoyette-compat-0322:1.1 pgoyette-compat-0315:1.1 netbsd-7-1-2-RELEASE:1.1.4.2 pgoyette-compat:1.1.0.22 pgoyette-compat-base:1.1 netbsd-7-1-1-RELEASE:1.1.4.2 tls-maxphys:1.1.0.20 tls-maxphys-base-20171202:1.1 matt-nb8-mediatek:1.1.0.18 matt-nb8-mediatek-base:1.1 nick-nhusb-base-20170825:1.1 perseant-stdc-iso10646:1.1.0.16 perseant-stdc-iso10646-base:1.1 netbsd-8:1.1.0.14 netbsd-8-base:1.1 prg-localcount2-base3:1.1 prg-localcount2-base2:1.1 prg-localcount2-base1:1.1 prg-localcount2:1.1.0.12 prg-localcount2-base:1.1 pgoyette-localcount-20170426:1.1 bouyer-socketcan-base1:1.1 jdolecek-ncq:1.1.0.10 jdolecek-ncq-base:1.1 pgoyette-localcount-20170320:1.1 netbsd-7-1:1.1.4.2.0.6 netbsd-7-1-RELEASE:1.1.4.2 netbsd-7-1-RC2:1.1.4.2 nick-nhusb-base-20170204:1.1 netbsd-7-nhusb-base-20170116:1.1.4.2 bouyer-socketcan:1.1.0.8 bouyer-socketcan-base:1.1 pgoyette-localcount-20170107:1.1 netbsd-7-1-RC1:1.1.4.2 nick-nhusb-base-20161204:1.1 pgoyette-localcount-20161104:1.1 netbsd-7-0-2-RELEASE:1.1.4.2 nick-nhusb-base-20161004:1.1 localcount-20160914:1.1 netbsd-7-nhusb:1.1.4.2.0.4 netbsd-7-nhusb-base:1.1.4.2 pgoyette-localcount-20160806:1.1 pgoyette-localcount-20160726:1.1 pgoyette-localcount:1.1.0.6 pgoyette-localcount-base:1.1 nick-nhusb-base-20160907:1.1 nick-nhusb-base-20160529:1.1 netbsd-7-0-1-RELEASE:1.1.4.2 nick-nhusb-base-20160422:1.1 nick-nhusb-base-20160319:1.1 nick-nhusb-base-20151226:1.1 netbsd-7-0:1.1.4.2.0.2 netbsd-7-0-RELEASE:1.1.4.2 nick-nhusb-base-20150921:1.1 netbsd-7-0-RC3:1.1.4.2 netbsd-7-0-RC2:1.1.4.2 netbsd-7-0-RC1:1.1.4.2 nick-nhusb-base-20150606:1.1 nick-nhusb-base-20150406:1.1 netbsd-7:1.1.0.4 nick-nhusb:1.1.0.2 nick-nhusb-base:1.1; locks; strict; comment @# @; 1.10 date 2023.06.03.21.30.22; author lukem; state Exp; branches; next 1.9; commitid jxeKWdozvzDbZxrE; 1.9 date 2022.07.19.23.19.07; author riastradh; state Exp; branches; next 1.8; commitid Oq0gjTUKm8GeQyMD; 1.8 date 2022.07.17.15.36.05; author riastradh; state Exp; branches; next 1.7; commitid JwRegQV6iknnlgMD; 1.7 date 2021.12.19.10.55.38; author riastradh; state Exp; branches; next 1.6; commitid UWP3CiIpOfkFxflD; 1.6 date 2021.12.19.10.55.27; author riastradh; state Exp; branches; next 1.5; commitid VWKaCxdkzhzBxflD; 1.5 date 2021.12.19.01.50.54; author riastradh; state Exp; branches; next 1.4; commitid GXAhgRlIFo0OwclD; 1.4 date 2021.12.19.01.47.31; author riastradh; state Exp; branches; next 1.3; commitid 5cDt8Fo9OD4EvclD; 1.3 date 2019.09.30.00.06.02; author mrg; state Exp; branches; next 1.2; commitid resfJpecerWS0YEB; 1.2 date 2019.02.04.08.18.08; author mrg; state Exp; branches; next 1.1; commitid gOxJFKQqv4KMnqaB; 1.1 date 2014.09.14.19.06.01; author riastradh; state Exp; branches 1.1.4.1 1.1.20.1 1.1.24.1; next ; commitid fPkkVXAxMT24xlQx; 1.1.4.1 date 2014.09.14.19.06.01; author snj; state dead; branches; next 1.1.4.2; commitid tIqDrPTMaOaMlz5y; 1.1.4.2 date 2015.01.11.05.59.17; author snj; state Exp; branches; next ; commitid tIqDrPTMaOaMlz5y; 1.1.20.1 date 2014.09.14.19.06.01; author jdolecek; state dead; branches; next 1.1.20.2; commitid XcIYRZTAh1LmerhA; 1.1.20.2 date 2017.12.03.11.38.01; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.1.24.1 date 2019.06.10.22.08.33; author christos; state Exp; branches; next 1.1.24.2; commitid jtc8rnCzWiEEHGqB; 1.1.24.2 date 2020.04.13.08.05.00; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; desc @@ 1.10 log @adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH} Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of the older style more complex expressions. @ text @# $NetBSD: files.ttm,v 1.9 2022/07/19 23:19:07 riastradh Exp $ # TTM, the texture and tiling manager. version 20180827 define drmkms_ttm: drmkms makeoptions drmkms_ttm "CPPFLAGS.drmkms_ttm"+="${CPPFLAGS.drmkms}" makeoptions drmkms "CWARNFLAGS.ttm_bo.c"+="${CC_WNO_IMPLICIT_FALLTHROUGH}" makeoptions drmkms_ttm "CPPFLAGS.drmkms_ttm"+="-DCONFIG_AGP=1" makeoptions drmkms_ttm "CWARNFLAGS.drmkms_ttm"+="-Wno-missing-field-initializers" makeoptions drmkms_ttm "CWARNFLAGS.drmkms_ttm"+="-Wno-shadow" file external/bsd/drm2/ttm/ttm_agp_backend.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_memory.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_tt.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c drmkms_ttm file external/bsd/drm2/ttm/ttm_bo_vm.c drmkms_ttm file external/bsd/drm2/ttm/ttm_module.c drmkms_ttm # Used only by vmwgfx. Needs porting for rcu -> pserialize. #file external/bsd/drm2/dist/drm/ttm/ttm_object.c drmkms_ttm # Used only by vmwgfx. Needs porting. Does silly things like SIGKILL. #file external/bsd/drm2/dist/drm/ttm/ttm_lock.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_execbuf_util.c drmkms_ttm # Replaced locally by ttm_bus_dma.c. #file external/bsd/drm2/dist/drm/ttm/ttm_page_alloc.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c drmkms_ttm # Replaced locally by ttm_bus_dma.c. #file external/bsd/drm2/dist/drm/ttm/ttm_page_alloc_dma.c drmkms_ttm file external/bsd/drm2/ttm/ttm_bus_dma.c drmkms_ttm @ 1.9 log @drm: Propagate CPPFLAGS.drmkms into all the drm drivers. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.8 2022/07/17 15:36:05 riastradh Exp $ d10 1 a10 1 makeoptions drmkms "CWARNFLAGS.ttm_bo.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}" @ 1.8 log @drm: Modularize ttm. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.7 2021/12/19 10:55:38 riastradh Exp $ d8 1 @ 1.7 log @Revert part of previous: no separate CPPFLAGS.drmkms. There are too many drms users outside sys/external/bsd/drm2 for now; will hold off on this until we find a better way to keep the drm includes modularized. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.6 2021/12/19 10:55:27 riastradh Exp $ d20 1 a20 2 # Linux module goo. #file external/bsd/drm2/dist/drm/ttm/ttm_module.c drmkms_ttm @ 1.6 log @Narrow the CPPFLAGS for drm subsystems. No need for the whole kernel to be built with -I flags for the drm header files. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.5 2021/12/19 01:50:54 riastradh Exp $ a8 2 makeoptions drmkms_ttm "CPPFLAGS.drmkms_ttm"+="${CPPFLAGS.drmkms}" @ 1.5 log @Fix up ttm agp. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.4 2021/12/19 01:47:31 riastradh Exp $ d9 2 @ 1.4 log @Build ttm with -Wno-missing-field-initializers, -Wno-shadow. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.3 2019/09/30 00:06:02 mrg Exp $ d10 1 @ 1.3 log @convert HAVE_GCC == 7 to HAVE_GCC >= 7. @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.2 2019/02/04 08:18:08 mrg Exp $ d5 2 d10 2 @ 1.2 log @add -Wno-error=int-in-bool-context or -Wno-error=implicit-fallthrough for various drm files that would be best ignored or upstream fixed. (could fix savagedrm, no one upstream is that any more.) @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.1 2014/09/14 19:06:01 riastradh Exp $ d7 1 a7 1 makeoptions drmkms "CWARNFLAGS.ttm_bo.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} == 7:? -Wno-error=implicit-fallthrough :}" @ 1.1 log @Split drm ttm config into a separate file. @ text @d1 1 a1 1 # $NetBSD$ d7 2 @ 1.1.24.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.ttm,v 1.2 2019/02/04 08:18:08 mrg Exp $ a6 2 makeoptions drmkms "CWARNFLAGS.ttm_bo.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} == 7:? -Wno-error=implicit-fallthrough :}" @ 1.1.24.2 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d7 1 a7 1 makeoptions drmkms "CWARNFLAGS.ttm_bo.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}" @ 1.1.20.1 log @file files.ttm was added on branch tls-maxphys on 2017-12-03 11:38:01 +0000 @ text @d1 26 @ 1.1.20.2 log @update from HEAD @ text @a0 26 # $NetBSD$ # TTM, the texture and tiling manager. define drmkms_ttm: drmkms file external/bsd/drm2/ttm/ttm_agp_backend.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_memory.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_tt.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c drmkms_ttm file external/bsd/drm2/ttm/ttm_bo_vm.c drmkms_ttm # Linux module goo. #file external/bsd/drm2/dist/drm/ttm/ttm_module.c drmkms_ttm # Used only by vmwgfx. Needs porting for rcu -> pserialize. #file external/bsd/drm2/dist/drm/ttm/ttm_object.c drmkms_ttm # Used only by vmwgfx. Needs porting. Does silly things like SIGKILL. #file external/bsd/drm2/dist/drm/ttm/ttm_lock.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_execbuf_util.c drmkms_ttm # Replaced locally by ttm_bus_dma.c. #file external/bsd/drm2/dist/drm/ttm/ttm_page_alloc.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c drmkms_ttm # Replaced locally by ttm_bus_dma.c. #file external/bsd/drm2/dist/drm/ttm/ttm_page_alloc_dma.c drmkms_ttm file external/bsd/drm2/ttm/ttm_bus_dma.c drmkms_ttm @ 1.1.4.1 log @file files.ttm was added on branch netbsd-7 on 2015-01-11 05:59:17 +0000 @ text @d1 26 @ 1.1.4.2 log @Pull up following revision(s) (requested by chs in ticket #401): distrib/sets/lists/modules/md.amd64: revisions 1.46, 1.47 via patch distrib/sets/lists/modules/md.i386: revisions 1.49, 1.50 sys/dev/ic/pcdisplayvar.h: revision 1.20 sys/dev/ic/vgavar.h: revision 1.32 sys/external/bsd/drm/dist/bsd-core/drm_drv.c: revision 1.26 sys/external/bsd/drm2/dist/drm/drm_agpsupport.c: revisions 1.5, 1.6 sys/external/bsd/drm2/dist/drm/drm_pci.c: revisions 1.4, 1.5 sys/external/bsd/drm2/dist/drm/drm_stub.c: revisions 1.6-1.8 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h: revision 1.11 sys/external/bsd/drm2/dist/drm/radeon/cik.c: revision 1.3 sys/external/bsd/drm2/dist/drm/radeon/ni.c: revision 1.3 sys/external/bsd/drm2/dist/drm/radeon/si.c: revision 1.3 sys/external/bsd/drm2/dist/include/drm/drmP.h: revisions 1.8, 1.9 sys/external/bsd/drm2/dist/include/drm/drm_agpsupport.h: revisions 1.3, 1.4 sys/external/bsd/drm2/drm/drm_drv.c: revision 1.11 sys/external/bsd/drm2/drm/drm_module.c: revision 1.9 sys/external/bsd/drm2/drm/drm_sysctl.c: revisions 1.1-1.4 sys/external/bsd/drm2/drm/drm_vm.c: revision 1.7 sys/external/bsd/drm2/drm/files.drmkms: revisions 1.8, 1.9 sys/external/bsd/drm2/i915drm/files.i915drmkms: revision 1.9 sys/external/bsd/drm2/i915drm/i915_module.c: revisions 1.4, 1.5 sys/external/bsd/drm2/include/drm/drm_sysctl.h: revisions 1.1, 1.2 sys/external/bsd/drm2/include/linux/hdmi.h: revisions 1.3-1.5 sys/external/bsd/drm2/include/linux/module.h: revision 1.5 sys/external/bsd/drm2/include/linux/moduleparam.h: revisions 1.3, 1.4 sys/external/bsd/drm2/include/linux/pci.h: revision 1.11 sys/external/bsd/drm2/linux/linux_module.c: revision 1.5 sys/external/bsd/drm2/nouveau/files.nouveau: revision 1.4 sys/external/bsd/drm2/nouveau/nouveau_module.c: revision 1.3 sys/external/bsd/drm2/pci/drm_pci.c: revision 1.8 sys/external/bsd/drm2/pci/drm_pci_module.c: revision 1.3 sys/external/bsd/drm2/radeon/radeon_module.c: revision 1.3 sys/external/bsd/drm2/ttm/files.ttm: revision 1.1 sys/modules/drm2pci/Makefile: file removal sys/modules/drmkms/Makefile: revisions 1.4-1.7 sys/modules/drmkms_linux/Makefile: revision 1.5 sys/modules/drmkms_pci/Makefile: revisions 1.3, 1.4 sys/modules/i915drmkms/Makefile: revisions 1.5-1.7 Split drm ttm config into a separate file. -- Fix module build of drmkms_linux. -- Remove vestigial drm2pci module, replaced by drmkms_pci. -- fix the module class. -- add the drmkms modules -- make a drm_agp_destroy() function to resolve the circular dependency between drmkms and drmkms_pci -- finalize the idr code. -- add drm_agp_destroy -- fix drmkms module path for xen. -- fix build failure. /tmp/bracket/build/2014.11.10.22.43.46-i386/src/sys/external/bsd/drm2/include/linux/pci.h:36:20: fatal error: acpica.h: No such file or directory -- make this work: add agpsupport and sysctl code -- move agpsupport to drmkms to avoid circular dependencies. -- turn on dynamic ldscript creation to handle link set symbol definitions used in the automatic sysctl creation. -- Add __link_set based code to automatically convert the linux module parameters into sysctls. -- this module needs MKLDSCRIPT too now -- more _KERNEL_OPT -- prettify and add to all the modules that have it. -- fix description setting. -- Adjust flags to allow building with clang. -- Fix build with clang. -- Drop casts in favour of expressions that actually give the right pointer. -- Move all PCI/AGP code back to drmkms_pci module where it belongs. -- Use correct length for hdmi_infoframe_header_pack in . Fixes PR kern/49411. -- Back out previous, fix PR kern/49411 correctly. frame->header.length is not initialized in the vendor packet case. Instead, make hdmi_infoframe_header_pack take the packet length and subtract the size of the header when packing the header. (Could make it take the payload length instead, but for callers it is more convenient to have a name for the whole packet length.) -- Fix bounds checking in hdmi_infoframe_header_pack (PR kern/49411). -- Trivial build fix for no options SYSCTL_INCLUDE_DESCR case, to avoid -Werror. OK christos@@ and riastradh@@ -- fix debugging compilation (ALL kernel) -- nouveau_nv50_fence.c needs -Wno-shadow. -- fix a confusion between dev_t and devmajor_t, and include the primary minor when calling makedev(). @ text @a0 26 # $NetBSD$ # TTM, the texture and tiling manager. define drmkms_ttm: drmkms file external/bsd/drm2/ttm/ttm_agp_backend.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_memory.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_tt.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c drmkms_ttm file external/bsd/drm2/ttm/ttm_bo_vm.c drmkms_ttm # Linux module goo. #file external/bsd/drm2/dist/drm/ttm/ttm_module.c drmkms_ttm # Used only by vmwgfx. Needs porting for rcu -> pserialize. #file external/bsd/drm2/dist/drm/ttm/ttm_object.c drmkms_ttm # Used only by vmwgfx. Needs porting. Does silly things like SIGKILL. #file external/bsd/drm2/dist/drm/ttm/ttm_lock.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_execbuf_util.c drmkms_ttm # Replaced locally by ttm_bus_dma.c. #file external/bsd/drm2/dist/drm/ttm/ttm_page_alloc.c drmkms_ttm file external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c drmkms_ttm # Replaced locally by ttm_bus_dma.c. #file external/bsd/drm2/dist/drm/ttm/ttm_page_alloc_dma.c drmkms_ttm file external/bsd/drm2/ttm/ttm_bus_dma.c drmkms_ttm @