From nobody Tue Feb 11 09:54:55 2025 X-Original-To: freebsd-desktop@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 4YscHm1Db1z5nK03 for ; Tue, 11 Feb 2025 09:55:00 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [185.125.25.8]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "relay.mail.infomaniak.ch", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YscHk6G5nz3gV4 for ; Tue, 11 Feb 2025 09:54:58 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=softfail (mx1.freebsd.org: 185.125.25.8 is neither permitted nor denied by domain of dumbbell@FreeBSD.org) smtp.mailfrom=dumbbell@FreeBSD.org; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=freebsd.org (policy=none) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [IPv6:2001:1600:4:17::246b]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4YscHh0f6Pzt1C for ; Tue, 11 Feb 2025 10:54:56 +0100 (CET) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4YscHg4SKnz9kl for ; Tue, 11 Feb 2025 10:54:55 +0100 (CET) Message-ID: Date: Tue, 11 Feb 2025 10:54:55 +0100 List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: panic -> switch to cosole with drm-kmod? To: freebsd-desktop@freebsd.org References: <66o7so61-16o0-63q6-7nq3-92qs47479226@yvfgf.mnoonqbm.arg> Content-Language: en-US, fr From: =?UTF-8?Q?Jean-S=C3=A9bastien_P=C3=A9dron?= Organization: The FreeBSD Project In-Reply-To: <66o7so61-16o0-63q6-7nq3-92qs47479226@yvfgf.mnoonqbm.arg> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha X-Spamd-Result: default: False [-1.09 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-0.99)[-0.988]; NEURAL_HAM_SHORT(-0.90)[-0.902]; R_MIXED_CHARSET(0.83)[subject]; NEURAL_HAM_MEDIUM(-0.74)[-0.737]; RWL_MAILSPIKE_VERYGOOD(-0.20)[185.125.25.8:from]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, No valid DKIM,none]; RCVD_IN_DNSWL_LOW(-0.10)[185.125.25.8:from]; FREEFALL_USER(0.00)[dumbbell]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:29222, ipnet:185.125.24.0/22, country:CH]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_DOM_EQ_FROM_DOM(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-desktop@freebsd.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-desktop@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4YscHk6G5nz3gV4 On 10/02/2025 23:33, Bjoern A. Zeeb wrote: > Problem now is that I can panic it quite badly but I am stuck on the X > screen.  Was there a way to make it switch to v0 on panic so one can > use the kernel debugger? Hi! Also it didn’t always worked before, when I changed drm-kmod to integrate with vt(4) using a Linux-compatible fbcon API for the update to DRM 5.17, I think that part regressed even more. I couldn’t figure out what call(s) should be made to ask the driver to switch mode. Even in Linux, there are multiple code path that are unclear to me. None of the things I tried worked. I had to do this change because the amdgpu driver dropped the old way of integrating with the console (old way = driver-specific console setup) to use the generic code. The i915 and radeon drivers are still using the old approach but it is bound to the new integration and the switch during panic is broken for them too. -- Jean-Sébastien Pédron The FreeBSD Project