From nobody Thu Nov 12 16:24:21 2026 X-Original-To: dev-commits-src-all@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 4jQQh64Cswz70rS5 for ; Thu, 12 Nov 2026 16:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jQQh60QJxz4Gll for ; Thu, 12 Nov 2026 16:24:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794500662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=afXx/fbtS9SQuFEXgwcrXS45BEQ3HIAJhM9TuZ/01ho=; b=rccE1Sp3pNvASN0tGpJTfGRy5vFCG497+b99zkShbD2x7u+By6El9+6+uCpmr/aK6lYW3B /6XIp39saHYeYP46NITQ1GcXV/hD+wuizm8aQukv39rr5VHkrj2eYhb+hxrxcDiwPxPuh5 AiTHmmIvW1qfPycxNa+gp4672qkGFJlfV36xC2ubKjEscOql8BjWwQLyi0xr648b8Y17mJ +tq5gIs+lo1jrPJrvcJc4lfufSbvtI75eRza9/X8fezEW6JMGoAyALjw7t+uIkeCkSULqt QgiWufoQ2bQeAoEkdS5pWd3RGmaLZ7SHzgVb+nT8N70yaLKE2tDCAgkGr3b+SA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794500662; b=tiKXlEwhhRHnWId+Q+5hjSEko31r+Dm3NQQYCWSxPKygeFMo1SX9rlCrjGONUjLkKwxw1K rVyogmeYhuD/r/+ouH4V8rvA9kwPakZUBUk055t/fReWqtxbcnfamnq7ZnJi3zzMHeYexy utKpFlpzE38OANnKtLfdyxXXgLz7nvnf3PpVQGU/oycl7IGJJocyyn12jgY+fZiLYk+jSN 54zZOUUp1p2DDSuaLZu2GaezdB2V80LVtwxk5uIPdJpHIhD90AaKdLnDYSjOBgIRVbqcWS TNLOPkT6EGYEh+gunVBYsinQukMXD8ttvozLRjooLY2aYbvt9mE79HvOA8ZV4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794500662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=afXx/fbtS9SQuFEXgwcrXS45BEQ3HIAJhM9TuZ/01ho=; b=Svpb+Y44kGxBvzWXoFELkvT+WSlNWAwmjNvEEW1D7ACqMBhLyxDdJstkWRjHjQuvpk290N rToQQgycq5mdBgWfbTcT5XnlEzPVROpSK3GbAj45lO5HrswTAvUvZOatYm5hTj/Ta45Y9c tSzqzOic0krlqOui8gXSZxQYgVjKW1RqdEotpCw3gnw0Im8xh2bxJFER3PhPhl+74aouh1 mT9EnAepWQrDWHAxL00o2sHs9YYBOGTYKx7tbieyXQQno+LDrqDwbDP2ySIsjfnGW6GRQY 0WyMq2DNpX2OH6K2bc8AB2OXdNXQXPPkRYieP9keQPjOETortgCPZMa4rwJ+qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQQh56hmrz19PG for ; Thu, 12 Nov 2026 16:24:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2343 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 16:24:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Rick Richard From: Mitchell Horne Subject: git: 637fce654017 - stable/14 - uart: Set the bus space tag before parsing hw.uart.console List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 637fce6540174ac062f3750511e09d644fded9cc Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 16:24:21 +0000 Message-Id: <6af5e835.2343.290648b2@gitrepo.freebsd.org> The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=637fce6540174ac062f3750511e09d644fded9cc commit 637fce6540174ac062f3750511e09d644fded9cc Author: Rick Richard AuthorDate: 2026-10-03 16:00:00 +0000 Commit: Mitchell Horne CommitDate: 2026-11-12 16:23:28 +0000 uart: Set the bus space tag before parsing hw.uart.console uart_cpu_getdev() lets hw.uart.console override the FDT, but uart_getenv() maps an "mm:" address with uart_bus_space_mem, which is only assigned after the FDT probe. On riscv and arm it is still NULL at that point, so bus_space_map() faults before there is a console. On riscv this happens on any EFI boot where the firmware provides an SPCR table, since the loader turns it into hw.uart.console. Initialize uart_bus_space_mem to fdtbus_bs_tag, as uart_cpu_arm64.c does with &memmap_bus (See also 0624eddcffefe). PR: 299089 Reviewed by: mhorne MFC after: 1 week Signed-off-by: Rick Richard (cherry picked from commit 9db8ae83e62e9a1391674a14b0b7d76de2e3c3f7) --- sys/dev/uart/uart_cpu_fdt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/uart/uart_cpu_fdt.c b/sys/dev/uart/uart_cpu_fdt.c index 1cc1c795f29f..f0056b7fdc28 100644 --- a/sys/dev/uart/uart_cpu_fdt.c +++ b/sys/dev/uart/uart_cpu_fdt.c @@ -50,6 +50,8 @@ #include #include +extern bus_space_tag_t fdtbus_bs_tag; + /* * UART console routines. */ @@ -78,6 +80,8 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) u_int shift, iowidth, rclk; int br, err; + uart_bus_space_mem = fdtbus_bs_tag; + /* Allow overriding the FDT using the environment. */ class = &uart_ns8250_class; err = uart_getenv(devtype, di, class);