Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37198298rwd; Tue, 11 Jul 2023 10:42:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlFURHsQV5brfdirUyUtMEAUiP+IGbgZ1xTRNscM45ds/ipN9XyPriPhP8LZ2jYOrod1Axe6 X-Received: by 2002:a17:906:20dd:b0:993:ec93:a5ef with SMTP id c29-20020a17090620dd00b00993ec93a5efmr10151672ejc.47.1689097357846; Tue, 11 Jul 2023 10:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689097357; cv=none; d=google.com; s=arc-20160816; b=VvngDQTPmvCq07FKiX7mEcJF3aiAESrnxvsQLfRaes6vx1qRXBfJ9lLFOXTaR/a0y/ KO/hFsbAMetCnZPrml2dluL+ce7Pk1483JtNtdU6Xv0FyjYrwqWSyDSQjfqT9+iuNLgf C6AdZ0r9d+Js/5MAtsJOHFxja51Z5Jfr4AWfKwEvn2gYcWr9Fb408o/ORBFzgY6R7TeD 5y8Ygu018jSrM0uEbdpoC7p5Gr0SYf2f3bqo69J3X2JoQ5bOQkUN/11hFhZa5bMapIu7 BN/uK2uIXynmxtk4MCmyXXeKyKYFZ+qMh4M3mQBnbDdeW+/3N2LFTtsscpzn9K0RdwE2 jDKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aI3Ui101NxXRv3Hbo0Nk8IavmZUMj4JekCjivkN5htM=; fh=o5uLWNXBzRGF47+p0hExg0HKEOLn8BtJJsVKN2J5efw=; b=VuTAepJCkAzvxoc+Tlu5MX4x9TwK9SacwaRv5WY7WQT1E0FtODagBRfYyKlmob/zok gINWXtlUgMAtSt9KTmgFDwczunlHL48y+00umjIRvNOqEuhox2c8fEwJbd0EpjKiQ/Q2 lPGDlK306OaC2lcKrhSPDgmpCfwFu8PkP1LyNNJLo2pAjJt11Ct1afr1/fU5sDk/FOg5 notJnXcgQUFvodPQcHDyvLTLfAtthh3KBK+IkRLSXqy78ZruRjTG718oJFdyA86FbJJ0 pGPWCt/8MHIXyf0ayr3KkMgdFvXyUR532tRllhmg3/Fyzl7zatDDwO4CzwXNHpt5DDRB f9kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QLFN6GiF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot41-20020a170906cce900b0099270bd1b0csi2442941ejb.188.2023.07.11.10.42.13; Tue, 11 Jul 2023 10:42:37 -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=@kernel.org header.s=k20201202 header.b=QLFN6GiF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232869AbjGKRV7 (ORCPT + 99 others); Tue, 11 Jul 2023 13:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233015AbjGKRVl (ORCPT ); Tue, 11 Jul 2023 13:21:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1B76268B for ; Tue, 11 Jul 2023 10:21:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF73F61592 for ; Tue, 11 Jul 2023 17:21:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16E61C433C8; Tue, 11 Jul 2023 17:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689096068; bh=D9NhEWLQ+8T9pjVANP9yzpBRkQDSj1Txy7/I4fmLuC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QLFN6GiFIF2oAhds3PLA6zV44YXggdZxwAeEVlcqsKqWBHuPqaV5HW9K/0Dkuz8gE 0HUN1+ZGbbcWIsLs+2jrzjZ8QjkUM8BtbdDEfRlHRwQ8fPmkuMUW27GnQ5X5AVuqmN zmAg0Jf3+YhzrlVe8MMNe9QKFgdkEHb/umFJohA8s1w1ccSCqNPigVitG9PhIumFvW UbVDZGoGByXpwryx/EvfRJI4WoDov13LYhLvXqmPhzC+mTlyJCAPICiei7qFF5xLb7 7n7iTgz7BD249Yj1Jg+TsSMYYznL+67fzI2qiSD6+ZGB6O/dD3tVu3mX4huGmIK+lQ HpunQ6cFV9eFQ== Date: Tue, 11 Jul 2023 11:21:04 -0600 From: Keith Busch To: Linus Torvalds Cc: Christoph Hellwig , Linux regressions mailing list , Pankaj Raghav , 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?= Subject: Re: Fwd: Need NVME QUIRK BOGUS for SAMSUNG MZ1WV480HCGL-000MV (Samsung SM-953 Datacenter SSD) Message-ID: References: <6f333133-2cc4-406a-d6c2-642ac6ccabca@leemhuis.info> <462e0e1e-98ea-0f3c-4aaa-8d44f0a8e664@leemhuis.info> <20230711120609.GB27050@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Jul 11, 2023 at 09:47:00AM -0700, Linus Torvalds wrote: > On Tue, 11 Jul 2023 at 05:06, Christoph Hellwig 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.