Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7083057imm; Tue, 28 Aug 2018 06:12:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbyiJF+2v3X4pffOQ4Zwd0xoX8lfN+k1stEYcGbmK8pl/bPcx7NPnLEz32DnKDwWUoklmO1 X-Received: by 2002:a62:e08b:: with SMTP id d11-v6mr1568520pfm.214.1535461943891; Tue, 28 Aug 2018 06:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535461943; cv=none; d=google.com; s=arc-20160816; b=OjYtabtKk/BnUmj7uIAs4OGuJtrJpeTl7ImueSiHhi5aaRJMzRtEHbH3KimG/F2jpM ZHInw5t7Wc0Q1ME32g/cebm7TtYRyXA2W6X6h8m1VWhITVyYgVTz80HIf4ZGOdwKCgUZ QiSau/kdfkhdNw+XnSpy3IhrU15J00guWcUYuVUr/J6Pky9KSdO+1SaSpE6ZjJLRXGNe oTaFqwEbxvwlgWwipHwH2kwAEVxh4ptPXGljiDArZfBNfvYTdcRjbY+PWIt4y2sun/R1 4sHw/aLK1nMiYpB/1muAyZVWDK6cTKtRo2kMhHiuQOPWQseRNZ9IrA8IrU1Ahc6u+zKo /hWg== 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=N4RaJg2+OXHYnQivrqN7FZQFg9ukF+dMUNqAIMmjRKQ=; b=RB7F5qtoJHrsRKqkhVJetnWoEajnqQUI4oVEgxboFkh5XFNMdSxFmoOLkbTCZDoKST WQ2lnseXjC//XS2SJat/b/oqmFYC6ejbbWJxssLkp3bhrFlwtjbfYCV5u5cWp3uPzhvo KQyaYadgWuZ/SOCp4Hbjx0z5h23F42hbYPtL5P7hobG2Vr8IIum7hLQhPnk7XcRhd4Xx pqObDVjMY7LYWIoXX4TjY6syYcBGemFXhvMUh/qLNApBlLr4Q+tBX+MUhAQPDQmLxCBP K/gMlOfsFk7hxsg4e+gRghU7zYTVEt9732uXhqFrtMd7xlmrLynYaSAsq9ND3LlD0QeA ZmRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P5SGM5bp; 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 29-v6si914011pgz.215.2018.08.28.06.12.07; Tue, 28 Aug 2018 06:12:23 -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=P5SGM5bp; 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 S1728140AbeH1RBm (ORCPT + 99 others); Tue, 28 Aug 2018 13:01:42 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51072 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727215AbeH1RBm (ORCPT ); Tue, 28 Aug 2018 13:01:42 -0400 Received: by mail-wm0-f66.google.com with SMTP id s12-v6so1882060wmc.0; Tue, 28 Aug 2018 06:10:05 -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=N4RaJg2+OXHYnQivrqN7FZQFg9ukF+dMUNqAIMmjRKQ=; b=P5SGM5bpCxPrfFGqvF+SiVnpNFLkXIEYchKtb8yf5FAFMG8lFpnuwnBw1X6wccPEc5 smGXSmILHx54HTlM4d8w0a105V9sL3x2hrsK0lpDu819Zp9UXq9BzUDp3ekOkMGBWr+o /hNKo4331mgBhei5w+a7+42QOHDm1VcgkEvnH7IfxGh44aXTg7EuRDUbrxu31yPHPMm/ DnyGxmDx1IXMe9G8xH11y6yaPo7rUvO9UQPO3gwmeEOtk7g2PbmMx/ZVvKNEhsB0HzcR rsdkAs77FrSnOSxHr3Opgrgsq6Fav/NSIc3e+Exqugk4x1lNjxLFif415GUC/VXffqdS 9B5g== 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=N4RaJg2+OXHYnQivrqN7FZQFg9ukF+dMUNqAIMmjRKQ=; b=o5OH+N+cpvEcAAw/bDN6IJtJvownB30mGNGZLL6kyYhydIUC/XE9C5hXAA9oBtNSsH B1iiRaLoAmE2f+kc0MUZO5v29v+Hte3qAOYN1saJVPOkxojqcN5Bw53IS/lTCmoWNxDa AHhxr6UR3B1wruQExg0IwxveD3FFtX++YiQT7uGl2VdkaB26HuViKhWRgdn6ejx7XFGb EvQO+1PG9su8KK8gtqMe9ssQDy0vQw2rImd+9x9mGg83pxEdKzbRdy6ZEF/hSn6PCeSH hUH7BSE6UE26qvKW/zG0MuiQ5XGnju2AhXQjuOiOCW6qp3KiP8+JMS+uKOaksscImSoZ YEsQ== X-Gm-Message-State: APzg51BquRq7jnAZrWU6/nU/ZijS/FzO5G5iPKgfdfD8wrstPxQdwUGT DAjG5EBiLi4aXDuRDIC66Tv3QtaHInPWKgdRXDh1RQ== X-Received: by 2002:a1c:1dc9:: with SMTP id d192-v6mr1438474wmd.140.1535461804505; Tue, 28 Aug 2018 06:10:04 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> <1535453838-12154-12-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: From: Sunil Kovvuri Date: Tue, 28 Aug 2018 18:39:53 +0530 Message-ID: Subject: Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver To: Arnd Bergmann Cc: LKML , olof@lixom.net, LAKML , linux-soc@vger.kernel.org, Sunil Goutham 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 > > > If this is a regular PCI ethernet driver, why do you put it into driver/soc > > > rather than drivers/net/ethernet/ ? > > > > No, this is not a ethernet driver, as mentioned in the cover letter > > this driver and AF driver doesn't > > handle any IO. There will be a separate ethernet driver (will submit > > that as well in future) which will > > communicate with these drivers for configuring hardware. > > > > The driver in question here is for a serdes controller which handles > > physical ethernet interfaces. > > Admin function driver gathers info w.r.t current state of physical > > ethernet interfaces from this driver > > and notifies actual ethernet driver about changes, if any. > > Ok. Can you describe the structure that the PCI devices appear > in? It might help to be make the connection between the differnet > patches to understand how things fit together. In the final > picture, how many different pci_driver instances do you have, > and what part are they for? List of PCI devices are CGX, RVU PF0-PFn SRIOV physical functions and RVU VF0-VFn SRIOV virtual functions. No of VFs per PF is configurable and done by low level firmware. List of PCI driver instances would be CGX driver, RVU PF0 (i.e admin function) driver, PF1-PFn either netdev driver or crypto driver, VF0-VFn functionality would be same as their PF. The current plan is to have CGX driver, Admin function driver, PF netdev driver, VF netdev driver and PF/VF crypto drivers. > > Is the idea that an ethernet device driver always attaches to a > virtual function that gets created by the main driver, and that > the two drivers share no interfaces on the kernel side, or do > you have multiple drivers linking to each other? Ethernet device driver can attach to both physical function and virtual function whose HW resources are provisioned by admin function driver. Yes the PF/VF ethernet drivers and these drivers won't share any kernel interfaces. Physical ethernet interface is owned by ethernet driver only, this driver just configures which ethernet driver instance uses which physcial interface. > > Arnd