Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7057086imm; Tue, 28 Aug 2018 05:50:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZWHNA0StyMnIgqBoXL74Gnm2O/Xt80unvApnyM+3p0OsYR+iwUXEC6Hwtck7cWD2Rlpz9h X-Received: by 2002:a63:2503:: with SMTP id l3-v6mr1405699pgl.237.1535460625521; Tue, 28 Aug 2018 05:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535460625; cv=none; d=google.com; s=arc-20160816; b=fFrPks1IN4qSpENntwShVWxj7xoW1kXpfKsqXgL/kAqaSeaOeY2BcMyFBUBhsxkbmF S9n8LYIWKg4qlSNXiOYV+gbRJkft6XdWZUqRzEeQsa/UPS8Bf+19fb8zH20sKv6Qf+YH CcSyEuqF2yieg6I6rLw5p89z6MhZJz6kgFYb/nRDzf/S48CnxVWZUrGvKOjYR6xZ6BAK Wqy2w8zF5THgv05lZixMmVRY3nntO0RDPK19kq+e9dDN9jnzPJ2+kBjs6lG966SjT/to 7gKQKG/pH9UZ2SJJxBN/iQ7Gapehz0RO3FXH7hmjBwfz9tkGVG8bjnjJ8GmAppa4vnYt 3Y6A== 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=nlRGCqBRQzRaMDVRfqmQjv1nkc+fB6lAMZRslSIpNVE=; b=JUL9ojMrAYijf0ExVG/tDuEoG/0NwJrU4ld87ppWjfvK9FopLX2rFRjWg1T2euc9GR PnkP/gl7kb/XAC94p0I9hNqokl3GwSl07K4p6g4UIFHRTENWIf+TgDeDjA2YQuUbvMMR m4EWnzgr3ceQUffTTHn3vDaHMX4B/WAZw+orAudvqICDCrJ7pK8oe9xPJGXdC6waiSfT SePAZ08QN9JG24C+9QtfuwlLq2/3Qx1Rhyx4A2nlW9flu4thQqERTKZ4hOIanVoHQz+R neUAGsry0jQ2H1Udzgw4E40ubDkD5wK8r7AAELpz/aRKn9XBxIiGKIy0bYPHkW+wfl7m BgiA== 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 p22-v6si1093267pli.289.2018.08.28.05.50.10; Tue, 28 Aug 2018 05:50:25 -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 S1727998AbeH1Qke (ORCPT + 99 others); Tue, 28 Aug 2018 12:40:34 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:45857 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1Qke (ORCPT ); Tue, 28 Aug 2018 12:40:34 -0400 Received: by mail-qk0-f195.google.com with SMTP id z125-v6so842600qkb.12; Tue, 28 Aug 2018 05:49:03 -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=nlRGCqBRQzRaMDVRfqmQjv1nkc+fB6lAMZRslSIpNVE=; b=kXvgRSEXacmmc4Go0eL5vmKrt2wFy8pdDw3PM13VDFvWY7lnnqLOAlG2KwABZrLvLY AyLNSR3jj8RxL4EUIfiG6GETQwQZY8ts+SmgXwvYhArHDZL+jVXzB86pV8iWqantGZll 0YMXatNcnJZpRS3alCzXiZ6ghnMraG02XSvJo/AJV0RqBq4xsdHQrSPZbXBqslz+XVnD 8JPga00lVfsE4HxCAW/HIZoaMXa3VUGAtB8kXeZTEwUBHSGAA3gyfj5fAWPEGDfBVDF0 uzvoMlhZoH3VPyF+FboDoYGu4aadmZnGVBgM+wwZ5MNK7iPIRTnq+3w0Q36qDhy1RH6E iLyQ== X-Gm-Message-State: APzg51BBdlfsBMHPfO2AnEo9rotIDN/q/PDqICiPpg2MOVWguj7tQOK1 Haszk7PUZx9eubEjYIESQQmRJDwNgFhXA6aqLMo= X-Received: by 2002:a37:1b91:: with SMTP id m17-v6mr1345765qkh.173.1535460542743; Tue, 28 Aug 2018 05:49:02 -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: Arnd Bergmann Date: Tue, 28 Aug 2018 14:48:46 +0200 Message-ID: Subject: Re: [PATCH 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver To: Sunil Kovvuri Cc: Linux Kernel Mailing List , Olof Johansson , Linux ARM , linux-soc@vger.kernel.org, sgoutham@marvell.com 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 2:30 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:40 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > From: Sunil Goutham > > > > > > This patch adds basic template for Marvell OcteonTX2's > > > CGX ethernet interface driver. Just the probe. > > > RVU AF driver will use APIs exported by this driver > > > for various things like PF to physical interface mapping, > > > loopback mode, interface stats etc. > > > > > > Signed-off-by: Sunil Goutham > > > --- > > > drivers/soc/marvell/Kconfig | 10 +++ > > > drivers/soc/marvell/octeontx2/Makefile | 2 + > > > drivers/soc/marvell/octeontx2/cgx.c | 117 +++++++++++++++++++++++++++++++++ > > > drivers/soc/marvell/octeontx2/cgx.h | 20 ++++++ > > > > 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? 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? Arnd