ata: libata-core: Add ATA_HORKAGE_NOLPM for all Crucial BX SSD1 models
Subsystems (2)
Niklas Cassel
maintainerPATCH 1/1 ata: libata-core: Add ATA_HORKAGE_NOLPM for all Crucial BX SSD1 models
We got another report that CT1000BX500SSD1 does not work with LPM.
If you look in libata-core.c, we have six different Crucial devices that are marked with ATA_HORKAGE_NOLPM. This model would have been the seventh. (This quirk is used on Crucial models starting with both CT* and Crucial_CT*)
It is obvious that this vendor does not have a great history of supporting LPM properly, therefore, add the ATA_HORKAGE_NOLPM quirk for all Crucial BX SSD1 models.
--- drivers/ata/libata-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/ata/libata-core.c +1 -2
@@ -4137,8 +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 */ - { "CT500BX100SSD1", NULL, ATA_HORKAGE_NOLPM }, - { "CT240BX500SSD1", NULL, ATA_HORKAGE_NOLPM }, + { "CT*0BX*00SSD1", NULL, ATA_HORKAGE_NOLPM },/* 512GB MX100 with MU01 firmware has both queued TRIM and LPM issues */ { "Crucial_CT512MX100*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
Signature · 1 line
2.45.2
Quoted 7 lines · Niklas Cassel
We got another report that CT1000BX500SSD1 does not work with LPM.
If you look in
libata-core.c, we have six different Crucial devices that are marked withATA_HORKAGE_NOLPM. This model would have been the seventh. (This quirk is used on Crucial models starting with both CT* and Crucial_CT*)
Quoted 7 lines
It is obvious that this vendor does not have a great history of supporting LPM properly, therefore, add the
ATA_HORKAGE_NOLPMquirk for all Crucial BX SSD1 models.Fixes 7627a0edef54 ("ata: ahci: Drop low power policy board type")Reported-by Tkd-Alex <[email protected]>
We need a real full name here, not a user name... So if Alex is not willing to send his full name, please remove this.
Other than that, looks good. That was strike 3 for this series of SSDs, so I agree that taking the big hammer and disabling LPM for all of them is the right thing to do. If the device vendor wants to help with this, we can refine this later.
Quoted 20 lines
Signed-off-by Niklas Cassel <[email protected]>--- drivers/ata/libata-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/ata/libata-core.c +1
-2@@ -4137,8 +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 */ - { "CT500BX100SSD1", NULL, ATA_HORKAGE_NOLPM }, - { "CT240BX500SSD1", NULL, ATA_HORKAGE_NOLPM }, + { "CT*0BX*00SSD1", NULL, ATA_HORKAGE_NOLPM },/* 512GB MX100 with MU01 firmware has both queued TRIM and LPM issues */ { "Crucial_CT512MX100*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
Signature · 2 lines
Damien Le Moal Western Digital Research
A message that is not in the archive (sent off-list or not yet received): CAOHHr1_3rigY3vM03uVkfpvbmNbvcPbxYyKBdktXkKsQBnS_8Q@mail.gmail.com
Niklas Cassel
maintainerQuoted 3 lines · Alessandro Maggio
Hello guys, I've updated my full name on bugzilla.kernel.org, thank you for the patch.
There's anything else that I can do?
If you know how to compile your own kernel, it would be very appreciated if you could test that the patch actually solves your problem.
Kind regards,
Niklas
A message that is not in the archive (sent off-list or not yet received): CAOHHr1-Yg5cGOm_45oybMja8c+6g50YMEQURP8JD+ww1=VgqJw@mail.gmail.com
Niklas Cassel
maintainerQuoted 2 lines · Alessandro Maggio
Nope sorry, I don't know how to build and/or how to apply the patch. If you have a tutorial to share will be awesome
Sure!
You will need some packages installed in order to build the kernel, so start off by installing the packages listed here:
https://docs.kernel.org/admin-guide/quickly-build-trimmed-linux.html#install-build-requirements
### then these are the steps:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $ cd linux $ git checkout v6.10-rc5 $ cp /boot/config-$(uname -r) .config $ make olddefconfig
### if using distro with dnf
$ sudo dnf install b4 ### if using distro with apt $ sudo apt install b4
### apply the patch from the mailing list:
$ b4 shazam https://lore.kernel.org/linux-ide/[email protected]/
### do a git show to verify that the patch has been applied correctly:
$ git show -v
$ make -j$(nproc) $ sudo make modules_install $ sudo make install
### if your distro is using grubby, you can check if the kernel will boot the ### newly installed kernel by default:
$ sudo grubby --default-kernel
### it should show something like:/boot/vmlinuz-6.10-rc5+
### reboot
$ sudo reboot
### if your distro is not using grubby, make sure to select the ### newly built kernel version in the grub menu at boot
### verify that you have booted the newly built kernel version:
$ cat /proc/version
### it should show something like:
Linux version 6.10-rc5+ (nks) (gcc (GCC) 14.1.1 20240607 (Red Hat 14.1.1-5), GNU ld version 2.41-37.fc40) #1 SMP PREEMPT_DYNAMIC Wed Jun 24 13:37:00 UTC 2024
Kind regards,
Niklas
Niklas Cassel
maintainerQuoted 12 lines · Damien Le Moal
Quoted 11 lines · Niklas Cassel
We got another report that CT1000BX500SSD1 does not work with LPM.
If you look in
libata-core.c, we have six different Crucial devices that are marked withATA_HORKAGE_NOLPM. This model would have been the seventh. (This quirk is used on Crucial models starting with both CT* and Crucial_CT*)It is obvious that this vendor does not have a great history of supporting LPM properly, therefore, add the
ATA_HORKAGE_NOLPMquirk for all Crucial BX SSD1 models.
Quoted 6 lines
Quoted 3 lines
Fixes 7627a0edef54 ("ata: ahci: Drop low power policy board type")Reported-by Tkd-Alex <[email protected]>We need a real full name here, not a user name... So if Alex is not willing to send his full name, please remove this.
I disagree.
The Signed-off-by tag needs a real name, but if you take a dig through the git log, you will see that the Reported-by tag is not always a real name.
E.g. the benevolent dictator for life used a non-real name for Reported-by here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6022f210461fef67e6e676fd8544ca02d1bcfa7a
Anyway, now when we have a real name, I will send a V2.
Kind regards,
Niklas