FreeBSD Foundation's New Project: Implement GEM/KMS/DRI for Intel Graphics

Status
Not open for further replies.
Hi, I have a basic question:

What's the difference between building Xorg with both
Code:
WITH_NEW_XORG="YES"
WITH_KMS="YES"
and with
Code:
WITH_NEW_XORG="YES"
only?

I had a problem with the resolution of my screen not being recognized properly, so I upgraded from 9-RELEASE to 9-STABLE and rebuilt Xorg with both KMS and NEW_XORG. Now the resolution is working beautifully and I don't need to type [cmd=]kldload i915kms[/cmd] before starting X in order to get my resolution working.

The problem is that now my laptop is heating more than before, so I'm wondering if I shouldn't rebuild Xorg only with NEW_XORG if that would be sufficient to provide widescreen resolution.
 
New xorg working on an MSI wind 100!.

Just wanted to thank miwi and everyone else for their hard work.

Successfully recompiled world and kernel with clang to boot!

Currently compiling Xfce4. Can't wait to do some actual testing.

Didn't do a portupgrade. Just recompiled everything from scratch. Had a little trouble with xorg-drivers not pulling in any drivers what so ever. Just had to manually compile xf86-input/video drivers and all is working now.

Hopefully we can get the i910kms driver to successfully unload and reset the video card at some point. Can't wait for syscons integration.
 
Hi friends!
Can anybody help me?
I have a Intel Core i5 3210M with HD4000 video.
I'm install FreeBSD 10-Current amd64
Have
Code:
WITH_NEW_XORG=yes
WITH_KMS=yes
Install x11-drivers/xf86-video-intel
kldstat
Code:
11    1 0xffffffff8244f000 5f8bd    i915kms.ko
15    1 0xffffffff824b4000 2dd50    drm2.ko
xorg.conf
Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "${prefix}/share/fonts/X11/misc/"
        FontPath     "${prefix}/share/fonts/X11/TTF/"
        FontPath     "${prefix}/share/fonts/X11/OTF/"
        FontPath     "${prefix}/share/fonts/X11/Type1/"
        FontPath     "${prefix}/share/fonts/X11/100dpi/"
        FontPath     "${prefix}/share/fonts/X11/75dpi/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "record"
        Load  "dbe"
        Load  "dri"
        Load  "dri2"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
When I'm do startx or kldload i915kms, screen blanks and nothing else. But i can login throught ssh, and that is
tail Xorg.0.log
Code:
[   322.560] (WW) intel(0): drmDropMaster failed: Unknown error: -22
Full log on pastebin
pciconf -lvv
Code:
hostb0@pci0:0:0:0:      class=0x060000 card=0x27021558 chip=0x01548086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '3rd Gen Core processor DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 card=0x27021558 chip=0x01518086 rev=0x09 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:1:1:       class=0x060400 card=0x27021558 chip=0x01558086 rev=0x09 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = 'Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
vgapci1@pci0:0:2:0:     class=0x030000 card=0x27021558 chip=0x01668086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '3rd Gen Core processor Graphics Controller'
    class      = display
    subclass   = VGA
xhci0@pci0:0:20:0:      class=0x0c0330 card=0x27021558 chip=0x1e318086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
    class      = serial bus
    subclass   = USB
none0@pci0:0:22:0:      class=0x078000 card=0x27021558 chip=0x1e3a8086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family MEI Controller'
    class      = simple comms
ehci0@pci0:0:26:0:      class=0x0c0320 card=0x27021558 chip=0x1e2d8086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family USB Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
hdac0@pci0:0:27:0:      class=0x040300 card=0x27021558 chip=0x1e208086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
pcib3@pci0:0:28:0:      class=0x060400 card=0x27021558 chip=0x1e108086 rev=0xc4 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family PCI Express Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:0:28:2:      class=0x060400 card=0x27021558 chip=0x1e148086 rev=0xc4 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family PCI Express Root Port 3'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:0:28:3:      class=0x060400 card=0x27021558 chip=0x1e168086 rev=0xc4 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family PCI Express Root Port 4'
    class      = bridge
    subclass   = PCI-PCI
ehci1@pci0:0:29:0:      class=0x0c0320 card=0x27021558 chip=0x1e268086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family USB Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
isab0@pci0:0:31:0:      class=0x060100 card=0x27021558 chip=0x1e598086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HM76 Express Chipset LPC Controller'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:      class=0x010601 card=0x27021558 chip=0x1e038086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series Chipset Family 6-port SATA Controller [AHCI mode]'
    class      = mass storage
    subclass   = SATA
none1@pci0:0:31:3:      class=0x0c0500 card=0x27021558 chip=0x1e228086 rev=0x04 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '7 Series/C210 Series Chipset Family SMBus Controller'
    class      = serial bus
    subclass   = SMBus
vgapci0@pci0:1:0:0:     class=0x030000 card=0x27021558 chip=0x0de910de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GF108 [GeForce GT 630M]'
    class      = display
    subclass   = VGA
none2@pci0:4:0:0:       class=0x028000 card=0x072610ec chip=0x872310ec rev=0x00 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    class      = network
none3@pci0:5:0:0:       class=0xff0000 card=0x27021558 chip=0x528910ec rev=0x01 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
re0@pci0:5:0:2: class=0x020000 card=0x27021558 chip=0x816810ec rev=0x0a hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168B PCI Express Gigabit Ethernet controller'
    class      = network
    subclass   = ethernet
/var/log/messages
Code:
Nov  3 18:03:32 MYBSD kernel: drmn1: <Intel IvyBridge (M)> on vgapci1
Nov  3 18:03:32 MYBSD kernel: info: [drm] MSI enabled 1 message(s)
Nov  3 18:03:32 MYBSD kernel: info: [drm] AGP at 0xd0000000 256MB
Nov  3 18:03:32 MYBSD kernel: iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic0: <I2C generic I/O> on iicbus0
Nov  3 18:03:32 MYBSD kernel: iic1: <I2C generic I/O> on iicbus1
Nov  3 18:03:32 MYBSD kernel: iicbus2: <Philips I2C bus> on iicbb1 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic2: <I2C generic I/O> on iicbus2
Nov  3 18:03:32 MYBSD kernel: iic3: <I2C generic I/O> on iicbus3
Nov  3 18:03:32 MYBSD kernel: iicbus4: <Philips I2C bus> on iicbb2 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic4: <I2C generic I/O> on iicbus4
Nov  3 18:03:32 MYBSD kernel: iic5: <I2C generic I/O> on iicbus5
Nov  3 18:03:32 MYBSD kernel: iicbus6: <Philips I2C bus> on iicbb3 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic6: <I2C generic I/O> on iicbus6
Nov  3 18:03:32 MYBSD kernel: iic7: <I2C generic I/O> on iicbus7
Nov  3 18:03:32 MYBSD kernel: iicbus8: <Philips I2C bus> on iicbb4 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic8: <I2C generic I/O> on iicbus8
Nov  3 18:03:32 MYBSD kernel: iic9: <I2C generic I/O> on iicbus9
Nov  3 18:03:32 MYBSD kernel: iicbus10: <Philips I2C bus> on iicbb5 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic10: <I2C generic I/O> on iicbus10
Nov  3 18:03:32 MYBSD kernel: iic11: <I2C generic I/O> on iicbus11
Nov  3 18:03:32 MYBSD kernel: iicbus12: <Philips I2C bus> on iicbb6 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic12: <I2C generic I/O> on iicbus12
Nov  3 18:03:32 MYBSD kernel: iic13: <I2C generic I/O> on iicbus13
Nov  3 18:03:32 MYBSD kernel: iicbus14: <Philips I2C bus> on iicbb7 addr 0xff
Nov  3 18:03:32 MYBSD kernel: iic14: <I2C generic I/O> on iicbus14
Nov  3 18:03:32 MYBSD kernel: iic15: <I2C generic I/O> on iicbus15
Nov  3 18:03:32 MYBSD kernel: info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
Nov  3 18:03:32 MYBSD kernel: info: [drm] Driver supports precise vblank timestamp query.
Nov  3 18:03:33 MYBSD kernel: drmn1: taking over the fictitious range 0xd0000000-0xe0000000
Nov  3 18:03:33 MYBSD kernel: info: [drm] Initialized i915 1.6.0 20080730
 
Good Day to All,
I'm new to FreeBSD and new to forum.
Several days ago I do shift from GNU/Linux to FreeBSD and installed 10.2 RELEASE to mine laptop.

All softaware, including xorg, kde and rest related was installed from packages, not ports.

Mine system equipped with the Intel GMA graphic.

KDE installed and works.

xorg.conf not configured, as I do receive blank screen. Xorg using built-in settings.

The log from X.org showed (EE)rror on fbdev. Error gone after install of xf86-video-fbdev, but appeared new one EE - absence of fddevhw

If I do disable load of fbdev - startx not starting.

Actually all woriking, but I wish to remove EE from logs of X.Org.

===

So, questions are following:
1. Are the fbdev required for intel card?
2. Are the
Code:
WITH_NEW_XORG="YES"
and
Code:
WITH_KMS="YES"
included in xorg from packages?
2. Do I need to consider rebuilding xorg from ports using those options in q.no.2?
3. Maybe required some additional drivers form fbdevhw?

I'm sorry for questions, which might be dummy for freebsd professionals, but they are essential to me.

Thanks beforehands for reply,
 
Status
Not open for further replies.
Back
Top