From owner-freebsd-x11@freebsd.org Mon Dec 7 21:13:08 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A79C69C1060 for ; Mon, 7 Dec 2015 21:13:08 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D8D11862 for ; Mon, 7 Dec 2015 21:13:08 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from karviainen.kapsi.fi ([217.30.184.182] helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1a635j-0006hG-M4 for freebsd-x11@freebsd.org; Mon, 07 Dec 2015 23:13:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 07 Dec 2015 23:13:03 +0200 From: Arto Pekkanen To: freebsd-x11@freebsd.org In-Reply-To: <20151207133403.GB73105@becker.bs.l> References: <20151203174008.GA98937@becker.bs.l> <20151203222137.GA1111@becker.bs.l> <20151207133403.GB73105@becker.bs.l> Message-ID: <3a824e6e9527938bf699b6f350522286@kapsi.fi> X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.182 X-SA-Exim-Mail-From: isoa@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 Subject: Re: Trying to run Broadwell X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 21:13:08 -0000 Hi. I am very sorry, this is a bit off-topic, but are you saying you could add Intel Broadwell support to the FreeBSD DRM/KMS? OpenBSD did it not too long ago by importing sources from a Linux kernel newer than 3.8. See here: http://undeadly.org/cgi?action=article&sid=20150924072002 "Mark Kettenis (kettenis@) has just committed a large update to the drm(4) graphics code, syncing with upstream Linux 3.14.52 and introducing Broadwell GPU support." I am not a FreeBSD kernel developer and in no way knowledgeable, I am just rehashing the info available in the internets. It would be cool to be able to patch in Broadwell support, but at least the OpenBSD import would imply that you'd need sources from at least 3.14.52 to get Broadwell working. Bertram Scharpf kirjoitti 07.12.2015 15:34: > Hi, > > this is from freebsd-questions: > > On Thursday, 03. Dec 2015, 16:31:05 -0600, Adam Vande More wrote: >> On Thu, Dec 3, 2015 at 4:21 PM, Bertram Scharpf >> wrote: >> > On Thursday, 03. Dec 2015, 13:42:25 -0700, Warren Block wrote: >> > > On Thu, 3 Dec 2015, Bertram Scharpf wrote: >> > > > >> > > > Section "Device" >> > > > Identifier "Card0" >> > > > Driver "intel" >> > > > BusID "PCI:0:2:0" >> > > > EndSection >> > > > >> > > > # pciconf -lv | grep -A 4 vga >> > > > vgapci0@pci0:0:2:0: class=0x030000 card=0x803a103c chip=0x16068086 rev=0x08 hdr=0x00 >> > > > vendor = 'Intel Corporation' >> > > > device = 'Broadwell-U Integrated Graphics' >> > > > class = display >> > > > subclass = VGA >> > > > >> > > > Looks good, doesn't it? Besides that, Linux on the same >> > > > machine uses the "intel" driver successfully. >> > > >> > > Broadwell is not yet supported by the intel driver version in FreeBSD. >> > > At present, vesa must be used. >> > >> > What does "not yet"/"at present" mean? Is there currently >> > work on it? I would not mind to contribute, not least >> > because I now own an excellent testing environment. >> >> I believe broadwell is covered in the 3.8 update. >> https://wiki.freebsd.org/Graphics/Update%20i915%20GPU%20driver%20to%20Linux%203.8 > > # kldload i915kms > kldload: can't load i915kms: No such file or directory > > Kernel messages from dmesg: > > info: [drm] Initialized drm 1.1.0 20060810 > link_elf: symbol mchdev_lock undefined > sysctl_unregister_oid: failed to unregister sysctl > > I cannot find the symbol "mchdev_lock" in any file but > "i915kms.ko". There is no definition of the variable in the > source tree. > > I have a running Gentoo Linux 4.1.12 here. There, in the > kernel sources I find a definition of "mchdev_lock". Could > that be easily copied into the FreeBSD kernel module source > file? At the moment I'm fetching the 3.8 sources. I'm > planning to first compare the two kernel versions, then to > compare one of them to the above source tree. > > Is this approach okay? > > Bertram -- Arto Pekkanen