head	1.24;
access;
symbols
	netbsd-11-0-RC3:1.23
	netbsd-11-0-RC2:1.23
	netbsd-11-0-RC1:1.23
	perseant-exfatfs-base-20250801:1.23
	netbsd-11:1.23.0.8
	netbsd-11-base:1.23
	netbsd-10-1-RELEASE:1.20
	perseant-exfatfs-base-20240630:1.23
	perseant-exfatfs:1.23.0.6
	perseant-exfatfs-base:1.23
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.13
	netbsd-10-0-RELEASE:1.20
	netbsd-10-0-RC6:1.20
	netbsd-10-0-RC5:1.20
	netbsd-10-0-RC4:1.20
	netbsd-10-0-RC3:1.20
	netbsd-10-0-RC2:1.20
	thorpej-ifq:1.23.0.4
	thorpej-ifq-base:1.23
	thorpej-altq-separation:1.23.0.2
	thorpej-altq-separation-base:1.23
	netbsd-10-0-RC1:1.20
	netbsd-10:1.20.0.4
	netbsd-10-base:1.20
	bouyer-sunxi-drm:1.20.0.2
	bouyer-sunxi-drm-base:1.20
	netbsd-9-3-RELEASE:1.13
	thorpej-i2c-spi-conf2:1.18.0.6
	thorpej-i2c-spi-conf2-base:1.18
	thorpej-futex2:1.18.0.4
	thorpej-futex2-base:1.18
	thorpej-cfargs2:1.18.0.2
	thorpej-cfargs2-base:1.18
	cjep_sun2x-base1:1.18
	cjep_sun2x:1.17.0.6
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	netbsd-9-2-RELEASE:1.13
	cjep_staticlib_x:1.17.0.4
	cjep_staticlib_x-base:1.17
	thorpej-i2c-spi-conf:1.17.0.2
	thorpej-i2c-spi-conf-base:1.18
	thorpej-cfargs:1.16.0.4
	thorpej-cfargs-base:1.17
	thorpej-futex:1.16.0.2
	thorpej-futex-base:1.16
	netbsd-9-1-RELEASE:1.13
	bouyer-xenpvh-base2:1.15
	phil-wifi-20200421:1.15
	bouyer-xenpvh-base1:1.15
	phil-wifi-20200411:1.15
	bouyer-xenpvh:1.15.0.4
	bouyer-xenpvh-base:1.15
	is-mlppp:1.15.0.2
	is-mlppp-base:1.15
	phil-wifi-20200406:1.15
	netbsd-8-2-RELEASE:1.8
	ad-namecache-base3:1.15
	netbsd-9-0-RELEASE:1.13
	netbsd-9-0-RC2:1.13
	ad-namecache-base2:1.14
	ad-namecache-base1:1.14
	ad-namecache:1.14.0.2
	ad-namecache-base:1.14
	netbsd-9-0-RC1:1.13
	phil-wifi-20191119:1.14
	netbsd-9:1.13.0.4
	netbsd-9-base:1.13
	phil-wifi-20190609:1.13
	netbsd-8-1-RELEASE:1.8
	netbsd-8-1-RC1:1.8
	isaki-audio2:1.13.0.2
	isaki-audio2-base:1.13
	pgoyette-compat-merge-20190127:1.8.16.1
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	netbsd-7-2-RELEASE:1.4.2.2
	pgoyette-compat-0728:1.8
	netbsd-8-0-RELEASE:1.8
	phil-wifi:1.8.0.18
	phil-wifi-base:1.8
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	netbsd-8-0-RC1:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.4.2.1
	pgoyette-compat:1.8.0.16
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.4.2.1
	tls-maxphys-base-20171202:1.8
	matt-nb8-mediatek:1.8.0.14
	matt-nb8-mediatek-base:1.8
	nick-nhusb-base-20170825:1.8
	perseant-stdc-iso10646:1.8.0.12
	perseant-stdc-iso10646-base:1.8
	netbsd-8:1.8.0.10
	netbsd-8-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.8
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	jdolecek-ncq:1.8.0.6
	jdolecek-ncq-base:1.8
	pgoyette-localcount-20170320:1.8
	netbsd-7-1:1.4.2.1.0.6
	netbsd-7-1-RELEASE:1.4.2.1
	netbsd-7-1-RC2:1.4.2.1
	nick-nhusb-base-20170204:1.8
	netbsd-7-nhusb-base-20170116:1.4.2.1
	bouyer-socketcan:1.8.0.4
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	netbsd-7-1-RC1:1.4.2.1
	nick-nhusb-base-20161204:1.8
	pgoyette-localcount-20161104:1.8
	netbsd-7-0-2-RELEASE:1.4.2.1
	nick-nhusb-base-20161004:1.8
	localcount-20160914:1.8
	netbsd-7-nhusb:1.4.2.1.0.4
	netbsd-7-nhusb-base:1.4.2.1
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.2
	pgoyette-localcount-base:1.8
	nick-nhusb-base-20160907:1.8
	nick-nhusb-base-20160529:1.8
	netbsd-7-0-1-RELEASE:1.4.2.1
	nick-nhusb-base-20160422:1.8
	nick-nhusb-base-20160319:1.8
	nick-nhusb-base-20151226:1.8
	netbsd-7-0:1.4.2.1.0.2
	netbsd-7-0-RELEASE:1.4.2.1
	nick-nhusb-base-20150921:1.8
	netbsd-7-0-RC3:1.4.2.1
	netbsd-7-0-RC2:1.4.2.1
	netbsd-7-0-RC1:1.4.2.1
	nick-nhusb-base-20150606:1.7
	nick-nhusb-base-20150406:1.7
	nick-nhusb:1.7.0.2
	nick-nhusb-base:1.7
	tls-maxphys-base:1.4
	tls-maxphys:1.4.0.4
	netbsd-7:1.4.0.2
	netbsd-7-base:1.4
	yamt-pagecache:1.2.0.6
	rmind-smpnet-base:1.2
	rmind-smpnet:1.2.0.4
	rmind-smpnet-nbase:1.2
	yamt-pagecache-base9:1.2
	tls-earlyentropy:1.2.0.2
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.1
	riastradh-drm2:1.1.0.2;
locks; strict;
comment	@# @;


1.24
date	2025.09.19.05.18.22;	author mrg;	state Exp;
branches;
next	1.23;
commitid	ZLGoifTzxLEsBhbG;

1.23
date	2023.09.04.21.45.35;	author mrg;	state Exp;
branches;
next	1.22;
commitid	WrbZ6RjIk4ot4vDE;

1.22
date	2023.06.03.21.31.47;	author lukem;	state Exp;
branches;
next	1.21;
commitid	r3TGTar07z3GZxrE;

1.21
date	2023.06.03.09.09.14;	author lukem;	state Exp;
branches;
next	1.20;
commitid	aBaIRnuykonRStrE;

1.20
date	2022.07.17.14.11.40;	author riastradh;	state Exp;
branches;
next	1.19;
commitid	ZtojdFeOuzZpSfMD;

1.19
date	2021.12.19.01.03.42;	author riastradh;	state Exp;
branches;
next	1.18;
commitid	wz10DVIdAKyBgclD;

1.18
date	2021.06.03.15.59.04;	author nia;	state Exp;
branches;
next	1.17;
commitid	vfG2miiiRQOkCHVC;

1.17
date	2021.04.13.04.59.00;	author mrg;	state Exp;
branches
	1.17.2.1
	1.17.6.1;
next	1.16;
commitid	GPm3Uyz2p2ylB5PC;

1.16
date	2020.10.18.19.56.41;	author christos;	state Exp;
branches
	1.16.4.1;
next	1.15;
commitid	GCwWkaUGU2G7gqsC;

1.15
date	2020.02.14.09.35.52;	author riastradh;	state Exp;
branches;
next	1.14;
commitid	FV7002B5vqXwLCWB;

1.14
date	2019.09.29.23.45.00;	author mrg;	state Exp;
branches
	1.14.2.1;
next	1.13;
commitid	xrLFk44PaFrGTXEB;

1.13
date	2019.02.17.04.05.50;	author rin;	state Exp;
branches;
next	1.12;
commitid	viEUadQYccaOx4cB;

1.12
date	2019.02.04.08.18.08;	author mrg;	state Exp;
branches;
next	1.11;
commitid	gOxJFKQqv4KMnqaB;

1.11
date	2018.08.28.03.48.38;	author riastradh;	state Exp;
branches;
next	1.10;
commitid	Yqa9vRxLXYrB2QPA;

1.10
date	2018.08.28.03.41.40;	author riastradh;	state Exp;
branches;
next	1.9;
commitid	UCntbWD2hrp00QPA;

1.9
date	2018.08.27.13.54.25;	author riastradh;	state Exp;
branches;
next	1.8;
commitid	MSwsGO5JKfMpqLPA;

1.8
date	2015.08.21.09.10.48;	author christos;	state Exp;
branches
	1.8.16.1
	1.8.18.1;
next	1.7;
commitid	hl06NWrThq35h7yy;

1.7
date	2014.11.13.16.37.39;	author joerg;	state Exp;
branches
	1.7.2.1;
next	1.6;
commitid	j2VFi8j1cRIyM2Yx;

1.6
date	2014.11.12.02.15.16;	author christos;	state Exp;
branches;
next	1.5;
commitid	8XmOLG5qcPHA2QXx;

1.5
date	2014.11.11.11.30.21;	author nonaka;	state Exp;
branches;
next	1.4;
commitid	oYKu7moIjLWm8LXx;

1.4
date	2014.07.24.21.18.40;	author riastradh;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;
commitid	84XYrsruz3TLUFJx;

1.3
date	2014.07.16.20.56.26;	author riastradh;	state Exp;
branches;
next	1.2;
commitid	HSaGIfvEpvYt4EIx;

1.2
date	2014.03.18.18.20.43;	author riastradh;	state Exp;
branches
	1.2.2.1
	1.2.4.1
	1.2.6.1;
next	1.1;
commitid	YersUbOm2SKa4dtx;

1.1
date	2014.03.04.20.45.17;	author riastradh;	state dead;
branches
	1.1.2.1;
next	;
commitid	JIh80eY5xBsJjqrx;

1.17.2.1
date	2021.06.17.04.46.34;	author thorpej;	state Exp;
branches;
next	;
commitid	d7CrUzY34skBrrXC;

1.17.6.1
date	2021.06.06.20.30.53;	author cjep;	state Exp;
branches;
next	;
commitid	XNEGuB48YPLw17WC;

1.16.4.1
date	2021.04.17.17.26.21;	author thorpej;	state Exp;
branches;
next	;
commitid	bct79XL9ibnNBFPC;

1.14.2.1
date	2020.02.29.20.21.05;	author ad;	state Exp;
branches;
next	;
commitid	OjSb8ro7YQETQBYB;

1.8.16.1
date	2018.09.06.06.56.43;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.8.18.1
date	2019.06.10.22.09.27;	author christos;	state Exp;
branches;
next	1.8.18.2;
commitid	jtc8rnCzWiEEHGqB;

1.8.18.2
date	2020.04.08.14.08.56;	author martin;	state Exp;
branches;
next	1.8.18.3;
commitid	Qli2aW9E74UFuA3C;

1.8.18.3
date	2020.04.13.08.05.11;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.7.2.1
date	2015.09.22.12.06.09;	author skrll;	state Exp;
branches;
next	;
commitid	CpNWKp3ozVNTafCy;

1.4.2.1
date	2015.01.11.05.59.18;	author snj;	state Exp;
branches
	1.4.2.1.4.1;
next	1.4.2.2;
commitid	tIqDrPTMaOaMlz5y;

1.4.2.2
date	2017.04.05.19.54.22;	author snj;	state Exp;
branches;
next	;
commitid	WGkDlkAJ2Mi4MnMz;

1.4.2.1.4.1
date	2016.09.10.06.46.09;	author skrll;	state Exp;
branches;
next	;
commitid	Y4H5ydDxRxto4Ilz;

1.4.4.1
date	2014.07.24.21.18.40;	author tls;	state dead;
branches;
next	1.4.4.2;
commitid	jTnpym9Qu0o4R1Nx;

1.4.4.2
date	2014.08.20.00.04.33;	author tls;	state Exp;
branches;
next	1.4.4.3;
commitid	jTnpym9Qu0o4R1Nx;

1.4.4.3
date	2017.12.03.11.38.54;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.2.2.1
date	2014.08.10.06.56.10;	author tls;	state Exp;
branches;
next	;
commitid	i4aS5ndhchyrCMLx;

1.2.4.1
date	2014.03.18.18.20.43;	author rmind;	state dead;
branches;
next	1.2.4.2;
commitid	mL5ZYSzpqK6QS2Bx;

1.2.4.2
date	2014.05.18.17.46.11;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.2.6.1
date	2014.03.18.18.20.43;	author yamt;	state dead;
branches;
next	1.2.6.2;
commitid	VUUXuyNWnt3AKwBx;

1.2.6.2
date	2014.05.22.11.41.07;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.1.2.1
date	2014.03.04.20.45.17;	author riastradh;	state Exp;
branches;
next	;
commitid	JIh80eY5xBsJjqrx;


desc
@@


1.24
log
@avoid various seemingly bogus warnings with GCC 14.

i couldn't see any real case for any of these issues.  it seems like
the "maybe uninit" checker has gotten worse.

additionally, the "dangling pointer" checker also failing.
@
text
@# $NetBSD: Makefile,v 1.23 2023/09/04 21:45:35 mrg Exp $

.include "../Makefile.inc"
.include "../drmkms/Makefile.inc"

KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf
MKLDSCRIPT=yes

.PATH:	${S}/external/bsd/drm2/i915drm

.PATH:	${S}/external/bsd/drm2/dist/drm/i915
.PATH:	${S}/external/bsd/drm2/dist/drm/i915/display
.PATH:	${S}/external/bsd/drm2/dist/drm/i915/gem
.PATH:	${S}/external/bsd/drm2/dist/drm/i915/gt
.PATH:	${S}/external/bsd/drm2/dist/drm/i915/gt/uc

CPPFLAGS+=	-I${S}/sys/modules/drmkms

CPPFLAGS+=	-I${S}/external/bsd/drm2/i915drm

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915

# Substitute for _KERNEL_OPT flags.
CPPFLAGS+=	-DNACPICA=1
CPPFLAGS+=	-DNVGA=1

CPPFLAGS+=	-DCONFIG_DRM_FBDEV_EMULATION=1
CPPFLAGS+=	-DCONFIG_DRM_I915_DEBUG=1 # XXX
CPPFLAGS+=	-DCONFIG_DRM_I915_DEBUG_GEM=1 # XXX
CPPFLAGS+=	-DCONFIG_DRM_I915_DEBUG_RUNTIME_PM=0
CPPFLAGS+=	-DCONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CPPFLAGS+=	-DCONFIG_DRM_I915_TIMESLICE_DURATION=1
CPPFLAGS+=	-DCONFIG_DRM_I915_ALPHA_SUPPORT=0
CPPFLAGS+=	-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=	-DCONFIG_DRM_I915_GVT=0
CPPFLAGS+=	-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0
CPPFLAGS+=	-DCONFIG_DRM_I915_DEBUG_MMIO=1 # XXX
CPPFLAGS+=	-DCONFIG_DRM_I915_FORCE_PROBE=0
CPPFLAGS+=	-DCONFIG_DRM_I915_SPIN_REQUEST=0
CPPFLAGS+=	-DCONFIG_DRM_I915_SW_FENCE_CHECK_DAG=1 # XXX expensive debug option?
CPPFLAGS+=	-DCONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500 # milliseconds
CPPFLAGS+=	-DCONFIG_DRM_I915_STOP_TIMEOUT=100 # milliseconds
CPPFLAGS+=	-DCONFIG_DRM_I915_PREEMPT_TIMEOUT=640 # milliseconds
CPPFLAGS+=	-DCONFIG_DRM_I915_CAPTURE_ERROR=0
CPPFLAGS+=	-DCONFIG_DRM_I915_SELFTEST=0
CPPFLAGS+=	-DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=0
CPPFLAGS+=	-DCONFIG_PM=1
CPPFLAGS+=	-DCONFIG_INTEL_MEI_HDCP=0

# This code comes from the Linux kernel, which assumes signed
# overflow is OK.
COPTS+=		-fwrapv

CWARNFLAGS+=	-Wno-missing-field-initializers
CWARNFLAGS+=	-Wno-pointer-arith
CWARNFLAGS+=	-Wno-shadow

COPTS.i915_irq.c+=	${CC_WNO_MAYBE_UNINITIALIZED}
COPTS.i915_pci.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_pci.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
COPTS.i915_sw_fence.c+=	${${ACTIVE_CC} == "clang":? -Wno-unused-function :}
COPTS.intel_ddi.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
COPTS.intel_ddi.c+=	${CC_WNO_MAYBE_UNINITIALIZED}
COPTS.intel_display.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
COPTS.intel_display_power.c+=	${${ACTIVE_CC} == "gcc":? -Wno-array-bounds :}
COPTS.intel_dp.c+=	${CC_WNO_STRINGOP_OVERREAD}
COPTS.intel_guc_submission.c+=	${${ACTIVE_CC} == "clang":? -Wno-unused-function :}
COPTS.intel_hdmi.c+=	${${ACTIVE_CC} == "clang":? -Wno-unused-function :}
COPTS.intel_pm.c+=	${CC_WNO_STRINGOP_OVERREAD} ${CC_WNO_STRINGOP_OVERFLOW}
COPTS.intel_sdvo.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
COPTS.intel_sprite.c+=	${CC_WNO_MAYBE_UNINITIALIZED}
COPTS.dvo_ch7xxx.c+=	${CC_WNO_MAYBE_UNINITIALIZED}

# NetBSD additions.
SRCS+=	i915_module.c
SRCS+=	i915_pci_autoconf.c
SRCS+=	intelfb.c

# Local overrides.
SRCS+=	i915_gem_userptr.c
SRCS+=	i915_gemfs.c
SRCS+=	i915_switcheroo.c
SRCS+=	i915_sysfs.c
SRCS+=	i915_trace_points.c
SRCS+=	icl_dsi.c
SRCS+=	intel_dsi_dcs_backlight.c
SRCS+=	intel_gtt_subr.c
SRCS+=	intel_guc_log.c
SRCS+=	intel_lpe_audio.c
SRCS+=	intel_region_lmem.c
SRCS+=	vlv_dsi.c

# Upstream sources.
#
# sed -E -e 's,^(#?)file	.*/([^ 	]*).*,\1SRCS+=	\2,g'
SRCS+=	dvo_ch7017.c
SRCS+=	dvo_ch7xxx.c
SRCS+=	dvo_ivch.c
SRCS+=	dvo_ns2501.c
SRCS+=	dvo_sil164.c
SRCS+=	dvo_tfp410.c
#SRCS+=	icl_dsi.c
SRCS+=	intel_acpi.c
SRCS+=	intel_atomic.c
SRCS+=	intel_atomic_plane.c
SRCS+=	intel_audio.c
SRCS+=	intel_bios.c
SRCS+=	intel_bw.c
SRCS+=	intel_cdclk.c
SRCS+=	intel_color.c
SRCS+=	intel_combo_phy.c
SRCS+=	intel_connector.c
SRCS+=	intel_crt.c
SRCS+=	intel_ddi.c
SRCS+=	intel_display.c
SRCS+=	intel_display_power.c
SRCS+=	intel_dp.c
SRCS+=	intel_dp_aux_backlight.c
SRCS+=	intel_dp_link_training.c
SRCS+=	intel_dp_mst.c
SRCS+=	intel_dpio_phy.c
SRCS+=	intel_dpll_mgr.c
SRCS+=	intel_dsb.c
#SRCS+=	intel_dsi.c
#SRCS+=	intel_dsi_dcs_backlight.c
#SRCS+=	intel_dsi_vbt.c
SRCS+=	intel_dvo.c
SRCS+=	intel_fbc.c
SRCS+=	intel_fbdev.c
SRCS+=	intel_fifo_underrun.c
SRCS+=	intel_frontbuffer.c
SRCS+=	intel_gmbus.c
SRCS+=	intel_hdcp.c
SRCS+=	intel_hdmi.c
SRCS+=	intel_hotplug.c
#SRCS+=	intel_lpe_audio.c
SRCS+=	intel_lspcon.c
SRCS+=	intel_lvds.c
SRCS+=	intel_opregion.c
SRCS+=	intel_overlay.c
SRCS+=	intel_panel.c
SRCS+=	intel_psr.c
SRCS+=	intel_quirks.c
SRCS+=	intel_sdvo.c
SRCS+=	intel_sprite.c
SRCS+=	intel_tc.c
SRCS+=	intel_tv.c
SRCS+=	intel_vdsc.c
SRCS+=	intel_vga.c
#SRCS+=	vlv_dsi.c
#SRCS+=	vlv_dsi_pll.c
SRCS+=	i915_gem_busy.c
SRCS+=	i915_gem_clflush.c
#SRCS+=	i915_gem_client_blt.c
SRCS+=	i915_gem_context.c
SRCS+=	i915_gem_dmabuf.c
SRCS+=	i915_gem_domain.c
SRCS+=	i915_gem_execbuffer.c
SRCS+=	i915_gem_fence.c
SRCS+=	i915_gem_internal.c
SRCS+=	i915_gem_lmem.c
SRCS+=	i915_gem_mman.c
SRCS+=	i915_gem_object.c
SRCS+=	i915_gem_object_blt.c
SRCS+=	i915_gem_pages.c
SRCS+=	i915_gem_phys.c
SRCS+=	i915_gem_pm.c
SRCS+=	i915_gem_region.c
SRCS+=	i915_gem_shmem.c
SRCS+=	i915_gem_shrinker.c
SRCS+=	i915_gem_stolen.c
SRCS+=	i915_gem_throttle.c
SRCS+=	i915_gem_tiling.c
#SRCS+=	i915_gem_userptr.c
SRCS+=	i915_gem_wait.c
#SRCS+=	i915_gemfs.c
#SRCS+=	debugfs_engines.c
#SRCS+=	debugfs_gt.c
#SRCS+=	debugfs_gt_pm.c
SRCS+=	gen6_ppgtt.c
SRCS+=	gen6_renderstate.c
SRCS+=	gen7_renderstate.c
SRCS+=	gen8_ppgtt.c
SRCS+=	gen8_renderstate.c
SRCS+=	gen9_renderstate.c
SRCS+=	intel_breadcrumbs.c
SRCS+=	intel_context.c
SRCS+=	intel_engine_cs.c
SRCS+=	intel_engine_heartbeat.c
SRCS+=	intel_engine_pm.c
SRCS+=	intel_engine_pool.c
SRCS+=	intel_engine_user.c
SRCS+=	intel_ggtt.c
SRCS+=	intel_gt.c
SRCS+=	intel_gt_irq.c
SRCS+=	intel_gt_pm.c
SRCS+=	intel_gt_pm_irq.c
SRCS+=	intel_gt_requests.c
SRCS+=	intel_gtt.c
SRCS+=	intel_llc.c
SRCS+=	intel_lrc.c
SRCS+=	intel_mocs.c
SRCS+=	intel_ppgtt.c
SRCS+=	intel_rc6.c
SRCS+=	intel_renderstate.c
SRCS+=	intel_reset.c
SRCS+=	intel_ring.c
SRCS+=	intel_ring_submission.c
SRCS+=	intel_rps.c
SRCS+=	intel_sseu.c
SRCS+=	intel_timeline.c
SRCS+=	intel_workarounds.c
SRCS+=	intel_guc.c
SRCS+=	intel_guc_ads.c
SRCS+=	intel_guc_ct.c
SRCS+=	intel_guc_fw.c
#SRCS+=	intel_guc_log.c
SRCS+=	intel_guc_submission.c
SRCS+=	intel_huc.c
SRCS+=	intel_huc_fw.c
SRCS+=	intel_uc.c
SRCS+=	intel_uc_fw.c
SRCS+=	i915_active.c
SRCS+=	i915_buddy.c
SRCS+=	i915_cmd_parser.c
SRCS+=	i915_drv.c
SRCS+=	i915_gem.c
SRCS+=	i915_gem_evict.c
SRCS+=	i915_gem_fence_reg.c
SRCS+=	i915_gem_gtt.c
SRCS+=	i915_getparam.c
SRCS+=	i915_globals.c
SRCS+=	i915_irq.c
SRCS+=	i915_memcpy.c
#SRCS+=	i915_mm.c
SRCS+=	i915_params.c
SRCS+=	i915_pci.c
SRCS+=	i915_perf.c
SRCS+=	i915_query.c
SRCS+=	i915_request.c
SRCS+=	i915_scatterlist.c
SRCS+=	i915_scheduler.c
SRCS+=	i915_suspend.c
SRCS+=	i915_sw_fence.c
SRCS+=	i915_sw_fence_work.c
#SRCS+=	i915_switcheroo.c
SRCS+=	i915_syncmap.c
#SRCS+=	i915_sysfs.c
#SRCS+=	i915_trace_points.c
SRCS+=	i915_user_extensions.c
SRCS+=	i915_utils.c
SRCS+=	i915_vgpu.c
SRCS+=	i915_vma.c
SRCS+=	intel_csr.c
SRCS+=	intel_device_info.c
SRCS+=	intel_memory_region.c
SRCS+=	intel_pch.c
SRCS+=	intel_pm.c
#SRCS+=	intel_region_lmem.c
SRCS+=	intel_runtime_pm.c
SRCS+=	intel_sideband.c
SRCS+=	intel_uncore.c
SRCS+=	intel_wakeref.c
SRCS+=	intel_wopcm.c
#SRCS+=	i915_oa_bdw.c
#SRCS+=	i915_oa_bxt.c
#SRCS+=	i915_oa_cflgt2.c
#SRCS+=	i915_oa_cflgt3.c
#SRCS+=	i915_oa_chv.c
#SRCS+=	i915_oa_cnl.c
#SRCS+=	i915_oa_glk.c
#SRCS+=	i915_oa_hsw.c
#SRCS+=	i915_oa_icl.c
#SRCS+=	i915_oa_kblgt2.c
#SRCS+=	i915_oa_kblgt3.c
#SRCS+=	i915_oa_sklgt2.c
#SRCS+=	i915_oa_sklgt3.c
#SRCS+=	i915_oa_sklgt4.c
#SRCS+=	i915_oa_tgl.c

WARNS=	3

.include <bsd.kmodule.mk>
@


1.23
log
@apply some warning disables for GCC 12.

*possibly* the one for intel_dp.c is a real bug but it seems very
difficult to be sure (i can't seem to convince myself either way.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2023/06/03 21:31:47 lukem Exp $
d73 1
@


1.22
log
@adapt to ${CC_WNO_MAYBE_UNINITIALIZED}

Use ${CC_WNO_MAYBE_UNINITIALIZED} instead of
the older style more complex expressions.

Remove workarounds if they were for a specific
version of gcc < 10.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2023/06/03 09:09:14 lukem Exp $
d59 1
d63 1
a63 1
COPTS.intel_sprite.c+=	${CC_WNO_MAYBE_UNINITIALIZED}
a64 1
COPTS.intel_ddi.c+=	${CC_WNO_IMPLICIT_FALLTHROUGH}
d66 2
d70 1
d72 1
@


1.21
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2022/07/17 14:11:40 riastradh Exp $
d62 1
a62 1
COPTS.intel_sprite.c+=	${${ACTIVE_CC} == "gcc":? -Wno-maybe-uninitialized :}
@


1.20
log
@drm: Dust off module build a little.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2021/12/19 01:03:42 riastradh Exp $
d63 3
a65 3
COPTS.intel_ddi.c+=	${GCC_NO_MAYBE_UNINITIALIZED}
COPTS.intel_ddi.c+=	${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_display.c+=	${GCC_NO_IMPLICIT_FALLTHRU}
d68 1
a68 1
COPTS.intel_sdvo.c+=	${GCC_NO_IMPLICIT_FALLTHRU}
@


1.19
log
@Suppress some harmless clang warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2021/06/03 15:59:04 nia Exp $
d13 4
a23 3
CPPFLAGS+=	-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=	-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0

d28 22
a49 4
CWARNFLAGS+=	-Wno-shadow
CWARNFLAGS+=	-Wno-pointer-arith
CWARNFLAGS.clang+=	-Wno-error=enum-conversion
CWARNFLAGS.clang+=	-Wno-error=unused-function
d51 2
a52 1
# Code imported from Linux - expects signed overflow to be OK.
d55 14
a68 2
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
d72 2
a73 2
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c
d75 13
a87 2
# wsconsole framebuffer.
SRCS+=	intelfb.c
d90 2
d98 1
a98 25
SRCS+=	i915_cmd_parser.c
SRCS+=	i915_dma.c
SRCS+=	i915_drv.c
SRCS+=	i915_gem.c
SRCS+=	i915_gem_batch_pool.c
SRCS+=	i915_gem_context.c
SRCS+=	i915_gem_debug.c
#SRCS+=	i915_gem_dmabuf.c	# XXX drm prime
SRCS+=	i915_gem_evict.c
SRCS+=	i915_gem_execbuffer.c
SRCS+=	i915_gem_fence.c
SRCS+=	i915_gem_gtt.c
SRCS+=	i915_gem_render_state.c
SRCS+=	i915_gem_shrinker.c
SRCS+=	i915_gem_stolen.c
SRCS+=	i915_gem_tiling.c
SRCS+=	i915_gem_userptr.c
SRCS+=	i915_gpu_error.c
SRCS+=	i915_guc_submission.c
SRCS+=	i915_irq.c
SRCS+=	i915_params.c
SRCS+=	i915_suspend.c
SRCS+=	i915_sysfs.c
SRCS+=	i915_trace_points.c
SRCS+=	i915_vgpu.c
d104 5
d112 1
d114 2
d117 6
a122 3
SRCS+=	intel_dsi.c
#SRCS+=	intel_dsi_panel_vbt.c
#SRCS+=	intel_dsi_pll.c
d128 2
a129 1
SRCS+=	intel_guc_loader.c
d132 2
a133 2
SRCS+=	intel_i2c.c
SRCS+=	intel_lrc.c
a134 2
SRCS+=	intel_mocs.c
SRCS+=	intel_modes.c
a137 1
SRCS+=	intel_pm.c
d139 1
a139 6
SRCS+=	intel_renderstate_gen6.c
SRCS+=	intel_renderstate_gen7.c
SRCS+=	intel_renderstate_gen8.c
SRCS+=	intel_renderstate_gen9.c
SRCS+=	intel_ringbuffer.c
SRCS+=	intel_runtime_pm.c
a140 1
SRCS+=	intel_sideband.c
d142 1
d144 114
d259 17
a278 6
COPTS.intel_display.c+=		${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_ddi.c+=		${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_sdvo.c+=		${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_ddi.c+=		${GCC_NO_MAYBE_UNINITIALIZED}
COPTS.i915_guc_submission.c+=	${NO_ADDR_OF_PACKED_MEMBER}

@


1.18
log
@build the drmkms modules with -fwrapv too
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2021/04/13 04:59:00 mrg Exp $
d29 2
@


1.17
log
@apply some -Wno- to ignore several new warnings with GCC 10.


ntp: ignore truncation beyond api sizes, and ignore wrongly
guessed underflow

tmux: ignore maybe uninitialised warning for impossible case

libbfd: signed/unsigned variables assigned in the same statement

dri/gallium: -Wno-builtin-declaration-mismatch for u_atomic.c as
it implements backend functions with different in-C-machine but
same-in-real-machine types

libXfont/libXfont2: signed/unsigned variables assigned in the same
statement

i915drm: ignore impossible maybe uninitialised warnings

sysinst: ignore an invalid string truncation issue
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2020/10/18 19:56:41 christos Exp $
d30 3
@


1.17.2.1
log
@Sync w/ HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2021/06/03 15:59:04 nia Exp $
a29 3
# Code imported from Linux - expects signed overflow to be OK.
COPTS+=		-fwrapv

@


1.17.6.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2021/06/03 15:59:04 nia Exp $
a29 3
# Code imported from Linux - expects signed overflow to be OK.
COPTS+=		-fwrapv

@


1.16
log
@Provide a global no-packed-address for both gcc and clang
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2020/02/14 09:35:52 riastradh Exp $
d118 5
a122 6
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
COPTS.intel_display.c+=	-Wno-error=implicit-fallthrough
COPTS.intel_ddi.c+=	-Wno-error=implicit-fallthrough
COPTS.intel_sdvo.c+=	-Wno-error=implicit-fallthrough
.endif
COPTS.i915_guc_submission.c += ${NO_ADDR_OF_PACKED_MEMBER}
@


1.16.4.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2021/04/13 04:59:00 mrg Exp $
d118 6
a123 5
COPTS.intel_display.c+=		${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_ddi.c+=		${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_sdvo.c+=		${GCC_NO_IMPLICIT_FALLTHRU}
COPTS.intel_ddi.c+=		${GCC_NO_MAYBE_UNINITIALIZED}
COPTS.i915_guc_submission.c+=	${NO_ADDR_OF_PACKED_MEMBER}
@


1.15
log
@Carry new CWARNFLAGS over to module reachover makefiles.

Forgot these modules existed!
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2019/09/29 23:45:00 mrg Exp $
d123 1
@


1.14
log
@convert HAVE_GCC == 7 to HAVE_GCC >= 7.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2019/02/17 04:05:50 rin Exp $
d28 1
@


1.14.2.1
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2020/02/14 09:35:52 riastradh Exp $
a27 1
CWARNFLAGS+=	-Wno-pointer-arith
@


1.13
log
@Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2019/02/04 08:18:08 mrg Exp $
d117 1
a117 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
@


1.12
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: Makefile,v 1.11 2018/08/28 03:48:38 riastradh Exp $
d115 2
@


1.11
log
@Remove some superfluous vestigial `-I.'.
@
text
@d1 1
a1 1
# $NetBSD$
d115 6
@


1.10
log
@Rework PCI and AGP conditionalization.

- Push drm_pci_set_unique into driver callback.
- Eliminate drm_pci_set_unique_hook.
- Gather all drm_agp_* functions into struct drm_agp_hooks.
- Replace the nonsensical old atomic garbage by serious locking.
- Make drm_agpsupport.c its own module.
- Eliminate NDRMKMS_PCI.
- Use NAGP from "agp.h" only in drm_module.c for horrible hack.
  => See comment in file for rationale.
- Always define CONFIG_PCI=1 and CONFIG_AGP=1.
- Always go through the drm_agp_* function hooks.
- Ifdef out nouveau agp stuff that doesn't go through drm_agp_*
  for reasons that I'm too frustrated to figure out tonight.
- pci_iomap no longer automagically does agp_i810_borrow.
  => Use drm_agp_borrow instead.
@
text
@a13 1
CPPFLAGS+=	-I.
@


1.9
log
@Make i915drmkms.kmod build again.
@
text
@d14 3
@


1.8
log
@consistency with: src/sys/external/bsd/drm2/i915drm/files.i915drmkms
so that we can build again
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2014/11/13 16:37:39 joerg Exp $
d6 3
a8 2
CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915
CPPFLAGS+=	-I${S}/external/bsd/drm2/i915drm
d11 1
d14 23
a36 3
KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf
MKLDSCRIPT=yes
d38 1
a45 1
#SRCS+=	i915_debugfs.c		# XXX No debugfs in NetBSD.
d49 1
d52 1
a52 1
#SRCS+=	i915_gem_dmabuf.c
d55 1
d57 2
d61 1
d63 1
a63 1
#SRCS+=	i915_ioc32.c
d67 3
a69 2
SRCS+=	i915_sysfs.c		# XXX No sysfs in NetBSD.
SRCS+=	i915_ums.c
d71 3
d79 1
d81 2
a82 2
SRCS+=	intel_dsi_cmd.c
SRCS+=	intel_dsi_pll.c
d84 1
d86 3
d90 1
d92 1
d94 1
d100 5
d106 1
a112 18
SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c
SRCS+=	intelfb.c

COPTS.i915_drv.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}

COPTS.intel_display.c+=	-Wno-shadow -Wno-conversion
COPTS.intel_panel.c+=	-Wno-shadow
COPTS.intel_pm.c+=	-Wno-shadow

CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=		-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0

CPPFLAGS+=		-DNACPICA=1
CPPFLAGS+=		-DNVGA=1

@


1.8.18.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2019/02/17 04:05:50 rin Exp $
d6 2
a7 3
KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf
MKLDSCRIPT=yes
a9 1

d12 3
a14 17
CPPFLAGS+=	-I${S}/sys/modules/drmkms

CPPFLAGS+=	-I${S}/external/bsd/drm2/i915drm

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915

CPPFLAGS+=	-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=	-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0

# Substitute for _KERNEL_OPT flags.
CPPFLAGS+=	-DNACPICA=1
CPPFLAGS+=	-DNVGA=1

CWARNFLAGS+=	-Wno-shadow

COPTS.i915_drv.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
a15 9
# NetBSD additions.
SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c

# wsconsole framebuffer.
SRCS+=	intelfb.c

# Upstream sources.
d23 1
a26 1
SRCS+=	i915_gem_batch_pool.c
d29 1
a29 1
#SRCS+=	i915_gem_dmabuf.c	# XXX drm prime
a31 1
SRCS+=	i915_gem_fence.c
a32 2
SRCS+=	i915_gem_render_state.c
SRCS+=	i915_gem_shrinker.c
a34 1
SRCS+=	i915_gem_userptr.c
d36 1
a36 1
SRCS+=	i915_guc_submission.c
d40 2
a41 3
SRCS+=	i915_sysfs.c
SRCS+=	i915_trace_points.c
SRCS+=	i915_vgpu.c
a42 3
SRCS+=	intel_atomic.c
SRCS+=	intel_atomic_plane.c
SRCS+=	intel_audio.c
a47 1
SRCS+=	intel_dp_mst.c
d49 2
a50 2
#SRCS+=	intel_dsi_panel_vbt.c
#SRCS+=	intel_dsi_pll.c
a51 1
SRCS+=	intel_fbc.c
a52 3
SRCS+=	intel_fifo_underrun.c
SRCS+=	intel_frontbuffer.c
SRCS+=	intel_guc_loader.c
a53 1
SRCS+=	intel_hotplug.c
a54 1
SRCS+=	intel_lrc.c
a55 1
SRCS+=	intel_mocs.c
a60 5
SRCS+=	intel_psr.c
SRCS+=	intel_renderstate_gen6.c
SRCS+=	intel_renderstate_gen7.c
SRCS+=	intel_renderstate_gen8.c
SRCS+=	intel_renderstate_gen9.c
a61 1
SRCS+=	intel_runtime_pm.c
d68 14
a81 1
WARNS=	3
d83 2
a84 5
.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
COPTS.intel_display.c+=	-Wno-error=implicit-fallthrough
COPTS.intel_ddi.c+=	-Wno-error=implicit-fallthrough
COPTS.intel_sdvo.c+=	-Wno-error=implicit-fallthrough
.endif
@


1.8.18.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
# $NetBSD$
a27 1
CWARNFLAGS+=	-Wno-pointer-arith
@


1.8.18.3
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d118 1
a118 1
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
@


1.8.16.1
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2018/08/28 03:48:38 riastradh Exp $
d6 2
a7 3
KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf
MKLDSCRIPT=yes
a9 1

d12 3
a14 22
CPPFLAGS+=	-I${S}/sys/modules/drmkms

CPPFLAGS+=	-I${S}/external/bsd/drm2/i915drm

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915

CPPFLAGS+=	-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=	-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0

# Substitute for _KERNEL_OPT flags.
CPPFLAGS+=	-DNACPICA=1
CPPFLAGS+=	-DNVGA=1

CWARNFLAGS+=	-Wno-shadow

COPTS.i915_drv.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}

# NetBSD additions.
SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c
a15 4
# wsconsole framebuffer.
SRCS+=	intelfb.c

# Upstream sources.
d23 1
a26 1
SRCS+=	i915_gem_batch_pool.c
d29 1
a29 1
#SRCS+=	i915_gem_dmabuf.c	# XXX drm prime
a31 1
SRCS+=	i915_gem_fence.c
a32 2
SRCS+=	i915_gem_render_state.c
SRCS+=	i915_gem_shrinker.c
a34 1
SRCS+=	i915_gem_userptr.c
d36 1
a36 1
SRCS+=	i915_guc_submission.c
d40 2
a41 3
SRCS+=	i915_sysfs.c
SRCS+=	i915_trace_points.c
SRCS+=	i915_vgpu.c
a42 3
SRCS+=	intel_atomic.c
SRCS+=	intel_atomic_plane.c
SRCS+=	intel_audio.c
a47 1
SRCS+=	intel_dp_mst.c
d49 2
a50 2
#SRCS+=	intel_dsi_panel_vbt.c
#SRCS+=	intel_dsi_pll.c
a51 1
SRCS+=	intel_fbc.c
a52 3
SRCS+=	intel_fifo_underrun.c
SRCS+=	intel_frontbuffer.c
SRCS+=	intel_guc_loader.c
a53 1
SRCS+=	intel_hotplug.c
a54 1
SRCS+=	intel_lrc.c
a55 1
SRCS+=	intel_mocs.c
a60 5
SRCS+=	intel_psr.c
SRCS+=	intel_renderstate_gen6.c
SRCS+=	intel_renderstate_gen7.c
SRCS+=	intel_renderstate_gen8.c
SRCS+=	intel_renderstate_gen9.c
a61 1
SRCS+=	intel_runtime_pm.c
d68 18
@


1.7
log
@Adjust flags to allow building with clang.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2014/11/12 02:15:16 christos Exp $
d80 2
a81 1
CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV
@


1.7.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2015/08/21 09:10:48 christos Exp $
d80 1
a80 2
CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=		-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0
@


1.6
log
@turn on dynamic ldscript creation to handle link set symbol definitions
used in the automatic sysctl creation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2014/11/11 11:30:21 nonaka Exp $
d73 4
a76 2
COPTS.i915_drv.c+=	-Wno-override-init
COPTS.intel_display.c+=	-Wno-shadow
@


1.5
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2014/07/24 21:18:40 riastradh Exp $
d14 1
@


1.4
log
@Rework Intel framebuffer attachment.

Turns out genfb_softc must be at the start of its own device_private,
so we can't have it in the middle of a structure, and certainly can't
have potentially multiple genfbs per graphics device.  Failing to do
this is why entering ddb didn't work with an i915drmkms console.

Instead of putting a genfb_softc into each drm_fb_helper, put a
device_t into each drm_fb_helper and create a new intelfb(4) device
for each Intel framebuffer.  This will be more flexible, too, in case
we want accelerated framebuffers later on.  (XXX Need to adapt the
radeon code, which I'm disabling until that happens to avoid breaking
the build.)

While here, defer disabling VGA, vga_cndetach, and genfb_attach until
we're actually ready to do them all together along with the mode
switch.  This should reduce the amount of time during which the
screen is blanked, in case it hangs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2014/07/16 20:56:26 riastradh Exp $
d41 1
a41 1
#SRCS+=	intel_acpi.c		# XXX ACPI
d56 1
a56 1
#SRCS+=	intel_opregion.c	# XXX ACPI
d79 3
@


1.4.2.1
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 <linux/hdmi.h>.
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
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2014/07/24 21:18:40 riastradh Exp $
a13 1
MKLDSCRIPT=yes
d41 1
a41 1
SRCS+=	intel_acpi.c
d56 1
a56 1
SRCS+=	intel_opregion.c
d72 2
a73 4
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}

COPTS.intel_display.c+=	-Wno-shadow -Wno-conversion
a78 3
CPPFLAGS+=		-DNACPICA=1
CPPFLAGS+=		-DNVGA=1

@


1.4.2.2
log
@Pull up following revision(s) (requested by skrll in ticket #1395):
	share/man/man4/axe.4: netbsd-7-nhusb
	share/man/man4/axen.4: netbsd-7-nhusb
	share/man/man4/cdce.4: netbsd-7-nhusb
	share/man/man4/uaudio.4: netbsd-7-nhusb
	share/man/man4/ucom.4: netbsd-7-nhusb
	share/man/man4/uep.4: netbsd-7-nhusb
	share/man/man4/urtw.4: netbsd-7-nhusb
	share/man/man4/usb.4: netbsd-7-nhusb
	share/man/man4/uyap.4: netbsd-7-nhusb
	share/man/man4/xhci.4: netbsd-7-nhusb
	share/man/man9/usbdi.9: netbsd-7-nhusb
	sys/arch/amd64/conf/ALL: netbsd-7-nhusb
	sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
	sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
	sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
	sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
	sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
	sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
	sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
	sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
	sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
	sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
	sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
	sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
	sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
	sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
	sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
	sys/arch/i386/conf/ALL: netbsd-7-nhusb
	sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
	sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
	sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
	sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
	sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
	sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
	sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
	sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
	sys/conf/files: netbsd-7-nhusb
	sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
	sys/dev/ic/sl811hs.c: netbsd-7-nhusb
	sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
	sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
	sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
	sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
	sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
	sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
	sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
	sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
	sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
	sys/dev/usb/TODO: netbsd-7-nhusb
	sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
	sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
	sys/dev/usb/auvitek.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
	sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
	sys/dev/usb/ehci.c: netbsd-7-nhusb
	sys/dev/usb/ehcireg.h: netbsd-7-nhusb
	sys/dev/usb/ehcivar.h: netbsd-7-nhusb
	sys/dev/usb/emdtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
	sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
	sys/dev/usb/ezload.c: netbsd-7-nhusb
	sys/dev/usb/ezload.h: netbsd-7-nhusb
	sys/dev/usb/files.usb: netbsd-7-nhusb
	sys/dev/usb/hid.c: netbsd-7-nhusb
	sys/dev/usb/hid.h: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
	sys/dev/usb/if_atu.c: netbsd-7-nhusb
	sys/dev/usb/if_atureg.h: netbsd-7-nhusb
	sys/dev/usb/if_aue.c: netbsd-7-nhusb
	sys/dev/usb/if_auereg.h: netbsd-7-nhusb
	sys/dev/usb/if_axe.c: netbsd-7-nhusb
	sys/dev/usb/if_axen.c: netbsd-7-nhusb
	sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
	sys/dev/usb/if_axereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cdce.c: netbsd-7-nhusb
	sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cue.c: netbsd-7-nhusb
	sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_kue.c: netbsd-7-nhusb
	sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_otus.c: netbsd-7-nhusb
	sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
	sys/dev/usb/if_rum.c: netbsd-7-nhusb
	sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
	sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
	sys/dev/usb/if_run.c: netbsd-7-nhusb
	sys/dev/usb/if_runvar.h: netbsd-7-nhusb
	sys/dev/usb/if_smsc.c: netbsd-7-nhusb
	sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
	sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
	sys/dev/usb/if_udav.c: netbsd-7-nhusb
	sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
	sys/dev/usb/if_upgt.c: netbsd-7-nhusb
	sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
	sys/dev/usb/if_upl.c: netbsd-7-nhusb
	sys/dev/usb/if_ural.c: netbsd-7-nhusb
	sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
	sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
	sys/dev/usb/if_url.c: netbsd-7-nhusb
	sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urndis.c: netbsd-7-nhusb
	sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtw.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
	sys/dev/usb/if_zyd.c: netbsd-7-nhusb
	sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
	sys/dev/usb/irmce.c: netbsd-7-nhusb
	sys/dev/usb/moscom.c: netbsd-7-nhusb
	sys/dev/usb/motg.c: netbsd-7-nhusb
	sys/dev/usb/motgvar.h: netbsd-7-nhusb
	sys/dev/usb/ohci.c: netbsd-7-nhusb
	sys/dev/usb/ohcireg.h: netbsd-7-nhusb
	sys/dev/usb/ohcivar.h: netbsd-7-nhusb
	sys/dev/usb/pseye.c: netbsd-7-nhusb
	sys/dev/usb/slurm.c: netbsd-7-nhusb
	sys/dev/usb/stuirda.c: netbsd-7-nhusb
	sys/dev/usb/u3g.c: netbsd-7-nhusb
	sys/dev/usb/uark.c: netbsd-7-nhusb
	sys/dev/usb/uatp.c: netbsd-7-nhusb
	sys/dev/usb/uaudio.c: netbsd-7-nhusb
	sys/dev/usb/uberry.c: netbsd-7-nhusb
	sys/dev/usb/ubsa.c: netbsd-7-nhusb
	sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
	sys/dev/usb/ubsavar.h: netbsd-7-nhusb
	sys/dev/usb/ubt.c: netbsd-7-nhusb
	sys/dev/usb/uchcom.c: netbsd-7-nhusb
	sys/dev/usb/ucom.c: netbsd-7-nhusb
	sys/dev/usb/ucomvar.h: netbsd-7-nhusb
	sys/dev/usb/ucycom.c: netbsd-7-nhusb
	sys/dev/usb/udl.c: netbsd-7-nhusb
	sys/dev/usb/udl.h: netbsd-7-nhusb
	sys/dev/usb/udsbr.c: netbsd-7-nhusb
	sys/dev/usb/udsir.c: netbsd-7-nhusb
	sys/dev/usb/uep.c: netbsd-7-nhusb
	sys/dev/usb/uftdi.c: netbsd-7-nhusb
	sys/dev/usb/uftdireg.h: netbsd-7-nhusb
	sys/dev/usb/ugen.c: netbsd-7-nhusb
	sys/dev/usb/ugensa.c: netbsd-7-nhusb
	sys/dev/usb/uhci.c: netbsd-7-nhusb
	sys/dev/usb/uhcireg.h: netbsd-7-nhusb
	sys/dev/usb/uhcivar.h: netbsd-7-nhusb
	sys/dev/usb/uhid.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.h: netbsd-7-nhusb
	sys/dev/usb/uhmodem.c: netbsd-7-nhusb
	sys/dev/usb/uhso.c: netbsd-7-nhusb
	sys/dev/usb/uhub.c: netbsd-7-nhusb
	sys/dev/usb/uipad.c: netbsd-7-nhusb
	sys/dev/usb/uipaq.c: netbsd-7-nhusb
	sys/dev/usb/uirda.c: netbsd-7-nhusb
	sys/dev/usb/uirdavar.h: netbsd-7-nhusb
	sys/dev/usb/ukbd.c: netbsd-7-nhusb
	sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.h: netbsd-7-nhusb
	sys/dev/usb/ulpt.c: netbsd-7-nhusb
	sys/dev/usb/umass.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
	sys/dev/usb/umassvar.h: netbsd-7-nhusb
	sys/dev/usb/umcs.c: netbsd-7-nhusb
	sys/dev/usb/umct.c: netbsd-7-nhusb
	sys/dev/usb/umidi.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umodem.c: netbsd-7-nhusb
	sys/dev/usb/umodem_common.c: netbsd-7-nhusb
	sys/dev/usb/umodemvar.h: netbsd-7-nhusb
	sys/dev/usb/ums.c: netbsd-7-nhusb
	sys/dev/usb/uplcom.c: netbsd-7-nhusb
	sys/dev/usb/urio.c: netbsd-7-nhusb
	sys/dev/usb/urio.h: netbsd-7-nhusb
	sys/dev/usb/usb.c: netbsd-7-nhusb
	sys/dev/usb/usb.h: netbsd-7-nhusb
	sys/dev/usb/usb_mem.c: netbsd-7-nhusb
	sys/dev/usb/usb_mem.h: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
	sys/dev/usb/usb_subr.c: netbsd-7-nhusb
	sys/dev/usb/usbdevices.config: netbsd-7-nhusb
	sys/dev/usb/usbdevs: netbsd-7-nhusb
	sys/dev/usb/usbdevs.h: netbsd-7-nhusb
	sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
	sys/dev/usb/usbdi.c: netbsd-7-nhusb
	sys/dev/usb/usbdi.h: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
	sys/dev/usb/usbdivar.h: netbsd-7-nhusb
	sys/dev/usb/usbhid.h: netbsd-7-nhusb
	sys/dev/usb/usbhist.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub.c: netbsd-7-nhusb
	sys/dev/usb/usbroothub.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub_subr.c: delete
	sys/dev/usb/usbroothub_subr.h: delete
	sys/dev/usb/uscanner.c: netbsd-7-nhusb
	sys/dev/usb/uslsa.c: netbsd-7-nhusb
	sys/dev/usb/usscanner.c: netbsd-7-nhusb
	sys/dev/usb/ustir.c: netbsd-7-nhusb
	sys/dev/usb/uthum.c: netbsd-7-nhusb
	sys/dev/usb/utoppy.c: netbsd-7-nhusb
	sys/dev/usb/uts.c: netbsd-7-nhusb
	sys/dev/usb/uvideo.c: netbsd-7-nhusb
	sys/dev/usb/uvisor.c: netbsd-7-nhusb
	sys/dev/usb/uvscom.c: netbsd-7-nhusb
	sys/dev/usb/uyap.c: netbsd-7-nhusb
	sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
	sys/dev/usb/uyurex.c: netbsd-7-nhusb
	sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
	sys/dev/usb/xhci.c: netbsd-7-nhusb
	sys/dev/usb/xhcireg.h: netbsd-7-nhusb
	sys/dev/usb/xhcivar.h: netbsd-7-nhusb
	sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
	sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
	sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/include/linux/err.h: delete
	sys/external/bsd/drm2/include/linux/workqueue.h: delete
	sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
	sys/external/bsd/drm2/linux/linux_work.c: delete
	sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
	sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
	sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
	sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
	sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
	sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
	sys/sys/mbuf.h: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
     - kern/48308
     - uhub status notification improvements
     - umass(4) probe fix (applied to HEAD already)
     - ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
  This gives the callback a chance of running when another softint handler
  at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
  the network stack.
     - kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
       softnet_lock held across usb xfr
     - kern/50491 - unkillable wait in usbd_transfer while using usmsc0
       on raspberry pi 2
     - kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4.2.1 2015/01/11 05:59:18 snj Exp $
d80 1
a80 2
CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=		-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0
@


1.4.2.1.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4.2.1 2015/01/11 05:59:18 snj Exp $
d80 1
a80 2
CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=		-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0
@


1.4.4.1
log
@file Makefile was added on branch tls-maxphys on 2014-08-20 00:04:33 +0000
@
text
@d1 79
@


1.4.4.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 79
# $NetBSD$

.include "../Makefile.inc"
.include "../drmkms/Makefile.inc"

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915
CPPFLAGS+=	-I${S}/external/bsd/drm2/i915drm

.PATH:	${S}/external/bsd/drm2/i915drm
.PATH:	${S}/external/bsd/drm2/dist/drm/i915

KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf

SRCS+=	dvo_ch7017.c
SRCS+=	dvo_ch7xxx.c
SRCS+=	dvo_ivch.c
SRCS+=	dvo_ns2501.c
SRCS+=	dvo_sil164.c
SRCS+=	dvo_tfp410.c
SRCS+=	i915_cmd_parser.c
#SRCS+=	i915_debugfs.c		# XXX No debugfs in NetBSD.
SRCS+=	i915_dma.c
SRCS+=	i915_drv.c
SRCS+=	i915_gem.c
SRCS+=	i915_gem_context.c
SRCS+=	i915_gem_debug.c
#SRCS+=	i915_gem_dmabuf.c
SRCS+=	i915_gem_evict.c
SRCS+=	i915_gem_execbuffer.c
SRCS+=	i915_gem_gtt.c
SRCS+=	i915_gem_stolen.c
SRCS+=	i915_gem_tiling.c
SRCS+=	i915_gpu_error.c
#SRCS+=	i915_ioc32.c
SRCS+=	i915_irq.c
SRCS+=	i915_params.c
SRCS+=	i915_suspend.c
SRCS+=	i915_sysfs.c		# XXX No sysfs in NetBSD.
SRCS+=	i915_ums.c
#SRCS+=	intel_acpi.c		# XXX ACPI
SRCS+=	intel_bios.c
SRCS+=	intel_crt.c
SRCS+=	intel_ddi.c
SRCS+=	intel_display.c
SRCS+=	intel_dp.c
SRCS+=	intel_dsi.c
SRCS+=	intel_dsi_cmd.c
SRCS+=	intel_dsi_pll.c
SRCS+=	intel_dvo.c
SRCS+=	intel_fbdev.c
SRCS+=	intel_hdmi.c
SRCS+=	intel_i2c.c
SRCS+=	intel_lvds.c
SRCS+=	intel_modes.c
#SRCS+=	intel_opregion.c	# XXX ACPI
SRCS+=	intel_overlay.c
SRCS+=	intel_panel.c
SRCS+=	intel_pm.c
SRCS+=	intel_ringbuffer.c
SRCS+=	intel_sdvo.c
SRCS+=	intel_sideband.c
SRCS+=	intel_sprite.c
SRCS+=	intel_tv.c
SRCS+=	intel_uncore.c

SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c
SRCS+=	intelfb.c

COPTS.i915_drv.c+=	-Wno-override-init
COPTS.intel_display.c+=	-Wno-shadow
COPTS.intel_panel.c+=	-Wno-shadow
COPTS.intel_pm.c+=	-Wno-shadow

CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV

.include <bsd.kmodule.mk>
@


1.4.4.3
log
@update from HEAD
@
text
@a13 1
MKLDSCRIPT=yes
d41 1
a41 1
SRCS+=	intel_acpi.c
d56 1
a56 1
SRCS+=	intel_opregion.c
d72 2
a73 4
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
COPTS.i915_drv.c+=	${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}

COPTS.intel_display.c+=	-Wno-shadow -Wno-conversion
d77 1
a77 5
CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV=1
CPPFLAGS+=		-DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=0

CPPFLAGS+=		-DNACPICA=1
CPPFLAGS+=		-DNVGA=1
@


1.3
log
@Make it build and boot on my test machines.

Screen blanks on boot on the Ivy Bridge system with

   DRM error in cpt_serr_int_handler: PCH transcoder A FIFO underrun

But after that everything is OK.  Appears to be an upstream problem.
To investigate...

I think there's a cache flushing issue somewhere -- there are little
display artefacts on my T60.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2014/03/18 18:20:43 riastradh Exp $
d7 1
d70 1
@


1.2
log
@Merge riastradh-drm2 to HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.2.1 2014/03/04 20:45:17 riastradh Exp $
d20 1
d33 1
d36 1
d39 2
d46 3
d50 1
a50 1
SRCS+=	intel_fb.c		# XXX Rewrite for wscons.
d55 1
a55 1
SRCS+=	intel_opregion.c
d61 1
d64 1
d70 2
d75 2
@


1.2.2.1
log
@Rebase.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2014/07/24 21:18:40 riastradh Exp $
a6 1
CPPFLAGS+=	-I${S}/external/bsd/drm2/i915drm
a19 1
SRCS+=	i915_cmd_parser.c
a31 1
SRCS+=	i915_gpu_error.c
a33 1
SRCS+=	i915_params.c
a35 2
SRCS+=	i915_ums.c
#SRCS+=	intel_acpi.c		# XXX ACPI
a40 3
SRCS+=	intel_dsi.c
SRCS+=	intel_dsi_cmd.c
SRCS+=	intel_dsi_pll.c
d42 1
a42 1
SRCS+=	intel_fbdev.c
d47 1
a47 1
#SRCS+=	intel_opregion.c	# XXX ACPI
a52 1
SRCS+=	intel_sideband.c
a54 1
SRCS+=	intel_uncore.c
a58 1
SRCS+=	intelfb.c
a59 2
COPTS.i915_drv.c+=	-Wno-override-init
COPTS.intel_display.c+=	-Wno-shadow
a62 2
CPPFLAGS+=		-DCONFIG_DRM_I915_FBDEV

@


1.2.6.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 11:41:07 +0000
@
text
@d1 63
@


1.2.6.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 63
# $NetBSD$

.include "../Makefile.inc"
.include "../drmkms/Makefile.inc"

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915

.PATH:	${S}/external/bsd/drm2/i915drm
.PATH:	${S}/external/bsd/drm2/dist/drm/i915

KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf

SRCS+=	dvo_ch7017.c
SRCS+=	dvo_ch7xxx.c
SRCS+=	dvo_ivch.c
SRCS+=	dvo_ns2501.c
SRCS+=	dvo_sil164.c
SRCS+=	dvo_tfp410.c
#SRCS+=	i915_debugfs.c		# XXX No debugfs in NetBSD.
SRCS+=	i915_dma.c
SRCS+=	i915_drv.c
SRCS+=	i915_gem.c
SRCS+=	i915_gem_context.c
SRCS+=	i915_gem_debug.c
#SRCS+=	i915_gem_dmabuf.c
SRCS+=	i915_gem_evict.c
SRCS+=	i915_gem_execbuffer.c
SRCS+=	i915_gem_gtt.c
SRCS+=	i915_gem_stolen.c
SRCS+=	i915_gem_tiling.c
#SRCS+=	i915_ioc32.c
SRCS+=	i915_irq.c
SRCS+=	i915_suspend.c
SRCS+=	i915_sysfs.c		# XXX No sysfs in NetBSD.
SRCS+=	intel_bios.c
SRCS+=	intel_crt.c
SRCS+=	intel_ddi.c
SRCS+=	intel_display.c
SRCS+=	intel_dp.c
SRCS+=	intel_dvo.c
SRCS+=	intel_fb.c		# XXX Rewrite for wscons.
SRCS+=	intel_hdmi.c
SRCS+=	intel_i2c.c
SRCS+=	intel_lvds.c
SRCS+=	intel_modes.c
SRCS+=	intel_opregion.c
SRCS+=	intel_overlay.c
SRCS+=	intel_panel.c
SRCS+=	intel_pm.c
SRCS+=	intel_ringbuffer.c
SRCS+=	intel_sdvo.c
SRCS+=	intel_sprite.c
SRCS+=	intel_tv.c

SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c

COPTS.intel_panel.c+=	-Wno-shadow
COPTS.intel_pm.c+=	-Wno-shadow

.include <bsd.kmodule.mk>
@


1.2.4.1
log
@file Makefile was added on branch rmind-smpnet on 2014-05-18 17:46:11 +0000
@
text
@d1 63
@


1.2.4.2
log
@sync with head
@
text
@a0 63
# $NetBSD$

.include "../Makefile.inc"
.include "../drmkms/Makefile.inc"

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915

.PATH:	${S}/external/bsd/drm2/i915drm
.PATH:	${S}/external/bsd/drm2/dist/drm/i915

KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf

SRCS+=	dvo_ch7017.c
SRCS+=	dvo_ch7xxx.c
SRCS+=	dvo_ivch.c
SRCS+=	dvo_ns2501.c
SRCS+=	dvo_sil164.c
SRCS+=	dvo_tfp410.c
#SRCS+=	i915_debugfs.c		# XXX No debugfs in NetBSD.
SRCS+=	i915_dma.c
SRCS+=	i915_drv.c
SRCS+=	i915_gem.c
SRCS+=	i915_gem_context.c
SRCS+=	i915_gem_debug.c
#SRCS+=	i915_gem_dmabuf.c
SRCS+=	i915_gem_evict.c
SRCS+=	i915_gem_execbuffer.c
SRCS+=	i915_gem_gtt.c
SRCS+=	i915_gem_stolen.c
SRCS+=	i915_gem_tiling.c
#SRCS+=	i915_ioc32.c
SRCS+=	i915_irq.c
SRCS+=	i915_suspend.c
SRCS+=	i915_sysfs.c		# XXX No sysfs in NetBSD.
SRCS+=	intel_bios.c
SRCS+=	intel_crt.c
SRCS+=	intel_ddi.c
SRCS+=	intel_display.c
SRCS+=	intel_dp.c
SRCS+=	intel_dvo.c
SRCS+=	intel_fb.c		# XXX Rewrite for wscons.
SRCS+=	intel_hdmi.c
SRCS+=	intel_i2c.c
SRCS+=	intel_lvds.c
SRCS+=	intel_modes.c
SRCS+=	intel_opregion.c
SRCS+=	intel_overlay.c
SRCS+=	intel_panel.c
SRCS+=	intel_pm.c
SRCS+=	intel_ringbuffer.c
SRCS+=	intel_sdvo.c
SRCS+=	intel_sprite.c
SRCS+=	intel_tv.c

SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c

COPTS.intel_panel.c+=	-Wno-shadow
COPTS.intel_pm.c+=	-Wno-shadow

.include <bsd.kmodule.mk>
@


1.1
log
@file Makefile was initially added on branch riastradh-drm2.
@
text
@d1 63
@


1.1.2.1
log
@Rework drm2 configuration and modularization.

- Split drm2.kmod into drmkms_linux, drmkms, drmkms_pci.
- Split up drmkms-related files.* similarly.
- Make drm_agp_* routines hooks that the drmkms_pci module installs.
- Reuse drm device major 180 for (old) drm and drmkms.

Now old drm and new drmkms can coexist happily in the same tree, with
or without PCI, and require no changes to userland.
@
text
@a0 63
# $NetBSD$

.include "../Makefile.inc"
.include "../drmkms/Makefile.inc"

CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/drm/i915

.PATH:	${S}/external/bsd/drm2/i915drm
.PATH:	${S}/external/bsd/drm2/dist/drm/i915

KMOD=	i915drmkms
IOCONF=	i915drmkms.ioconf

SRCS+=	dvo_ch7017.c
SRCS+=	dvo_ch7xxx.c
SRCS+=	dvo_ivch.c
SRCS+=	dvo_ns2501.c
SRCS+=	dvo_sil164.c
SRCS+=	dvo_tfp410.c
#SRCS+=	i915_debugfs.c		# XXX No debugfs in NetBSD.
SRCS+=	i915_dma.c
SRCS+=	i915_drv.c
SRCS+=	i915_gem.c
SRCS+=	i915_gem_context.c
SRCS+=	i915_gem_debug.c
#SRCS+=	i915_gem_dmabuf.c
SRCS+=	i915_gem_evict.c
SRCS+=	i915_gem_execbuffer.c
SRCS+=	i915_gem_gtt.c
SRCS+=	i915_gem_stolen.c
SRCS+=	i915_gem_tiling.c
#SRCS+=	i915_ioc32.c
SRCS+=	i915_irq.c
SRCS+=	i915_suspend.c
SRCS+=	i915_sysfs.c		# XXX No sysfs in NetBSD.
SRCS+=	intel_bios.c
SRCS+=	intel_crt.c
SRCS+=	intel_ddi.c
SRCS+=	intel_display.c
SRCS+=	intel_dp.c
SRCS+=	intel_dvo.c
SRCS+=	intel_fb.c		# XXX Rewrite for wscons.
SRCS+=	intel_hdmi.c
SRCS+=	intel_i2c.c
SRCS+=	intel_lvds.c
SRCS+=	intel_modes.c
SRCS+=	intel_opregion.c
SRCS+=	intel_overlay.c
SRCS+=	intel_panel.c
SRCS+=	intel_pm.c
SRCS+=	intel_ringbuffer.c
SRCS+=	intel_sdvo.c
SRCS+=	intel_sprite.c
SRCS+=	intel_tv.c

SRCS+=	i915_module.c
SRCS+=	i915_pci.c
SRCS+=	intel_gtt.c

COPTS.intel_panel.c+=	-Wno-shadow
COPTS.intel_pm.c+=	-Wno-shadow

.include <bsd.kmodule.mk>
@

