Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1234672rdb; Mon, 2 Oct 2023 03:36:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElhMnbKlRhXvmysoc4NoldNcXjqBBXqEbTghbjZesd/Neofcou4BBOgvRmhSbrpi40d0ve X-Received: by 2002:a05:6a20:918d:b0:15d:d3b3:1843 with SMTP id v13-20020a056a20918d00b0015dd3b31843mr13467649pzd.3.1696242993051; Mon, 02 Oct 2023 03:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696242993; cv=none; d=google.com; s=arc-20160816; b=Yae/QfJmt/iFk5KVwMFIBkS46IPx6GJH/2uHKS4cnBFdE1hwlTCj8iRc1ksw51ICjM 7G11BJGeudJFoY/eXRqDQkEiQCGbchYHyCTqm7pv9x9t/L99g/45QG/uag4EhRwYeMuY 5tIIFFabT6jkzomjB8mmmyttI8gCp6ulyAqyy15VqulDlNr0bXp8j96m5f1XwMxflWSa yJ+VkwuykYqHikLoDebiV8zKgr5Me7Hz4a9pe3zG/x4vStUdwPCo/oG0+qWxHZbVYIdS cOCTJATTXqUU5fSQ+GX6dVKHAWHRNAUzMFzTxmbdORYZDnV91PD96LwBXugifJ0XHx7i jqLw== 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=L5fJ5s4tSJ75JUyYMT3IWTY1CcZbtcp06il4dgPzNKo=; fh=8JesNphXjwfKLdrAtRe4sbHO5yAd30jCqeYmfZQ0OkM=; b=SOEFnXgDwDa9MNpr83QwE6X/xFRrqbM+mh5tFBp/IiSayY6TC8guKytYEn53+uds2a lDYTlJJHqhY2Ckns8ARUrpCVbKTNZxoDgdE3DvsR5gr+ok2pkrDI7mRx98iXc0c1HWgp zWC6kD7iiUh712W8KmfJ0F7p7lq4xOlkIycZxmcHQj1rFVJw/mWKfqtgQFHnd9UxdbI9 Ger68v53Jx5FWvJQnl4vbYEb6X6wE2DZECIlszM82UHxIGvSztOyKOQL/HgPokpmW2vE fanmK0MDDYGmfs2DxORjYQ6urTvYP3gMsCFoVI9u5JUy9Hnb7R6kOBcWgjwfDG6s20uW D7vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gGdL8YYs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j2-20020a63e742000000b00584ca259597si15406655pgk.538.2023.10.02.03.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 03:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gGdL8YYs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CD9C98070649; Mon, 2 Oct 2023 00:51:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235773AbjJBHvS (ORCPT + 99 others); Mon, 2 Oct 2023 03:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjJBHvR (ORCPT ); Mon, 2 Oct 2023 03:51:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920E8C9 for ; Mon, 2 Oct 2023 00:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696233029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L5fJ5s4tSJ75JUyYMT3IWTY1CcZbtcp06il4dgPzNKo=; b=gGdL8YYsOGjOfc2o3Jyisk4qJpL7PM32LBi4/aYCKNaFtB9JLhXehwX8vDAF0MXcvdZE/m LVU+ohgDbK1lnot2kGaUpY2ONaZUC1U1vcAHu/4lKiI3ObQpbFDaZohflxDiqWKz5l2rcq TFcciADtxg7y9YdiUS1ywi3qY6mr4UY= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-581--tsNFju0NPqPdIVzNhoEZQ-1; Mon, 02 Oct 2023 03:50:23 -0400 X-MC-Unique: -tsNFju0NPqPdIVzNhoEZQ-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-63d0c38e986so224545946d6.1 for ; Mon, 02 Oct 2023 00:50:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696233023; x=1696837823; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=L5fJ5s4tSJ75JUyYMT3IWTY1CcZbtcp06il4dgPzNKo=; b=eJY5F0KJAWoOjEB4HdPSDJ0hA9GOsp3JEVZA8C3H474fKrjhYGwaFGS3qZUMlSH+G/ R0qKb0qvD5ICiU/r11ezJuKUWVSOZBpTBJMmHhKvAjgjmjBOwmCYc46/i8pivrm7Vdrg DM/5samdx8utvKOuGZIuQ/JO7w9td8KXZzW/6KfgP2VZUF/HWNJVuQ8fL52OIdRl9IOH T0HrfF06KYSZ/IuN5pM4ryvpbCF14NIqc7bhGDgUOBRRdwd/bGu3+UctFSouF4PFAHcm sWKdxo2Db8dzKWOn1SCjBbQniRx31eVL9qqaUobJDxPEir9ReM4kdKwseRt8crfWP18Z PTcA== X-Gm-Message-State: AOJu0YwdrlGWc8MGj51GolwL+6KeuSsIor4ylDQ1CoSlo5zSmipmgIac nq8COBbtmBXy6LAOdYupLVSqqUiRS5kBPYAtGf52+CCgqlLAFstZgdLCphRIbI5aJZtWYWFSjkp Js8vkaaYrAq+O3S7gtClIdNIK X-Received: by 2002:a0c:8d07:0:b0:655:8a4b:a3fd with SMTP id r7-20020a0c8d07000000b006558a4ba3fdmr7491364qvb.63.1696233023416; Mon, 02 Oct 2023 00:50:23 -0700 (PDT) X-Received: by 2002:a0c:8d07:0:b0:655:8a4b:a3fd with SMTP id r7-20020a0c8d07000000b006558a4ba3fdmr7491357qvb.63.1696233023100; Mon, 02 Oct 2023 00:50:23 -0700 (PDT) Received: from localhost (ip98-179-76-75.ph.ph.cox.net. [98.179.76.75]) by smtp.gmail.com with ESMTPSA id r13-20020a0cb28d000000b0064f4e0b2089sm5527376qve.33.2023.10.02.00.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 00:50:22 -0700 (PDT) Date: Mon, 2 Oct 2023 00:50:21 -0700 From: Jerry Snitselaar To: Christoph Hellwig Cc: Greg Kroah-Hartman , 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: 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: <20231002060424.GA781@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 00:51:25 -0700 (PDT) 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. Regards, Jerry