Trying to run Broadwell

Arto Pekkanen isoa at kapsi.fi
Mon Dec 7 21:13:08 UTC 2015


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 
>> <lists at bertram-scharpf.de> 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 at 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


More information about the freebsd-x11 mailing list