-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get 4k@60Hz HDMI over USB3 recognized #388
Comments
According to @evadot in https://twitter.com/manuvadot/status/1544994257169223680
As per https://www.freshports.org/graphics/drm-510-kmod/, currently a package is only available for FreeBSD:14:amd64 latest, whereas we need FreeBSD:13:amd64 quarterly for the upcoming helloSystem 0.8.0. |
In FreeBSD 13.1-RELEASE with quarterly packages, installing Trying to build |
What is the relationship of these ports to each other?
Are they mutually exclusive? |
There is only a 14-CURRENT package as the builder for 13.X still run 13.0-RELEASE and we can't build drm-510-kmod there. |
This one track Linux 5.10 drm drivers (works on >=13.1)
This one track Linux 5.4 drm drivers (works on >= 13.0)
Both doesn't exists anymore in latest.
Specific drm-kmod for 12.X, track 4.16, not updated anymore (for quite some time).
Specific port for FreeBSD 13.X (will be deleted when 13.0 is EoL)
Meta port that will Do The Right Thing (tm), meaning installing a supported version of the drivers based on the release and installing all the firmwares.
They are mutually exclusive, you need one to have support for your GPU, graphics/drm-kmod again should do the right thing based on your OSVERSION. Let me know if you need more info :) |
Thanks for your explanations @evadot, very helpful 👍
On helloSystem we want to support all GPUs from the oldest GPUs to the newest GPUs. In the case on Nvidia, this means that we need to ship Nvidia drivers 304, 340, and 390, and pick the one that is needed by the GPU in a particular system at runtime. My question is whether we need to do similar things for the different versions of graphics/drm-...kmod.
(Semi-OT) That's probably the same underlying reason why Intel GPUs are broken on 13.1 until 13.0 is deprecated. In practice this means unless we start to build our own packages for helloSystem (which we'd like to avoid), we are practically stalled for 2 quarters after 13.1 comes out until we can do a 13.1 based helloSystem release. I wish this could be solved somehow, e.g., by having builders for 13.0 and 13.1 at the same time. |
All drm-*-kmod support intel, amd and radeon GPUs.
It's not broken. 13.1 just support more recent intel GPUs.
This is a recurring demand that some people have and some other people are working on that. |
That's great to hear! |
Looks like I succeeded to build Blocked by: |
We now have an ISO that contains
To debug: When we press backspace at early boot to get to the bootloader
then we can boot to the desktop, from where we can switch to a console with Ctrl+Alt+F2, where we can log in as the user
We see that the last thing that happens is
Then it just hangs. When we reboot and run How to debug this further? Notes
|
Next debugging step: Kernel dump |
On a 14.0-CURRENT based ISO with
(unlike what we get with 13.1-RELEASE and self-built If we boot with
|
Random thought, could it be that if we use a self-built |
No, libdrm is only for userland. |
Yes (in fact I have), see the Notes in #388 (comment)
What do you mean? Would it help if I could give you ssh access to the machine? |
I mean testing directly FreeBSD 14-CURRENT, not hellosystem. |
Thing is, it seems to be working with the screen built into the Framework Laptop. But since I only have the "naked" Framework Mainboard I can only attach an external screen (via a USB-C dock with DP altmode). |
So, on ravynOS 0.4.0pre4 (where it is working), FreeBSD 14 is used with However, |
Got it to work with some manual intervention.
We now have an experimental build with a working HDMI display attached over a USB-3 hub (that supports DP altmode). Even HDMI audio works. 👍 However, it does not work without manual intervention. When one just boots normal (without the procedure above), then the screen just goes black after cc @mrclksr |
As of today, https://portsfallout.com/fallout?port=graphics%2Fdrm-510-kmod%24 is full of build errors. cc @evadot |
The manual procedure described 2 posts above does not work in FreeBSD 13.1; it seems like |
drm-510-kmod works fine on 13.1, what's your problem ? |
Hello @evadot, do you know whether HDMI over USB3 DP altmode should be working on FreeBSD 13.1 on the Iris Xe Graphics (11th Gen Intel® Core™)? Has it been tested successfully? When I follow those exact steps on FreeBSD 14, it works. The same steps on 13.1 lead to a garbled screen for a split-second, then the screen just goes black (no signal). I am using a Framework Mainboard (11th Gen Intel® Core™) connected to a HDMI screen over a USB3 dock that supports DP altmode (as can be determined by the fact that it is advertised as supporting 60Hz in 4K). Notes
Is there anything I could do to help debug this? |
Second try
Could possibly be related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263761, which is still open. Searching for which leads to https://cgit.freebsd.org/src/commit/?id=3cbf6518d6eea08e0fbe6d7c609debac5ab31992 Coud that be the culprit here? https://xyinn.org/md/freebsd/framework_laptop describes this exact issue:
|
@evadot respectfully pinging you again. |
Possibly related to freebsd/drm-kmod#223? |
This is a FreeBSD bug for this exact situation: |
For the record: With a 4K@30Hz compatible USB3 to HDMI adapter I get:
|
I suspect the last line to be related to the issue: How to further debug this? |
Update 02/2023: Intel TigerLake-LP GT2 [Iris Xe Graphics] works, can be used e.g., using 4k@30Hz USB3 HDMI adapters (e.g., containing Chrontel's CH7213) but can currently not be used with Framework's HDMI adapter or any other 4k@60Hz USB3 HDMI adapter. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263761 is blocking this.
Get Intel TigerLake-LP GT2 [Iris Xe Graphics]
8086:9a49:f111:0001
GPU recognized and working properly.On helloSystem 0.7.0
initgfx
just hangs in the detection phase. Tested on a Framework Mainboard with the 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz and a HDMI display attached over a USB-3 hub (that supports DP altmode). As a workaround, one needs to start withset initgfx.detect.disable=1
as described here.According to the FreeBSD wiki, "Requires DRM-KMOD 5.5 or higher. Fails to initialize with DRM-KMOD 5.4". At the time of this writing,
drm-fbsd13-kmod
5.5 is not yet available, https://www.freshports.org/graphics/drm-fbsd13-kmod. On e.g., Ubuntu 21.10, thei915
driver is used. Why is it that on older Linux versions just happily use thei915
driver whereas on FreeBSD we need to wait for something to be updated?The text was updated successfully, but these errors were encountered: