Bug 218832 - ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
Summary: ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: Intel Linux
: P3 high
Assignee: Tejun Heo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-13 04:40 UTC by doru iorgulescu
Modified: 2024-07-01 15:04 UTC (History)
4 users (show)

See Also:
Kernel Version: 6.9.0 6.10.0-rc1
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
dmesg.txt (91.61 KB, text/plain)
2024-05-19 11:34 UTC, doru iorgulescu
Details
lspci-v.txt (74.69 KB, text/plain)
2024-05-19 12:11 UTC, doru iorgulescu
Details
successful boot with libata.force=nolpm (66.74 KB, text/plain)
2024-05-22 13:25 UTC, Aarrayy
Details
Boot with LPM enabled (84.04 KB, text/plain)
2024-05-22 15:39 UTC, Aarrayy
Details
HDPARM with the patch (3.17 KB, text/plain)
2024-05-29 21:13 UTC, Aarrayy
Details
dmesg after patch (67.06 KB, text/plain)
2024-05-29 21:15 UTC, Aarrayy
Details
dmesg-amd.txt (72.33 KB, text/plain)
2024-05-30 07:12 UTC, doru iorgulescu
Details
hdparam-i.txt (584 bytes, text/plain)
2024-05-30 09:31 UTC, doru iorgulescu
Details
dmesg693.txt (68.24 KB, text/plain)
2024-05-30 11:24 UTC, doru iorgulescu
Details
hdparam-I.txt (3.07 KB, text/plain)
2024-05-31 03:05 UTC, doru iorgulescu
Details
dmesg-610-rc2.txt (71.93 KB, text/plain)
2024-05-31 14:24 UTC, doru iorgulescu
Details
dmesg694.txt (68.47 KB, text/plain)
2024-06-03 14:41 UTC, doru iorgulescu
Details
dmesg on a kernel built with latest patch submitted by Niklas (68.32 KB, text/plain)
2024-06-27 13:19 UTC, Aarrayy
Details

Description doru iorgulescu 2024-05-13 04:40:17 UTC
Linux Kernel 6.9.0
[    5.948987] ata1: SATA max UDMA/133 abar m1024@0xf7cf7800 port 0xf7cf7900 irq 24 lpm-pol 3
[    6.261674] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    6.263035] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[    6.263130] ata1.00: ATA-9: R3SL240G, O1015A, max UDMA/133
[    6.263210] ata1.00: 468862128 sectors, multi 2: LBA48 NCQ (depth 32), AA
[    6.263909] ata1.00: Features: Dev-Sleep
[    6.264555] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[    6.265413] ata1.00: configured for UDMA/133
[   10.576767] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   10.578146] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   10.579703] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   10.580535] ata1.00: configured for UDMA/133
[   13.280762] ata1.00: exception Emask 0x10 SAct 0x80e00000 SErr 0x4050000 action 0xe frozen
[   13.280905] ata1.00: irq_stat 0x00000040, connection status changed
[   13.281007] ata1: SError: { PHYRdyChg CommWake DevExch }
[   13.281105] ata1.00: failed command: READ FPDMA QUEUED
[   13.281198] ata1.00: cmd 60/00:a8:a0:7e:c3/0a:00:03:00:00/40 tag 21 ncq dma 1310720 in
[   13.281359] ata1.00: status: { DRDY }
[   13.281447] ata1.00: failed command: READ FPDMA QUEUED
[   13.281536] ata1.00: cmd 60/00:b0:a0:88:c3/0a:00:03:00:00/40 tag 22 ncq dma 1310720 in
[   13.281704] ata1.00: status: { DRDY }
[   13.281792] ata1.00: failed command: READ FPDMA QUEUED
[   13.281882] ata1.00: cmd 60/00:b8:a0:92:c3/0a:00:03:00:00/40 tag 23 ncq dma 1310720 in
[   13.282049] ata1.00: status: { DRDY }
[   13.282135] ata1.00: failed command: READ FPDMA QUEUED
[   13.282224] ata1.00: cmd 60/00:f8:a0:9c:c3/02:00:03:00:00/40 tag 31 ncq dma 262144 in
[   13.282462] ata1.00: status: { DRDY }
[   13.282581] ata1: hard resetting link
[   13.992826] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   13.994148] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   13.995627] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   13.996401] ata1.00: configured for UDMA/133
[   13.997698] ata1: EH complete
[   17.840848] ata1.00: exception Emask 0x10 SAct 0x100000 SErr 0x4050000 action 0xe frozen
[   17.840889] ata1.00: irq_stat 0x00000040, connection status changed
[   17.840905] ata1: SError: { PHYRdyChg CommWake DevExch }
[   17.840924] ata1.00: failed command: READ FPDMA QUEUED
[   17.840938] ata1.00: cmd 60/08:a0:80:40:0f/00:00:00:00:00/40 tag 20 ncq dma 4096 in
[   17.840978] ata1.00: status: { DRDY }
[   17.840997] ata1: hard resetting link
[   18.560818] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   18.562388] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   18.564146] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   18.565107] ata1.00: configured for UDMA/133
[   18.565289] ata1: EH complete
[   38.083992] ata1: limiting SATA link speed to 1.5 Gbps
[   38.816799] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   38.818499] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   38.820393] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   38.821306] ata1.00: configured for UDMA/133
[   39.972804] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   39.974427] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   39.976177] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   39.977135] ata1.00: configured for UDMA/133
[   40.952833] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   40.954502] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   40.956344] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   40.957496] ata1.00: configured for UDMA/133
[   45.704846] ata1.00: exception Emask 0x10 SAct 0x100000 SErr 0x4050000 action 0xe frozen
[   45.704879] ata1.00: irq_stat 0x00000040, connection status changed
[   45.704889] ata1: SError: { PHYRdyChg CommWake DevExch }
[   45.704902] ata1.00: failed command: READ FPDMA QUEUED
[   45.704910] ata1.00: cmd 60/20:a0:a0:5c:cf/00:00:02:00:00/40 tag 20 ncq dma 16384 in
[   45.704936] ata1.00: status: { DRDY }
[   45.704951] ata1: hard resetting link
[   46.424805] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   46.426359] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   46.428078] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   46.429489] ata1.00: configured for UDMA/133
[   46.429665] ata1: EH complete
[   47.781039] ata1.00: limiting speed to UDMA/100:PIO4
[   48.500822] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   48.502707] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   48.504965] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   48.506651] ata1.00: configured for UDMA/100
[   49.296807] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   49.298437] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   49.300233] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   49.301150] ata1.00: configured for UDMA/100
[   50.912797] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   50.914433] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   50.916357] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   50.917341] ata1.00: configured for UDMA/100
[   52.384873] ata1.00: exception Emask 0x10 SAct 0x2000 SErr 0x4050000 action 0xe frozen
[   52.384909] ata1.00: irq_stat 0x00000040, connection status changed
[   52.384923] ata1: SError: { PHYRdyChg CommWake DevExch }
[   52.384943] ata1.00: failed command: READ FPDMA QUEUED
[   52.384955] ata1.00: cmd 60/20:68:40:9b:4a/00:00:02:00:00/40 tag 13 ncq dma 16384 in
[   52.384992] ata1.00: status: { DRDY }
[   52.385013] ata1: hard resetting link
[   53.096817] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   53.098453] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   53.100247] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   53.101137] ata1.00: configured for UDMA/100
[   53.101321] ata1: EH complete
[   53.268830] ata1.00: limiting speed to UDMA/33:PIO4
[   53.980906] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   53.983287] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   53.985975] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   53.987019] ata1.00: configured for UDMA/33
[   57.384972] ata1.00: exception Emask 0x10 SAct 0x7fe07fff SErr 0x4050000 action 0xe frozen
[   57.385009] ata1.00: irq_stat 0x00000040, connection status changed
[   57.385023] ata1: SError: { PHYRdyChg CommWake DevExch }
[   57.385040] ata1.00: failed command: READ FPDMA QUEUED
[   57.385051] ata1.00: cmd 60/20:00:20:81:4a/00:00:02:00:00/40 tag 0 ncq dma 16384 in
[   57.385087] ata1.00: status: { DRDY }
[   57.385101] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385111] ata1.00: cmd 61/08:08:48:81:4e/00:00:08:00:00/40 tag 1 ncq dma 4096 out
[   57.385145] ata1.00: status: { DRDY }
[   57.385158] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385168] ata1.00: cmd 61/10:10:58:81:4e/00:00:08:00:00/40 tag 2 ncq dma 8192 out
[   57.385203] ata1.00: status: { DRDY }
[   57.385215] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385225] ata1.00: cmd 61/40:18:78:81:4e/00:00:08:00:00/40 tag 3 ncq dma 32768 out
[   57.385260] ata1.00: status: { DRDY }
[   57.385272] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385282] ata1.00: cmd 61/48:20:c0:81:4e/00:00:08:00:00/40 tag 4 ncq dma 36864 out
[   57.385317] ata1.00: status: { DRDY }
[   57.385329] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385339] ata1.00: cmd 61/38:28:18:82:4e/00:00:08:00:00/40 tag 5 ncq dma 28672 out
[   57.385373] ata1.00: status: { DRDY }
[   57.385386] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385396] ata1.00: cmd 61/08:30:58:82:4e/00:00:08:00:00/40 tag 6 ncq dma 4096 out
[   57.385431] ata1.00: status: { DRDY }
[   57.385443] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385453] ata1.00: cmd 61/68:38:68:82:4e/00:00:08:00:00/40 tag 7 ncq dma 53248 out
[   57.385488] ata1.00: status: { DRDY }
[   57.385500] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385511] ata1.00: cmd 61/50:40:d8:82:4e/00:00:08:00:00/40 tag 8 ncq dma 40960 out
[   57.385545] ata1.00: status: { DRDY }
[   57.385558] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385568] ata1.00: cmd 61/40:48:30:83:4e/00:00:08:00:00/40 tag 9 ncq dma 32768 out
[   57.385602] ata1.00: status: { DRDY }
[   57.385615] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385625] ata1.00: cmd 61/38:50:78:83:4e/00:00:08:00:00/40 tag 10 ncq dma 28672 out
[   57.385659] ata1.00: status: { DRDY }
[   57.385672] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385682] ata1.00: cmd 61/50:58:b8:83:4e/00:00:08:00:00/40 tag 11 ncq dma 40960 out
[   57.385717] ata1.00: status: { DRDY }
[   57.385729] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385739] ata1.00: cmd 61/30:60:10:84:4e/00:00:08:00:00/40 tag 12 ncq dma 24576 out
[   57.385774] ata1.00: status: { DRDY }
[   57.385787] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385797] ata1.00: cmd 61/40:68:48:84:4e/00:00:08:00:00/40 tag 13 ncq dma 32768 out
[   57.385832] ata1.00: status: { DRDY }
[   57.385844] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385854] ata1.00: cmd 61/18:70:90:84:4e/00:00:08:00:00/40 tag 14 ncq dma 12288 out
[   57.385889] ata1.00: status: { DRDY }
[   57.385902] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385912] ata1.00: cmd 61/08:a8:f0:d8:0b/00:00:07:00:00/40 tag 21 ncq dma 4096 out
[   57.385946] ata1.00: status: { DRDY }
[   57.385959] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.385969] ata1.00: cmd 61/40:b0:38:7f:4e/00:00:08:00:00/40 tag 22 ncq dma 32768 out
[   57.386003] ata1.00: status: { DRDY }
[   57.386016] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386026] ata1.00: cmd 61/28:b8:80:7f:4e/00:00:08:00:00/40 tag 23 ncq dma 20480 out
[   57.386060] ata1.00: status: { DRDY }
[   57.386073] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386083] ata1.00: cmd 61/58:c0:b0:7f:4e/00:00:08:00:00/40 tag 24 ncq dma 45056 out
[   57.386118] ata1.00: status: { DRDY }
[   57.386130] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386140] ata1.00: cmd 61/38:c8:10:80:4e/00:00:08:00:00/40 tag 25 ncq dma 28672 out
[   57.386175] ata1.00: status: { DRDY }
[   57.386187] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386197] ata1.00: cmd 61/98:d0:58:80:4e/00:00:08:00:00/40 tag 26 ncq dma 77824 out
[   57.386232] ata1.00: status: { DRDY }
[   57.386245] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386255] ata1.00: cmd 61/10:d8:f8:80:4e/00:00:08:00:00/40 tag 27 ncq dma 8192 out
[   57.386289] ata1.00: status: { DRDY }
[   57.386302] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386312] ata1.00: cmd 61/10:e0:10:81:4e/00:00:08:00:00/40 tag 28 ncq dma 8192 out
[   57.386346] ata1.00: status: { DRDY }
[   57.386359] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386369] ata1.00: cmd 61/08:e8:28:81:4e/00:00:08:00:00/40 tag 29 ncq dma 4096 out
[   57.386403] ata1.00: status: { DRDY }
[   57.386416] ata1.00: failed command: WRITE FPDMA QUEUED
[   57.386426] ata1.00: cmd 61/08:f0:38:81:4e/00:00:08:00:00/40 tag 30 ncq dma 4096 out
[   57.386460] ata1.00: status: { DRDY }
[   57.386480] ata1: hard resetting link
[   58.120844] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   58.122168] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   58.123638] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   58.124396] ata1.00: configured for UDMA/33
[   58.124794] ata1: EH complete
[   59.020797] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   59.022366] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   59.024137] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   59.025040] ata1.00: configured for UDMA/33
[   62.228771] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   62.230427] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   62.232173] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   62.233409] ata1.00: configured for UDMA/33
[   63.468749] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   63.470347] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   63.472133] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   63.473404] ata1.00: configured for UDMA/33
[   65.772765] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   65.774350] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   65.776103] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   65.777046] ata1.00: configured for UDMA/33
[   72.208830] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   72.210430] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   72.212223] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   72.213451] ata1.00: configured for UDMA/33
[   89.716987] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   89.718631] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   89.720642] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   89.723058] ata1.00: configured for UDMA/33
[   91.685163] ata1.00: exception Emask 0x10 SAct 0x6 SErr 0x4050000 action 0xe frozen
[   91.685201] ata1.00: irq_stat 0x00000040, connection status changed
[   91.685213] ata1: SError: { PHYRdyChg CommWake DevExch }
[   91.685232] ata1.00: failed command: READ FPDMA QUEUED
[   91.685244] ata1.00: cmd 60/a0:08:a0:ec:f9/00:00:02:00:00/40 tag 1 ncq dma 81920 in
[   91.685280] ata1.00: status: { DRDY }
[   91.685295] ata1.00: failed command: READ FPDMA QUEUED
[   91.685307] ata1.00: cmd 60/20:10:e0:aa:d4/00:00:02:00:00/40 tag 2 ncq dma 16384 in
[   91.685342] ata1.00: status: { DRDY }
[   91.685364] ata1: hard resetting link
[   92.416805] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   92.418166] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   92.419599] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   92.420316] ata1.00: configured for UDMA/33
[   92.420418] ata1: EH complete
[   94.596916] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   94.598618] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   94.600544] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   94.602258] ata1.00: configured for UDMA/33
[   95.632939] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   95.635249] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   95.637546] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   95.639505] ata1.00: configured for UDMA/33
[   97.680881] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   97.682586] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   97.686901] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   97.687818] ata1.00: configured for UDMA/33
[   98.181159] ata1.00: exception Emask 0x10 SAct 0x4 SErr 0x4050000 action 0xe frozen
[   98.181198] ata1.00: irq_stat 0x00000040, connection status changed
[   98.181211] ata1: SError: { PHYRdyChg CommWake DevExch }
[   98.181229] ata1.00: failed command: READ FPDMA QUEUED
[   98.181240] ata1.00: cmd 60/20:10:80:06:4a/00:00:02:00:00/40 tag 2 ncq dma 16384 in
[   98.181277] ata1.00: status: { DRDY }
[   98.181299] ata1: hard resetting link
[   98.900860] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   98.902934] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   98.906179] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[   98.907208] ata1.00: configured for UDMA/33
[   98.907325] ata1: EH complete
[  101.948798] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  101.950396] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  101.952266] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  101.953678] ata1.00: configured for UDMA/33
[  102.984807] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  102.986399] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  102.988254] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  102.989344] ata1.00: configured for UDMA/33
[  105.072827] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  105.074519] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  105.076321] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  105.077451] ata1.00: configured for UDMA/33
[  105.992797] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  105.994358] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  105.996188] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  105.997589] ata1.00: configured for UDMA/33
[  107.008798] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  107.010395] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  107.012166] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  107.013795] ata1.00: configured for UDMA/33
[  116.064784] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  116.066371] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  116.068217] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  116.069139] ata1.00: configured for UDMA/33
[  116.976811] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  116.978403] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  116.980233] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  116.981174] ata1.00: configured for UDMA/33
[  117.764805] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  117.766426] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  117.768274] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  117.769463] ata1.00: configured for UDMA/33
[  120.380818] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  120.382411] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  120.384209] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  120.385042] ata1.00: configured for UDMA/33
[  121.188829] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  121.190394] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  121.192253] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  121.193105] ata1.00: configured for UDMA/33
[  122.812802] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  122.814593] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  122.816511] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  122.817569] ata1.00: configured for UDMA/33
[  124.340808] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  124.342388] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  124.344165] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  124.345133] ata1.00: configured for UDMA/33
[  130.008798] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  130.010357] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  130.012263] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  130.013380] ata1.00: configured for UDMA/33
[  130.812773] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  130.814338] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  130.816102] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  130.817129] ata1.00: configured for UDMA/33
[  133.948768] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  133.950330] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  133.952098] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  133.953367] ata1.00: configured for UDMA/33
[  134.752787] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  134.754331] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  134.756097] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  134.757045] ata1.00: configured for UDMA/33
[  135.652816] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  135.654385] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  135.656192] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  135.657064] ata1.00: configured for UDMA/33
[  136.464808] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  136.466375] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  136.468198] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  136.469044] ata1.00: configured for UDMA/33
[  142.364794] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  142.366362] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  142.368211] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  142.369060] ata1.00: configured for UDMA/33
[  146.436805] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  146.438384] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  146.440150] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  146.441063] ata1.00: configured for UDMA/33
[  147.348749] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  147.350316] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  147.352097] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  147.353046] ata1.00: configured for UDMA/33
[  168.628775] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  168.630374] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  168.632246] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  168.633087] ata1.00: configured for UDMA/33
[  169.408808] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  169.410364] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  169.412217] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  169.413070] ata1.00: configured for UDMA/33
[  170.204802] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  170.206351] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  170.208200] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  170.209063] ata1.00: configured for UDMA/33
[  177.388746] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  177.390311] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  177.392076] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  177.392992] ata1.00: configured for UDMA/33
[  180.284741] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  180.286326] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  180.288135] ata1.00: ACPI cmd f5/00:00:00:00:00:a0(SECURITY FREEZE LOCK) filtered out
[  180.289010] ata1.00: configured for UDMA/33
Comment 2 Artem S. Tashkinov 2024-05-13 09:47:32 UTC
Please check existing Google results:

https://www.google.com/search?q=%22(SECURITY+FREEZE+LOCK)+filtered+out%22
Comment 3 doru iorgulescu 2024-05-13 10:00:02 UTC
Working with Linux Kernel 6.8.9 6.6.30 6.1.90 5.15.158 5.10.216 5.4.275 4.19.313
Comment 4 Artem S. Tashkinov 2024-05-14 07:27:22 UTC
If it's a regression please perform regression testing using:

https://docs.kernel.org/admin-guide/bug-bisect.html
Comment 5 The Linux kernel's regression tracker (Thorsten Leemhuis) 2024-05-16 09:46:59 UTC
CCing Damien, he might be interested in it and have an idea. But if not I guess we won't get any further without a bisection. Here is a alternative guide:
https://docs.kernel.org/admin-guide/verify-bugs-and-bisect-regressions.html
Comment 6 doru iorgulescu 2024-05-16 12:11:14 UTC
The problem apear also on Linux Kernel 6.10.0-rc1
Please help me to find the commit responsable
Thank You!
Comment 7 Damien Le Moal 2024-05-19 11:13:22 UTC
(In reply to doru iorgulescu from comment #6)
> The problem apear also on Linux Kernel 6.10.0-rc1
> Please help me to find the commit responsable
> Thank You!

As Artem mentioned, please try to git bisect this. Also, please better describe how you get this: is it on boot during device scan ? Is it after a resume from suspend or hybernate ? If it is the latter, please post your dmesg output after booting.

The drive is BIOS locked and seems to fail unlocking for some reason. There has been no changes around this recently. So it could be ACPI or some regression from another unrelated change. What comes to mind is recent fixes for low power mode...

What is the drive and what is the adapter ?
Comment 8 doru iorgulescu 2024-05-19 11:31:26 UTC
The drive is SSD R3SL240G, O1015A
I send atached dmesg.txt
The machine is
DMI: ASUSTeK Computer INC. 1015PEM/1015PE, BIOS 1202    04/13/2011
Comment 9 doru iorgulescu 2024-05-19 11:34:57 UTC
Created attachment 306308 [details]
dmesg.txt
Comment 10 Damien Le Moal 2024-05-19 11:47:50 UTC
(In reply to doru iorgulescu from comment #8)
> The drive is SSD R3SL240G, O1015A
> I send atached dmesg.txt
> The machine is
> DMI: ASUSTeK Computer INC. 1015PEM/1015PE, BIOS 1202    04/13/2011

What chipset is this (lspci -n) ? I need the AHCI adapter type or PCI vendor/model at least, not the entire machine. Also, for the drive, which vendor ? 

Please give precise details to help narrow this down.
Comment 11 doru iorgulescu 2024-05-19 12:11:14 UTC
Created attachment 306309 [details]
lspci-v.txt
Comment 12 doru iorgulescu 2024-05-19 12:22:32 UTC
I have atached lspci-v.txt
The SSD is
Model Family:     Silicon Motion based SSDs
Device Model:     R3SL240G
Serial Number:    E201604190080002
Firmware Version: O1015A
User Capacity:    240,057,409,536 bytes [240 GB]
Comment 13 Niklas Cassel 2024-05-21 16:09:56 UTC
Hello Doru,

So you say that v6.8 works but v6.9 does not.

There was not a lot of patches that went in to drivers/ata.

The main suspect would be that your SSD (AMD Radeon R3SL240G) has broken LPM.

As I suspect that your AHCI controller:
00:17.0 SATA controller: Intel Corporation C620 Series Chipset Family SATA Controller [AHCI mode] (rev 09) (prog-if 01 [AHCI 1.0])
should be able to handle LPM properly.

Could you see if supplying:
libata.force=nolpm

on the kernel command line solves your problem?
Comment 14 Niklas Cassel 2024-05-21 16:26:45 UTC
Could you please also separately try with:
libata.force=noncq

(without specifying libata.force=nolpm)
Comment 15 Aarrayy 2024-05-21 18:49:24 UTC
Hey Niklas, i'm currently having a similar issue as Doru reported on this thread and using libata.force=nolpm as a kernel command line fixed a similar issue for my machine, 

This is my hardware:

Motherboard = ASUS M5A78L-M/USB3

SSD = Crucial BX500 240GB running in SATA 2 due to motherboard limitations

More info about it:

Model Number:       CT240BX500SSD1
Serial Number:      1903E16E4885
Firmware Revision:  M6CR013
Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0

00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (prog-if 01 [AHCI 1.0])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 22
	NUMA node: 0
	Region 0: I/O ports at c000 [size=8]
	Region 1: I/O ports at b000 [size=4]
	Region 2: I/O ports at a000 [size=8]
	Region 3: I/O ports at 9000 [size=4]
	Region 4: I/O ports at 8000 [size=16]
	Region 5: Memory at fe9ffc00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [60] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [70] SATA HBA v1.0 InCfgSpace
	Kernel driver in use: ahci

This is what journalctl says whenever i run 6.9 with LPM enabled:

ata1.00: status: { DRDY }
I/O error, dev sda, sector 11509488 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x40d0002 action 0xe frozen
ata1.00: irq_stat 0x00000040, connection status changed
ata1: SError: { RecovComm PHYRdyChg CommWake 10B8B DevExch }
ata1.00: failed command: READ DMA
ata1.00: cmd c8/00:10:f0:9e:af/00:00:00:00:00/e0 tag 13 dma 8192 in
res 50/00:00:00:30:f2/00:00:1b:00:00/e0 Emask 0x10 (ATA bus error)

I thought that i had a bad SATA cable or port but it was not the case since 6.8 is completely fine.

I hope this extra information is helpful in any way shape or form to diagnose why its happening on certain SSDs or AHCI controllers.

Thanks in advance.
Regards
Comment 16 Aarrayy 2024-05-21 18:50:45 UTC
(In reply to Aarrayy from comment #15)
> Hey Niklas, i'm currently having a similar issue as Doru reported on this
> thread and using libata.force=nolpm as a kernel command line fixed a similar
> issue for my machine, 
> 
> This is my hardware:
> 
> Motherboard = ASUS M5A78L-M/USB3
> 
> SSD = Crucial BX500 240GB running in SATA 2 due to motherboard limitations
> 
> More info about it:
> 
> Model Number:       CT240BX500SSD1
> Serial Number:      1903E16E4885
> Firmware Revision:  M6CR013
> Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA
> Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
> 
> 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI]
> SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (prog-if 01 [AHCI 1.0])
>       Subsystem: ASUSTeK Computer Inc. Device 8389
>       Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR+ FastB2B- DisINTx-
>       Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort-
> <MAbort- >SERR- <PERR- INTx-
>       Latency: 64, Cache Line Size: 64 bytes
>       Interrupt: pin A routed to IRQ 22
>       NUMA node: 0
>       Region 0: I/O ports at c000 [size=8]
>       Region 1: I/O ports at b000 [size=4]
>       Region 2: I/O ports at a000 [size=8]
>       Region 3: I/O ports at 9000 [size=4]
>       Region 4: I/O ports at 8000 [size=16]
>       Region 5: Memory at fe9ffc00 (32-bit, non-prefetchable) [size=1K]
>       Capabilities: [60] Power Management version 2
>               Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
> PME(D0-,D1-,D2-,D3hot-,D3cold-)
>               Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>       Capabilities: [70] SATA HBA v1.0 InCfgSpace
>       Kernel driver in use: ahci
> 
> This is what journalctl says whenever i run 6.9 with LPM enabled:
> 
> ata1.00: status: { DRDY }
> I/O error, dev sda, sector 11509488 op 0x0:(READ) flags 0x80700 phys_seg 1
> prio class 0
> ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x40d0002 action 0xe frozen
> ata1.00: irq_stat 0x00000040, connection status changed
> ata1: SError: { RecovComm PHYRdyChg CommWake 10B8B DevExch }
> ata1.00: failed command: READ DMA
> ata1.00: cmd c8/00:10:f0:9e:af/00:00:00:00:00/e0 tag 13 dma 8192 in
> res 50/00:00:00:30:f2/00:00:1b:00:00/e0 Emask 0x10 (ATA bus error)
> 
> I thought that i had a bad SATA cable or port but it was not the case since
> 6.8 is completely fine.
> 
> I hope this extra information is helpful in any way shape or form to
> diagnose why its happening on certain SSDs or AHCI controllers.
> 
> Thanks in advance.
> Regards

Btw i already tried libata.force=noncq without also specifying libata.force=nolpm but this regression keeps happening, only disabling LPM helped
Comment 17 doru iorgulescu 2024-05-22 08:40:57 UTC
disabling LPM in a similar way:
https://lore.kernel.org/all/lsq.1527677561.498932115@decadent.org.uk/
Thanks,
Regards
Comment 18 Niklas Cassel 2024-05-22 10:07:33 UTC
Could you please send a dmesg of a successful boot?
Comment 19 Niklas Cassel 2024-05-22 10:09:29 UTC
Also, do you have a password protected drive?
Comment 20 doru iorgulescu 2024-05-22 10:19:23 UTC
I have atached dmesg.txt
No password protected drive
Thanks,
Regards
Comment 21 Niklas Cassel 2024-05-22 10:46:38 UTC
The dmesg that is a attached is from a non-working boot.

Could you please attach a dmesg from a working boot?
(i.e. with libata.force=nolpm specified on kernel command line.)
Comment 22 doru iorgulescu 2024-05-22 11:10:49 UTC
I don't now how to
libata.force=nolpm specified on kernel command line
I have grub2
Thank you
Regards
Comment 23 Niklas Cassel 2024-05-22 11:59:30 UTC
Could you please post the dmesg from a boot where LPM is disabled using:

"""
disabling LPM in a similar way:
https://lore.kernel.org/all/lsq.1527677561.498932115@decadent.org.uk/
Thanks,
Regards
"""

then?
Comment 24 Aarrayy 2024-05-22 12:11:58 UTC
(In reply to doru iorgulescu from comment #22)
> I don't now how to
> libata.force=nolpm specified on kernel command line
> I have grub2
> Thank you
> Regards

You'll have to edit the following file with sudo: /etc/default/grub
and then look for the line that says: GRUB_CMDLINE_LINUX_DEFAULT=
between those single or double quotes, at the end add libata.force=nolpm with an space

For example: 

GRUB_CMDLINE_LINUX_DEFAULT="sysrq_always_enabled nmi_watchdog=0 usbcore.autosuspend=-1 usbhid.mousepoll=1 amdgpu.ppfeaturemask=0xfffd3fff libata.force=nolpm"

After you'll need to regenerate your grub entries, run the following command: update-grub

Side note: Don't add any of the extra parameters that i have shown above in CMDLINE since they're only for demonstration purposes, only include libata.force=nolpm or libata.force=noncq as Nikkel suggested.
Comment 25 Aarrayy 2024-05-22 12:12:55 UTC
(In reply to Aarrayy from comment #24)
> (In reply to doru iorgulescu from comment #22)
> > I don't now how to
> > libata.force=nolpm specified on kernel command line
> > I have grub2
> > Thank you
> > Regards
> 
> You'll have to edit the following file with sudo: /etc/default/grub
> and then look for the line that says: GRUB_CMDLINE_LINUX_DEFAULT=
> between those single or double quotes, at the end add libata.force=nolpm
> with an space
> 
> For example: 
> 
> GRUB_CMDLINE_LINUX_DEFAULT="sysrq_always_enabled nmi_watchdog=0
> usbcore.autosuspend=-1 usbhid.mousepoll=1 amdgpu.ppfeaturemask=0xfffd3fff
> libata.force=nolpm"
> 
> After you'll need to regenerate your grub entries, run the following
> command: update-grub
> 
> Side note: Don't add any of the extra parameters that i have shown above in
> CMDLINE since they're only for demonstration purposes, only include
> libata.force=nolpm or libata.force=noncq as Niklas suggested.
Comment 27 Niklas Cassel 2024-05-22 13:13:56 UTC
Aarrayy, perhaps you could upload your dmesg?
Comment 28 Aarrayy 2024-05-22 13:25:30 UTC
Created attachment 306320 [details]
successful boot with libata.force=nolpm
Comment 29 doru iorgulescu 2024-05-22 14:47:19 UTC
Thank you,
I wil try
Regards
Comment 30 Niklas Cassel 2024-05-22 15:29:40 UTC
Aarrayy, could you please also upload your dmesg for the non-working case?

You seem to have 3 drives.
Is it all 3 drives that are failing with kernel v6.9?
Comment 31 Aarrayy 2024-05-22 15:38:26 UTC
I only have one drive with Linux (Crucial BX 500) and another HDD for Windows 10, three? that's weird. Just to be clear, the drive works "fine" and it manages to boot Linux fine but dmesg and journalctl get spammed by those ata errors which i showed above
Also performance seems to be affected too since on a benchmark of a job Random 4 KiB 1 queue 1 thread, transfer speeds went from 37MB/s average to 4.34MB/s
without LPM, performance is as per usual and normal on this SSD
I attached a new dmesg with LPM enabled on 6.9
Comment 32 Aarrayy 2024-05-22 15:39:00 UTC
Created attachment 306322 [details]
Boot with LPM enabled
Comment 33 doru iorgulescu 2024-05-22 15:41:05 UTC
I have one drive SSD
Is failing with linux kernel 6.9.0 6.10.0-rc1
Regards
Comment 34 Niklas Cassel 2024-05-29 20:14:09 UTC
Aarrayy, does:

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 4f35aab81a0a..78f08d52f364 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4138,6 +4138,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 
        /* Crucial BX100 SSD 500GB has broken LPM support */
        { "CT500BX100SSD1",             NULL,   ATA_HORKAGE_NOLPM },
+       { "CT240BX500SSD1",             NULL,   ATA_HORKAGE_NOLPM },
 
        /* 512GB MX100 with MU01 firmware has both queued TRIM and LPM issues */
        { "Crucial_CT512MX100*",        "MU01", ATA_HORKAGE_NO_NCQ_TRIM |

Solve the problem for you?

Also, could you please upload the output of:
$ sudo hdparm -I /dev/sdX

For all your SATA devices.
Comment 35 Niklas Cassel 2024-05-29 20:20:21 UTC
doru, does:

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 4f35aab81a0a..897af12c432f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4155,6 +4155,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
                                                ATA_HORKAGE_ZERO_AFTER_TRIM |
                                                ATA_HORKAGE_NOLPM },
 
+       /* AMD Radeon devices with broken LPM support */
+       { "R3SL240G",           NULL,   ATA_HORKAGE_NOLPM },
+
        /* These specific Samsung models/firmware-revs do not handle LPM well */
        { "SAMSUNG MZMPC128HBFU-000MV", "CXM14M1Q", ATA_HORKAGE_NOLPM },
        { "SAMSUNG SSD PM830 mSATA *",  "CXM13D1Q", ATA_HORKAGE_NOLPM },

Solve the problem for you?

Also, could you please upload the output of:
$ sudo hdparm -I /dev/sdX

For all your SATA devices.
Comment 36 Niklas Cassel 2024-05-29 20:33:01 UTC
Aarrayy: Yes, I meant two drives, not three, sorry.

There should be read I/Os issued to the drive on boot up, to perform the
partition scanning, regardless if you have Windows or Linux on the drive.

[    1.162789] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.163569] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.166455] ata1.00: ATA-9: CT240BX500SSD1,  M6CR013, max UDMA/133
[    1.168006] ata1.00: 468862128 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    1.168810] ata3.00: ATA-8: ST320LM001 HN-M320MBB, 2AR10002, max UDMA/133
[    1.170226] ata3.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 32), AA

We can see that the ST320LM001 works fine (no command timeouts in dmesg),
but the CT240BX500SSD1, which is connected to the same AHCI controller
gives a bunch or errors. This makes me suspect broken LPM implementation
for the CT240BX500SSD1 drive.
Comment 37 Aarrayy 2024-05-29 20:41:11 UTC
Yep, maybe it was broken since a long time ago but somehow the ATA driver didn't catch it until the new changes in 6.9.

I'll compile a kernel with that patch but i assume its going to work since its disabling LPM. Also in a few minutes i'll also upload hdparm's output
Comment 38 Aarrayy 2024-05-29 21:13:44 UTC
Created attachment 306371 [details]
HDPARM with the patch
Comment 39 Aarrayy 2024-05-29 21:15:36 UTC
Created attachment 306372 [details]
dmesg after patch
Comment 40 Aarrayy 2024-05-29 21:17:32 UTC
Thanks Niklas, it's now fixed and i no longer need to have libata.force=nolpm as a kernel command line, i highly appreciate your attention and willing to check this bug!

Regards
Comment 41 doru iorgulescu 2024-05-30 07:11:23 UTC
Thank You,
The patch
 diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 4f35aab81a0a..897af12c432f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4155,6 +4155,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
                                                ATA_HORKAGE_ZERO_AFTER_TRIM |
                                                ATA_HORKAGE_NOLPM },
 
+       /* AMD Radeon devices with broken LPM support */
+       { "R3SL240G",           NULL,   ATA_HORKAGE_NOLPM },
+
        /* These specific Samsung models/firmware-revs do not handle LPM well */
        { "SAMSUNG MZMPC128HBFU-000MV", "CXM14M1Q", ATA_HORKAGE_NOLPM },
        { "SAMSUNG SSD PM830 mSATA *",  "CXM13D1Q", ATA_HORKAGE_NOLPM },
Is OK !!
Must be ported to Linux Kernel 6.9 and 6.10
Linux version 6.10.0-rc2 (root@mirela4) (gcc (Debian 13.2.0-25) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #1 SMP PREEMPT_DYNAMIC Thu May 30 09:09:47 EEST 2024
I have apached dmesg-amd.txt
Thank You
Regards
Comment 42 doru iorgulescu 2024-05-30 07:12:14 UTC
Created attachment 306375 [details]
dmesg-amd.txt
Comment 43 Niklas Cassel 2024-05-30 08:27:21 UTC
Thank you guys!

doru, could you please upload the output of:

$ sudo hdparm -I /dev/sda

?
Comment 44 doru iorgulescu 2024-05-30 09:31:57 UTC
Created attachment 306377 [details]
hdparam-i.txt
Comment 45 doru iorgulescu 2024-05-30 09:33:05 UTC
I have submited hdparam-i.txt
Thank you
Regards
Comment 46 doru iorgulescu 2024-05-30 11:23:37 UTC
I have compiled linux kernel 6.9.3 with the patch aplied

Linux version 6.9.3 (root@mirela4) (gcc (Debian 13.2.0-25) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #1 SMP PREEMPT_DYNAMIC Thu May 30 13:37:47 EEST 2024

Is OK !
Wen you send the patch to linux kernel 6.9 and 6.10 ?
I atach dmesg693.txt
Thank You
Regards
Comment 47 doru iorgulescu 2024-05-30 11:24:34 UTC
Created attachment 306378 [details]
dmesg693.txt
Comment 48 Niklas Cassel 2024-05-30 21:21:14 UTC
Doru, I intend to send it out today or tomorrow.

Doru, could you please send the output of
hdparm -I /dev/sda

that is -I
(capital i)

The output you uploaded was from: hdparm -i
which unfortunately is not of much help.
Comment 49 doru iorgulescu 2024-05-31 03:05:22 UTC
Created attachment 306382 [details]
hdparam-I.txt
Comment 50 doru iorgulescu 2024-05-31 03:07:07 UTC
I have upload hdparam-I.txt
Linux Kernel 6.10.0-rc1
Thank You
Regards
Comment 51 doru iorgulescu 2024-05-31 13:45:59 UTC
Applied, thanks!

[1/1] ata: libata-core: Add ATA_HORKAGE_NOLPM for AMD Radeon S3 SSD
      commit: 473880369304cfd4445720cdd8bae4c6f1e16e60

Best regards,
Thank You
Regards
Comment 52 doru iorgulescu 2024-05-31 14:24:16 UTC
Created attachment 306390 [details]
dmesg-610-rc2.txt
Comment 53 doru iorgulescu 2024-05-31 14:26:10 UTC
I have upload dmesg-6.10-rc2.txt
For linux kernel 6.10.0-rc2 with patch applied
Is OK!
Thank You
Regards
Comment 54 doru iorgulescu 2024-06-01 06:28:27 UTC
Today the patch is not aplied to linux kernel 6.10.0-rc1 and 6.9.3
Applied, thanks!

[1/1] ata: libata-core: Add ATA_HORKAGE_NOLPM for AMD Radeon S3 SSD
      commit: 473880369304cfd4445720cdd8bae4c6f1e16e60

Best regards,
Thank You
Regards
??????????????????????
Comment 55 doru iorgulescu 2024-06-02 07:03:18 UTC
Today the patch is not aplied to linux kernel 6.10.0-rc1 and 6.9.3
Applied, thanks!

[1/1] ata: libata-core: Add ATA_HORKAGE_NOLPM for AMD Radeon S3 SSD
      commit: 473880369304cfd4445720cdd8bae4c6f1e16e60

Best regards,
Thank You
Regards
??????????????????????
Please aplied these patch
Thank You
Regards
Comment 56 doru iorgulescu 2024-06-03 05:34:21 UTC
Today the patch was aplied on linux kernel 6.10.0-rc2 !
Thank You
Regards
Comment 57 doru iorgulescu 2024-06-03 14:37:25 UTC
I have compiled linux kernel 6.9.4
-rw-rw-r-- 1 mirela mirela 237597394 Jun  3 15:44 linux-stable-rc-linux-6.9.y.tar.gz
 Greg Kroah-Hartman not applied the patch
+       /* AMD Radeon devices with broken LPM support */
+       { "R3SL240G",           NULL,   ATA_HORKAGE_NOLPM },
+
I have applied manual
I have upload dmesg694.txt
Thank You
Regards
Comment 58 doru iorgulescu 2024-06-03 14:41:38 UTC
Created attachment 306405 [details]
dmesg694.txt
Comment 59 Alessandro Maggio 2024-06-24 11:47:09 UTC
Hello, I've a similar issue. Performance dropped with Kernel > 6.9.0. I've a CT1000BX500SSD1, downgrading to 6.8.9 fix the stability
Comment 60 Niklas Cassel 2024-06-24 12:01:20 UTC
(In reply to Tkd-Alex from comment #59)
> Hello, I've a similar issue. Performance dropped with Kernel > 6.9.0. I've a
> CT1000BX500SSD1, downgrading to 6.8.9 fix the stability

Hello Tkd-Alex,

If you have a CT1000BX500SSD1, just like Aarrayy, then that should be fixed in:
https://github.com/torvalds/linux/commit/86aaa7e9d641c1ad1035ed2df88b8d0b48c86b30

Which was first included in 6.10-rc2. Could you please try 6.10-rc5 and see if your
issue is still there?

This fix has also been backported to 6.9.xx and was first included in 6.9.6
so you should be able to try that as well.
Comment 61 Alessandro Maggio 2024-06-24 12:11:03 UTC
Thank you. I will try the 6.10-rc5.

Please accept my apologies, but the commit https://github.com/torvalds/linux/commit/86aaa7e9d641c1ad1035ed2df88b8d0b48c86b30 does involve only the 240 gb version? Probably should be disable the LPM for all variants? CT*BX500SSD1. Mine serial is different that the one liste on libata-core.c
Comment 62 Niklas Cassel 2024-06-24 12:43:48 UTC
Aha, the serial was not exactly the same.

If you know how to compile your own kernel, perhaps you could try the following patch:
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index e1bf8a19b3c8..1040b684595e 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4137,6 +4137,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
        { "PIONEER BD-RW   BDR-205",    NULL,   ATA_HORKAGE_NOLPM },
 
        /* Crucial devices with broken LPM support */
+       { "CT1000BX500SSD1",            NULL,   ATA_HORKAGE_NOLPM },
        { "CT500BX100SSD1",             NULL,   ATA_HORKAGE_NOLPM },
        { "CT240BX500SSD1",             NULL,   ATA_HORKAGE_NOLPM },
 


While I like your suggestion, it would potentially enable the quirk on some Crucial
drive models that might actually have working LPM.
(Even though I agree that most likely all Crucial devices will have the problem.)

We would need both:
"CT*BX500SSD1"
and
"CT*BX100SSD1"

or

"CT*BX*SSD1"

Damien, thoughts?
Comment 63 Niklas Cassel 2024-06-24 13:31:14 UTC
I send a patch:
https://lore.kernel.org/linux-ide/20240624132729.3001688-2-cassel@kernel.org/T/#u

Testing would be appreciated.
Comment 64 Aarrayy 2024-06-27 13:19:33 UTC
Created attachment 306505 [details]
dmesg on a kernel built with latest patch submitted by Niklas

I can confirm that your patch still works as intended Niklas!, in the log there is a message with: "ata1.00: LPM support broken, forcing max_power"
Comment 65 Niklas Cassel 2024-06-27 14:19:10 UTC
Aarrayy, thank you for the feedback. It is appreciated :)
I didn't want to re-introduce problems for you.

Note You need to log in before you can comment on or make changes to this bug.