lkml.org 
[lkml]   [2023]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Fwd: Need NVME QUIRK BOGUS for SAMSUNG MZ1WV480HCGL-000MV (Samsung SM-953 Datacenter SSD)
    On Tue, Jul 11, 2023 at 09:47:00AM -0700, Linus Torvalds wrote:
    > On Tue, 11 Jul 2023 at 05:06, Christoph Hellwig <hch@lst.de> wrote:
    > For example, we have this completely unacceptable garbage:
    >
    > ret = nvme_global_check_duplicate_ids(ctrl->subsys, &info->ids);
    > if (ret) {
    > dev_err(ctrl->device,
    > "globally duplicate IDs for nsid %d\n", info->nsid);
    > nvme_print_device_info(ctrl);
    > return ret;
    > }
    >
    > iow, the code even checks for and *notices* that there are duplicate
    > IDs, and what does it do? It then errors out.

    This check came from a recent half-baked spec feature called "Dispersed
    Namespaces" that caused breakage and data corruption when used in Linux.
    Rather than attempt to support that mostly vendor specific feature, the
    driver attempted to fence that off as unmaintainable. This check wasn't
    aimed at enforcing "correctness", but it certainly found a lot of that
    as collatoral damage. Let's see if we can find a better way to detect
    the difference with a sane fallback as you suggest.

    \
     
     \ /
      Last update: 2023-07-11 19:22    [W:3.914 / U:0.388 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site