Page MenuHomeFreeBSD

Linux EmulationUmbrella
ActivePublic

Recent Activity

Mon, Oct 5

emaste closed D60275: LinuxKPI: Creating crc16.h for amdkfd support.
Mon, Oct 5, 12:13 PM · Linux Emulation
emaste added a comment to D60275: LinuxKPI: Creating crc16.h for amdkfd support.

fwiw crc16.h is used in (only)
sys/dev/atopcase/atopcase.c
sys/fs/ext2fs/ext2_csum.c

Mon, Oct 5, 12:09 PM · Linux Emulation
wulf accepted D60275: LinuxKPI: Creating crc16.h for amdkfd support.
Mon, Oct 5, 11:55 AM · Linux Emulation
siri_racha.ca added a comment to D60275: LinuxKPI: Creating crc16.h for amdkfd support.

firstly we'd be changing the KBI (I think) on systems where sizeof(unsigned int) != size_t.

crc16() is static inline. It should not have KBI unless maybe exotic cases like -O0 or execution via pointer.

Mon, Oct 5, 2:37 AM · Linux Emulation
siri_racha.ca updated the diff for D60275: LinuxKPI: Creating crc16.h for amdkfd support.
Mon, Oct 5, 2:36 AM · Linux Emulation
siri_racha.ca updated the diff for D60275: LinuxKPI: Creating crc16.h for amdkfd support.
Mon, Oct 5, 2:35 AM · Linux Emulation

Sun, Oct 4

wulf added a comment to D60275: LinuxKPI: Creating crc16.h for amdkfd support.

firstly we'd be changing the KBI (I think) on systems where sizeof(unsigned int) != size_t.

Sun, Oct 4, 4:37 PM · Linux Emulation
siri_racha.ca added a comment to D60275: LinuxKPI: Creating crc16.h for amdkfd support.

It looks all that`s needed is to change crc16() len parameter type from unsigned int to size_t in sys/sys/crc16.h and add #include <sys/crc16.h> line to linux/crc16.h

Sun, Oct 4, 8:26 AM · Linux Emulation
siri_racha.ca added a comment to D60275: LinuxKPI: Creating crc16.h for amdkfd support.

Created & implemented crc16.h, there are some new functions which I could not find already implemented in the FreeBSD base system

crc16() is implemented in sys/crc16.h
crc16_byte() is not used in drm-kmod and has been removed from Linux after v6.15

It looks all that`s needed is to change crc16() len parameter type from unsigned int to size_t in sys/sys/crc16.h and add #include <sys/crc16.h> line to linux/crc16.h

Sun, Oct 4, 8:24 AM · Linux Emulation

Sat, Oct 3

wulf added a comment to D60275: LinuxKPI: Creating crc16.h for amdkfd support.

Created & implemented crc16.h, there are some new functions which I could not find already implemented in the FreeBSD base system

Sat, Oct 3, 10:13 AM · Linux Emulation
siri_racha.ca requested review of D60275: LinuxKPI: Creating crc16.h for amdkfd support.
Sat, Oct 3, 8:46 AM · Linux Emulation

Wed, Sep 23

siri_racha.ca added inline comments to D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Wed, Sep 23, 7:58 AM · Linux Emulation
siri_racha.ca updated the diff for D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Wed, Sep 23, 7:57 AM · Linux Emulation
siri_racha.ca added a comment to D58222: LinuxKPI: Add in_compat_syscall for amdkfd support.

Made this change, running build test right now.

Wed, Sep 23, 7:35 AM · Linux Emulation
siri_racha.ca updated the diff for D58222: LinuxKPI: Add in_compat_syscall for amdkfd support.
Wed, Sep 23, 7:32 AM · Linux Emulation

Sep 14 2026

dumbbell added inline comments to D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 14 2026, 7:54 PM · Linux Emulation
bz added inline comments to D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 14 2026, 6:59 PM · Linux Emulation
siri_racha.ca added inline comments to D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 14 2026, 4:54 AM · Linux Emulation
siri_racha.ca updated the diff for D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.

Switched fallback to 0 GHz

Sep 14 2026, 4:05 AM · Linux Emulation

Sep 13 2026

emaste added inline comments to D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 13 2026, 8:42 AM · Linux Emulation

Sep 12 2026

emaste added inline comments to D58222: LinuxKPI: Add in_compat_syscall for amdkfd support.
Sep 12 2026, 1:16 PM · Linux Emulation

Sep 11 2026

siri_racha.ca updated the test plan for D58222: LinuxKPI: Add in_compat_syscall for amdkfd support.
Sep 11 2026, 10:07 PM · Linux Emulation
siri_racha.ca updated the diff for D58222: LinuxKPI: Add in_compat_syscall for amdkfd support.
Sep 11 2026, 10:07 PM · Linux Emulation
siri_racha.ca updated the test plan for D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 11 2026, 10:03 PM · Linux Emulation
siri_racha.ca updated the diff for D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 11 2026, 10:03 PM · Linux Emulation
siri_racha.ca updated the summary of D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Sep 11 2026, 9:51 PM · Linux Emulation

Sep 9 2026

emaste closed D58228: LinuxKPI: Add tgid to task_struct under sched.h.
Sep 9 2026, 7:01 PM · Linux Emulation

Sep 8 2026

siri_racha.ca added a comment to D58228: LinuxKPI: Add tgid to task_struct under sched.h.

Yeah, sorry about the confusion.

Sep 8 2026, 4:41 AM · Linux Emulation

Sep 7 2026

bz updated subscribers of D58228: LinuxKPI: Add tgid to task_struct under sched.h.

Hi,
sorry, I somehow assumed you have a commit bit. This is not the case, right? So @dumbbell , @emaste, or I need to commit your changes?

Sep 7 2026, 9:09 PM · Linux Emulation

Sep 6 2026

bz accepted D58228: LinuxKPI: Add tgid to task_struct under sched.h.
Sep 6 2026, 4:21 PM · Linux Emulation
siri_racha.ca updated the diff for D58228: LinuxKPI: Add tgid to task_struct under sched.h.
Sep 6 2026, 4:47 AM · Linux Emulation
siri_racha.ca added inline comments to D58228: LinuxKPI: Add tgid to task_struct under sched.h.
Sep 6 2026, 4:44 AM · Linux Emulation

Sep 4 2026

bz requested changes to D58228: LinuxKPI: Add tgid to task_struct under sched.h.
Sep 4 2026, 5:23 PM · Linux Emulation
siri_racha.ca added a comment to D58228: LinuxKPI: Add tgid to task_struct under sched.h.

@bz If you have some time, can you let me know if there are any additional changes I should make?

Sep 4 2026, 5:23 AM · Linux Emulation
siri_racha.ca updated the test plan for D58228: LinuxKPI: Add tgid to task_struct under sched.h.
Sep 4 2026, 5:22 AM · Linux Emulation
siri_racha.ca updated the diff for D58228: LinuxKPI: Add tgid to task_struct under sched.h.

Fixed formatting, incremented to correct value, fixed description, added test plan.

Sep 4 2026, 4:48 AM · Linux Emulation

Sep 2 2026

nick_spun.io closed D58753: linux: add dma-buf and sync_file ioctl handlers.

Merged in c90c46ea239f

Sep 2 2026, 4:58 PM · Linux Emulation, x11

Aug 19 2026

nick_spun.io accepted D58753: linux: add dma-buf and sync_file ioctl handlers.
Aug 19 2026, 12:05 AM · Linux Emulation, x11

Aug 18 2026

adrian added a comment to D58753: linux: add dma-buf and sync_file ioctl handlers.

shipit!

Aug 18 2026, 11:58 PM · Linux Emulation, x11
nick_spun.io added a comment to D58753: linux: add dma-buf and sync_file ioctl handlers.

(a) what was this for again
(b) .. why can't we have a freebsd dmabuf implementation that we can use, and linuxkpi plugs into that?

(a) lol this was for Cyberpunk 2077 in "Proton-under-Linuxulator"
(b) You mean something in base? I definitely don't see a reason _not_ to

ok, for maximum lols, please add something like this in your commit message

Locally tested:

  • cyberpunk 2077 running in proton in linuxulator (still working on audio though!)

and (b) yeah, let's find dumbbell when they're active on IRC and go figure out what's required to just make a native dmabuf implementation for freebsd. Surely it's not going to move THAT quickly, and it'll help us in our desire for native drivers for stuff.

Aug 18 2026, 11:38 PM · Linux Emulation, x11
nick_spun.io updated the summary of D58753: linux: add dma-buf and sync_file ioctl handlers.
Aug 18 2026, 11:37 PM · Linux Emulation, x11
nick_spun.io updated the test plan for D58753: linux: add dma-buf and sync_file ioctl handlers.
Aug 18 2026, 11:35 PM · Linux Emulation, x11

Aug 16 2026

dumbbell added a comment to D58753: linux: add dma-buf and sync_file ioctl handlers.

I didn't work on the implementation of dma-buf for FreeBSD. We have this BSD-licensed implementation in drm-kmod right now and we can surely move that to base. I find it receives changes infrequently in Linux, so hopefully, that shouldn't be something that slows down or interferes with making a given version of drm-kmod compatible with multiple versions of FreeBSD.

Aug 16 2026, 6:12 PM · Linux Emulation, x11
adrian added a comment to D58753: linux: add dma-buf and sync_file ioctl handlers.

(a) what was this for again
(b) .. why can't we have a freebsd dmabuf implementation that we can use, and linuxkpi plugs into that?

(a) lol this was for Cyberpunk 2077 in "Proton-under-Linuxulator"
(b) You mean something in base? I definitely don't see a reason _not_ to

Aug 16 2026, 6:03 PM · Linux Emulation, x11
nick_spun.io added a comment to D58753: linux: add dma-buf and sync_file ioctl handlers.

(a) what was this for again
(b) .. why can't we have a freebsd dmabuf implementation that we can use, and linuxkpi plugs into that?

Aug 16 2026, 5:34 PM · Linux Emulation, x11
adrian accepted D58753: linux: add dma-buf and sync_file ioctl handlers.

well if dumbbell says ok :-)

Aug 16 2026, 5:28 PM · Linux Emulation, x11
dumbbell accepted D58753: linux: add dma-buf and sync_file ioctl handlers.
Aug 16 2026, 12:10 PM · Linux Emulation, x11
adrian added a comment to D58753: linux: add dma-buf and sync_file ioctl handlers.

(a) what was this for again
(b) .. why can't we have a freebsd dmabuf implementation that we can use, and linuxkpi plugs into that?

Aug 16 2026, 4:21 AM · Linux Emulation, x11

Aug 14 2026

siri_racha.ca updated the summary of D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Aug 14 2026, 4:41 PM · Linux Emulation
siri_racha.ca requested review of D58845: LinuxKPI: Add cpufreq_quick_get_max to LinuxKPI for amdkfd support.
Aug 14 2026, 4:41 PM · Linux Emulation