Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2661765rdb; Mon, 5 Feb 2024 13:34:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJzZ9+gDqyU5EVNkfSPWSJu8GnyIIOsJEjliXQ4MPC+c9409XihvRawkvXGISvXM0/QSyB X-Received: by 2002:a17:906:80c3:b0:a37:531c:2332 with SMTP id a3-20020a17090680c300b00a37531c2332mr743249ejx.4.1707168867872; Mon, 05 Feb 2024 13:34:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707168867; cv=pass; d=google.com; s=arc-20160816; b=04hvJKzeRBkhHr0sa0TO5F0d44qiOCyU8z9dHzaXIzt10ZANP5uSyEyoCd/jB2xGFZ 6BLVQdWPjKa8/pqXKcVZ/ohu+My+tYLLZCwsljq7BJmYdcn+I0FLt1UnbrTUsF7p3Gpf dwBK0c573msTl+gLfssfUd3L3c3N7Bh+CPfeKeODL8JfiZz0vkLRiFPJNnPB8pDGSoON pX0eVBaLh2aTSgSeDzWaeJYg2yGJY5TOMt5fxZv+Cnye/iniLRy3jltx+G1OFovvQHgJ xskgrejvjgXWDPz1jxAUupMKEQ21f/54ZqaaC2GFaxMAMwQWSwTTeWZ/Ngf68xaFI81g QleA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+tpfnxQlLNRm4M5QzduLIpK2iI7KFV9K8AqzkgCNCjM=; fh=Eq9bFPFzDFcQn8JjOLLf8HDB3HgQnAPPPGX6yRSdycI=; b=GtDbczPRQkVCAgHOBT0jtJmb4xMUBcDzWJn7gLb/Qrt2NTa/GcrN5rQYeufpM0UaWn f5EuI5SlHdx6/lohQUhoITSFy106MzdecVZAWob1DbEO8gtRkird1h/vZVCWk7wGzYp2 G+fjevjdma5m0WuAHjdlXCcg/SbJtRj89XyOzFyzW7fBAh6+VlMyUzAic37UhTqIi75s V9qL84pdACyK2z9KypTEAVYNo570vCtd5pK3hmqJvMEaLbuASdZqaCJ+8KGCIZHeI6LL 5REWZjXFeONRQrpoR/mjMvbB2IxFtJ7CPC6REdHReaa0BhrNHxkUHHKmyPzYhb+TvXW6 8XbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Qju3/fpV"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-53872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCW0zBfUIbrn06tM5L3hrN1LY6yS72S2caGLF6rdqnyHMafKHKfwg+Jo+CtJ499Dls6vftHVC6zDgsra6AxE7D6M+jgz93+aQhY/OSrmMw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e17-20020a17090681d100b00a372ae922edsi248300ejx.981.2024.02.05.13.34.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:34:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Qju3/fpV"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-53872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 869741F2A882 for ; Mon, 5 Feb 2024 21:34:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AEEB82D9E; Mon, 5 Feb 2024 19:51:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Qju3/fpV" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E823982D7A for ; Mon, 5 Feb 2024 19:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707162670; cv=none; b=OCatOnhpphimyczcEPg0xjEbz8JG5Qi9GVbU3RIMlfMbP/qlM73LYkT4itWGjFMKyHoUQjct8QDvv2WfoviqPLovqCOroxpIzzz6OZnY6jR0ItByo4TgmnrXfJMAM/26Hlwch4VhSPZYRqcCiTgxFgJJT3VhalC95N/ISX4nnv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707162670; c=relaxed/simple; bh=32IgZ6ko36r/TNs5ZFOUk3nuGoF25Qi3GhszNhaTrPw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YbzlURrvDzzCfO7iWgm2zfxI5cTJeNVbUHF50MRhwnu+PNt6IijoEzFGM2LeVN4CrWuj490KemQpSDB+KScNjs3aKQfgq8313bMIoEulkT5rycXn1SPoqn10YPJa4NpFgrzr66RzjbGJ5zbc65H6/WGdBad0PSzxsK3xt+Bs9CY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Qju3/fpV; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707162667; 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=+tpfnxQlLNRm4M5QzduLIpK2iI7KFV9K8AqzkgCNCjM=; b=Qju3/fpVcH5+N06D0jH0rfrjx3r4FvhdfehMY+dbBGVZjdlseSHPwxLlsdx7bHgGrsKb1D IJKpWpPo4oLL7BoX4FUcR4lKhNbY4WPvDtaeZpv/TSDQg6aizauDG2jDuerORDRikCZuk7 CXtbxiYEYfiU40QL5vizOxUa8kFGfi4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-125-kdFpPILVOoydeVUitL3Emw-1; Mon, 05 Feb 2024 14:51:04 -0500 X-MC-Unique: kdFpPILVOoydeVUitL3Emw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0863F868A00; Mon, 5 Feb 2024 19:51:04 +0000 (UTC) Received: from rhel-developer-toolbox-latest (unknown [10.2.16.180]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C30A1492BF0; Mon, 5 Feb 2024 19:51:02 +0000 (UTC) Date: Mon, 5 Feb 2024 11:51:00 -0800 From: Chris Leech To: Alexander Lobakin Cc: Greg Kroah-Hartman , Nilesh Javali , Christoph Hellwig , John Meneghini , Lee Duncan , Mike Christie , Hannes Reinecke , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, GR-QLogic-Storage-Upstream@marvell.com Subject: Re: [PATCH v5 0/4] UIO_MEM_DMA_COHERENT for cnic/bnx2/bnx2x Message-ID: References: <20240201233400.3394996-1-cleech@redhat.com> <5228a235-69f4-4a9b-8142-96d9b4a5a1c8@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5228a235-69f4-4a9b-8142-96d9b4a5a1c8@intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 On Mon, Feb 05, 2024 at 05:57:58PM +0100, Alexander Lobakin wrote: > From: Chris Leech > Date: Thu, 1 Feb 2024 15:33:56 -0800 > > > During bnx2i iSCSI testing we ran into page refcounting issues in the > > uio mmaps exported from cnic to the iscsiuio process, and bisected back > > to the removal of the __GFP_COMP flag from dma_alloc_coherent calls. > > IIRC Jakub mentioned some time ago that he doesn't want to see > third-party userspace <-> kernel space communication in the networking > drivers, to me this looks exactly like that :z This isn't something anyone likes, but it's an interface that's been in the kernel and in use since 2009. I'm trying to see if it can be fixed "enough" to keep existing users functioning. If not, maybe the cnic interface and the stacking protocol drivers (bnx2i/bnx2fc) should be marked as broken. - Chris