Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1092436rdb; Wed, 6 Dec 2023 08:22:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhNjBofj533DHSqqPHY3ifJ4ydPAxBQNdvJu2Hj95lzfcNLx9cR1uqWHgW9r4fkf7ZPkg/ X-Received: by 2002:a17:90b:3d86:b0:286:6cc1:781d with SMTP id pq6-20020a17090b3d8600b002866cc1781dmr1036096pjb.96.1701879728119; Wed, 06 Dec 2023 08:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701879728; cv=none; d=google.com; s=arc-20160816; b=emVWxcD6K095IkJ13rpa/+blCPDXX1EHtvYeAGHoxi21TIP1X4O1186SMwORmZad/t epcMrNP6sdrNTA6ilua7r5CK+slxx428CNV8Tvz+5BVHR2eSr51Jdand/DcCmMlhUpQp z16WCsVfW7Th4Qg013miGS7uaIqt6YEkZZCj6pKiOnS6UF1egruh0kY61fG1nevBE6cz wTAEs26BFvNuwLQGYh6z73QVmFaMw9F4GqePQHuRLWS8ioRRfOos2LvH/FZUNixnsNtx RGlqxORhC+nMemBK6Qngb2pyt5KEcCg0WYXKuR7Zo1O4GZmHqJh2GFnslulyTx2hZlS3 VFUA== 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; bh=shN9rsHSHNNPx8qZcrTVMmOsNSRQlZ8G+dyJrf7SN6E=; fh=I/QjdaVW0g5Q25oP/fnUba3nHuOV+HN9v6injaMYPLQ=; b=srIWobu6QfqYL5UtkERA7i7gfipbefYwtBOqqg840n6mIoruYUjQ1HwQnlZt8scRvh npOLTU5B3qoI+w7Oslt7IKeCroH4dpPxXURaeEiYTpw1ZR5SS/Seh3h+q/hoZpHlEiYh kxqwUfGNcYd1XsfxF8F0B6jTjwZ+LpxAeP8c198M9YeyucZVsQ11xQ5abgRsfOsjdSJY aBv6VI+X8AlUBaFVFGU4FWUYAkko5gJtvjWGTJ2tQaqtm/X0FvOnw+47RNaOttyzmhSu jmSLdqrmuSX8FyhhxUaCn39o9UkKD4twVbWkyi4DXI/INAkwydBGBIeDYJNILOxP6W43 tp2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id fz12-20020a17090b024c00b00286c80ac075si72241pjb.177.2023.12.06.08.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 08:22:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 673B5807E468; Wed, 6 Dec 2023 08:22:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379261AbjLFQVs (ORCPT + 99 others); Wed, 6 Dec 2023 11:21:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379171AbjLFQVp (ORCPT ); Wed, 6 Dec 2023 11:21:45 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 4B52AD4E for ; Wed, 6 Dec 2023 08:21:50 -0800 (PST) Received: (qmail 460384 invoked by uid 1000); 6 Dec 2023 11:21:50 -0500 Date: Wed, 6 Dec 2023 11:21:50 -0500 From: Alan Stern To: Ferry Toth Cc: Catalin Marinas , Christoph Hellwig , Hamza Mahfooz , Dan Williams , Marek Szyprowski , Andrew , Andy Shevchenko , Thorsten Leemhuis , iommu@lists.linux.dev, Kernel development list , USB mailing list , Robin Murphy , Will Deacon Subject: Re: Bug in add_dma_entry()'s debugging code Message-ID: References: <20231128133702.GA9917@lst.de> <76e8def2-ff45-47d3-91ab-96876ea84079@gmail.com> <5425cf42-0f49-41b5-b26d-1e099d5bdcc2@elsinga.info> <5093ce37-047e-4aa8-a9e8-2978da9d734a@rowland.harvard.edu> <1e4df825-08fa-40cf-a565-9c0d285c9b73@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e4df825-08fa-40cf-a565-9c0d285c9b73@gmail.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 08:22:05 -0800 (PST) On Wed, Dec 06, 2023 at 05:12:40PM +0100, Ferry Toth wrote: > Hi > > On 05-12-2023 19:28, Alan Stern wrote: > > In the long run, it may turn out that trying to detect memory usage > > patterns that could cause problems for architectures other than the one > > currently running is not workable. Certainly it is a bad idea to have a > > Maybe. But while debugging code on your platform it is a good thing to get > warnings for potential issues on other platforms. Oh, absolutely! It's definitely a good thing. I'm just saying that doing it may not be practical -- there may be too many false positives (as in this bug report) and false negatives. > In this case we (I) got misled by the warning message itself. That should be > easy enough to improve. I don't think so. Issuing incorrect warnings that should be ignored is a very bad idea, no matter what the wording is. After seeing a few messages like that, people learn to expect them -- and then they ignore the valid warnings along with the incorrect ones. Alan Stern