Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1409817rdb; Mon, 2 Oct 2023 08:42:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEqkVz2ZHFbx+C7IhehAf1+ZVu0ywbCCdvo3IWR11ezsO6OT/t3l2CwWZH2Tkg3VEKUQ11 X-Received: by 2002:a17:902:ec83:b0:1c7:27a1:a9e5 with SMTP id x3-20020a170902ec8300b001c727a1a9e5mr19305202plg.33.1696261338294; Mon, 02 Oct 2023 08:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696261338; cv=none; d=google.com; s=arc-20160816; b=KHRi8VBD744mRI2tQBWc17cxR+LhiBAhNcxB6gpi7yW0dqrSGUM3YvBV86MWhaGE5S SMPddL0/U3mBgYYYSzXHvqD2xBD2jjqyWoWkT0nyxejkFvDftR2j0FJGsD+BQ8qeZ3ff rD59Fz2Vx8Flr/GPsiNsmI5tczp9+IXo9q/rYUpZVXLNAdYom2kg7k1PgbqY5Nn7tsMu wFCzaNTXsanIcfe6w7XpcCVtjf2InZDDf9Ao7fdC6MsWO57B6MsZt4NUjSqGr1jKhR3Z /K9JhV5lDlFuWXXwQAgBEa3WJp22GeWlolrxKrpbFVozQ1xG1IamCHZe5D7iM258NsME wdOQ== 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=xwS1N5p4PlB2RzzpgNw+vzEHiFrBSLaF7yYN73w54k4=; fh=HEnaIORrTyUnLv4PXxsl5xVBLkDgIwIAUAyR/hlrpas=; b=y3XOwBi9gMjmVepVBgMmq13xPSRwjBXJhocNgL2ZZzpTRI/jngQBHYhXG7w6anYd0K gsWJCXhiuua1faJ8jfYafO5DO+KCyP6d8bEhtrdSbwXhhUQsDExHuCxSO/9VDHDsYyBj GROwtyeKW6qQ5TpFgoYyd7A43AYgi7PPHSjR8Ot1HYXR5yDwqAxvQLfwoLLv4xp85MNC 7jE/Nw/M5haLDfgRdMtKv0fHgJoPf6uiAjD6TtNngr/+wUoWxaZN9obdgjlBbwX5G8+S lWsBW0IFCpzqUBXx7KIdsRq52cT8JpxvWYsBQN2p+NPYheuwdk4a13CuhyVXGONh2qGL tUIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZnAklcyf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y17-20020a170902cad100b001bd9c43c896si20578483pld.287.2023.10.02.08.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 08:42:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZnAklcyf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5490780947C6; Mon, 2 Oct 2023 01:46:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235887AbjJBIqL (ORCPT + 99 others); Mon, 2 Oct 2023 04:46:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbjJBIqK (ORCPT ); Mon, 2 Oct 2023 04:46:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF75A6 for ; Mon, 2 Oct 2023 01:46:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98574C433C7; Mon, 2 Oct 2023 08:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696236367; bh=SFYczP14+YPquywIz+kLBBQBFxbQSUtX9DllX2+43Po=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZnAklcyfyFtMFaYI1giLt0UCh8h+FrWL8byoDNMu37IUBE9p1mlCYiZ/lcjBMHG+v IgL+RUFTzDEtSOiK8ciqQu3ur11ICwdlZc/pLilHmXsWFcl4LwHF5IdyyKHFaquAq3 rsiddk+eVqb55CzS6iD1w/Mz2O/djrOr10+kJ520= Date: Mon, 2 Oct 2023 10:46:05 +0200 From: Greg Kroah-Hartman To: Jerry Snitselaar Cc: Christoph Hellwig , Hannes Reinecke , Chris Leech , Rasesh Mody , Ariel Elior , Sudarsana Kalluru , Manish Chopra , Nilesh Javali , Manish Rangankar , John Meneghini , Lee Duncan , Mike Christie , Hannes Reinecke , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] cnic,bnx2,bnx2x: use UIO_MEM_DMA_COHERENT Message-ID: <2023100233-salsa-joyous-6d8c@gregkh> References: <20230929170023.1020032-1-cleech@redhat.com> <20230929170023.1020032-4-cleech@redhat.com> <2023093055-gotten-astronomy-a98b@gregkh> <2023093002-unlighted-ragged-c6e1@gregkh> <2023100114-flatware-mourner-3fed@gregkh> <7pq4ptas5wpcxd3v4p7iwvgoj7vrpta6aqfppqmuoccpk4mg5t@fwxm3apjkez3> <20231002060424.GA781@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 02 Oct 2023 01:46:23 -0700 (PDT) On Mon, Oct 02, 2023 at 12:50:21AM -0700, Jerry Snitselaar wrote: > On Mon, Oct 02, 2023 at 08:04:24AM +0200, Christoph Hellwig wrote: > > On Sun, Oct 01, 2023 at 07:22:36AM -0700, Jerry Snitselaar wrote: > > > Changes last year to the dma-mapping api to no longer allow __GFP_COMP, > > > in particular these two (from the e529d3507a93 dma-mapping pull for > > > 6.2): > > > > That's complete BS. The driver was broken since day 1 and always > > ignored the DMA API requirement to never try to grab the page from the > > dma coherent allocation because you generally speaking can't. It just > > happened to accidentally work the trivial dma coherent allocator that > > is used on x86. > > > > re-sending since gmail decided to not send plain text: > > Yes, I agree that it has been broken and misusing the API. Greg's > question was what changed though, and it was the clean up of > __GFP_COMP in dma-mapping that brought the problem in the driver to > light. > > I already said the other day that cnic has been doing this for 14 > years. I'm not blaming you or your __GFP_COMP cleanup commits, they > just uncovered that cnic was doing something wrong. My apologies if > you took it that way. As these devices aren't being made anymore, and this api is really not a good idea in the first place, why don't we just leave it broken and see if anyone notices? thanks, greg k-h