🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.current
4 messages
4 total messages Started by Ruslan Zalata Fri, 13 Nov 2026 23:23
suspend/resume regression on -head sometime in the last three months
#195
Author: Ruslan Zalata
Date: Fri, 13 Nov 2026 23:23
60 lines
7466 bytes
Hi again,

On 2026-11-14 02:27, Adrian Chadd wrote:

>> How much time is that "after a while" ?
> Like, i just need to fire up firefox, restore a few tabs, then try 
> suspend.

I have a dozen of tabs usually open in Firefox. Could it be some bug 
specific to Firefox version ? Mine is 153.6.0esr.

> which drm-kmod? 612? 66? something else?

Good question! Frankly, I couldn't find a decent way to learn which 
version of drm-kmod driver is currently installed, `pkg info' is not 
helpful. Would be good to have something like drm_kmod_version in 
Annotations in pkg info, btw. Also to incorporate linux driver version 
into drm-kmod module with macro like MODULE_KMOD_INFO, so we could 
extract that data with `kldinfo' easily. ;-)

Anyway, searching for strings in admgpu.ko reveals this:

rz@butterfly:~ % strings /boot.16/boot/modules/amdgpu.ko | grep 
drm-kmod-drm | head -2
/wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
/wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

So, I think it is drm-612-kmod.

>> PS: 15.1 user-land has no audio while running on 16.0-head, this seems 
>> to be because of changes in OSS. The rest seems to be fine.
> You should file a bug about that so Christos can see what's up.

I have to do a bit deeper investigation, it could be just some driver 
missing.

One more thing. When loading nvidia.ko I get these messages from 
witness_debugger:

[1537.500796]  1st os.rwlock_sx @ nvidia_os.c:777
[1537.500800]  2nd os.rwlock_sx @ nvidia_os.c:777
[1537.500803] stack backtrace:
[1537.501061] #0 0xffffffff80cd209c at witness_debugger+0x6c
[1537.501289] #1 0xffffffff80c651f0 at _sx_xlock+0x60
[1537.501508] #2 0xffffffff84d40462 at os_acquire_rwlock_write+0x32
[1537.501782] #3 0xffffffff84a1fcb0 at _nv049066rm+0x10
[1537.501893] nvidia0: <NVIDIA GeForce RTX 3050 Laptop GPU> on vgapci0
[1537.501903] vgapci0: child nvidia0 requested pci_enable_io

Do you also have these ? Could it be a deadlock that triggers once, in a 
sudden ?

---
WBR, Ruslan.
PGP: D7545516DF544C4A, Get by finger rz@fabmicro.ru


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: suspend/resume regression on -head sometime in the last three months
#196
Author: Tomoaki AOKI
Date: Sat, 14 Nov 2026 03:33
90 lines
6857 bytes
On Sat, 14 Nov 2026 04:23:48 +0500
Ruslan Zalata <rz@fabmicro.ru> wrote:

> Hi again,
> 
> On 2026-11-14 02:27, Adrian Chadd wrote:
> 
> >> How much time is that "after a while" ?
> > Like, i just need to fire up firefox, restore a few tabs, then try 
> > suspend.
> 
> I have a dozen of tabs usually open in Firefox. Could it be some bug 
> specific to Firefox version ? Mine is 153.6.0esr.
> 
> > which drm-kmod? 612? 66? something else?
> 
> Good question! Frankly, I couldn't find a decent way to learn which 
> version of drm-kmod driver is currently installed, `pkg info' is not 
> helpful. Would be good to have something like drm_kmod_version in 
> Annotations in pkg info, btw. Also to incorporate linux driver version 
> into drm-kmod module with macro like MODULE_KMOD_INFO, so we could 
> extract that data with `kldinfo' easily. ;-)

You can use `pkg version | grep drm`.
In my case,

> % pkg version | grep drm 
> drm-612-kmod-6.12.110.1502501_3    =
> drm_info-2.10.0_1                  =
> libdrm-2.4.134,1                   =
> nvidia-drm-612-kmod-devel-620.70.06.1502501 =
> nvidia-drm-kmod-devel-620.70.06    =

Or `pkg version -o | grep drm`.

> % pkg version -o | grep drm
> graphics/drm-612-kmod             =
> graphics/drm_info                 =
> graphics/libdrm                   =
> graphics/nvidia-drm-612-kmod-devel=
> graphics/nvidia-drm-kmod-devel    =

Regards.

> 
> Anyway, searching for strings in admgpu.ko reveals this:
> 
> rz@butterfly:~ % strings /boot.16/boot/modules/amdgpu.ko | grep 
> drm-kmod-drm | head -2
> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> 
> So, I think it is drm-612-kmod.
> 
> >> PS: 15.1 user-land has no audio while running on 16.0-head, this seems 
> >> to be because of changes in OSS. The rest seems to be fine.
> > You should file a bug about that so Christos can see what's up.
> 
> I have to do a bit deeper investigation, it could be just some driver 
> missing.
> 
> One more thing. When loading nvidia.ko I get these messages from 
> witness_debugger:
> 
> [1537.500796]  1st os.rwlock_sx @ nvidia_os.c:777
> [1537.500800]  2nd os.rwlock_sx @ nvidia_os.c:777
> [1537.500803] stack backtrace:
> [1537.501061] #0 0xffffffff80cd209c at witness_debugger+0x6c
> [1537.501289] #1 0xffffffff80c651f0 at _sx_xlock+0x60
> [1537.501508] #2 0xffffffff84d40462 at os_acquire_rwlock_write+0x32
> [1537.501782] #3 0xffffffff84a1fcb0 at _nv049066rm+0x10
> [1537.501893] nvidia0: <NVIDIA GeForce RTX 3050 Laptop GPU> on vgapci0
> [1537.501903] vgapci0: child nvidia0 requested pci_enable_io
> 
> Do you also have these ? Could it be a deadlock that triggers once, in a 
> sudden ?
> 
> ---
> WBR, Ruslan.
> PGP: D7545516DF544C4A, Get by finger rz@fabmicro.ru
> 


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
suspend/resume regression on -head sometime in the last three months
#199
Author: Ruslan Zalata
Date: Sat, 14 Nov 2026 11:42
27 lines
5711 bytes
Hello Tomoaki,

On 2026-11-14 08:33, Tomoaki AOKI wrote:
> You can use `pkg version | grep drm`.
> In my case,
> 
>> % pkg version | grep drm

Here's what I get:

rz@butterfly:~ % pkg version | grep drm-kmod-20260508
drm-kmod-20260508                  =

So, which linux driver version is that ? ;-)

I still think we need a way to reflect driver version both inside 
package and in the .ko module itself.

---
WBR, Ruslan.
PGP: D7545516DF544C4A, Get by finger rz@fabmicro.ru



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: suspend/resume regression on -head sometime in the last three months
#201
Author: Tomoaki AOKI
Date: Sat, 14 Nov 2026 12:20
50 lines
4988 bytes
On Sat, 14 Nov 2026 16:42:22 +0500
Ruslan Zalata <rz@fabmicro.ru> wrote:

> Hello Tomoaki,
> 
> On 2026-11-14 08:33, Tomoaki AOKI wrote:
> > You can use `pkg version | grep drm`.
> > In my case,
> > 
> >> % pkg version | grep drm
> 
> Here's what I get:
> 
> rz@butterfly:~ % pkg version | grep drm-kmod-20260508
> drm-kmod-20260508                  =
> 
> So, which linux driver version is that ? ;-)
> 
> I still think we need a way to reflect driver version both inside 
> package and in the .ko module itself.
> 
> ---
> WBR, Ruslan.
> PGP: D7545516DF544C4A, Get by finger rz@fabmicro.ru

You excessively narrowed down on grep.

graphics/drm-kmod is just a metaport to choose actual port/pkg
to be installed depending on OS version.

Try `pkg version | grep drm`

Or if you want to a bit narrowing down, try below.
`pkg version -o | grep 'drm-[0-9]*-kmod'`

In my case, the latter shows (on zsh):
> % pkg version -o | grep 'drm-[0-9]*-kmod'
> graphics/drm-612-kmod             =
> graphics/nvidia-drm-612-kmod-devel=


Regards.

-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads