[Bug 295788] graphics/drm-kmod: i915kms Hardware acceleration not working for Intel Braswell since >drm-510-kmod

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295788

--- Comment #49 from Roger Olofsson <[email protected]> ---
I can see the logic pointing to create context since something happens in the
ioctl. It's strange that setting breakpoints there (context) doesn't break
though. It's almost as if it doesn't reach that part of the code?

I don't know if the below is relevant at all, grasping at straws now in the
heat. Nothing new is logged to dmesg after a forced assertion -> SIGABRT.

Looking at the sheer number of commits for drm-515 and comparing that to
linuxkpi the probability that bug is in drm is most likely higher than that the
bug is in linuxkpi?

Comparing drm-510 to drm515 looks like there's alot of restructuring which is
probably related to corresponding changes for linuxkpi? Must have been quite a
task to rewrite.

Roger

root@asus-r517sa:~ # dmesg | grep i915
drmn0: i915_gem_init_stolen: Memory reserved for graphics device: 32768K,
usable: 31744K
drmn0: i915_gem_object_create_stolen_for_preallocated: creating preallocated
stolen object: stolen_offset=0xfffffe006ef9b6c8a, size=0xfffffe006ef9b6d0a
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus dpb] timed out, falling back to bit
banging on pin 5
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
[drm] drm: skipping non-existent adapter i915 gmbus panel
drmn0: intel_gmbus_force_bit: enabling bit-banging on i915 gmbus panel. force
bit now 1
drmn0: intel_gmbus_force_bit: disabling bit-banging on i915 gmbus panel. force
bit now 0
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
[drm] drm: skipping non-existent adapter i915 gmbus panel
drmn0: intel_gmbus_force_bit: enabling bit-banging on i915 gmbus panel. force
bit now 1
drmn0: intel_gmbus_force_bit: disabling bit-banging on i915 gmbus panel. force
bit now 0
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
root@asus-r517sa:~ # lldb -- /usr/local/libexec/Xorg :1 -keeptty
(lldb) target create "/usr/local/libexec/Xorg"
Current executable set to '/usr/local/libexec/Xorg' (x86_64).
(lldb) settings set -- target.run-args  ":1" "-keeptty"
(lldb) target modules search-paths add / /
(lldb) process launch
Process 1736 launched: '/usr/local/libexec/Xorg' (x86_64)

X.Org X Server 1.21.1.23
X Protocol Version 11, Revision 0
Current Operating System: FreeBSD asus-r517sa 14.4-RELEASE-p6 FreeBSD
14.4-RELEASE-p6 releng/14.4-n273726-3d95ec875867 GENERIC amd64

Current version of pixman: 0.46.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Fri Jun 26 16:53:36 2026
Converted `%D/X11/%X' to `/usr/local/share/X11/xorg.conf.d'
Converted `/etc/X11/%X' to `/etc/X11/xorg.conf.d'
Converted `%C/X11/%X' to `/usr/local/etc/X11/xorg.conf.d'
Converted `/etc/X11/%X' to `/etc/X11/xorg.conf'
Converted `/etc/%X' to `/etc/xorg.conf'
Converted `%P/etc/X11/%X.%H' to `/usr/local/etc/X11/xorg.conf.asus-r517sa'
Converted `%P/etc/X11/%X' to `/usr/local/etc/X11/xorg.conf'
Converted `%P/lib/X11/%X.%H' to `/usr/local/lib/X11/xorg.conf.asus-r517sa'
Converted `%P/lib/X11/%X' to `/usr/local/lib/X11/xorg.conf'
(==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
InputClass section parsed
InputClass section parsed
InputClass section parsed
InputClass section parsed
OutputClass section parsed
InputClass section parsed
InputClass section parsed
InputClass section parsed
InputClass section parsed
InputClass section parsed
InputClass section parsed
LoaderOpen(/usr/local/lib/xorg/modules/extensions/libglx.so)
LoaderOpen(/usr/local/lib/xorg/modules/drivers/modesetting_drv.so)
LoaderOpen(/usr/local/lib/xorg/modules/drivers/scfb_drv.so)
LoaderOpen(/usr/local/lib/xorg/modules/drivers/vesa_drv.so)
scfb trace: probe start
scfb trace: probe done
LoaderOpen(/usr/local/lib/xorg/modules/libglamoregl.so)
Assertion failed: (batch->hw_ctx_id), function crocus_init_batch, file
../src/gallium/drivers/crocus/crocus_batch.c, line 210.
Process 1736 stopped
* thread #1, name = 'Xorg', stop reason = signal SIGABRT
    frame #0: 0x0000000828a184ca libc.so.7`__sys_thr_kill at thr_kill.S:4
(lldb) bt
* thread #1, name = 'Xorg', stop reason = signal SIGABRT
  * frame #0: 0x0000000828a184ca libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x0000000828990f84 libc.so.7`__raise(s=6) at raise.c:50:10
    frame #2: 0x0000000828a44ea9 libc.so.7`abort at abort.c:64:8
    frame #3: 0x0000000828973e21 libc.so.7`__assert(func=<unavailable>,
file=<unavailable>, line=<unavailable>, failedexpr=<unavailable>) at
assert.c:49:2
    frame #4: 0x000000083e5e52eb
crocus_dri.so`crocus_init_batch(ice=0x00001f7bca22d2f0,
name=CROCUS_BATCH_RENDER, priority=0) at crocus_batch.c:210:4
    frame #5: 0x000000083e65ee49
crocus_dri.so`crocus_create_context(pscreen=0x00001f7bc9a5b030,
priv=0x0000000000000000, flags=8) at crocus_context.c:323:7
    frame #6: 0x000000083d9ae761
crocus_dri.so`st_api_create_context(fscreen=0x00001f7bc9b06a80,
attribs=0x0000000820ff6950, error=0x0000000820ff694c,
shared_ctx=0x0000000000000000) at st_manager.c:986:11
    frame #7: 0x000000083d454d20
crocus_dri.so`dri_create_context(screen=0x00001f7bc9b06a80,
api=API_OPENGL_CORE, visual=0x0000000000000000, ctx_config=0x0000000820ff6aa4,
error=0x0000000820ff6b0c, sharedContextPrivate=0x0000000000000000,
loaderPrivate=0x00001f7bca221b60) at dri_context.c:178:14
    frame #8: 0x000000083d458b1b
crocus_dri.so`driCreateContextAttribs(psp=0x00001f7bc9b06a80, api=3,
config=0x0000000000000000, shared=0x0000000000000000, num_attribs=2,
attribs=0x0000000820ff6b10, error=0x0000000820ff6b0c, data=0x00001f7bca221b60)
at dri_util.c:652:31
    frame #9: 0x000000084ac7130c libEGL_mesa.so.0`___lldb_unnamed_symbol787 +
684
    frame #10: 0x000000084ac62b1f libEGL_mesa.so.0`___lldb_unnamed_symbol589 +
367
    frame #11: 0x000000083984018d
libglamoregl.so`glamor_egl_try_big_gl_api(scrn=0x00001f7bc9ae5a00) at
glamor_egl.c:988:31
    frame #12: 0x000000083983fea9
libglamoregl.so`glamor_egl_init(scrn=0x00001f7bc9ae5a00, fd=14) at
glamor_egl.c:1128:13
    frame #13: 0x0000000834ae6228
modesetting_drv.so`try_enable_glamor(pScrn=0x00001f7bc9ae5a00) at
driver.c:984:13
    frame #14: 0x0000000834ae4d33
modesetting_drv.so`PreInit(pScrn=0x00001f7bc9ae5a00, flags=0) at
driver.c:1211:5
    frame #15: 0x000000000045db38
Xorg`InitOutput(pScreenInfo=0x000000000051a6e8, argc=3,
argv=0x0000000820ff6f38) at xf86Init.c:478:17
    frame #16: 0x00000000002f1c99 Xorg`dix_main(argc=3,
argv=0x0000000820ff6f38, envp=0x0000000820ff6f58) at main.c:190:9
    frame #17: 0x00000000004ddd0a Xorg`main(argc=3, argv=0x0000000820ff6f38,
envp=0x0000000820ff6f58) at stubmain.c:34:12
    frame #18: 0x00000008289652f0 libc.so.7`__libc_start1(argc=3,
argv=0x0000000820ff6f38, env=0x0000000820ff6f58, cleanup=<unavailable>,
mainX=(Xorg`main at stubmain.c:33)) at libc_start1.c:180:7
    frame #19: 0x000000000029d384 Xorg`_start at crt1_s.S:80
(lldb) quit
Quitting LLDB will kill one or more processes. Do you really want to proceed:
[Y/n] y
root@asus-r517sa:~ # dmesg | grep i915
drmn0: i915_gem_init_stolen: Memory reserved for graphics device: 32768K,
usable: 31744K
drmn0: i915_gem_object_create_stolen_for_preallocated: creating preallocated
stolen object: stolen_offset=0xfffffe006ef9b6c8a, size=0xfffffe006ef9b6d0a
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus dpb] timed out, falling back to bit
banging on pin 5
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
[drm] drm: skipping non-existent adapter i915 gmbus panel
drmn0: intel_gmbus_force_bit: enabling bit-banging on i915 gmbus panel. force
bit now 1
drmn0: intel_gmbus_force_bit: disabling bit-banging on i915 gmbus panel. force
bit now 0
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0050 w(1)
[drm] drm: skipping non-existent adapter i915 gmbus panel
drmn0: intel_gmbus_force_bit: enabling bit-banging on i915 gmbus panel. force
bit now 1
drmn0: intel_gmbus_force_bit: disabling bit-banging on i915 gmbus panel. force
bit now 0
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK on first message, retry
drmn0: do_gmbus_xfer: GMBUS [i915 gmbus panel] NAK for addr: 0040 w(1)
root@asus-r517sa:~ #

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.