Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1626982

Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11
Date Thu, 20 Apr 2017 07:00:01 +0200
Message-ID <tycmd-4qe-3@gated-at.bofh.it> (permalink)
References <tyaDL-3Au-1@gated-at.bofh.it> <tyaNs-3Dz-1@gated-at.bofh.it> <tybq9-3PD-1@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=h+q8OPkzfWNCh49mixnAUM0i0hhqKY3b6vf27VOkQig=; b=wSAN1R9v08G1nkcAkqNIJRjcYHGxn0RQIoO+BitP5kD1p6d5sipvNzBA/Fpmj8xtYs 5Xh2cpDSFGNMqavrDsJlioXm7uRS9uzR6UaRRGBG4KFefhQc8ax1AIiWcgv8P5t/86vA 5Ao4n7zHkCqDAgRNa1pY/r/cBgu/8csCXjqoY0FVBuA4k2VNtfBJAX9l3PPD8+sO3iN4 lA5C7GAh5ufl9wPT0o/btiWV8sciQ2q57DOmFroL1bvEBEbbb3inI8wCBrXo2LBWCPqq WSpCB9vLxcqWYXLIP7Mpx9ofhZTWmi5V4tohB3EWpcr9DPAIxePhNcGJUcfPDkNf08TS CLmg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h+q8OPkzfWNCh49mixnAUM0i0hhqKY3b6vf27VOkQig=; b=qt/knT5rIA6WOo9OL4C+6XiOP+KO6tjAhen3fqQiN99Ym3RAUhBNoPWfC0DE4d/aI7 /WDp1InIgVcqNSmuHFIpibd1TChe+boxhQcn/9+o9ffGtuUn/Ge2vbv60uMZmDS+nx2C /rbiboA/Up26JF5YOzcBPTelYWmkaco8A6hndWpMhf0jAZYJn53MN76Wb721YWMbkt4K 0V898E6j3eMsWsGMWgPlxaaa20WXr4NT00cg77n4ErTVp7sWz477USlDWuouB2X+H8YO 0nzyRmNX0f2cPvqhTz5WiQXEvb2cPWu4fKGMnk6v+o/gj1+xpiR/+FpAZsWxBj3ULUfA OL/g==
X-Gm-Message-State AN3rC/5XbML67IaB+/iLcau/e+5i20SW5EnpXjDTNHkzVLAa1O+tceVd B7R37H+TH1jAZ79zobRsFX1YhMjS82O6
X-Received by 10.176.71.7 with SMTP id h7mr2921069uac.82.1492663957589; Wed, 19 Apr 2017 21:52:37 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 55
Organization linux.* mail to news gateway
X-Original-Cc Jens Axboe <axboe@kernel.dk>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Kai-Heng Feng <kai.heng.feng@canonical.com>, linux-nvme <linux-nvme@lists.infradead.org>, Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>, Keith Busch <keith.busch@intel.com>
X-Original-Date Wed, 19 Apr 2017 21:52:17 -0700
X-Original-Message-ID <CALCETrWCQh1dOkqn_g6QVXpLR8U7BjnfOtsSPZ+DCxK5hf_sHw@mail.gmail.com>
X-Original-References <cover.1492656278.git.luto@kernel.org> <20170420030959.GC23085@kernel.dk> <CALCETrWY_Wc0n24hfwj53aH-gc4xeRCuU+=O78dui9Mm7k0jEw@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1626982

Show key headers only | View raw


On Wed, Apr 19, 2017 at 8:55 PM, Andy Lutomirski <luto@kernel.org> wrote:
> On Wed, Apr 19, 2017 at 8:10 PM, Jens Axboe <axboe@kernel.dk> wrote:
>> On Wed, Apr 19 2017, Andy Lutomirski wrote:
>>> Sorry for waiting so long for this.  I was waiting for feedback from
>>> Samsung, but they haven't root-caused the issue yet, and I should
>>> have just done this from the beginning.
>>>
>>> This series makes APST more debuggable and updates the quirk list.
>>> The quirks I'm aware of are:
>>>
>>>  - Samsung 950 series SSDs in Dell XPS 15 9550 and Precision 5510
>>>    laptops (which are essentially the same laptop) can lose their
>>>    PCIe link if they're allowed to use the deepest APST state.
>>>    Samsung engineers have an affected system and are working on
>>>    it.  The same exact SSDs in other machines (even an XPS 13)
>>>    seem to work fine.
>>>
>>>  - One Toshiba device malfunctions if APST is used at all.
>>
>> You need to split this series in two, patches 1-3 can wait. For 4.11,
>> all we need to do is turn off APST on any device that potentially has
>> this problem.
>>
>>> One thing that improves my confidence that there aren't too many
>>> more problems with APST is that Ubuntu has backported APST to Zesty,
>>> so it's already gotten a bit of testing in a widely used (if very
>>> new) release.
>>
>> Honestly, I think the best path for 4.11 is to turn off APST by default,
>> make it opt-in instead. I don't share your optimism here, as I made
>> clear back from before we even merged this feature.
>>
>>
>
> I can make it so that force_apst=0 means no APST and force_apst=1 mean
> yes APST and we could try again with a quirk list for 4.12.  There's a
> decent chance that a few more weeks with Ubuntu having APST on will
> shake out all the problems fairly quickly.

Here's a more concrete and more sensible proposal:

For 4.11:

force_apst=0: Default.  APST off on all Samsung 950-like devices
regardless of what laptop and on the Toshiba device.
force_apst=1: Use APST except where known bad.  APST deepest state
disabled on Samsung 950-like devices on XPS 15 and Precision 5510.
APST off on the Toshiba device.
force_apst=2: APST fully on regardless of any quirks.

For 4.12-rc1: force_apst=0 works like force_apst=1, but we keep both
values for compatibility and in case we need to add another overly
broad quirk some day.

Would something like this make sense?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] nvme APST fixes/improvements for 4.11 Andy Lutomirski <luto@kernel.org> - 2017-04-20 05:10 +0200
  Re: [PATCH 4/5] nvme: Adjust the Samsung APST quirk Jens Axboe <axboe@kernel.dk> - 2017-04-20 05:10 +0200
    Re: [PATCH 4/5] nvme: Adjust the Samsung APST quirk Andy Lutomirski <luto@kernel.org> - 2017-04-20 06:00 +0200
      RE: [PATCH 4/5] nvme: Adjust the Samsung APST quirk Judy Brock <judy.brock@samsung.com> - 2017-04-20 06:50 +0200
  [PATCH 2/5] nvme: Display raw APST configuration via DYNAMIC_DEBUG Andy Lutomirski <luto@kernel.org> - 2017-04-20 05:10 +0200
  [PATCH 4/5] nvme: Adjust the Samsung APST quirk Andy Lutomirski <luto@kernel.org> - 2017-04-20 05:10 +0200
  [PATCH 5/5] nvme: Quirk APST off on "THNSF5256GPUK TOSHIBA" Andy Lutomirski <luto@kernel.org> - 2017-04-20 05:10 +0200
  [PATCH 1/5] nvme: Fix APST comment Andy Lutomirski <luto@kernel.org> - 2017-04-20 05:10 +0200
  [PATCH 3/5] nvme: Add nvme_core.force_apst to ignore the NO_APST quirk Andy Lutomirski <luto@kernel.org> - 2017-04-20 05:10 +0200
  Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11 Jens Axboe <axboe@kernel.dk> - 2017-04-20 05:20 +0200
    Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11 Andy Lutomirski <luto@kernel.org> - 2017-04-20 06:00 +0200
      Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11 Andy Lutomirski <luto@amacapital.net> - 2017-04-20 07:00 +0200
        Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11 Christoph Hellwig <hch@lst.de> - 2017-04-20 07:20 +0200
          Re: [PATCH 0/5] nvme APST fixes/improvements for 4.11 Andy Lutomirski <luto@kernel.org> - 2017-04-20 18:10 +0200

csiph-web