Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36955439rwd; Tue, 11 Jul 2023 07:45:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlEtRAol2rQ5kWBW6wBqJ1JVyNqahGKQiERhLUSpmH2VkTssO3kJLe2HFXALqFd1o8JkJdOu X-Received: by 2002:a05:6512:1187:b0:4fa:b380:4c03 with SMTP id g7-20020a056512118700b004fab3804c03mr12971745lfr.56.1689086699797; Tue, 11 Jul 2023 07:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689086699; cv=none; d=google.com; s=arc-20160816; b=fuWHMxUUlqpH63Egae5QILW8Ka5IONbXbJAlYRlK5yH999/dH5sGNZ2v9G7E3pvFYn BFc8CxsoSn+QVpYWirPvz++SnImSWE8dTL4k+DC6WMzhaQGn/hLcV74LFdxFtWp3YHh/ m11aKUCClAPidBTZN97ep4x/VvdygAoEn4cBMkDltJghDAjNWFnFQq68yGwptTJk6fqe XxRugYJnjMFIqisfyuCOiGq3Gp3H+GHRSjONv5/Q+SH6aimJbPxZoxQZUauH3n1zSBIl M2mPvZfvmCeViZ2/FE0mwd4eiZzALPgl0tYAcUGr2gRi7YHTUmJ+JnnjQDMLNyjwABX6 //AA== 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=WTZZyWSh5B06JRMOZ2wOYOUO2V2w0QiKG05HA/MJRFw=; fh=kstqncENx8rCvgyO296QvC+mIbIO9g0Fz6bNsJ8aWZc=; b=Rf679NjxlfBjPmrqUc9LopG+hNWsDO3htQPOyYmwII0L6bTY/RstEn8DMluT/MB8U8 XoFs7z/nql7+HaTje0oyD1g4D1EuR6Wq38BAUJdoWUU3Ugneo/u2z6lvn1g39AzMb4zY v/mbjOMd709l1rf/S0XVtHpZ6t/Ui4U8Uz8/ILTaBrNtjAWqZvfiT1ufNMpMev1IuvcW /3tptQOADLouSalqTiclF+1Dve/5wyAegIV76UhEVWLwlfKQfmMKSSXorwjTm2kSVTgH KzP1SERfV58VYj+Jxp8R6azEIDmYCsGCfXy9dxr3qUbMMJNAdHaEmCDQDwYyMSHloniE m1+A== 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 d21-20020aa7d695000000b0051de2d71329si2261061edr.597.2023.07.11.07.44.34; Tue, 11 Jul 2023 07:44:59 -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 S231549AbjGKOj7 (ORCPT + 99 others); Tue, 11 Jul 2023 10:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbjGKOj6 (ORCPT ); Tue, 11 Jul 2023 10:39:58 -0400 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 795FA10C7 for ; Tue, 11 Jul 2023 07:39:56 -0700 (PDT) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-313f5f5c6c3so1506812f8f.1 for ; Tue, 11 Jul 2023 07:39:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689086395; x=1691678395; 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=WTZZyWSh5B06JRMOZ2wOYOUO2V2w0QiKG05HA/MJRFw=; b=POeJFMs7nnZfBadPp202GgPiofyrY5YwD1kbGxDRRCtGJwZ+T3f6L/q3X9HwJuVdsH gsqUTtSXNV/0BHIL24/n1IeX0Mqd0le0y6JmjkRzN8a869ycelPLxjGoMitkVodTYK+F 9IGjMKue0APeKBKF1m25u9puzHW7z8Jw28msrVhMm36tHCa19qPTqhleYDf4mcOJsaAD ycdTRVZ6rWOcSE0QMMDo0TWliQPY/EEjXczcDEc+pI49SlYdkuWSzQCvdGBvH5yKLFCb zZpdIJcIc4ckqBDnkXi/iSfrMDqMqifqnj0VoG9gA1dDRtFbyFo2F5wqaDlitahmWfgx Dwgw== X-Gm-Message-State: ABy/qLZJ3rezn/mBTneXf4x1dPNXjmITIkw1y/hfBw33k7wq6OuT3sM1 mYrLe8qFgH97pnUkDW2Ww7I= X-Received: by 2002:a5d:4c85:0:b0:314:1d7f:9e9 with SMTP id z5-20020a5d4c85000000b003141d7f09e9mr15798184wrs.0.1689086394648; Tue, 11 Jul 2023 07:39:54 -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 o6-20020a5d4a86000000b0030e5bd253aasm2413031wrq.39.2023.07.11.07.39.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 07:39:54 -0700 (PDT) Message-ID: <9e91ba36-0a4f-4613-e45c-7919205d8704@grimberg.me> Date: Tue, 11 Jul 2023 17:39:51 +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: Greg KH Cc: Christoph Hellwig , Linux regressions mailing list , Pankaj Raghav , Keith Busch , 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?= , Linus Torvalds References: <6f333133-2cc4-406a-d6c2-642ac6ccabca@leemhuis.info> <462e0e1e-98ea-0f3c-4aaa-8d44f0a8e664@leemhuis.info> <20230711120609.GB27050@lst.de> <23017407-83eb-8fb0-5d91-2c7c4ae02544@grimberg.me> <2023071135-opt-choosing-51dd@gregkh> From: Sagi Grimberg In-Reply-To: <2023071135-opt-choosing-51dd@gregkh> 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 >>>> Well, that "They keep pumping out more and more devices with the same >>>> breakage" and the "new device" comment from Pankaj below bear the >>>> question: should we stop trying to play "whack a mole" with all those >>>> quirk entries and handle devices with duplicate ids just like Windows does? >>> >>> 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. >>> >>> And all this has been working really well with the good old enterprise >>> SSDs, it's just that the cheap consumer devices keep fucking it up. >>> >>> If we'd take it away now we'd break existing users, which puts us between >>> a rock and a hard place. >> >> Maybe the compromise would be to add a modparam that tells the driver >> to ignore it altogether (like allow_bogus_identifiers) that would >> default to false. Then people can just workaround the problem instead >> of having the back-and-fourth with the vendor? >> > > Module parameters do not work on a per-device basis, sorry. This isn't > the 1990's anymore, please do not attempt to add new ones :) Don't get me wrong, I don't like adding this. But the source of this is that there are simply too many breakages of non-compliant consumer drives out there that maybe a compromise would be "globally relax compliance check in this specific area" as a workaround. Right now each time this issue is seen in the wild, the only resolution is either the vendor fixing it, or the driver adds a quirk, which is positive and exactly what we want. But more and more users complain, and there is no immediate workaround.