Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is ASPT disabled for SM951/PM951 upstream? #26

Open
davidgfnet opened this issue May 6, 2017 · 8 comments
Open

Is ASPT disabled for SM951/PM951 upstream? #26

davidgfnet opened this issue May 6, 2017 · 8 comments

Comments

@davidgfnet
Copy link

Does the kernel 4.11 and onwards have the default quirk to disable low power states for SM951/PM951?
Does this quirk disable ALL power savings or just some? I do have that HDD and never had any probem with the HDD using your patches.

@damige
Copy link
Owner

damige commented May 6, 2017

My understanding is: deepest sleep has been disabled on samsung nvme drives.
And toshiba drives have APST disabled completely

Source: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1678184/comments/43

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1678184/comments/44

@davidgfnet
Copy link
Author

Ok I see. But on 4.10 with the APST patch the deepest sleep is NOT disabled right?

@damige
Copy link
Owner

damige commented May 7, 2017

Correct, it should unconditionally enable it for nvme devices

@davidgfnet
Copy link
Author

I see. So two more questions, please:

  • Do you have any problems with the lowest sleep level? Cause I've never had :D
  • Why they decided to go that direction? Maybe it's just a batch of drives with bad firmware. In that case, can the quirk be enabled/disabled through /sys or something similar? Or maybe a kernel arg? I dont wanna updatre to 4.11 just because of that. Either that or I will create a rollback patch for 4.11 and apply it in my copr builds

many thanks!

@damige
Copy link
Owner

damige commented May 9, 2017

  1. I have had some issues a while back, but they were quite rare. Since running the new bios for my xps13 9350 i have not seen it happen anymore. (fingers crossed)

  2. From my understanding they are working with dell/lenovo to get the problems fixed. Until it is, they have put quirks in place to make the kernel stable. I am not aware of any overrides on the quirk. If you find something it would be nice to know!

@davidgfnet
Copy link
Author

davidgfnet commented May 9, 2017 via email

@davidgfnet
Copy link
Author

Just took a look at 4.11, the patch doesnt affect XPS 9350:

static unsigned long check_dell_samsung_bug(struct pci_dev *pdev)
{
        if (pdev->vendor == 0x144d && pdev->device == 0xa802) {
                /*
                 * Several Samsung devices seem to drop off the PCIe bus
                 * randomly when APST is on and uses the deepest sleep state.
                 * This has been observed on a Samsung "SM951 NVMe SAMSUNG
                 * 256GB", a "PM951 NVMe SAMSUNG 512GB", and a "Samsung SSD
                 * 950 PRO 256GB", but it seems to be restricted to two Dell
                 * laptops.
                 */
                if (dmi_match(DMI_SYS_VENDOR, "Dell Inc.") &&
                    (dmi_match(DMI_PRODUCT_NAME, "XPS 15 9550") ||
                     dmi_match(DMI_PRODUCT_NAME, "Precision 5510")))
                        return NVME_QUIRK_NO_DEEPEST_PS;
        }

        return 0;
}

Also the quirk you describe only affects Toshiba:

static const struct nvme_core_quirk_entry core_quirks[] = {
        {
                /*
                 * This Toshiba device seems to die using any APST states.  See:
                 * https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1678184/comments/11
                 */
                .vid = 0x1179,
                .mn = "THNSF5256GPUK TOSHIBA",
                .quirks = NVME_QUIRK_NO_APST,
        }
};

So I conclude 4.11 should be allright for us. Will try to install it and see how it works.

@tlvince
Copy link

tlvince commented May 22, 2017

Yeah, currently it's only disabled on specific Dell laptops: torvalds/linux@ff5350a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants