From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jgjc13h6Bz2xRF for ; Fri, 04 Dec 2026 07:21:53 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jgjbx6lXlz2xM4 for ; Fri, 04 Dec 2026 07:21:49 +0000 (UTC) Received: from mail-dy1-x1329.google.com (mail-dy1-x1329.google.com [IPv6:2607:f8b0:4864:20::1329]) (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 "smtp.gmail.com", Issuer "WR4" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jgjbw6XgVz3kH for ; Fri, 04 Dec 2026 07:21:48 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20260707 header.b=FwZw5W3n; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates 2607:f8b0:4864:20::1329 as permitted sender) smtp.mailfrom=vincent.mc.li@gmail.com ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1796368909; b=MnpJKkZ1hGuOIpr/SRBAKVwt7a6REN2fdGH4QVEhJ1QyhSVVoXPQJThRHF3TGuXjt/A4jd L2PA30C5/6+dMO//gHgElSV473h4yM6Kq7O32sitRsJkcZDXg0RQlH/FTyxYk/9h14B4xS 1M761+wCjAcO2dz6a4a/sFPV4rVMziTQomZS9QhhfCM7Cwfd3jTikObfYCSxhWc8dR+sdx i1o1M/1T3i4FHezOn9o3x6HqId2d2RqnC5hpYzga9HU4jx+OqbVMNXL31OLm4PhvFG1+Uh r7rtsvPBsDdo5TSMXoRsPxDq/tC0H+icBoCJ/n9dIVFDWwKQiUL43LxhP2pTaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1796368909; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=pm4d+B1bK5c9Fu3hJOxM03yz5TPdHOKlJc81waNVp88=; b=JlVz3r6bWh3S3kVvhnHrGtCojY+E+3YsT1paH3hgC3uHh19nJNa8uDIPQ3wUE242mj18B7 y6nRAOyd8/Z8+w/YtGEqPSxkZ0eB+hzqvf37nGQVPTNX69TUYswnO65xAgYLtaX5uICJTd 3t1EoOudH7YYl4kdQjXQ6fwOscpAe0nLtY+OirqlcLtfztCYz2eBPzdcJVBgm9PPWA1Tfd aqpv7rlHTSYxuX2EBXx+iEYkqlU4L9WzQN3ouJO2WA2au/MtDGUblihgCHZDA5CCHIxMOV FthhTAUmz1NM4ZadrvWuBsc+iCu7YHeDHZVBaSLh0X+2eVNgET2H/MXv2XhZ0A== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=gmail.com header.s=20260707 header.b=FwZw5W3n; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates 2607:f8b0:4864:20::1329 as permitted sender) smtp.mailfrom=vincent.mc.li@gmail.com Received: by mail-dy1-x1329.google.com with SMTP id 5a478bee46e88-386bd881d39so1116948eec.1 for ; Thu, 03 Dec 2026 23:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796368907; x=1796973707; darn=lists.ipfire.org; h=content-type:mime-version:references:message-id:in-reply-to:subject :cc:to:date:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pm4d+B1bK5c9Fu3hJOxM03yz5TPdHOKlJc81waNVp88=; b=FwZw5W3ndg7J6mBan5SJlgLiNrO6fS/1OJsM/7zsV/oAgwCZimlIs4GjLxufX7jZi+ iPF3vmjku4uQvd+8MRn8UVLGOVxvuHVI/+vWeIo/mrx3vd5qKenN7Ugws/AXkl8ca3Lo yaBZPszv1GB9JfD+OEvlbKyWKMwp6DqtKoTIpH9AeCqWpwmVS5d6Uxvry5hVJTzAAdV+ uytAegdf3NwIdG1EQJLaoia6If54p/RfVOSpA4f0mfAeTwTL/q4cZ+3Pnz7GQm8ktqJW fAFYBtdWm/mrzqrWOhCUxHvL5+3iN0ByYxSB02b00Dd7I7AeSSV9KshCV2e4OV9SHrv7 vZzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796368907; x=1796973707; h=content-type:mime-version:references:message-id:in-reply-to:subject :cc:to:date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pm4d+B1bK5c9Fu3hJOxM03yz5TPdHOKlJc81waNVp88=; b=GhPZMmNJtbvC7XvYLE5/yMl84gWcf3PnCz5eWu5XLsBZhWWk4Yd/CmEZbi13h95RpT VdNqxQJ4/YhSnea9Sh2Oc41qAlQx3MDh3e3NW9rk/pvorQPCyXoqbcBUKHxHCQ7CWSTW Xqd91xtKZ9FSJh8Bw5NwbkKEsZANJzsuufW9HFuE1Igy1ieJxVKzylJB7Hv3P3iILDXY cPznIu+ncac2HsOENAeIgplIGfdlVyLvVysg3fYFvu3IJRoTGydAsLdqqNsf6m46GgaO w6S56rb+RJSUD6uqYI86NJTxZ0l+4sdXQ/bCx7GOjQg3bEZiPprTYwhlIs6Bfy/BcHn1 UUxQ== X-Forwarded-Encrypted: i=1; AL+hErGpiR8nfvvOomIVktTeKs8dUmVtOYGICdQTtvzoms0HCwGAYDIsR/lbBmLCEtXq/HPHhBTqU6lRmlsu5A==@lists.ipfire.org X-Gm-Message-State: APuU4Z+JX0YUtYtJ3Ge9XgzfeN1pLezvBjkxhfZGTm+icCVDJAdCCAZJ GIUrrJ7qhHBbc77h8Aadecarbn2bCb3LDXFM0ke1S/Fmf31cfLMlwufBCdQXFw== X-Gm-Gg: AZFdTZdKX2kotCRa0IEtwhsYAAn2Cz+4BM0OeGkOnDy2oFxaCfhGPu+KeJhvK0fDNh4 dojVQxyf1dnQuvOxpCPRch7MKPsqYaaH/YcD6G2G9q8XMuXT+IFWnbycBMf2NbmEZJ4gLlEm7HC X4EOKc9Dj1eBfF82fxlgrfiEZss2ppBQthlpLiGbqfeJrPB0yCg0DuBZ1Bmnv+4P81QQ13rgGUQ gU8SJ1HswKTiAOcBNZ6ZAPLVDkdcBsC18G+cmD3FVmitf3IjnM5Nv3OvhcUk7iXzNXfEKy2xH7q 8UTEGLUPRg2fev/NjCxetHhNGqQvppnc1iG8nImTtXSMRyjOWmDGgX4pwG7REqRzVdP7q+hZkAt gp3lip7Xegn+wktH86Le1FYHUhb40hu1Xl8SS9Gir8cXvMQCfgr1Ep7MjV+JyHcZkLhqiArIMcz 4ux/sM4jVsGExcXzqE6M7UnDwRtZbqqXj4/IMuChRfG3tA1yiAS8RseIPSrDedII+z50ZfHNyKf tqqSNtDM0zvKzmW1oKQv2ZrldsCayr3kmi9B/mVJOUJNTih0cnWpnx+PL2N4Cc/nFftRirSlm41 w3d0Q2Qur6WAIs7nNLTcH2WDC7M4cIlFolTrRfwVwSgaIii+Mw== X-Received: by 2002:a05:7300:b214:b0:384:e31e:3c58 with SMTP id 5a478bee46e88-38752173748mr1966600eec.33.1796368906682; Thu, 03 Dec 2026 23:21:46 -0800 (PST) Received: from wg-vpn-sf2 ([138.197.218.192]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38752211137sm4666302eec.23.2026.12.03.23.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 23:21:46 -0800 (PST) From: Vincent Li X-Google-Original-From: Vincent Li Date: Fri, 4 Dec 2026 07:21:45 +0000 (UTC) To: Vincent Li cc: Michael Tremer , development@lists.ipfire.org Subject: Re: [PATCH] kernel: Enable loongarch64 kernel config MMC_LOONGSON2 In-Reply-To: <3b0243a-d5ff-18f5-1060-9a813d964d7e@gmail.com> Message-ID: References: <20261203023403.2049053-1-vincent.mc.li@gmail.com> <4jgLYV18Zfz2ydT@michael.sof.ipfire.org> <3b0243a-d5ff-18f5-1060-9a813d964d7e@gmail.com> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2086222915-1796368906=:2058542" X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4jgjbw6XgVz3kH X-Rspamd-Action: no action X-Spamd-Result: default: False [-6.43 / 11.00]; BAYES_HAM(-3.00)[100.00%]; R_DKIM_ALLOW(-1.60)[gmail.com:s=20260707]; CTYPE_MIXED_BOGUS(1.00)[]; DKIM_REPUTATION(-0.98)[-0.97864762423757]; SPF_REPUTATION_HAM(-0.84)[-0.84157736853374]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56]; R_DKIM_ALIGNED(-0.10)[strict]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; MX_GOOD(-0.10)[gmail-smtp-in.l.google.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; IP_REPUTATION_HAM(0.00)[asn: 15169(-0.32),country: US(-0.01),ip: 2607:f8b0:4864:20::(-0.84)]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1329:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; ALIAS_RESOLVED(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROM(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169,ipnet:2607:f8b0::/32,country:US]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1] This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2086222915-1796368906=:2058542 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8BIT Hi Michael, I let the AI pass through the kernel message and your question, here is answer from AI, sorry I am not fluent with the kernel boot message and lazy :). ================================================================================ ANSWERS: eMMC / dmesg / lspci -k / serial / reboot / ACPI vs DT Sources: kernel.txt (dmesg), lsblk, lspci -k Board: Loongson OrangePi-Nova-V1.1 (LA364, 8 cores), kernel 6.18.65-ipfire ================================================================================ -------------------------------------------------------------------------------- 1. DOES THE eMMC SHOW UP, AND DOES IT WORK NOW? -------------------------------------------------------------------------------- YES. The eMMC is detected and functional. lsblk: mmcblk1 179:0 0 29.2G 0 disk †€mmcblk1p1 179:1 0 512M 0 part †€mmcblk1p2 179:2 0 32M 0 part †€mmcblk1p3 179:3 0 1G 0 part „€mmcblk1p4 179:4 0 27.7G 0 part mmcblk1boot0 179:8 0 4M 1 disk mmcblk1boot1 179:16 0 4M 1 disk dmesg: mmc0: new HS200 MMC card at address 0001 mmcblk0: mmc0:0001 VM040 29.2 GiB mmcblk0: p1 p2 p3 p4 mmcblk0boot0: mmc0:0001 VM040 4.00 MiB mmcblk0boot1: mmc0:0001 VM040 4.00 MiB NOTE: the kernel enumerates it as mmcblk0; lsblk reports mmcblk1. Same device,different naming between the two captures (re-probe/udev rename). Size and partition layout match. It probes at HS200 speed => functional, not just detected. -------------------------------------------------------------------------------- 2. WHAT DOES dmesg SAY? ERRORS FROM NEW DRIVERS / DEVICES WITH NO DRIVER? -------------------------------------------------------------------------------- No device is left without a driver. eMMC and NVMe both probe successfully. However, the NEW loongson2-mmc driver emits repeated errors because it is being driven through ACPI PRP0001 (the "DT-compatible" HID) without real DT properties: loongson2-mmc PRP0001:00: Can't get voltage, defaulting to 3.3V loongson2-mmc PRP0001:01: Can't get voltage, defaulting to 3.3V loongson2-mmc PRP0001:01: Failed to parse device node loongson2-mmc PRP0001:01: Got CD GPIO genirq: Setting trigger mode 3 for irq 26 failed (pch_pic_set_type+0x0/0x310) loongson2-mmc PRP0001:01: error -EINVAL: request_irq(26) 0x0 mmc_gpio_cd_irqt [mmc_core] PRP0001:01 cd Interpretation: - "Can't get voltage, defaulting to 3.3V": regulator/voltage property missing from ACPI; driver falls back. Warning, not fatal. - "Failed to parse device node": driver expects DT properties ACPI is not supplying. Repeats many times during boot. - "request_irq(26) ... -EINVAL": card-detect GPIO interrupt cannot be set up because pch_pic_set_type cannot program trigger mode 3 for IRQ 26. => hot-plug / CD detection via IRQ is broken; card still probes (driver continues without the CD IRQ). Other non-fatal issues in dmesg: - r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control - nvme nvme0: missing or invalid SUBNQN field. - nvme nvme0: Ignoring bogus Namespace Identifiers (NVMe still works) - xhci_hcd 0000:00:04.0: USB3 root hub has no ports - i8042: PNP: No PS/2 controller found. -------------------------------------------------------------------------------- 3. WHAT DOES lspci -k SHOW FOR DEVICES WITHOUT A DRIVER? -------------------------------------------------------------------------------- PCI functions with NO "Kernel driver in use" line: 00:06.0 Multimedia video controller Loongson Technology LLC LG200 GPU (rev 10) => NO DRIVER 00:06.3 Multimedia controller Loongson Technology LLC Video Processing Unit Decoder => NO DRIVER 00:06.4 Multimedia controller Loongson Technology LLC Video Processing Unit Encoder => NO DRIVER 00:06.1 VGA compatible controller Loongson Technology LLC Video Display Controller (rev 10) => NO PCI driver bound; handled only by simpledrm / simple-framebuffer in dmesg (not a real GPU driver) Everything else is bound: 00:03.0 dwmac-loongson-pci (dwmac_loongson) 00:04.0 xhci_hcd (xhci_pci) 00:06.2 snd_hda_intel (snd_hda_intel) 00:07.0 snd_hda_intel (snd_hda_intel) 00:09.0 pcieport (shpchp) 00:0a.0 pcieport (shpchp) 00:0b.0 pcieport (shpchp) 00:0c.0 pcieport (shpchp) 00:0d.0 pcieport (shpchp) 00:16.0 loongson-spi-pci (spi_loongson_pci) 00:19.0 xhci_hcd (xhci_pci) 03:00.0 r8169 (r8169) 05:00.0 nvme (nvme) SUMMARY of unbound: 00:06.0 (LG200 GPU), 00:06.3 (VPU decoder), 00:06.4 (VPU encoder) have no driver; 00:06.1 (VGA) only has simpledrm. -------------------------------------------------------------------------------- 4. DOES THE SERIAL CONSOLE WORK, AND DOES THE BOARD REBOOT/POWER OFF CLEANLY? -------------------------------------------------------------------------------- SERIAL: ports are initialized but NOT used as a kernel console. dmesg: 00:00: ttyS0 at MMIO 0x1fe001e0 (irq = 42, base_baud = 6250000) is a 8250 00:01: ttyS1 at MMIO 0x10100000 (irq = 43, base_baud = 3000000) is a 8250 00:02: ttyS2 at MMIO 0x10100100 (irq = 43, base_baud = 3000000) is a 8250 00:03: ttyS3 at MMIO 0x10100200 (irq = 43, base_baud = 3000000) is a 8250 BUT the kernel command line is: BOOT_IMAGE=/boot/vmlinuz-6.18.65-ipfire root=UUID=... ro rd.auto panic=10 console=tty1 => only console=tty1; NO console=ttyS0. Serial is not a kernel console in this boot. Interactive function cannot be proven from the log. REBOOT: the log shows a clean second boot at Dec 4 14:47:01 (fresh kernel banner, full ACPI/PCI re-enumeration), consistent with a successful reboot,but there is no explicit "reboot: Restarting system" message in the excerpt. POWER OFF: ACPI PM reports "(supports S0 S5)" and "ACPI S3 supported with Loongson ACPI SADR extension", so S5 poweroff is advertised, but there is no explicit power-down message in the log to confirm it completed cleanly. -------------------------------------------------------------------------------- 5. DEVICE TREE OR ACPI? WHICH DRIVERS ARE USED? -------------------------------------------------------------------------------- ACPI. Evidence: - efi: ACPI 2.0=0xeceaf000 ... (EFI passes ACPI) - full ACPI table set: RSDP, XSDT, FACP, DSDT, APIC, MCFG, IVRS, IOVT, SRAT, SLIT, VIAT, PPTT, FPDT, BGRT - ACPI: Interpreter enabled - ACPI: 1 ACPI AML tables successfully acquired and loaded - ACPI: PCI Root Bridge [PCI0] - ACPI: Using LPIC for interrupt routing - pnp: PnP ACPI: found 8 devices - eMMC enumerated as loongson2-mmc PRP0001:00 / PRP0001:01 (PRP0001 = ACPI mechanism to bind DT-compatible drivers; NOT a real DT) Drivers in use (ACPI path): loongson2-mmc (via PRP0001), dwmac-loongson-pci, r8169, nvme, xhci_hcd, snd_hda_intel, pcieport, loongson-spi-pci, loongson-rtc, simpledrm. The loongson2-mmc driver is the one showing DT-property/ACPI mismatch errors and the CD-IRQ failure - expected when a DT-oriented driver is exercised via ACPI PRP0001 without full DT properties. ================================================================================ BOTTOM LINE ================================================================================ - eMMC: present and functional (HS200), 29.2G, 4 partitions + boot0/boot1. - New driver errors: loongson2-mmc (ACPI PRP0001) logs voltage fallback, "Failed to parse device node", and CD IRQ request_irq(26) -EINVAL. - No-driver PCI devices: 00:06.0 LG200 GPU, 00:06.3 VPU decoder, 00:06.4 VPU encoder (00:06.1 VGA only has simpledrm). - Serial: 4x 8250 ports registered, but console=tty1 only (no ttyS0 console). - Reboot: implied by clean second boot; poweroff (S5) advertised but not explicitly logged. - Boot method: ACPI (not DT). ================================================================================ --8323329-2086222915-1796368906=:2058542--