Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp126726lqf; Fri, 26 Apr 2024 01:29:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5hWJaKd5eWu7091mBauHT2LWm0YWsVbg0fTehASMcmMbNIIry06imzZCBSIVwaO2F7IsG7fUiJvX/v8qzenhIgvoTbmr0Y4vZGaELPA== X-Google-Smtp-Source: AGHT+IHKott1Z3gphrSPmtG5RmrslJnQmeZg5rS2Zc0zdgDd+2LjjjwNarS8/eZ5DElH4K9w4W1W X-Received: by 2002:a05:6a00:1311:b0:6f0:c214:7974 with SMTP id j17-20020a056a00131100b006f0c2147974mr2741707pfu.12.1714120147362; Fri, 26 Apr 2024 01:29:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714120147; cv=pass; d=google.com; s=arc-20160816; b=E+aKVL5AUgIP5Kfi6GKBpRGARbGkDyB615DonVeakXc6QMRA8DZ77l0ftV/CqryMeX H13Tp+9IBxA0Y/nMPxO9eGhRZAfLiIuD/inxJyLE3fVjNXaoo1ummsIvlN3f25f/Bk6v tegtFtYCdReeb3jAIQbc6BG2MhVFGI86lT2QHcfhEvBgAIxlQYz9Id6V0Ij4A/t4DY/3 ghwiYilOORNRsBATZEA3HuKOvX7d8TbKCP1AJ2ckfpEcxqx4/qyUWv4zT/inWKcByjGB JE9mmAIssZ80Zf0W8EwQu4cXWRmtGcq2EGcF2cU5edaAGWCSKkMuNwoowYMDOpp97Tqp zF7A== 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=hp706mDhESsV7YoKhlK+v2thu6J30JZoEHT9LEyierY=; fh=MY2PVltkHSzjjFTifoh8n/alBGaarJc8ZQHEs99HbPQ=; b=NJHa115oxtlDyRf4E/nqqlk75d/4JgPRObV0PQUARehbEu3aNjlG72P/QAi4P0c9XU 7d/GLGNl5Y+aZaPYF2Pn5G1tUTgHGzhw4iWafG5uqnD9C6OZIozC4jmNLmb2hZmYfHho YMd0cx4bJUXEXB1646xd31yExgqPrlHjFzqr9o4FIFB0EkxqTPkWt4Iz/9UujTi3Lg8G A0fZhW+MHUNPxY2KHHOIfnbtdcCKhp2wcx6/dXRcbg01coZgpA90DarP3/FnVdFlnb0I Y6qTQMMuZfJHQNe8rKW0dPajP06Ww6jvWMIV/n7cBEW1X3XD11YbrRjDmSfHj6zs4mYu +vuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Jkx9vo+E; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-159693-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a1-20020a656541000000b005f77a64dfc5si3972644pgw.33.2024.04.26.01.29.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159693-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=Jkx9vo+E; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-159693-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159693-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 19620B22E4C for ; Fri, 26 Apr 2024 08:28:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96AE713C9BD; Fri, 26 Apr 2024 08:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jkx9vo+E" 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 86B9533981 for ; Fri, 26 Apr 2024 08:28:48 +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=1714120128; cv=none; b=PIIYuQ+XU7y8SG5R9naT5Sgce6vfSQ9tPuR4jU+KzCVlrap3ugoxd2CkIxvihH9xco0jOhTjkHDtFxRu9av6i+M4dB90EPlHhEfYxXTKv2J0+cxzRzpwOAZMELORvNzhLtqB4lsCd5J+k1pSFIPVi+oY3feWfhSM+hSm//HEOwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714120128; c=relaxed/simple; bh=b45WhGsUbMs/Aao6bI5khlq7pgS1Ea1P4SDgIZ9e3CI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q66/BmwRy3J+JowngJjIPDZD1ZwZ4bBlpQLbwao4k8ZRQi7UeYy+TZAGvv7e4R0XPVRbTmVLfzSSGjJieQ9rNIsWkxvF1YtguPZLjNZZodry69+jri4xt8ou5+654ZMLyl/vnNyanJDYWnlz9S7OUUuRZj9OsWKDTTX5r7e+GgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jkx9vo+E; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ABBFC113CD; Fri, 26 Apr 2024 08:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714120128; bh=b45WhGsUbMs/Aao6bI5khlq7pgS1Ea1P4SDgIZ9e3CI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jkx9vo+ESNU1TwEoxKGTXP/16UVlXmQBMUL9qKSdJMBT30Gf63OgJn0om23p0bX1D +E4hbRUAXEaZRAAtLay1aL3/x53aitBRuyZcP1NVuggf38gkYBqCNtJSLxDWbWQyGS qMPSxPK4MCM5XiANR1JjTL86VBawF2cw6WUgdCLg= Date: Thu, 25 Apr 2024 18:04:33 -0700 From: Greg KH To: Vamsi Krishna Attunuru Cc: "arnd@arndb.de" , "linux-kernel@vger.kernel.org" , Jerin Jacob Subject: Re: [EXTERNAL] Re: [PATCH v5 1/1] misc: mrvl-cn10k-dpi: add Octeon CN10K DPI administrative driver Message-ID: <2024042501-stargazer-departure-e5b9@gregkh> References: <20240412121005.1825881-1-vattunuru@marvell.com> <2024041250-nursing-tidy-db7e@gregkh> 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: On Thu, Apr 25, 2024 at 01:36:05PM +0000, Vamsi Krishna Attunuru wrote: > > > > > -----Original Message----- > > > From: Greg KH > > > Sent: Friday, April 12, 2024 5:57 PM > > > To: Vamsi Krishna Attunuru > > > Cc: arnd@arndb.de; linux-kernel@vger.kernel.org > > > Subject: [EXTERNAL] Re: [PATCH v5 1/1] misc: mrvl-cn10k-dpi: add > > > Octeon CN10K DPI administrative driver > > > > > > Prioritize security for external emails: Confirm sender and content > > > safety before clicking links or opening attachments > > > > > > ---------------------------------------------------------------------- > > > On Fri, Apr 12, 2024 at 05:10:05AM -0700, Vamsi Attunuru wrote: > > > > Adds a misc driver for Marvell CN10K DPI(DMA Engine) device's > > > > physical function which initializes DPI DMA hardware's global > > > > configuration and enables hardware mailbox channels between physical > > > > function (PF) and it's virtual functions (VF). VF device drivers > > > > (User space drivers) use this hw mailbox to communicate any required > > > > device configuration on it's respective VF device. Accordingly, this > > > > DPI PF driver provisions the VF device resources. > > > > > > > > At the hardware level, the DPI physical function (PF) acts as a > > > > management interface to setup the VF device resources, VF devices > > > > are only provisioned to handle or control the actual DMA Engine's > > > > data transfer > > > capabilities. > > > > > > No pointer to the userspace code that uses this? Why not? How are we > > > supposed to be able to review this? > > > Hi Greg, please check the below files for userspace code that interact with this kernel driver. > driver/roc_dpi.c provides the mailbox interface to communicate with this kernel driver. > application/main.c is the DPI DMA application which uses this misc driver to configure > the device with required mps, mrrs, fifo_mask parameters. > > https://github.com/VamsiKrishnaA99/dpi-dma/blob/main/driver/roc_dpi.c > https://github.com/VamsiKrishnaA99/dpi-dma/blob/main/application/main.c Please provide this information in a new version of the patch, looking at this now when we don't have the kernel code present is almost impossible, sorry. thanks, greg k-h