Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7032107imm; Tue, 28 Aug 2018 05:25:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZwx9Q5HSigeq6HeNdpaEXjYGWo+yn916xf7b9TYrONq3AsM/V13P0zCpVsjcysv5brjel4 X-Received: by 2002:a62:4fd9:: with SMTP id f86-v6mr1379236pfj.110.1535459156181; Tue, 28 Aug 2018 05:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535459156; cv=none; d=google.com; s=arc-20160816; b=ZLVQpT9hXWfgcoC2KLIGVEVkDgQLl/zhHxrTVsXXvPGUt1NcRfqP3dMgL4versrDJu AX6bw0q98Zn5NNChbMxkL2NSNUSLq4b39xmECPwPX6a84x7DjuyMsFupFTLZTP0zpewg fZhiJZbdILEARVaJsRWP3uFnPopHVYwRAT9aBdYq1JkMWqwyQZW4lrr5bVyG3A5ikKD0 16FKeTChA7klaEDxLL6plDM9CuiY6mm3u9lj2tiygDtPsaAUhEIBKVBJ/Oh6rfu4b4rS vpqJwp7H6sYL+rcAfdL91dBixQ+hWw7AHAjPGM1gZoNHinjHdOE5n++qgkVrtYRQZpQw y5Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=xMg9ce79d1E413VsXHxHA9Y6xAQwPV+OITyJvWM1yOw=; b=leELbbHSrmqn1KvxsKp9CbPcbQTX25vIC6ZXcytxi/D3BssnKXSiUAsCsApNyaYBfo ugz/c6QGYmwH9CNaElRM+817mmO9SdnP0uBTHdZ55zId2ezh1f0GTMcxLgDCMNQqIdQO nq2KnY1I4CWYFTWennPMFDozmZfXVaa9M8tZgxsXfo7S2rAG1d01g6RGBhHlRgDQcd8q uKhFBWzFpavklqo22xY96AWFnSJjhYptdSrQTdBUjgsv5IEHgxx+uTMGvj/qZScVejFM Ut7GAftIaCn6JqoR+KyQzfMbBofCpSwHB4TaL7rHBPApy/jJar7g90kxKmXZPdyZNLD7 axIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z68-v6si893805pfz.163.2018.08.28.05.25.41; Tue, 28 Aug 2018 05:25:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727961AbeH1QOq (ORCPT + 99 others); Tue, 28 Aug 2018 12:14:46 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:34956 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727101AbeH1QOq (ORCPT ); Tue, 28 Aug 2018 12:14:46 -0400 Received: by mail-qt0-f194.google.com with SMTP id j7-v6so1380394qtp.2; Tue, 28 Aug 2018 05:23:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xMg9ce79d1E413VsXHxHA9Y6xAQwPV+OITyJvWM1yOw=; b=S10H5bMve/OwPsxHMjE5pmRKB7iLcRvZTMD8qCPf1F7dxQoS5u3u3P7C+zuNaLKTLW 5kOdX+5TwubDNJIRDEalhgoyXKUHJhKEtMPRZ8rJnLAg8bg4q+Cj5MSLQ2qDkDLRrmP0 u6FoySjljgBN01NWf+dufC9/SOvfRriXWz3UxkkO9gAol551CYUsBaapuekO/e8xLYYg CmoU+vnyvu4+ICCbLALLPTu+79ClJiOPVFsQC97n56M1FyULHKsiXweDdfjYfUKAvAfp 4GsLR3RJ1JUaVDl2uJIbTrxO8HovyR9osjjweFwcmc5OQMYrodgUxbxyUgXoYDAhGu3r 7WYA== X-Gm-Message-State: APzg51D3SwRW0IcMSjlO5NHw6/TSwFYPEk/udXs5muXJjCnBhWNFjyPc EPzYPrHw+tp2ENFktiLDI8FziQGyU+Vx9Q0uWC4= X-Received: by 2002:ac8:6959:: with SMTP id n25-v6mr1342898qtr.9.1535459000970; Tue, 28 Aug 2018 05:23:20 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> From: Arnd Bergmann Date: Tue, 28 Aug 2018 14:23:04 +0200 Message-ID: Subject: Re: [PATCH 00/15] soc: octeontx2: Add RVU admin function driver To: Sunil Kovvuri Cc: Linux Kernel Mailing List , Olof Johansson , Linux ARM , linux-soc@vger.kernel.org, sgoutham@marvell.com, Networking , David Miller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 28, 2018 at 12:57 PM wrote: > > From: Sunil Goutham > > Resource virtualization unit (RVU) on Marvell's OcteonTX2 SOC supports > multiple PCIe SRIOV physical functions (PFs) and virtual functions (VFs). > PF0 is called administrative / admin function (AF) and has privilege access > to registers to provision different RVU functional blocks to each of > PF/VF. > > This admin function (AF) driver acts as a configuration / administrative > software which provisions functional blocks to a PF/VF on demand for them > to work as one of the following > - A basic network controller (i.e NIC). > - NIC with packet filtering, shaping and scheduling capabilities. > - A crypto device. > - A combination of above etc. > > PF/VFs communicate with admin function via a shared memory region. > This patch series adds logic for the following > - RVU AF driver with functional blocks provisioning support > - Mailbox infrastructure for communication between AF and PFs. > - CGX driver which provides information about physcial network > interfaces which AF processes and forwards required info to > PF/VF drivers. > > This is the first set of patches out of 70 odd patches. > > Note: This driver neither receives any data nor processes it i.e no I/O, > just does the hardware configuration. Hi Sunil, Thanks for posting this first series, I'm glad we're seeing support for this chip family making some progress. My feeling overall is that we need a review from the network driver folks more than the arm-soc team etc, and that maybe the driver as a whole should go into drivers/net/ethernet. We support some couple of similar hardware already that has both support for virtual functions and for crypto offload, including the Chelsio cxgb4, Mellanox mlx5, NXP DPAA and probably others, and we need to ensure that the exposed interfaces are all compatible, and that you use the correct subsystems and in-kernel abstractions for thing that are common. Arnd