From owner-freebsd-x11@FreeBSD.ORG Wed Jan 7 09:01:34 2015 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 229A7878 for ; Wed, 7 Jan 2015 09:01:34 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 6455066A44 for ; Wed, 7 Jan 2015 09:01:32 +0000 (UTC) Received: (qmail 48984 invoked by uid 89); 7 Jan 2015 08:54:44 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@88.217.180.55) by mail.grem.de with ESMTPA; 7 Jan 2015 08:54:44 -0000 Date: Wed, 7 Jan 2015 09:54:43 +0100 From: Michael Gmelin To: Andrey Fesenko Subject: Re: Testing i915kms/Haswell on Intel 4th generation grpahics Message-ID: <20150107095443.2ac900e4@bsd64.grem.de> In-Reply-To: References: <20150106044154.50171e38@bsd64.grem.de> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/9k9nZ5QVUVOYqL0r7IrzXmr" Cc: freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 09:01:34 -0000 --MP_/9k9nZ5QVUVOYqL0r7IrzXmr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, 7 Jan 2015 08:05:16 +0400 Andrey Fesenko wrote: > On Tue, Jan 6, 2015 at 6:41 AM, Michael Gmelin > wrote: > > Hi, > > > > I took kib's patches from https://www.kib.kiev.ua/kib/drm/ and > > merged them into CURRENT (a couple of changes in vm). I also added > > my chipset id to pciids, i915 and agp. > > > > The merged/updated patch can be found here: > > > > http://blog.grem.de/bits/haswellgfx_20150106.patch > > > > You patch not contain i915_gem_stolen.c, intel_ddi.c, intel_pm.c and > not build, this files exist > https://www.kib.kiev.ua/kib/drm/i915.8.patch > > I'm have i5-4570 > pciconf > vgapci0@pci0:0:2:0: class=0x030000 card=0xd0001458 chip=0x04128086 > rev=0x06 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Haswell Integrated Graphics Controller' > class = display > subclass = VGA > bar [10] = type Memory, range 64, base 0xf0000000, size > 4194304, enabled bar [18] = type Prefetchable Memory, range 64, > base 0xe0000000, size 268435456, enabled > bar [20] = type I/O Port, range 32, base 0xf000, size 64, > enabled cap 05[90] = MSI supports 1 message > cap 01[d0] = powerspec 2 supports D0 D3 current D0 > cap 13[a4] = PCI Advanced Features: FLR TP > > If after rebuild kernel and restart, set drm.debug=2 and kldload > i915kms system crushed. Thank you for pointing this out, I corrected the patch to contain these files as well. Style aside, it basically results in the same code as kib's patch, so it's redundant now. The only differences are PCI Ids for chipsets that are not supported yet (that's what I was testing), I attached a patch for those. - Michael -- Michael Gmelin --MP_/9k9nZ5QVUVOYqL0r7IrzXmr Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=haswell_pciids.patch diff -ruN a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c --- a/sys/dev/agp/agp_i810.c 2015-01-06 01:05:42.000000000 +0100 +++ b/sys/dev/agp/agp_i810.c 2015-01-07 09:37:14.705584056 +0100 @@ -797,16 +797,6 @@ .driver = &agp_i810_hsw_driver }, { - .devid = 0x0a068086, - .name = "Haswell ULT", - .driver = &agp_i810_hsw_driver - }, - { - .devid = 0x0a268086, - .name = "Haswell ULP", - .driver = &agp_i810_hsw_driver - }, - { .devid = 0, } }; diff -ruN a/sys/dev/drm2/drm_pciids.h b/sys/dev/drm2/drm_pciids.h --- a/sys/dev/drm2/drm_pciids.h 2015-01-06 01:06:15.000000000 +0100 +++ b/sys/dev/drm2/drm_pciids.h 2015-01-07 09:38:56.481580099 +0100 @@ -55,8 +55,6 @@ {0x8086, 0x0406, CHIP_I9XX|CHIP_I915, "Intel Haswell (M)"}, \ {0x8086, 0x0416, CHIP_I9XX|CHIP_I915, "Intel Haswell (M)"}, \ {0x8086, 0x0c16, CHIP_I9XX|CHIP_I915, "Intel Haswell (SDV)"}, \ - {0x8086, 0x0a06, CHIP_I9XX|CHIP_I915, "Intel Haswell (ULT)"}, \ - {0x8086, 0x0a26, CHIP_I9XX|CHIP_I915, "Intel Haswell (ULV)"}, \ {0x8086, 0x2562, CHIP_I8XX, "Intel i845G GMCH"}, \ {0x8086, 0x2572, CHIP_I8XX, "Intel i865G GMCH"}, \ {0x8086, 0x2582, CHIP_I9XX|CHIP_I915, "Intel i915G"}, \ diff -ruN a/sys/dev/drm2/i915/i915_drv.c b/sys/dev/drm2/i915/i915_drv.c --- a/sys/dev/drm2/i915/i915_drv.c 2015-01-06 02:13:10.000000000 +0100 +++ b/sys/dev/drm2/i915/i915_drv.c 2015-01-07 09:38:56.505578713 +0100 @@ -279,8 +279,6 @@ INTEL_VGA_DEVICE(0x0406, &intel_haswell_m_info), /* GT1 mobile */ INTEL_VGA_DEVICE(0x0416, &intel_haswell_m_info), /* GT2 mobile */ INTEL_VGA_DEVICE(0x0c16, &intel_haswell_d_info), /* SDV */ - INTEL_VGA_DEVICE(0x0a06, &intel_haswell_d_info), /* UDT */ - INTEL_VGA_DEVICE(0x0a26, &intel_haswell_d_info), /* UDV */ {0, 0} }; --MP_/9k9nZ5QVUVOYqL0r7IrzXmr--