Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp612704rdb; Sat, 30 Sep 2023 19:55:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrJVjHOjksP5AB/TTN0Owkxn2+g2n7BRARvFum5JqUFh6sUApspfGIOeiAdDV2AshZsY+W X-Received: by 2002:a05:6e02:13d3:b0:34f:cd3c:e029 with SMTP id v19-20020a056e0213d300b0034fcd3ce029mr7610468ilj.13.1696128941882; Sat, 30 Sep 2023 19:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696128941; cv=none; d=google.com; s=arc-20160816; b=uV5fQXvtDCk3zgEN54N1OSVuR/i0GlNX2/jMJWvZr8Y87uuJ+h82l43iSODESn8b4I E7tErU9ixqUtimPBMA/890rLYTtDc+fz+gPQjHnM2K5DWppBNEsE86+9uH/cOtE38fmm p7gHCPYaKKvi0WCNd06gH1ZX4Mgh4V+iy1fIEqGabynW6lJreRM+vRMV2VYzclNi9EaP x9i5b4fJicOBl9B1906w9jDCQE7PE+nPln4dXR6TwH9zVb409rWScAkI0P6a7cCoQ/Vr Yp4jHQ7IA7E4aJ1wrgPzaBUkX0bssC1/bdur5GP+IJvCw2jNj9AtbqGMyNZsumHt0i8w o9jQ== 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=8l5Hpe0iNHXO5fLYamFvGVtR7cu155aVi7U/NlsCNLo=; fh=dt7ydZBcGBQSwZFUrZTWm6xxuG+wlpCJZdh9F5w8YVw=; b=cItzLY+OvHCUitsUpME08jJkECZrznjE9DD9nbFmeDj38tIus3dgMCI6gt+QGWQ6fr zZLgexN24e7Wy2hNPs9IIQbNvQeZRM5s7WrkxxiAHe5QtAPgo1o00jg4J82VAlCbp9JQ IpblqDz8RGB6Xgm2zVPtbuwrymrCybSzohnybI50qq+Qqwrmiw4qJW8WScFQtTDASpH/ fVhuMTw+AlPaTndnQ4s5/lAWK06hov/T8tG5kmCxG/1EHMP/r5U5i1PyIAsCWCGGFYmC u/rgeRA738J+k/1Ye2kF5QJ2KtGeIHhIA4RH7LCG9pB/aHEKlBaOJRWbr1sxyIMhqozx UEcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1k1HaUHu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id az1-20020a056a02004100b00577461b010fsi24975270pgb.685.2023.09.30.19.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 19:55:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1k1HaUHu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id ACB59802A365; Sat, 30 Sep 2023 11:28:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234731AbjI3S2g (ORCPT + 99 others); Sat, 30 Sep 2023 14:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234707AbjI3S2f (ORCPT ); Sat, 30 Sep 2023 14:28:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686CFD3 for ; Sat, 30 Sep 2023 11:28:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75395C433C8; Sat, 30 Sep 2023 18:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696098513; bh=Y9iCNcGGh4nfHDPA28tz0aK7pyM7yVYEhIxnYu0QfG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1k1HaUHuIORJNTGPd+sZFi8gkE0zdO5YIja2DkSsvLFPK3pYs55Mobkwz8fLs6rQa hwvyWiSwwBSQYASjE9dZKij+EUA2Fa34mmaJzW6xCgu77gCaDAUE04LiuQTjOpMCrI geP/D2iDqYhIqiZ1P5iV7vt3YGQxYQl12/7T17F4= Date: Sat, 30 Sep 2023 20:28:29 +0200 From: Greg Kroah-Hartman To: Chris Leech Cc: Christoph Hellwig , Rasesh Mody , Ariel Elior , Sudarsana Kalluru , Manish Chopra , Nilesh Javali , Manish Rangankar , Jerry Snitselaar , 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: <2023093002-unlighted-ragged-c6e1@gregkh> References: <20230929170023.1020032-1-cleech@redhat.com> <20230929170023.1020032-4-cleech@redhat.com> <2023093055-gotten-astronomy-a98b@gregkh> 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 groat.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 (groat.vger.email [0.0.0.0]); Sat, 30 Sep 2023 11:28:42 -0700 (PDT) On Sat, Sep 30, 2023 at 11:19:20AM -0700, Chris Leech wrote: > On Sat, Sep 30, 2023 at 09:06:51AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Sep 29, 2023 at 10:00:23AM -0700, Chris Leech wrote: > > > Make use of the new UIO_MEM_DMA_COHERENT type to properly handle mmap > > > for dma_alloc_coherent buffers. > > > > Why are ethernet drivers messing around with UIO devices? That's not > > what UIO is for, unless you are trying to do kernel bypass for these > > devices without anyone noticing? > > > > confused, > > It's confusing. The bnx2 driver stack included a cnic (converged nic?) > module that sits between the ethernet drivers (bnx2, bnx2x) and protocol > offload drivers (iscsi, fcoe, rdma). > > The iscsi module (bnx2i) uses a passthrough interface from cnic to > handle some network configuration that the device firmware doesn't do. > It uses a uio device and a userspace component called iscsiuio to do > that. That's horrible, and not what the UIO api is for at all. Configure the device like any other normal kernel device, don't poke at raw memory values directly, that way lies madness. Have a pointer to the userspace tool anywhere? All I found looks like a full IP stack in userspace under that name, and surely that's not what this api is for... thanks, greg k-h