i915kms on Lenovo T510

M&S - Krasznai András Krasznai.Andras at mands.hu
Wed May 30 06:25:35 UTC 2018


Hi

I can confirm that the drm-4.9 from github works perfectly on my Lenovo T510. I yesterday tested, it worked then I upgraded scr to #334334, compiled and it is working. Even suspend/resume worked. So (at least for me) the drm2 included in base is not necessairy if https://github.com/FreeBSDDesktop/kms-drm/tree/drm-v4.9 is in ports.

Thanks for your help.

best regards

András Krasznai

Feladó: Johannes Lundberg [mailto:johalun0 at gmail.com]
Küldve: 2018. május 29. 9:14
Címzett: M&S - Krasznai András
Másolatot kap: x11-list freebsd
Tárgy: Re: i915kms on Lenovo T510


On Tue, May 29, 2018 at 7:52 AM M&S - Krasznai András <Krasznai.Andras at mands.hu<mailto:Krasznai.Andras at mands.hu>> wrote:
Hi

yesterday and today I did some testing:

installed a new freebsd-current, upgraded the source to #...... and compiled a GENERIC kernel with a minimal src.conf (just be able to use ccache for compiling).

After successful installation of the new GENERIC kernel I tested the drm-stable-kmod and drm-next-kmod with the appropriate changes to rc.conf and /boot/loader.conf.

In both cases I got the fatal trap 12, immediately after manually loading the /boot/modules/i915kms.ko module.

I attach 4 pictures of my screen; the first two shows the trap itself and the stack trace for drm-kmod-stable, and the 3rd and 4th are the same for drm-next-kmod.


Hi!  Thanks for the report. I looks like you have an older card that's supported by drm2 in the kernel but not drm-stable-kmod.
However, good news! We just enabled older devices in the drm-stable-kmod branch.
You can try build from source here https://github.com/FreeBSDDesktop/kms-drm/tree/drm-v4.9
Or wait a week or so until we have updated the drm-stable-kmod to use the new version. (drm-next-kmod will not be updated for this since it will soon be replaced with a new version)



rgds

András Krasznai


From: Johannes Lundberg [mailto:johalun0 at gmail.com<mailto:johalun0 at gmail.com>]
Sent: Thursday, May 24, 2018 1:14 PM
To: M&S - Krasznai András
Cc: x11-list freebsd
Subject: Re: i915kms on Lenovo T510


On Thu, May 24, 2018 at 12:10 PM M&S - Krasznai András <Krasznai.Andras at mands.hu<mailto:Krasznai.Andras at mands.hu>> wrote:
Hi

explicitly specifying the path for the modules did not help.

Hans Peter Selansky looked at the Fatal trap and suggested to compile a GENERIC kernel with debugging support so we can see  the backtrace, I am now compiling. It will take 3-4 hours so I will report the results tomorrow.
rgds

Great! Thanks. We really appreciate you're taking the time to track this down.


András Krasznai


Feladó: Johannes Lundberg [mailto:johalun0 at gmail.com<mailto:johalun0 at gmail.com>]
Küldve: 2018. május 24. 12:31
Címzett: M&S - Krasznai András
Másolatot kap: x11-list freebsd
Tárgy: Re: i915kms on Lenovo T510


On Thu, May 24, 2018 at 11:18 AM Johannes Lundberg <johalun0 at gmail.com<mailto:johalun0 at gmail.com>> wrote:

Andreas Nilsson writes:

> On Thu, May 24, 2018 at 12:01 PM, Johannes Lundberg <johalun0 at gmail.com<mailto:johalun0 at gmail.com>>
> wrote:
>
>> On Thu, May 24, 2018 at 7:33 AM M&S - Krasznai András <
>> Krasznai.Andras at mands.hu<mailto:Krasznai.Andras at mands.hu>> wrote:
>>
>> > hi
>> >
>> > I am using a Lenovo T510 laptop with FreeBSD-CURRENT.
>> >
>> > It contains Intel I5 processor and integrated Intel graphics adapter.
>> >
>> > I tried to set it to drm-stable-kmod as well as to drm-next-kmod, none
>> was
>> > working, I got a fatal trap, kernel panic during boot.
>> >
>> > Compiling the packages on my system did not help. The graphics adapter
>> can
>> > be old for drm-xxxx-kmod packages.
>> >
>> > Drm2 from the base works correctly on my laptop.
>> >
>> > rgds
>> >
>> > Andras Krasznai
>> >
>> >
>>
>> Hi
>>
>> Starting a new thread with cc: graphics mailing list.
>>
>> So, this is a 64 bit machine and you're running freebsd-amd64, right?
>>
>> Do you know if the CPU architecture is Ivybridge, Sandybridge or Haswell?
>> _______________________________________________
>> freebsd-x11 at freebsd.org<mailto:freebsd-x11 at freebsd.org> mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
>> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org<mailto:freebsd-x11-unsubscribe at freebsd.org>"
>>
>
> Hello,
>
> As far  as I know the t510 had a first gen core i-series cpu. My t510 with
> a core i7 did not have a integrated gpu, but the i5 did. I think it might
> have something like:
> https://ark.intel.com/products/49653/Intel-Core-i5-560M-Processor-3M-Cache-2_66-GHz
>

Thanks! Seems like Arrandale, predecessor to Sandy Bridge.

To OP:
Can you put
dev.drm.drm_debug=-1
in /boot/loader.conf and send a dmesg output? (or /var/crash/core.txt.X)

One more thing to check is if the correct drm module is loaded. Safest is to do
kldload /boot/modules/drm.ko
kldload /boot/modules/i915kms.ko
and with kldstat -v check that the modules are loaded from /boot/modules and not /boot/kernel/

> Best regards
> Andreas


More information about the freebsd-x11 mailing list