From nobody Fri Aug 02 16:24:30 2024 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WbB4M4hKhz5S12l for ; Fri, 02 Aug 2024 16:24:35 +0000 (UTC) (envelope-from pontus@bramberg.net) Received: from fhigh5-smtp.messagingengine.com (fhigh5-smtp.messagingengine.com [103.168.172.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WbB4L5Q5sz3y5P for ; Fri, 2 Aug 2024 16:24:34 +0000 (UTC) (envelope-from pontus@bramberg.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bramberg.net header.s=fm3 header.b=CwDQxxjg; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=U8AuXbGm; dmarc=pass (policy=quarantine) header.from=bramberg.net; spf=pass (mx1.freebsd.org: domain of pontus@bramberg.net designates 103.168.172.156 as permitted sender) smtp.mailfrom=pontus@bramberg.net Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 1AC391146208 for ; Fri, 2 Aug 2024 12:24:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 02 Aug 2024 12:24:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bramberg.net; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm3; t=1722615873; x=1722702273; bh=Kuxg1QYlzX w1n9Dd7xUCRspBGwYdTE4eA+Z6j4MSWpI=; b=CwDQxxjgzrfyYq/c8JBtkHC+ar iN+s2gYn7Rbh/pDvIdvjfVBcX3UvHogw/BqeWWHcM9d6FD+5Tn5u3Bs8LJB7GLRp pw2/h+co8SDlNRX786bTVIRHO1H1p7rgbzdOM8PTusOsDdrItrpTYqeggF1gA4v+ OlwqNinhHNIkG9DyG1eWiOoKRTvjbc92KIBNUtD+Q8o6IVabJCOrdgq8U54LSEjo 4vw7wv1IV36Z7wy4JvXYiVDjZTkGbRBHNzUkkZGWQDlbPnX8VGIOArGK0Y06cHS4 i5l+uSgC4c4Jmt8zwUU8ZhJCAldUntCyQ4X4A9/L6S/wbedWHyx3qYWu0nZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722615873; x=1722702273; bh=Kuxg1QYlzXw1n9Dd7xUCRspBGwYd TE4eA+Z6j4MSWpI=; b=U8AuXbGmauL/Ua1LjH//sRdH16LsBtI1FOaq0+hQTVE9 z530EVENst4u3wkieZokXzvJvrikeeLRbsSPI9/AQZJuIW4NevocKsVD+w8QGhnC FjxtWuCOSpsjoFmvoP2ofEXG1NxF64ovdLqz6lUY7KvsedUgsjmsmx4n9O/C27x6 EKxQuVooPUUiPSY5fz745paHsMkAMdNpZY/utXlUPTZZuAH4NLi1idBljTFYsRGU h1UQcOMMIZcJESn3kWKshdiYJWq8hio4iiJ9NPkvCUHJl567e23g39EV+m/FEsIN IfiZAq3MjEmhpQUNKTuvkcPi9EDpHsa+ctmoeBqyDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkedtgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfhuffvtgfgsehtkeertd dtvdejnecuhfhrohhmpefrohhnthhushcuuehrrghmsggvrhhguceophhonhhtuhhssegs rhgrmhgsvghrghdrnhgvtheqnecuggftrfgrthhtvghrnheptddvgeejudeuieffgeejie etgfegjeejgeelhfeugedtuddvlefhueeiieejleehnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepphhonhhtuhhssegsrhgrmhgsvghrghdrnh gvthdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i07d14972:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 2 Aug 2024 12:24:32 -0400 (EDT) Message-ID: <802dc8ba-e213-4635-8315-b37784d426e4@bramberg.net> Date: Fri, 2 Aug 2024 17:24:30 +0100 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Pontus Bramberg Subject: Nvidia Xorg page fault in kernel mode 14-STABLE/amd64 To: stable@freebsd.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.25 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.963]; DMARC_POLICY_ALLOW(-0.50)[bramberg.net,quarantine]; RWL_MAILSPIKE_VERYGOOD(-0.20)[103.168.172.156:from]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; R_DKIM_ALLOW(-0.20)[bramberg.net:s=fm3,messagingengine.com:s=fm3]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.156:from]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[bramberg.net:+,messagingengine.com:+]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4WbB4L5Q5sz3y5P Hello, I'm not entirely sure if this is the right place to ask about this. I apologise if not. I recently updated the UEFI BIOS on my laptop. Immediately after this, Xorg would not start when using the Nvidia driver. I attempted to downgrade the BIOS but the laptop would not flash an earlier version of the BIOS. I therefore instead tried to rebuild kernel and world from the latest stable/14 git commit (b37a6d41a046dbb46ee1d6bf00c710c03c944a24) as well as uninstalling and reinstalling x11/nvidia-driver from the latest ports collection (version 550.54.14). This did not help so I rebuilt the same kernel and world after 'make clean' and 'make cleanworld' and reinstalled the same version of x11/nvidia-driver. I at first thought this might be related to the similar issue discussed July 2 to 5 on this mailing list but the workaround from then (rebuilding kernel, world, and driver) does not work for me and the BIOS update make me think this is a different issue. Xorg works perfectly well if I switch to the integrated Intel graphics (using the i915kms module) so I think the problem is related to the discrete GPU. I do not normally use nvidia-drm-kmod but I have tried using both graphics/nvidia-drm-kmod and graphics/nvidia-drm-61-kmod with the same result, except the system crashes on boot rather than when starting Xorg (I use startx if that matters). The laptop is a Lenovo Thinkpad P16 with an Nvidia RTX 3500 Ada Generation Laptop GPU if that is helpful. If there are any logs or anything else that would be useful, please let me know. I would be very grateful if anybody knows how to resolve this or has any pointers for further troubleshooting. The output before the system crashes: ACPI Warning: \134_SB.PC00.PEG1.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20221020/nsarguments-212) NVRM: GPU at PCI:0000:01:00: GPU-58d85fdb-6f45-87c1-fe0f-9a26e92647c9 NVRM: Xid (PCI:0000:01:00): 62, pid='', name=, 2022a7a6 2028a6fc 2027a696 2027a1b2 20250cf2 2025084c 00000000 00000000 Fatal trap 12: page fault while in kernel mode cpuid = 18; apic id = 44 fault virtual address = 0x0 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff861c1354 stack pointer = 0x28:0xfffffe02ebc316b0 frame pointer = 0x28:0xfffffe02eff26e10 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 = 2380 (Xorg) rdi: 0000000000000000 rsi: 0000000000000040 rdx: 0000000000000007 rcx: 0000000000000007 r8: 00000000000000c0 r9: 0000000000000066 rax: 0000000000000000 rbx: fffffe02f051c000 rbp: fffffe02eff26e10 r10: 00000000100d96f8 r11: 0000000066ace8f2 r12: fffffe02eff2d000 r13: 0000000000000000 r14: 0000000000000055 r15: 0000000000000000 trap number     = 12 panic: page fault cpuid = 18 time = 1722607858 KDB: stack backtrace: #0 0xffffffff80b86d7d at kdb_backtrace+0x5d #1 0xffffffff80b399a1 at vpanic+0x131 #2 0xffffffff80b39863 at panic+0x43 #3 0xffffffff8101a93b at trap_fatal+0x40b #4 0xffffffff8101a986 at trap_pfault+0x46 #5 0xffffffff80ff0c98 at calltrap+0x8 Uptime: 39s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. Best wishes, Pontus Bramberg