Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37969976rwd; Wed, 12 Jul 2023 00:50:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWhwX8ZNe0P4S3AJGXusIueBK67IF7RRlOgHqHuCSi5Md1l1H147d+oodLnXXLUI6qslM6 X-Received: by 2002:a17:906:7a59:b0:993:eddd:6df9 with SMTP id i25-20020a1709067a5900b00993eddd6df9mr15202215ejo.2.1689148230521; Wed, 12 Jul 2023 00:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689148230; cv=none; d=google.com; s=arc-20160816; b=b7Dff9DEtmsELaL5cXmmyv8Pp/lp2jJmTkNfP3i64JcEGB2oBi5Ez8yUgYKW4hIhZo 1uG9CoU7gXV/NlOB1El54auErvBiCH7zaSjsjlyp8T+/GthbCwpfdxWscw2QdosIfM79 x0wRApwwPd5RP3lCg9zY2orGgMFbv6tjQcR3CpPCwziIcvXk50+KaMuF9zPWFYwC/8tc ilEfj9dhQbNL2xbb1PPOWCwbw/6uAgMDG9p3fRg2YKujyDamPcRKvtEUpwBP06lEsp4X DXNDGUDSI/2YTQ7Tcly9ETWQPVO699FwGWGKB8kVcbbyjgSYQro/IIIK+/yVNS6osv4r iZng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=oChKme24SZPOA92hTi9VYNZ4RCh0CFOD0OdnxXjwR/I=; fh=/OGvKIqwOh8DSRGZE687BjEgQAJ9Mr4S10B/wQEjaSM=; b=N4pQ3ioqNBYQJ+hU3VtHj9N/vkqkdwkxvsBxkQHWzOXmmaFesuXgeVRK0Qs+Q7WIXo qf9jhKFjVKSt9lZWmzhlF7aMwEv6TCbIMTME3e363hhdpAwBLZobsQ8RfRrTW9RnIaLd lyY4nh7xhlxLlijMVbMXYT1bHSv6BGMOZdAHpLYLdYKhXpff2N45KyaTNH+ZtCvMbCi8 QcMBUQrTM/nBWaXC1z93Q+otukZBOKOyFHEi+A+rYi/AahR1mboMWmpnvc9HbllNqSxQ Cq7ynnzJ9y0o+UdtKTIKikNIrw1SiWCvwK/H/T4i/KezBpMAjFKgQu6Lr2Dj7PxOirWK vKtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id us12-20020a170906bfcc00b00992ee70a0afsi3635119ejb.12.2023.07.12.00.50.06; Wed, 12 Jul 2023 00:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231452AbjGLHjW (ORCPT + 99 others); Wed, 12 Jul 2023 03:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232073AbjGLHjE (ORCPT ); Wed, 12 Jul 2023 03:39:04 -0400 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0B219BE for ; Wed, 12 Jul 2023 00:38:45 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3159adb7cb5so732897f8f.0 for ; Wed, 12 Jul 2023 00:38:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689147524; x=1691739524; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oChKme24SZPOA92hTi9VYNZ4RCh0CFOD0OdnxXjwR/I=; b=IjvTPP0bs/cfGsUiAqdR+/jGEZKAdusmhMNed/WwAL5TIxsd0QV5ObIujZ7DNGD+xa 7XpaBPyy90aKmZL4BpuhHL+8PvJnJgwVJsX3z/TGvJRn+nmgTpEJmFejIg7KAfjYBc3c gpoi3j+rGOypJgzV1PjJ1GlwlutzmbEku+3kR7coJge54D7xlUJlnyURkP/FpwOFbB9s epTOneTQ58UXJx18p3pw7HAwyVzXroRaZigHjKyBpS/9cxvHPk1DLpupxWwvQDqz0Tv8 q5i7KC7dJ3z7UgPGjXhiYj2IWalA8hpc0TbsUMZhbfw9Sabr+6HTLiopwMtaPkOgxxtu KekA== X-Gm-Message-State: ABy/qLbgfanzS3c1DxnzBvStfVsrAXweAA1LfB/W5H81N6kHP6+jyeOj UUJwMeP1h9lQhOdds2OFDnQ= X-Received: by 2002:a5d:4c85:0:b0:314:1d7f:9e9 with SMTP id z5-20020a5d4c85000000b003141d7f09e9mr17797032wrs.0.1689147523663; Wed, 12 Jul 2023 00:38:43 -0700 (PDT) Received: from [192.168.64.192] (bzq-219-42-90.isdn.bezeqint.net. [62.219.42.90]) by smtp.gmail.com with ESMTPSA id f17-20020adffcd1000000b003140fff4f75sm4260000wrs.17.2023.07.12.00.38.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jul 2023 00:38:43 -0700 (PDT) Message-ID: Date: Wed, 12 Jul 2023 10:38:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Fwd: Need NVME QUIRK BOGUS for SAMSUNG MZ1WV480HCGL-000MV (Samsung SM-953 Datacenter SSD) Content-Language: en-US To: Keith Busch , Linus Torvalds Cc: Christoph Hellwig , Linux regressions mailing list , Pankaj Raghav , Bagas Sanjaya , Jens Axboe , "Clemens S." , Martin Belanger , Chaitanya Kulkarni , John Meneghini , Hannes Reinecke , Linux Kernel Mailing List , Linux NVMe , Kanchan Joshi , Javier Gonzalez , =?UTF-8?B?67CV7KeE7ZmY?= References: <6f333133-2cc4-406a-d6c2-642ac6ccabca@leemhuis.info> <462e0e1e-98ea-0f3c-4aaa-8d44f0a8e664@leemhuis.info> <20230711120609.GB27050@lst.de> From: Sagi Grimberg In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> 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. Perhaps we could fallback to what we do in wwid_show()? "nvme.%04x-%*phN-%*phN-%08x\n", subsys->vendor_id, serial_len, subsys->serial, model_len, subsys->model, head->ns_id)