FreeBSDDesktop / kms-drm

the DRM part of the linuxkpi-based KMS
63 stars 26 forks source link

kms-drm doesn't work on current #222

Closed nerzhul closed 4 years ago

nerzhul commented 4 years ago

Hello, i switched to current for devel reasons but i'm unable to have a working kms-drm (i915kms) driver. On FreeBSD 12.1 after recompiling the 12.1 specific driver from ports, it works perfect, before not, i don't remember but maybe a black screen.

On current, first test i did is to use the package from current packages. Both kms-current-dms and drm-devel-kmod are installing but after rebooting, i just have a black screen and i'm unable to switch tty from the blackscreen to a working tty, only going to single user mode and removing the package permits to have a vesa "working" environment (i'm using gnome)

Then i wanted to try to recompile them from ports but i'm facing to 2 compilations issues, on each package

on drm-current-kmod:

--- linux_page.o ---
/usr/ports/graphics/drm-current-kmod/work/kms-drm-ea88121/linuxkpi/gplv2/src/linux_page.c:242:9: error: implicit declaration of function 'vm_page_busy_acquire' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                        if (!vm_page_busy_acquire(page, VM_ALLOC_WAITFAIL))
                             ^
1 error generated.
*** [linux_page.o] Error code 1

on drm-devel-kmod i have the previous problem and this one:

/usr/ports/graphics/drm-devel-kmod/work/kms-drm-54164ff/linuxkpi/gplv2/src/linux_backlight.c:582:19: error: no member named 'dev_groups' in 'struct class'
        backlight_class->dev_groups = bl_device_groups;
        ~~~~~~~~~~~~~~~  ^
1 error generated.
*** [linux_backlight.o] Error code 1

--- linux_backlight.o ---
/usr/ports/graphics/drm-devel-kmod/work/kms-drm-54164ff/linuxkpi/gplv2/src/linux_backlight.c:582:19: error: no member named 'dev_groups' in 'struct class'
        backlight_class->dev_groups = bl_device_groups;
        ~~~~~~~~~~~~~~~  ^
1 error generated.
*** [linux_backlight.o] Error code 1

how can i make i915 work on current ?

valpackett commented 4 years ago

What do you have in /usr/src? The source must match the kernel you're running.

nerzhul commented 4 years ago

hello, okay with the proper current in /usr/src it's working properly in terms of compilation

nerzhul commented 4 years ago

works fine after restarting, it seems this should be noted somewhere to ensure nobody will have same problem as me with multiple trees :)