SG2042 SATA (DMA?) issues
Michael Orlitzky <[email protected]> Sun, 31 May 2026 00:32:46 -0400
| Newsgroups | dev.linux.lists.sophgo |
|---|---|
| Message-ID | <ahu57vcS0oOFmCI9@mertle> |
Has anyone tried the recent SG2042 firmware and DMA coherence patches with the onboard SATA? I am currently in the process of learning an important lesson and wish I weren't. After a recent update, any ext4 filesystem that I put on a SATA drive quickly becomes corrupt. For example, EXT4-fs (sda1): mounted filesystem 54f42dce-97ef-4b4d-8a92-dab5d72a527b r/w with ordered data mode. Quota mode: disabled. EXT4-fs error (device sda1): ext4_validate_block_bitmap:423: comm ext4lazyinit: bg 103: bad block bitmap checksum EXT4-fs error (device sda1): ext4_validate_block_bitmap:423: comm ext4lazyinit: bg 255: bad block bitmap checksum EXT4-fs error (device sda1): ext4_validate_block_bitmap:423: comm ext4lazyinit: bg 350: bad block bitmap checksum EXT4-fs error (device sda1): ext4_validate_block_bitmap:423: comm ext4lazyinit: bg 886: bad block bitmap checksum ... Here's a different error, from a different drive: EXT4-fs (sdb1): ext4_check_descriptors: Block bitmap for group 109 overlaps superblock EXT4-fs (sdb1): group descriptors corrupted! These are two new drives, fresh out of the box. Running fsck doesn't help -- the corruption returns almost immediately. Similarly after a reformat. I am testing with linux-next-20260529, and the following patches from the mailing list. OpenSBI, zsbl, EDK2, and fip.bin are all up-to-date. commit fe7d4d1c81361d02c8156c3989b8b07edebf96bf Author: Vivian Wang <[email protected]> Date: Mon Mar 9 19:09:38 2026 +0800 riscv: mm: Define DIRECT_MAP_PHYSMEM_END commit 8e12c1f0ee16bd901df098d5133a2041a3f5383a Author: Guo Ren (Alibaba DAMO Academy) <[email protected]> Date: Tue Apr 21 10:31:40 2026 -0400 riscv: errata: Add ERRATA_THEAD_WRITE_ONCE fixup commit d2c0c75176d2c220b7c13ae1dc2ca029d99f42fe Author: Inochi Amaoto <[email protected]> Date: Tue Apr 7 07:26:55 2026 +0800 riscv: dts: sophgo: sg2042: use hex for CPU unit address commit f582c404b9e034efa5891db6a5a0751a7488659c Author: Han Gao <[email protected]> Date: Wed Apr 1 01:56:58 2026 +0800 PCI: Add quirk to disable PCIe port services on Sophgo SG2042 commit 6b2339e1faf20f8e819f729fd0b8b94a0169e6d2 Author: Han Gao <[email protected]> Date: Wed Apr 1 01:56:57 2026 +0800 PCI: Add per-device flag to disable native PCIe port services commit 7e9fc0eb8ecdc96d31af68920b55f1885683ec88 Author: Icenowy Zheng <[email protected]> Date: Wed Apr 8 00:01:43 2026 +0800 riscv: dts: sophgo: reduce SG2042 MSI count to 16