Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1928749rdb; Wed, 31 Jan 2024 13:36:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNE4BuetvynIx4RWPFOt4dEIpYDw+rDnqExruCM0Eh8scgVuk3a86QmeyL/AVY7sfV2s5d X-Received: by 2002:a05:6a00:1d01:b0:6de:8ad:dac0 with SMTP id a1-20020a056a001d0100b006de08addac0mr367737pfx.4.1706736985019; Wed, 31 Jan 2024 13:36:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706736985; cv=pass; d=google.com; s=arc-20160816; b=vFs8lNjQiIqzmwM1KVtoB2HJ7mzautqv+tQwn2sk5auE3677cAJrHKRScSkYm8Pfvc s6hYV6siggB36zAmCGt925lvNSDSXy9ZOtjlW35LhBvJVfeZHN06aTCXYbZ899ubUU8J p4mjg9P6pw8QDyKzlJTzmr+x+dseIPtsz78rYrO+hhwaEptNCwMT3kgdjUmM0n2oNwVP 3Pf85BktfnFcyMBq2y9HS+J/QJR3mcq2Suwq2cP9zZ09KKqy2sXe10Bh0wmS7CDRhQSn HrJgmAUMp02VMNUSowtbPqOcxC3YtjresU8SYm2eZVQXITY2+RF4+T+F+xGo4GeWWzlD PLZw== 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=sPBhoyfIcBnAlfOcBaq7Qi16qSA0fAYc8CIEFB7mY94=; fh=FMu1AeqQGCTtCti1Tn/faMBpuvQDIgEJGPF36r90OYg=; b=FE+IjWztOU4lLw3H2PmFF3KuxWwJjMMAUDITZUv/+JB7JASA9WTo8YtzQEq7UVJLD1 wpqGInoaiHtD4uY5OoFfd0UTxCzvseBRqtx87yDG1Ul/XjGtfYoOMIyCXiSZ7hVWGlRQ D08K8oIJ+BlRxjFzvk6QkjWeJct8qO/MpCoNs/L0H19H12Qpqsa5HSlMDz1roi8I7HXo irzDyLCg6qzIY16jeP5F5J3iGjdpBZmFlP0sXBufYzquLoFs4NX1JmpXpSBBF/ksomIJ /KLIrCTnre/RiOd6YtmqPEM0jRwhyxVMOR9QHhthqhAqHvTldy6+dy0ckcDTuaI+pl5z UZMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YOiz0P0j; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-47168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCXRWTigRUkOvj9RQsjzI0WQPjLqzqQQTPKMSQYrnXDfrrqFiqNj/RuSZW52nK4hPv6L+U2GN0feCClZZyeyOvjlRb0tU12CIeiwrudWBQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fe11-20020a056a002f0b00b006de379183f9si5273652pfb.39.2024.01.31.13.36.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 13:36:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YOiz0P0j; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-47168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 87449B28118 for ; Wed, 31 Jan 2024 21:30:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D096839ACA; Wed, 31 Jan 2024 21:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YOiz0P0j" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EF82539843; Wed, 31 Jan 2024 21:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706736534; cv=none; b=VbTsfb8H2TUXhPe8eE7wx5E5Bow2KQ/Vexki0QrVsFwYTBzc9cVkZ2JNpXLQg2ERZEmFyxU3ILVWyfBpDwpu+PQOl25AWN1jRthghut67W1WLbDTDGiVhQ9IxTkeW7c0xny0DP6rCPQpZvGLpxl3GYUDjRhMeeSnttv8aDJyeNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706736534; c=relaxed/simple; bh=wuWxeCOodCyEvRLOOFJJptfo/uX+q6W7Z6Zj+MRADO4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q9l9ZIL8em6cLHKOE1BygKozfWhpPwf50pA3BMOIXM/iDTXX1dY1e4azG5wexJbP4EsGTjF3S2fmYcUq7maCIpsI+LA9RI+jGcjOJB6RYehkb0bKrBAQPuKuM207msPBqRLCN+sM8C4Kp2xto2HmRGkv4JNQ7g77TYGsyn7Ogug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YOiz0P0j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A8D8C433F1; Wed, 31 Jan 2024 21:28:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706736533; bh=wuWxeCOodCyEvRLOOFJJptfo/uX+q6W7Z6Zj+MRADO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YOiz0P0jCd9M3sT8Cad6kK0UQgMSOkgPCJxB3lLHQ96OTe5rVfa0Xv7uVDGHAYUS3 pxF09V64Mm37vzfzvManF8AANRNtw82zoniaS0cU9f7Q3DviZ+vmh8Cv0gxexoMCC5 g/hKKFTZpZDLfVTqn2XodgEeBsts2AIXM1I4dbfw= Date: Wed, 31 Jan 2024 13:28:53 -0800 From: Greg Kroah-Hartman To: Chris Leech Cc: 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 1/2] uio: introduce UIO_MEM_DMA_COHERENT type Message-ID: <2024013110-greasily-juvenile-73fc@gregkh> References: <20240131191732.3247996-1-cleech@redhat.com> <20240131191732.3247996-2-cleech@redhat.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: <20240131191732.3247996-2-cleech@redhat.com> On Wed, Jan 31, 2024 at 11:17:31AM -0800, Chris Leech wrote: > Add a UIO memtype specifically for sharing dma_alloc_coherent > memory with userspace, backed by dma_mmap_coherent. > > This is mainly for the bnx2/bnx2x/bnx2i "cnic" interface, although there > are a few other uio drivers which map dma_alloc_coherent memory and > could be converted to use dma_mmap_coherent as well. What other drivers could use this? Patches doing the conversion would be welcome, otherwise, again, I am very loath to take this one-off-change for just a single driver that shouldn't be doing this in the first place :) thanks, greg k-h