Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1337022rdb; Mon, 2 Oct 2023 06:45:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQlvLQDor3GWttHYlAUCv0DtpYcBKpDubMY+Nu15cf8vCD+/7OhR6fKFmwnSKgZX9l6v2y X-Received: by 2002:a05:6808:8d7:b0:3af:75b3:8ab0 with SMTP id k23-20020a05680808d700b003af75b38ab0mr9019231oij.47.1696254313381; Mon, 02 Oct 2023 06:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696254313; cv=none; d=google.com; s=arc-20160816; b=BVBpHtHLvQYXlj8FfUmvrd43fK4nQC+zgaxSKeENv0cjgX54gIlpUkIzJpxBr8Avjt QXMmgzpVxWIpRQv6zNR/JlV3auWED1iBWP2QQWzmGbnj2GFgQevfbIlKYDDLzZL/Fg+4 pGWlfRQU9qNTUv4Ms2HFgXOnFpHME8vXe62y2fhEX4gixGue/zi5N7wZb8b1zvqRqKdW yHRWraelWHnCnC8g21i1cH2jL/6lMmVHmQnGw5HDcC3htjwZz6GveLTacfg9kjLFb/t9 nHvrPvcQbMNO4/PtvOhSz1iykBedK3Fdbg8UN3kYEUPCkIhedZTNkXdXno+b8bnPsyk+ uO7g== 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:dkim-signature:dkim-signature; bh=qcPUbGA1OPBhP970rKA5RR3bhU0HBzoEh7CfM2ZP+Pw=; fh=8Zd8AgnF7mzuPz9FX5rjLGqi0V/gAA7MgSyB840Tzc8=; b=yYVQeRv8QKkybgKMCA8awfvUqw3UymapcU0s2e3yrnRAZETgVdlC8qQuQMhL/9bKd8 jRIMY30rdintGIChXOjKI+TAd6K04sjp4EH4ks34FBY6/eni7s05PkkkQcD5EbjHf4kd bUvLxfviFk4e7eCyxNHdXOoFnrVgZ75VJmyjgL5RXy+GULz44IWTPm0aXFgvlXKHZnfc ZJbrGrKZd4r+eO1D6xeVryrdRU5t1QX/Z7Bio+eCwMxt95H/jkA0zdi47QYgduyYkL8E erlJrhZ1sqtEkpuymV4O+HOnXbSWGL2XYzezvDeOyP0AXkskVwhc5xs/lTgPMAP2Rm2G kRfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=v0I03Ls8; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m9-20020a654389000000b005638355e989si26261130pgp.773.2023.10.02.06.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 06:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=v0I03Ls8; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C24AD809870C; Mon, 2 Oct 2023 01:59:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235966AbjJBI7X (ORCPT + 99 others); Mon, 2 Oct 2023 04:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235950AbjJBI7V (ORCPT ); Mon, 2 Oct 2023 04:59:21 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6F2E9; Mon, 2 Oct 2023 01:59:18 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B38C11F459; Mon, 2 Oct 2023 08:59:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1696237156; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qcPUbGA1OPBhP970rKA5RR3bhU0HBzoEh7CfM2ZP+Pw=; b=v0I03Ls8yUYfs3AcIaerQ80e6MnUB/wuZoOr+ergWAhoVegiTUhbXD2++Vnyr444VoiOsQ K7JwuedU9aqrhLk9uXsd0Sz2i8XEAV2gYnE1qm4VTl42UoOvf6sG1y4ZXwjheRrEMbSSvW Is9pBdnECCIkR4/vXFemyefhMpBSne0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1696237156; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qcPUbGA1OPBhP970rKA5RR3bhU0HBzoEh7CfM2ZP+Pw=; b=WnXC6kKTWlSx72JCw94CzdZAB7aOBIjwRqcqMUyNvQQ7gEUYmWD/vthTIJjoGL+wCdzpIz N1ON2JtlwxsIL9Cw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 33EAB13456; Mon, 2 Oct 2023 08:59:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id W8xPCGSGGmVKNQAAMHmgww (envelope-from ); Mon, 02 Oct 2023 08:59:16 +0000 Message-ID: <0e0040be-0375-4461-914d-1ea9d04ee62c@suse.de> Date: Mon, 2 Oct 2023 10:59:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] cnic,bnx2,bnx2x: use UIO_MEM_DMA_COHERENT Content-Language: en-US To: Greg Kroah-Hartman , Jerry Snitselaar Cc: Christoph Hellwig , 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 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> <2023100233-salsa-joyous-6d8c@gregkh> From: Hannes Reinecke In-Reply-To: <2023100233-salsa-joyous-6d8c@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 01:59:33 -0700 (PDT) On 10/2/23 10:46, Greg Kroah-Hartman wrote: > 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? > Guess what triggered this mail thread. Some customers did notice. Problem is that these devices were built as the network interface in some bladecenter machines, so you can't just replace them with a different Ethernet card. Cheers, Hannes