Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp497025rdb; Sat, 30 Sep 2023 13:02:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQLuenijVEJO6tttOj9zZ6J/IiPiMeaSN43bj5dydkw8Hgk524gVGSztIuKGoOufpVEX0e X-Received: by 2002:a17:902:e5d0:b0:1c6:2acc:62ec with SMTP id u16-20020a170902e5d000b001c62acc62ecmr7935156plf.13.1696104137625; Sat, 30 Sep 2023 13:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696104137; cv=none; d=google.com; s=arc-20160816; b=jZqzhcSFiig53qhL5BQM8H2Jj8Asp5lBk6cKq0/tTZYMKYJP01UAtqtnMggbUbycKU 4huy1on1Ne7TtYUFGglLgzdQXf3WyTBH9IQKGG6P+DoL1ZInY6EmvyKkGZdmkUqZRh8w o21NpJ1t5Ncbjwc5nb+BSeWXokJ0CJihNgdO17CZzRiWwHKfqRTb2CEKJclslDx+hruz mM+5qtz6vhxtCGOV/ssr8n21u0LKVoAC9FskjNuWEqt57EyNEvyaqGP2Wmv22tdTDL8m k8Dinl3Z2BsCZRuUOKo08HA5YP1e7jqaP0RZJpiFmGCgT0QCcM+GSmqg4kckL56E+Ycz B7wA== 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=8gv73ytAfKviSPiQIHeC0hOen5aE24T4EuTj3zfm6kg=; fh=sJcVcYHFkkIXnw78k44Q5BWD0R8rvf2C09Vw+M88s1U=; b=c2IMkhENPyNxnnvqaXz91gOBOMUtqk0Nl/5/9qHkLnVpJxf+/TLVJDnzOK10XQusVN zOy3L00xfFTyj+Wyx6moes9KGVJVqo/lD/vf74X9je3bT+vX0CZ8u3y/THlM9X4n1T1i fJ2+UY4no/i5HzzMCiW8nIwDwcUAOWOLLcQeEDSY+HjWZTK+5fS0OZbVDZ/evxMVysml SI5gBieJHYmvC0wKs4M4Sig3UPLzfMeBGXvlQ3CnyyUgkJyZZpFIv3Q5Le8OX+76xnU+ Dl1ii+x77W3ufEyKuIYaHsySc4L9Y+FFA65BmYByYKRE3n4pHv0JNabja4cbRxO6MFm2 mMng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iNKrzqac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id m7-20020a170902db0700b001c5f37aeebdsi21276243plx.579.2023.09.30.13.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 13:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iNKrzqac; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 A886B82A6773; Sat, 30 Sep 2023 11:20:18 -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 S234722AbjI3SUR (ORCPT + 99 others); Sat, 30 Sep 2023 14:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbjI3SUQ (ORCPT ); Sat, 30 Sep 2023 14:20:16 -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 0933FD3 for ; Sat, 30 Sep 2023 11:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696097968; 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=8gv73ytAfKviSPiQIHeC0hOen5aE24T4EuTj3zfm6kg=; b=iNKrzqac58PCKLXoJlNR860t9O4pRK4gJKwR6nwmnUfso/Ph+EIOl+Jcs4dHb2TEZNnAN8 zMH76iXBENkZZY2b1zjaIdMZZpNIr+8GC6epVR0J05src+aEgGiRax3b74Y7LVxOJ5cFLj RB8mi5m5AW74lC9lwZp7ii1Ee8Zwfz0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-591-v3BXl96tM-m7aKMVceXfLA-1; Sat, 30 Sep 2023 14:19:24 -0400 X-MC-Unique: v3BXl96tM-m7aKMVceXfLA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F3182185A78E; Sat, 30 Sep 2023 18:19:23 +0000 (UTC) Received: from rhel-developer-toolbox (unknown [10.2.16.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C8C62156A27; Sat, 30 Sep 2023 18:19:22 +0000 (UTC) Date: Sat, 30 Sep 2023 11:19:20 -0700 From: Chris Leech To: Greg Kroah-Hartman 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: 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: <2023093055-gotten-astronomy-a98b@gregkh> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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=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 (howler.vger.email [0.0.0.0]); Sat, 30 Sep 2023 11:20:18 -0700 (PDT) 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. Questions beyond that will probably need to be answer by one of the many Marvell engineers copied on this thread. - Chris