Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp437624imm; Thu, 30 Aug 2018 02:42:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYFcQtNgxHqQJ0r4Y1YzpSG/gYyCQvxlCYhld8VYGjZlmSmUpRkm8IyXtlfo+i21bDZcR2q X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr9558764plk.133.1535622127244; Thu, 30 Aug 2018 02:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535622127; cv=none; d=google.com; s=arc-20160816; b=gPQGqynhLNscfHZy0RgLQvCR7Bw9m0MSD9EmXcQz06YbgycvH+Pydqfo/32Zibd4Us tXNQuc/8Bnm1CWz/N08remSZ/eqv2G64sK/Nb2qmqTooD1DkA8mBXqJR/5ChSQ3pL8sY If4jtLVLVGn+gGjAOFRvhXoEViyBiOMwTRw2ixonGFHbv/dYr+4JvrhEVgtPG7Ggzf9T 7LYLZxcVY1Zt6A/7Dt0RN9chBE/hV02xBctnk4ov3ZdUlQdbxmOfXL64OD3aFIwaYQqu cq40RVZPNnW0ThB7MhNAVz5BHW+RKQ5wuaQuCFH6Z5/iBsKMilQ0t+GhUeArl0tidrvV i1dg== 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:dkim-signature :arc-authentication-results; bh=oPi5e3P9wsxI6O7hE6GCCo0V0rIVB55LtevGGPA7Z4Y=; b=nWzdSH3R6dxTBf4CTYR507DA19j8zYA4mRWVOBuTqPMNtBJhV/JEfB/aWGHCWlbtJt M05metjAYYmwF3P0TZ47U9RS9c8TT2EtYe3ws5APtnVtJRSAq4/W3i1eThN5VXuQlaU+ 7bD5V5ruWVkFwjmNokeATnjQJqSJXATmf3o3+/np0V+zxLmZ8kgoH47gOA20AqeR5/Zf S12lN6LJY2mqwgYAzDFXIMz9LsQwqqokAN2L8tBmis1pscAdGIF+9B/JuBV6o3DVKnFI QIu/mqLuH+UDy+pj3sgLJNBa/V9cRt/39+Q/ulbuZxfUNf1E7HLeLr41WeCttb98wD10 O7ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rpLK7tj8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si5881981ply.181.2018.08.30.02.41.52; Thu, 30 Aug 2018 02:42:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rpLK7tj8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728222AbeH3Nl4 (ORCPT + 99 others); Thu, 30 Aug 2018 09:41:56 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37463 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728163AbeH3Nl4 (ORCPT ); Thu, 30 Aug 2018 09:41:56 -0400 Received: by mail-wm0-f68.google.com with SMTP id n11-v6so1296812wmc.2; Thu, 30 Aug 2018 02:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oPi5e3P9wsxI6O7hE6GCCo0V0rIVB55LtevGGPA7Z4Y=; b=rpLK7tj8Og6PEZpCwcgH10AAbRmY37VaNZxfR6q3z+TKJOFRugylyJ3v03MmKBP49a ZPSGKT/gLeZ8BD3JJRWR2x1tJ2/BKvh5NKymOQhVzwLPndXmE14vNzt6OqjhbYX+gtpc +mW3sfnft2IxY6BnR2ZTACzy9XlSbb8MDFXHVc8LATl8RVtb5DuMq4XpxyGte9RDw0X1 SkyQU5/5IwAWMw3iBunYADJlDEA2/3oMfSXuKKMEN2VfJIzszrw11AAqe+EcRWUV3v59 M+3v5Zc/7oxBF9Uzb7Cb5Drtz2UyFZcEkctj8qht85UWoZcJ7+nVAyPkpqbObcxkFnmp 7CvA== 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=oPi5e3P9wsxI6O7hE6GCCo0V0rIVB55LtevGGPA7Z4Y=; b=GSzUS4X/ZkMnw06d5gpfNvngLyQhUysHduqCwrYg2vGPJCzzpa7JAxTfUr0gIK2aQ+ bw3b1w2souA8Nw66YHMipRRvBMiKuiOtQYVaZuGcZQUNxA1FADSANKYeA2mf5qLuCRL7 22oySSb/JOlFw8chbZ8aJLw/F+M2BllxhNZyBm8l74xmCqhWZJVX3GJozzG6SLCUtoib sgQufUuejeVrO2KLDnfiJ2AeFRaH3OAiTVJsMBug/RGe9BwuUzlozn91biv9UL59gAZq GPklYqkB9UkWY3l5LfAN2HvaJf7FapPKIK8QoNdBaelFvdzyYel8+7AfqDXIUIn1h50r bXUg== X-Gm-Message-State: APzg51DKa0LLdcbqBwFDxQjsWEpp0gYzfGmQ7z1Lvxy//EI+/FYyz8R+ WV/MW+Vxl0GmoGhijIiW6niDUuwuYc7TGGJ0WuaYFA== X-Received: by 2002:a1c:a386:: with SMTP id m128-v6mr1239500wme.139.1535622038374; Thu, 30 Aug 2018 02:40:38 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: From: Sunil Kovvuri Date: Thu, 30 Aug 2018 15:10:26 +0530 Message-ID: Subject: Re: [PATCH 00/15] soc: octeontx2: Add RVU admin function driver To: Arnd Bergmann Cc: LKML , olof@lixom.net, LAKML , linux-soc@vger.kernel.org, Sunil Goutham , Linux Netdev List , "David S. 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 6:54 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:53 PM Arnd Bergmann wrote: > > > > 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. > > Thanks. > > > > > 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. > > This driver doesn't handle any network IO and moreever this driver has to handle > configuration requests from crypto driver as well. There will be > separate network and > crypto drivers which will be upstreamed into drivers/net/ethernet and > drivers/crypto. > And in future silicons there will be different types of functional > blocks which will be > added into this resource virtualization unit (RVU). Hence i thought > this driver is not a > right fit in 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, > > I agree, but i guess that is done to support inline crypto. > Here this driver has to handle requests from normal crypto driver > (drivers/crypto) as well. > > > 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 Hi Arnd, I hope i have answered your queries. Let us know if you have any more queries or feedback w.r.t to a individual patch or the patchset on the whole. Thanks, Sunil.