Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37138794rwd; Tue, 11 Jul 2023 09:56:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9uWqoQ2s1BGf5lKWfzsmTBtldU5WMAyERf6aUsjY0MNzOTo8rF7jQo/nR+FSqN4YEuJ6y X-Received: by 2002:a05:6358:6f10:b0:133:835:8e03 with SMTP id r16-20020a0563586f1000b0013308358e03mr10007116rwn.16.1689094586886; Tue, 11 Jul 2023 09:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689094586; cv=none; d=google.com; s=arc-20160816; b=q5tE1nNBjX7QqRRJLr7aqcP+myFvOFMkbyrwbB9Ehpl+af7VTjIdYnHEnQqKVl16XF mXgY3oe+Ex0nZDHpryttC0jez5GN1pPa0SH8BzyZQT53dYzsjdmmlUWioLArFpJM+6NY 4LLB4i++fTGTNwHJEFGJGq5DDnjkcS9wXtChZXMtWoBmWdUc6iw+pfv0BJk6nU1FLLTH STSEqtFDRw3qCWDC1mXY0r+F9Rgn1zkka7nCrX3mhZqMoGCE45/q6rBftMjponSTip2g lew/jrc1Ql71IO+fbVWuyv94+9o2qcH4JpsygSwPchxY6Om8I3aJ4ADK0c6nqw3moAs4 eJkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=U2CJtNA/0mITyVD5x12gejKNioPrhHv1tiOXdLtkt0Q=; fh=C6KksE/bEvnjM76LPDTD3TFadluznYt3cdSBVwlrp5s=; b=ffuYPRbvLRFNw8tMhDJk7P+KLcdutEIL8SeROmBxTuf82UX3rRKkJJxGt7NXq0e36T B7e6nL+Qsw5CRJyhbC7zcVj1QkEepNA4x67sl7AkUfD/jlJj9HAs8HJnbCvlNHhs0d7N Z9Vi/VnkOAqeOieL2QN/0En37CceI5qaDVlH93xDf+mGSsbv6YXwvvMHxrBkCZDoLAzU GfkDJ9krcnUCCJLMaTISdUxA9YHvkmHAYBPbSEzVxX48cxvCtqGLSdIKPneb2mpi4E3W IOzhvRjpGoyZjn30ZYgaBqyJdyBzvWjvvjap4XC550CLnIIATCuyPBHZbZz0AbUxVgtu SUfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=B91IiqS0; 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 v185-20020a6389c2000000b0053ef0ac79c8si1657060pgd.263.2023.07.11.09.56.13; Tue, 11 Jul 2023 09:56:26 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=B91IiqS0; 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 S229655AbjGKQsX (ORCPT + 99 others); Tue, 11 Jul 2023 12:48:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbjGKQrv (ORCPT ); Tue, 11 Jul 2023 12:47:51 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42E6E1997 for ; Tue, 11 Jul 2023 09:47:20 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b698937f85so97543281fa.2 for ; Tue, 11 Jul 2023 09:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1689094038; x=1691686038; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=U2CJtNA/0mITyVD5x12gejKNioPrhHv1tiOXdLtkt0Q=; b=B91IiqS0yBY17d0YOqmYOy0+i0PLZOGSTRs+jHU5f5/gALkqM6fypyaFLlAKCBu0n7 1GH/D2VcfG6qY71PYudEVp+MPqmg5Inlu8o6jjZoK+mCyGSAOujouLAJgcmAHpMiZMeH Ai+6hmmuyL70bwuTy+bXvKBWj1w8p0mL6OBY0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689094038; x=1691686038; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U2CJtNA/0mITyVD5x12gejKNioPrhHv1tiOXdLtkt0Q=; b=kmBP96n2mGzhj8eG9y1EkV8B5wJY5Dd0Q0bdMb9LlTeXud+B5+0XxUVNmHHIw3GsgS otvztCgkiuAH1JUaqvKGNrtrodRB6chgUF13BK/WbH5ChwTi7r1+KBBd1S/llQAVZ+Pn XDfEczmaW5Kw++8QhWQeCPlE8FerMrRu9IQnWxSooQRALe6UUOgrRJs461iRfJ9dVOWE i/K5Wq27ihELdIoyqHe0w9NysdjhVKhXkyVVeagU+/prIn1V1QCKsibkhHVwwykE+gG1 AukaTg6CWUvv7dtJRlF30xb1pWIEdUTpPjUPo4+VxwjVjUhG/iuOlOLQ3Wh8axl3djFy 9atQ== X-Gm-Message-State: ABy/qLYvtpREb42eiTfx4enIgx/n+KUwP1Mvx7YP61zdCpZ4dA5FQ0Ww dyVZdUqh/jihMB3OtLWnSytqvGg+dLHsWuV6CtSj2p4Y X-Received: by 2002:a2e:8007:0:b0:2b3:3e19:a047 with SMTP id j7-20020a2e8007000000b002b33e19a047mr13558136ljg.6.1689094038475; Tue, 11 Jul 2023 09:47:18 -0700 (PDT) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com. [209.85.208.46]) by smtp.gmail.com with ESMTPSA id d8-20020a170906370800b009929ab17be0sm1342357ejc.162.2023.07.11.09.47.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 09:47:18 -0700 (PDT) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-51d95aed33aso7257263a12.3 for ; Tue, 11 Jul 2023 09:47:18 -0700 (PDT) X-Received: by 2002:aa7:d052:0:b0:51e:2a57:1d93 with SMTP id n18-20020aa7d052000000b0051e2a571d93mr13616464edo.16.1689094037813; Tue, 11 Jul 2023 09:47:17 -0700 (PDT) MIME-Version: 1.0 References: <6f333133-2cc4-406a-d6c2-642ac6ccabca@leemhuis.info> <462e0e1e-98ea-0f3c-4aaa-8d44f0a8e664@leemhuis.info> <20230711120609.GB27050@lst.de> In-Reply-To: <20230711120609.GB27050@lst.de> From: Linus Torvalds Date: Tue, 11 Jul 2023 09:47:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Fwd: Need NVME QUIRK BOGUS for SAMSUNG MZ1WV480HCGL-000MV (Samsung SM-953 Datacenter SSD) To: Christoph Hellwig Cc: Linux regressions mailing list , Pankaj Raghav , Keith Busch , Bagas Sanjaya , Jens Axboe , Sagi Grimberg , "Clemens S." , Martin Belanger , Chaitanya Kulkarni , John Meneghini , Hannes Reinecke , Linux Kernel Mailing List , Linux NVMe , Kanchan Joshi , Javier Gonzalez , =?UTF-8?B?67CV7KeE7ZmY?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Tue, 11 Jul 2023 at 05:06, Christoph Hellwig wrote: > > As far as I can tell Windows completely ignores the IDs. Which, looking > back, I'd love to be able to do as well, but they are already used > by udev for the /dev/disk/by-id/ links. Those are usually not used > on desktop systems, as they use the file system labels and UUIDs, but > that doesn't work for non-file system uses. The thing is, the nvme code seems to actively do completely stuipid things in this area. > And all this has been working really well with the good old enterprise > SSDs, it's just that the cheap consumer devices keep f*cking it up. Christoph, deal with reality, not with what you think things should look like. Anybody who expected unique ID's is frankly completely incompetent. People should have *known* not to do this. "Those Who Do Not Learn History Are Doomed To Repeat It" - Santayana and we have NEVER EVER seen devices with reliably unique IDs. Really. We've had these uuid's before (ask Greg about USB devices one day, and that was *recent*). We've always known that vendors will fill in a fixed value, and somebody still decided to make this a correctness issue? Christoph, don't blame vendors. Somebody did indeed f*ck up. But it was you. > If we'd take it away now we'd break existing users, which puts us between > a rock and a hard place. Well, here's a suggestion: stop making it worse. 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. Then expecting people TO WAIT FOR A NEW KERNEL VERSION when you noticed something wrong? What an absolute crock. So stop blaming anybody else. I think the code should *default* to "unreliable uuid", and then if you're sure it's actually ok, then you use it. Then some rare enterprise user with multipathing - who is going to be very very careful about which device to use anyway - can use the "approved list". Or "Oh, I noticed a non-unique UUID, let me generate one for you based on physical location". But this "my disk doesn't work in v6.0 and later because some clown added a duplicate check that shouldn't be there" is not a good thing to then try to make excuses for. Linus