Re: kldload i915kms screen goes black

From: Pat Maddox <pat_at_patmaddox.com>
Date: Tue, 06 Dec 2022 07:08:40 UTC
On 5 Dec 2022, at 22:18, Pat Maddox wrote:

> On 5 Dec 2022, at 21:18, Takanori Watanabe wrote:
>
>> On Mon, Dec 05, 2022 at 09:43:17PM -0800, Pat Maddox wrote:
>>> On 5 Dec 2022, at 20:55, Chen, Alvin W wrote:
>>>
>>>>>
>>>>> I have a newly-built system with an ASUS Prime Z590M-Plus and 
>>>>> Intel
>>>>> 10900k
>>>>> with onboard graphics (UHD 630, according to intel).
>>>>>
>>>>> I specifically chose a 10th gen processor because I believed it 
>>>>> was
>>>>> well-
>>>>> supported by 13.1+. Unfortunately I can’t even install 13.1
>>>>> (https://urldefense.com/v3/__https://forums.freebsd.org/threads/cant-
>>>>> install-i-just-get-a-little-white-box-and-a-mouse-
>>>>> cursor.87334/__;!!LpKI!iRRMC3ef9hbS1NKXTBUoIDxlVz9pU_m1Jocnzh2Tlxfd
>>>>> s5SnkbHHXEM4iKqU7weuEiObV8rfJXfY$ [forums[.]freebsd[.]org])
>>>>>
>>>>> I have successfully installed
>>>>> FreeBSD-14.0-CURRENT-amd64-20221201-d1f3abc89250-259495.
>>>>>
>>>>> When I run `kldload i915kms`, the screen just goes black.
>>>>>
>>>>> I have never used graphics before on FreeBSD, so I’m not sure 
>>>>> where
>>>>> to
>>>>> begin diagnosing. I did as much research as I could upfront, but 
>>>>> have
>>>>> run into
>>>>> this obstacle.
>>>>>
>>>>> I’ll be content to run 14.0-CURRENT because I can still create 
>>>>> 13.1
>>>>> jails.
>>
>> How about logging in from remote and load kernel module?
>> This is my example.
>> https://github.com/freebsd/drm-kmod/issues/159
>
> When I do that, the screen still goes black, but kldload does return 
> in my remote terminal. This is in /var/log/messages: 
> https://gist.github.com/patmaddox/1a2b7bb8769cf1251beb514a9646a69e

Well, I don’t know if this has anything to do with anything, but when 
I run `pkg install drm-kmod` it lists all of these intel bits:

	gpu-firmware-intel-kmod-broxton: 20220511
	gpu-firmware-intel-kmod-coffeelake: 20220511
	gpu-firmware-intel-kmod-elkhartlake: 20220511
	gpu-firmware-intel-kmod-geminilake: 20220511
	gpu-firmware-intel-kmod-icelake: 20220511
	gpu-firmware-intel-kmod-kabylake: 20220511
	gpu-firmware-intel-kmod-rocketlake: 20220511
	gpu-firmware-intel-kmod-skylake: 20220511
	gpu-firmware-intel-kmod-tigerlake: 20220511

My 10th gen i9 is a “comet lake” - not in the list. I’m not sure 
if it should be covered by a different one, but it is interesting that 
it’s absent.

drm-kmod has a bunch of references to cometlake: 
https://github.com/freebsd/drm-kmod/search?q=cometlake

But drm-kmod-firmware does not: 
https://github.com/freebsd/drm-kmod-firmware/search?q=cometlake

I did make an effort to support a cometlake flavor: 
https://github.com/patmaddox/drm-kmod-firmware/commit/20570f61ee927e19d5fd6303f94eac00aa2f3bfd

But it didn’t work, which is no surprise, because I have no idea what 
I’m doing when it comes to kernel drivers.

Does the fact that cometlake is absent from the list mean 1) it was an 
oversight 2) it’s not supported 3) nothing at all?

Pat