You are not logged in.

#1 2023-07-07 03:06:01

winslowsem
Member
Registered: 2023-07-07
Posts: 29

Suspend cause disk to be remounted as Read-only

Host: HP ZBook Power 15.6 inch G10 A M
Kernel: 6.1.28-hardened1-1-hardened

When `` systemd-sleep suspend `` is executed, the currect file transaction will be interrupted which leads to IO erro, causing the ext4.fs considering the file system to be corrupted and remount the disk as read-only, which essentially break the suspend function.

I find it hard to save logs cause the error happens with the disk being remounted as read-only, which disabled journal logging, but the log would be something like:
IO error: Lost async page write, remount as read only

Downgrading and upgrading the kernel doesn't help, or I haven't find the right version

My laptop use LVM on LUKS with two nvme disks, one served as the root and another served as /home

My current kernel parameters:
pti=on page_alloc.shuffle=1 BOOT_IMAGE=/vmlinuz-linux-hardened root=/dev/mapper/rootvg-root rw loglevel=7 pcie_aspm=off lsm=landlock,lockdown,yama,integrity,selinux,bpf iommu=soft amdgpu.vm_update_mode=0 acpi.ec_no_wakeup=1 radeon.si_support=0 amdgpu.si_support=1 amdgpu.cik_support=0 amd_iommu=off mem_encrypt=on amdgpu.noretry=1 amdgpu.gpu_recovery=2 amdgpu.freesync_video=1 mem_sleep_default=s2idle nvme_core.default_ps_max_latency_us=0 acpiphp.disable=1 nvme.acpioff=1 cryptdevice=/dev/nvme1n1p5:rootvg

I've tried all the workarounds on the arch wiki and have tried all different combinations of amd_iommu and iommu, but none of them addressed the issue
I have SELinux enabled and I'm sure this is not a SELinux problem, as the problem also occur when SELinux is in Disabled status


I use Arch on LVM on LUKS with SELinux and Secure Boot btw

Offline

#2 2023-07-07 03:08:17

winslowsem
Member
Registered: 2023-07-07
Posts: 29

Re: Suspend cause disk to be remounted as Read-only

And I'm sure that those amdgpu paramaters is not the cause - I need them to prevent the whole system freezing and the suspend problem also occurs without those parameters


I use Arch on LVM on LUKS with SELinux and Secure Boot btw

Offline

#3 2023-07-07 03:09:44

winslowsem
Member
Registered: 2023-07-07
Posts: 29

Re: Suspend cause disk to be remounted as Read-only

I've given up on hibernation and hybrid-sleep since my swap is encrypted, mem_sleep_default = s2idle / shallow / deep doesn't solve the issue.


I use Arch on LVM on LUKS with SELinux and Secure Boot btw

Offline

#4 2023-07-08 16:32:06

winslowsem
Member
Registered: 2023-07-07
Posts: 29

Re: Suspend cause disk to be remounted as Read-only

I've being testing different combinations of SuspendState, SuspendMode and iommu, but I haven't find a way to get both of the disks work: one of them always fail with suspend


I use Arch on LVM on LUKS with SELinux and Secure Boot btw

Offline

#5 2023-07-09 08:24:54

winslowsem
Member
Registered: 2023-07-07
Posts: 29

Re: Suspend cause disk to be remounted as Read-only

OK, as far as I'm concerned, this is an upstream kernel bug that occurs specifically on AMD devices with two NVMe SSD disks....  and It haven't get fixed in the latest kernel
Alright, I'll just wait for the upstream to patch this bug


I use Arch on LVM on LUKS with SELinux and Secure Boot btw

Offline

Board footer

Powered by FluxBB