Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 2015 10:39:31 +0200
From:      Anders Bolt-Evensen <andersbo87@icloud.com>
To:        freebsd-x11@freebsd.org
Subject:   Re: Testing the new i915 driver
Message-ID:  <562B43C3.7050406@icloud.com>
In-Reply-To: <562A3F9D.9000401@dumbbell.fr>
References:  <562A2DA7.9060408@icloud.com> <562A3F9D.9000401@dumbbell.fr>

next in thread | previous in thread | raw e-mail | index | archive | help


On 10/23/15 16:09, Jean-Sébastien Pédron wrote:
> On 23.10.2015 14:52, Anders Bolt-Evensen wrote:
>> libGL error: failed to open drm device: Permission denied
>> libGL error: failed to load driver: i965
> Hi!
>
> In FreeBSD 11-CURRENT, video devices (/dev/dri/*) now belong to
> root:video (group ID 44) instead of root:wheel in previous releases.
>
> You need to add your user to the "video" group.
>
Hello.

So I created the group "video" with GID 44 (as you mentioned) as this 
group didn't get created when I installed FreeBSD 11-CURRENT from ISO 
nor when I updated the kernel with your sources:
% sudo pw groupadd video
% sudo pw groupmod video -g 44
% sudo pw groupmod video -m andersbo
The problem now is that whenever I attempt to open up a new window 
(gnome-terminal, firefox, etc.), that new window is completely black and 
stays that way until I close the window (the close button is also hidden 
behind the black color).

This is output from dmesg without drm.debug=3
info: [drm] Initialized drm 1.1.0 20060810
drmn1: <Intel Haswell (GT2 mobile)> on vgapci1
info: [drm] Memory usable by graphics device = 2048M
info: [drm] MTRR allocation failed.  Graphics performance may suffer.
iicbus0: <Philips I2C bus>error: [drm:pid1514:i915_write32] *ERROR* 
Unknown unclaimed register before writing to c5100
  on iicbb0 addr 0xff
iic0: <I2C generic I/O> on iicbus0
iic1: <I2C generic I/O> on iicbus1
iicbus2: <Philips I2C bus> on iicbb1 addr 0x0
iic2: <I2C generic I/O> on iicbus2
iic3: <I2C generic I/O> on iicbus3
iicbus4: <Philips I2C bus> on iicbb2 addr 0x0
iic4: <I2C generic I/O> on iicbus4
iic5: <I2C generic I/O> on iicbus5
iicbus6: <Philips I2C bus> on iicbb3 addr 0x0
iic6: <I2C generic I/O> on iicbus6
iic7: <I2C generic I/O> on iicbus7
iicbus8: <Philips I2C bus> on iicbb4 addr 0x0
iic8: <I2C generic I/O> on iicbus8
iic9: <I2C generic I/O> on iicbus9
iicbus10: <Philips I2C bus> on iicbb5 addr 0x0
iic10: <I2C generic I/O> on iicbus10
iic11: <I2C generic I/O> on iicbus11
info: [drm] MSI enabled 1 message(s)
info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
info: [drm] Driver supports precise vblank timestamp query.
drmn1: taking over the fictitious range 0xc0000000-0xd0000000
info: [drm] Connector eDP-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.eDP-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] Connector VGA-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.VGA-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] Connector HDMI-A-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.HDMI-A-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] Connector DP-1: get mode from tunables:
info: [drm]   - kern.vt.fb.modes.DP-1
info: [drm]   - kern.vt.fb.default_mode
info: [drm] GMBUS [i915 gmbus vga] timed out, falling back to bit 
banging on pin 2
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
drmn1: warning: VGA-1: EDID block 0 invalid.
info: [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
fbd1 on drmn1
VT: Replacing driver "efifb" with new "fb".
drmn1: More than 8 outputs detected
info: [drm] Initialized i915 1.6.0 20080730 for drmn1 on minor 1

In addition to the output above, the following messages appeared:
error: [drm:pid0:intel_dp_set_link_train] *ERROR* Timed out waiting for 
DP idle patterns
error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before 
writing to 64040
error: [drm:pid12:i915_hangcheck_hung] *ERROR* Hangcheck timer 
elapsed... GPU hung
error: [drm:pid1679:i915_gem_wait_for_error] *ERROR* Timed out waiting 
for the gpu reset to complete
error: [drm:pid12:i915_hangcheck_hung] *ERROR* Hangcheck timer 
elapsed... GPU hung
error: [drm:pid1514:i915_gem_wait_for_error] *ERROR* Timed out waiting 
for the gpu reset to complete
error: [drm:pid12:i915_hangcheck_hung] *ERROR* Hangcheck timer 
elapsed... GPU hung
error: [drm:pid1679:i915_gem_wait_for_error] *ERROR* Timed out waiting 
for the gpu reset to complete

Output of dmesg with drm.debug=3 is available here: 
https://www.dropbox.com/s/i7fenvvyryzlvqn/newdmesg.txt?dl=0

The only way for me to work around that was to delete the newly created 
group. Changing permissions and owner via the /etc/devfs.rules file 
resulted in the same problem.

Did I use the right command to create the group, or do I have to run 
whole buildworld, reboot in single user mode, mergemaster -p, 
installworld, mergemaster -i procedure just to be sure the group gets 
created correctly?

Anders



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?562B43C3.7050406>