freebsd / drm-kmod

drm driver for FreeBSD
155 stars 69 forks source link

Update to Linux 5.12 drivers #208

Closed dumbbell closed 1 year ago

dumbbell commented 2 years ago

I started to backport patches from Linux 5.12. This branch is based on top of #163 and will be rebased on a regular basis until the Linux 5.11 patches are merged.

See https://github.com/freebsd/drm-kmod/pull/163#issuecomment-1157699164 for instructions to play with this branch.

Status:

evadot commented 1 year ago

What are the missing reviews for base not commited yet for this one ?

dumbbell commented 1 year ago

Here they are:

evadot commented 1 year ago

Done now. Thanks a lot.

duckinator commented 1 year ago

Is it known what FreeBSD version(s) these changes are expected to be included in?

dumbbell commented 1 year ago

The graphics drivers are shipped as ports and packages. They are not inside FreeBSD core.

That said, they depend on changes in linuxkpi which is in the kernel. Those changes are in -CURRENT only for now but they will be backported to release branches.

Therefore the drivers are compatible with FreeBSD 14-CURRENT only for now but will work on future 13.x releases once the linuxkpi updates are backported. Probably 12.x too, I didn't look at the state of linuxkpi there.

duckinator commented 1 year ago

Thank you for the info and all your work on this, @dumbbell. I'm looking forward to being able to use my RX 6600 on FreeBSD in the future! 😄

andreaf74 commented 1 year ago

Hello, thanks for you work on this, not clear though if this branch have been merged in master or not. I'd like to try the 5.12 drivers, Should I simply get the master?

Thanks again

dumbbell commented 1 year ago

Hi @andreaf74!

Yes, it was merged into master. I'm not sure it's available in the Ports tree or as a package yet, so you will have to compile it yourself from source.

andreaf74 commented 1 year ago

Thanks @dumbbell ,

I've tried this one too but I believe my card is still not supported :(

vgapci0@pci0:9:0:0: class=0x030000 rev=0xc1 hdr=0x00 vendor=0x1002 device=0x743f subvendor=0x148c subdevice=0x2415 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Navi 24 [Radeon RX 6400/6500 XT/6500M]' class = display

I'll give a try to 5.13 too, but if I remember correctly, it has been stated before on another branch of this repo that Navi 24 would be supported starting from 5.15 ... speaking of which ... any hints on when it will be reached? :)

Thanks

dumbbell commented 1 year ago

Indeed, the PCI ID of your card was added to Linux 5.15.

Difficult to give an ETA. I wanted to finish the 5.13 backport last week (I was in holidays) but I'm at ~50%. I'm also looking for 5.15 or perhaps 5.16 for my personal laptop (Framework laptop with an Intel 12th gen CPU/GPU). But it will be weeks or months before 5.15 is backported.

andreaf74 commented 1 year ago

Thanks @dumbbell , I'm currently running on CURRENT , so if you ever need help testing out , I would be very happy to help :)

duckinator commented 1 year ago

Has this + the linuxkpi changes been backported to 13.x? If not, is there a better place where I can keep track of that?

evadot commented 1 year ago

It won't be backported, it will break KBI and since packages are built on 13.1 for some time they will not work.

duckinator commented 1 year ago

@evadot so it'll show up in 14.0, then?

evadot commented 1 year ago

@evadot so it'll show up in 14.0, then?

It's already available for 14-CURRENT and soon 13-STABLE

duckinator commented 1 year ago

Any update on when Linux 5.12+ drivers will be in a released FreeBSD version?

ghost commented 1 year ago

Any update on when Linux 5.12+ drivers will be in a released FreeBSD version?

I think it will be 14 and is planned to be released this summer.