From nobody Wed Jan 22 03:02:27 2025 X-Original-To: freebsd-arm@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 4Yd85M3ZQhz5klCd for ; Wed, 22 Jan 2025 03:02:47 +0000 (UTC) (envelope-from naoki@radxa.com) Received: from smtpbgbr1.qq.com (smtpbgbr1.qq.com [54.207.19.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yd85K5Lg6z3nbQ for ; Wed, 22 Jan 2025 03:02:45 +0000 (UTC) (envelope-from naoki@radxa.com) Authentication-Results: mx1.freebsd.org; none X-QQ-mid: bizesmtpip2t1737514951tjagg0j X-QQ-Originating-IP: HB5Pt91SlH8lYZk3qyEaNSpyYJ11LVJA5xwxlnvqOJI= Received: from [IPV6:240f:10b:7440:1:f3bd:560f ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 22 Jan 2025 11:02:28 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15542907723768688621 Message-ID: <289A1E5B1EB26246+02035adf-93b2-432e-aac7-8b9135ff600e@radxa.com> Date: Wed, 22 Jan 2025 12:02:27 +0900 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Radxa Orion O6 To: Warner Losh , Mark Millard Cc: freebsd-arm@freebsd.org, Andrew Turner References: <087C4A9F-288B-40EA-BE1B-ACFD32C86DF2@yahoo.com> <9B90ADE3-9E1E-448A-B592-509B0E61B197@yahoo.com> <1B4F62E3-A269-4611-B9ED-1A72298FFC85@yahoo.com> <6591E59D-4E91-4325-8A77-46E182303927@yahoo.com> <9581F4025795F7C5+10590950-836c-4d9c-9c05-43b25b880e08@radxa.com> <9EDB5AF9-B11B-474E-8541-6C10098574CE@yahoo.com> Content-Language: en-US From: FUKAUMI Naoki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:radxa.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: MyirvGjpKb1jHAcU4POdhDTE8MVw4FP5PYZZ6ISObMGw3YYD8t+VFFEl M/udFR92Y2K8uc3M80V6hEeHFk8K6qma56vwmP19mGWhdKvup9ZuxnY3PIgNK6LiFHxxqA+ yI49NAQgqGbF4NVIi2VYaRB0uIIlcLK5mX2PYnZg71DQQRTcmngy6VXJ9CgytJCzO+2oQ7E FYJMFqk0GcUlbAsjFAayIk7SL4+p60oOkR0xWxHYpiVVHnRLyb5zcoE5l3dGLviY3eOixzw lK2D83L49nQSb03Hj4ZNwn1+hMpjFWnqXSVNi409LtMkORlOfm7qQ+Mo3/zdCuYGVoSW/j/ Y9+ugiBIe+sBTKbbDgSe+meoVlzB4+4Wrhx1aK7o7kj5Cg3/pg3+jriVAdt0MKklbILj3T7 PKLTESNsm0NTyk+qQfSASCIDwHG3l9+Apor+JEXbuoR9qMTkAdMeE1eMJmXemEFC7vwo4i9 fFen74PiatOt96jE8S9pFbg5217LrCrQ0HfH0OXjNnYNvqwu0RnGi0se3uIRk001OPeG5/5 xqzUXZAn6UeC8pKGqZFHCznPhzWTNf/vMTyU9vZsG9qIu/KdsZqSJvrOotwZV2zcOh7zTdq x3QMtu9sAgJ0u1mxpVLsViGxTrNCFJ26FsMB+UhuR1/td9KtuRdW2w+SZ7dv36Ris5Bqvzy 7RbDPQwOVl9AGAN3oEeyP/5oixt8ZQ3tZl5CE/wHOV4Tc/CX9XF5Sdl91ePxX3Ao6n7RF7d JDLCjR1B27EN5uHLHIRj4L+/1fKZkUJSBIkEUgax2q5Q09DJF3j14AuEzZiOL8EVarJii7M F3PcOPMtpqaqH7exlRZN0J6mxRxvczDGEEhpXgLMK85VZOlaKjPaPxJWX0p1JlkKBqWFF5R cNFcZjNNfAMEjKaSiZ1oI31mdGqv314UOrz6+g8paYj2P2HRYISKoaS8xLu++ckzjVSioqO b72wKG2YC6Wj24df8vfbDRhxL X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= X-QQ-RECHKSPAM: 0 X-Rspamd-Queue-Id: 4Yd85K5Lg6z3nbQ X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:54.207.0.0/17, country:US] Hi Warner, On 1/22/25 06:26, Warner Losh wrote: > I think there is... The loader thinks the console is only serial. Andy > Turner > has a review to add additional pl011 types that are common but were missed > by my initial parsing. Maybe all we need is https://reviews.freebsd.org/ > D48526 > to get to the next level. I think type is 0x03 on Orion O6. $ grep EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERFACE_TYPE_ARM_PL011_UART edk2/MdePkg/Include/IndustryStandard/SerialPortConsoleRedirectionTable.h edk2-platforms/Platform/CIX/Sky1/Drivers/AcpiSocTables/Spcr.aslc edk2/MdePkg/Include/IndustryStandard/SerialPortConsoleRedirectionTable.h:#define EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERFACE_TYPE_ARM_PL011_UART 0x03 edk2-platforms/Platform/CIX/Sky1/Drivers/AcpiSocTables/Spcr.aslc: EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_INTERFACE_TYPE_ARM_PL011_UART, Btw, I found the key to enable the SPCR table in EDK2. I rebuilt the UEFI and the SPCR table started to appear. But on FreeBSD things got worse, I lost output on both serial and HDMI... Linux(same as before = both serial and HDMI work): [ 0.000000] ACPI: RSDP 0x0000000479C30018 000024 (v02 CIXTEK) [ 0.000000] ACPI: XSDT 0x0000000479C3FE98 00007C (v01 CIXTEK SKY1EDK2 01000101 01000013) [ 0.000000] ACPI: FACP 0x0000000479C3FC98 00010C (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: DSDT 0x0000000479C10018 012C20 (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 0.000000] ACPI: SSDT 0x0000000479C37518 002FCA (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 0.000000] ACPI: CSRT 0x0000000479C3FA98 00008C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: DBG2 0x0000000479C3FB98 00005C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: GTDT 0x0000000479C3E998 000084 (v03 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: IORT 0x0000000479C3BD18 000AD8 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SDEI 0x0000000479C3FE18 000024 (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SPCR 0x0000000479C3FF98 000050 (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: APIC 0x0000000479C3EA98 000428 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SSDT 0x0000000479C3CE18 0011FC (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: MCFG 0x0000000479C3F918 00006C (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 0.000000] ACPI: SPCR: console: pl011,mmio32,0x40e0000,115200 [ 0.000000] ACPI: Use ACPI SPCR as default console: Yes NetBSD(same as before = only HDMI works): [ 1.000000] ACPI: RSDP 0x0000000479C30018 000024 (v02 CIXTEK) [ 1.000000] ACPI: XSDT 0x0000000479C3FE98 00007C (v01 CIXTEK SKY1EDK2 01000101 01000013) [ 1.000000] ACPI: FACP 0x0000000479C3FC98 00010C (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: DSDT 0x0000000479C10018 012C20 (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 1.000000] ACPI: SSDT 0x0000000479C37518 002FCA (v05 CIXTEK SKY1EDK2 00000001 INTL 20200925) [ 1.000000] ACPI: CSRT 0x0000000479C3FA98 00008C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: DBG2 0x0000000479C3FB98 00005C (v00 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: GTDT 0x0000000479C3E998 000084 (v03 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: IORT 0x0000000479C3BD18 000AD8 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: SDEI 0x0000000479C3FE18 000024 (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: SPCR 0x0000000479C3FF98 000050 (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: APIC 0x0000000479C3EA98 000428 (v05 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: SSDT 0x0000000479C3CE18 0011FC (v02 CIXTEK SKY1EDK2 01000101 CIX 00000001) [ 1.000000] ACPI: MCFG 0x0000000479C3F918 00007C (v01 CIXTEK SKY1EDK2 01000101 CIX 00000001) OpenBSD(worse than before = no output from both serial and HDMI): boot> NOTE: random seed is being reused. booting sd0a:/bsd: 11519740+2776632+299032+849160 [934269+91+1308336+810852]=0x1 402018 FACP SSDT CSRT DBG2 GTDT IORT SDEI SPCR APIC SSDT MCFG Best regards, -- FUKAUMI Naoki Radxa Computer (Shenzhen) Co., Ltd.