[Bug 287894] x11/nvidia-driver: panic on exit from Xorg

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287894

--- Comment #2 from Stefan Ehmann <[email protected]> ---
I'm already loading nvidia-modeset via kld_list.

The panic still happens hw.nvidia.registry.EnableGpuFirmware=1. There are now
additional messages in dmesg. Not sure if they are cause or symptom.

NVRM: GPU at PCI:0000:08:00: GPU-e875b4bd-bb00-be2a-4930-607f74a5424f
NVRM: Xid (PCI:0000:08:00): 120, GSP task exception: load access fault
(cause:0x5) @ pc:0x5361c30, task:1
NVRM:     Reported by libos task:0 v2.0 [0] @ ts:1751493595
NVRM:     RISC-V CSR State:
NVRM:         mstatus:0x000000001e000000  mscratch:0x0000000000000000    
mie:0x0000000000000880  mip:0x0000000000000000
NVRM:         mepc:0x0000000005361c30  mbadaddr:0x0000000000000050 
mcause:0x0000000000000005
NVRM:     RISC-V GPR State:
NVRM:         ra:0x0000000005367354   sp:0x0000000005c0d5d0  
gp:0x0000000000000000   tp:0x0000000000000000
NVRM:         a0:0x800000000019f710   a1:0x00000000047ed1b0  
a2:0x0000000000000000   a3:0x0000000004782d00
NVRM:         a4:0x0000000000000000   a5:0x0000000000000000  
a6:0x00000000caf00001   a7:0x0000000000000002
NVRM:         s0:0x0000000005c0d630   s1:0x80000000002466f0  
s2:0x00000000047ed1b0   s3:0x800000000019f710
NVRM:         s4:0x0000000004782d00   s5:0x0000000005367354  
s6:0x00000000041df000   s7:0x00000000041df000
NVRM:         s8:0x0000000000000000   s9:0x00000000052d1198 
s10:0x80000000002403b0  s11:0x80000000002466f0
NVRM:         t0:0x0000000005c0d5dd   t1:0x00000000052d157c  
t2:0x800000000003ef70   t3:0x0000000000000020
NVRM:         t4:0x0000000000000000   t5:0x0000000005c0d5c1  
t6:0x0000000000000000
NVRM:     Stack Trace:
NVRM:         0x0000000005361c30
NVRM:         0x0000000005367354
NVRM:         0x00000000052d1198
NVRM:         0x00000000051afb0c
NVRM:         0x00000000058f11b0
NVRM:         0x00000000059002f8
NVRM:         0x00000000058f9e2c
NVRM:         0x00000000058fc2ec
NVRM:         0x0000000004cff010
NVRM:         0x0000000004d1054c
NVRM:         0x000000000527dc20
NVRM:         0x00000000058f11b0
NVRM:         0x0000000004cb5630
NVRM:         0x0000000004cc5fdc
NVRM:         0x0000000005b25f08
NVRM:         0x0000000005b29850
NVRM:     PC Trace:
NVRM:         0x0000000004018064  0x000000000401a8a8  0x0000000004018d0c 
0x000000000400e35c  0x0000000004018c4c
NVRM:         0x000000000401832c  0x000000000400e35c  0x00000000040183a0 
0x0000000004018c3c  0x0000000004018110
NVRM:         0x0000000004018c1c  0x000000000401aa84  0x0000000004018a84 
0x00000000040181d8  0x0000000004018b90
NVRM:         0x000000000401832c  0x000000000400e35c  0x00000000040183a0 
0x0000000004018bc8  0x00000000040181d8
NVRM:         0x0000000004018b90  0x000000000401832c  0x000000000400e35c 
0x00000000040183a0  0x0000000004018bc8
NVRM:         0x00000000040181d8  0x0000000004018b90  0x000000000401832c 
0x000000000400e35c  0x00000000040183a0
NVRM:         0x0000000004018bc8  0x00000000040181d8  0x0000000004018b90 
0x000000000401832c  0x000000000400e35c
NVRM:         0x00000000040183a0  0x0000000004018bc8  0x00000000040181d8 
0x0000000004018b90  0x000000000401832c
NVRM:         0x000000000400e35c  0x00000000040183a0  0x0000000004018bc8 
0x00000000040181d8  0x0000000004018b90
NVRM:         0x000000000401832c  0x000000000400e35c  0x00000000040183a0
NVRM:     External I/O Register State:
NVRM:         0x00111360:0x00000000   0x00111364:0xbadf5041  
0x00111368:0x0010ec40   0x0011136c:0x00000000
NVRM:         0x001112b4:0x00040040   0x001112b8:0x00000040  
0x001112bc:0x00000000   0x00111344:0x11100000
NVRM:         0x00110008:0x00008010   0x0011010c:0x00000000  
0x00110118:0x00011122   0x00110110:0x00f7c7ba
NVRM:         0x00110128:0x00000000   0x00110114:0x000085a0  
0x0011011c:0x000005a0
NVRM:     ------------[ end crash report ]------------
NVRM: Xid (PCI:0000:08:00): 119, Timeout after 6s of waiting for RPC response
from GPU0 GSP! Expected function 47 (UNLOADING_GUEST_DRIVER) (0x0 0x0).
NVRM: GPU0 GSP RPC buffer contains function 47 (UNLOADING_GUEST_DRIVER) and
data 0x0000000000000000 0x0000000000000000.
NVRM: GPU0 RPC history (CPU -> GSP):
NVRM:     entry function                   data0              data1            
 ts_start           ts_end             duration actively_polling
NVRM:      0    47   UNLOADING_GUEST_DRIVE 0x0000000000000000
0x0000000000000000 0x000638f96186a0ec 0x0000000000000000          y
NVRM:     -1    10   FREE                  0x00000000c1e00004
0x0000000000000000 0x000638f961869d03 0x000638f96186a0ec   1001us
NVRM:     -2    10   FREE                  0x00000000caf00000
0x0000000000000000 0x000638f961869d03 0x000638f961869d03
NVRM:     -3    10   FREE                  0x00000000caf00001
0x0000000000000000 0x000638f961869d03 0x000638f961869d03
NVRM:     -4    10   FREE                  0x00000000caf00003
0x0000000000000000 0x000638f961869d03 0x000638f961869d03
NVRM:     -5    70   UPDATE_BAR_PDE        0x0000000000000000
0x0000000000000000 0x000638f96186991b 0x000638f961869d03   1000us
NVRM:     -6    10   FREE                  0x00000000c1e00003
0x0000000000000000 0x000638f961867dc3 0x000638f961867dc3
NVRM:     -7    10   FREE                  0x00000000caf00000
0x0000000000000000 0x000638f961867dc3 0x000638f961867dc3
NVRM: GPU0 RPC event history (CPU <- GSP):
NVRM:     entry function                   data0              data1            
 ts_start           ts_end             duration during_incomplete_rpc
NVRM:      0    4111 PERF_BRIDGELESS_INFO_ 0x0000000000000000
0x0000000000000000 0x000638f96186144b 0x000638f96186144b
NVRM:     -1    4098 GSP_RUN_CPU_SEQUENCER 0x00000000000001ea
0x0000000000003fe2 0x000638f5df63d2c9 0x000638f5df63d6b1   1000us
#0 0xffffffff839b6ef8 at os_dump_stack+0x18
#1 0xffffffff832c0e48 at _nv013205rm+0x508
NVRM: Xid (PCI:0000:08:00): 119, pid=1770, name=Xorg, Timeout after 6s of
waiting for RPC response from GPU0 GSP! Expected function 10 (FREE) (0x3141590c
0x0).


Fatal trap 12: page fault while in kernel mode
cpuid = 12; apic id = 0c
fault virtual address   = 0x30
fault code      = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff8326b11c
stack pointer           = 0x28:0xfffffe016edff960
frame pointer           = 0x28:0xfffffe01767edb10
code segment        = base 0x0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags    = interrupt enabled, resume, IOPL = 0
current process     = 1770 (MainThread)
rdi: fffffe0172d78000 rsi: fffff8000d172000 rdx: 0000000000000000
rcx: fffff8000d172000  r8: 000000000000902d  r9: 0000000000000000
rax: 0000000000000000 rbx: fffff800112f8800 rbp: fffffe01767edb10
r10: 0000000000000000 r11: 6865abe60007d429 r12: fffffe0172d78000
r13: fffff8000d172000 r14: fffff80002a7e800 r15: 0000000000000000
trap number     = 12
panic: page fault
cpuid = 12
time = 1751493606
KDB: stack backtrace:
#0 0xffffffff806f247d at kdb_backtrace+0x5d
#1 0xffffffff806a4701 at vpanic+0x161
#2 0xffffffff806a4593 at panic+0x43
#3 0xffffffff80a2f639 at trap_pfault+0x3d9
#4 0xffffffff80a08448 at calltrap+0x8

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.