Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp555024imm; Fri, 31 Aug 2018 07:22:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbQmO82wll78Th36OHaQ3MjjZoDubfzKi4MwV8kIq8eB1ZzgfVjDAvY/paryJaKKBemjWQS X-Received: by 2002:a63:e54b:: with SMTP id z11-v6mr14429132pgj.328.1535725347326; Fri, 31 Aug 2018 07:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535725347; cv=none; d=google.com; s=arc-20160816; b=0Jj89QTHpLZuqHGLgU3CRwWgyoOvJdbHlSfNe/zRLkuwjIhFpNW12dEZ5TN+ZGuR/9 meHjqHePgHl4L7IE8MbvZSiE019ayFv218D9vpT8aTkzllJyVUQgru/G9G74XlUoYdve Bh595fF5SnIgTNTYyV3cHHclTFHBzcCG2Br4UhUnfthVqr7SfqOXqbjOz6H0tEuekNC1 LLWIQxHL1ljNiSXTEiS2iZsFx2U7ZPp6frk/vPabAosSC67j+hv81afzqzMYaEcYOZaQ DqSgJpaQKq41XLspsBTK2Az+yyHtvTUc1miVRYtyX579haBqA9u/TFy1/x63+PCMLBo0 ITHg== 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=QcgN41Oo+CGYVjK/ybf8jNPwH3OQYLcVcyZsNNok/II=; b=uh14rzXf+Npj6ZelZujClZSq/ghLk/CbfVVQ8BihbLdxeiHYzhAt2kvT0j0PQ2NYes ba8ZDOSZXzw2xI9VVUGpP20xg/hKMXJlQrwh4K+5iBOkQrsBET4uDzb9cmgjV8Qpta1N UVw2AQUdaLnFMPHHFG58FIUHWsV9DI/mWuFsTAn6tDpXKR2TPcd1BBwmj75PFovaRkwq 6cfEOXbKyeiNHB/r4GorFTyRSVHTuG975RY0lUs3F9wxFTfe7ALz+2RYztqlLTwZ3Xzy EbSxkvP+e7fZD0B/UONzo8V7tRnq5Kohj3XRkomRS+ryG836rW9DXxU9ron/XU0LAr/i Yqyw== 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 y4-v6si9878329pgh.225.2018.08.31.07.22.12; Fri, 31 Aug 2018 07:22:27 -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 S1728616AbeHaS2E (ORCPT + 99 others); Fri, 31 Aug 2018 14:28:04 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:44413 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728088AbeHaS2E (ORCPT ); Fri, 31 Aug 2018 14:28:04 -0400 Received: by mail-qt0-f196.google.com with SMTP id k38-v6so14666069qtk.11; Fri, 31 Aug 2018 07:20:20 -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=QcgN41Oo+CGYVjK/ybf8jNPwH3OQYLcVcyZsNNok/II=; b=tWX8vIsS4l9IiR70G1fiPBWWgM2pPCTRW5isCvdrmY5oqIxphNJyGiOmF1XrulCZOl xm0c67zSeKPN8HM/T00NmnECAI4BCDX/GQXZ7BfZgDKbV0xWB16Kh+KiknLyiXeka643 nEJgbdWe4Hxhk890Al4zBEYMzXK8Dz7cMUVYbJUF/PwPfEjbaWQj4WLMekII1qOXjhJC m/m6Cp3gBQ0ihrgkxKSsfKNfj5yCxuDUjyYLkyx5YQz75RNJcoWlR4AGhneir5JcydYm +LdOkYOYWo9NgZ+HQUGe/5YnwZpiO5nFqjTkb9JmIovqs6qNWUj26O0bmpcadm+k0rv/ cwhQ== X-Gm-Message-State: APzg51BtdsSYBlf+wBeO3PnXV1oZaX1qhNdxUS846L1hQDK9bPWP9qmv +aYfC/T3C2sExyvab+vKVWLfxBzasdmC3BU+Llg= X-Received: by 2002:aed:3608:: with SMTP id e8-v6mr16697275qtb.75.1535725219736; Fri, 31 Aug 2018 07:20:19 -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: Fri, 31 Aug 2018 16:20:03 +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 Thu, Aug 30, 2018 at 7:55 PM Sunil Kovvuri wrote: > On Thu, Aug 30, 2018 at 7:37 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 3:10 PM Sunil Kovvuri wrote: > > Ok, I think I understand the PF/VF distinction now. One (to me) > > surprising aspect here is that you not just have one physical function > > that you can use to assign resources to multiple virtual functions, > > but also a second level of virtualization that is used to assign > > resources to "physical functions" that are less physical than the > > name suggests. > > Yes, PF is just for name sake, on-boot there is no difference between > PFs/VFs as such. > PF0 has privilege access to assign resources to all PFs and their VFs. > This admin function driver loads for PF0. ok > > The part that I have not grasped yet is what the split between > > the CGX and the AF is for, how they relate to one another, and > > what the software abstraction for the two is going to be. > > In HW, CGX is a separate PCI device which handles the serdes and > physical ethernet interface. > Ethernet driver in drivers/net/ethernet can only communicate to > admin function driver since they share a mailbox memory. > So we had to bind both CGX and admin function drivers to almost work as one, > inorder to provide relavent info to ethernet drivers. That's why we > have many functions > from CGX driver which AF uses. > > eg: Firmware gets to know about a physical interface status change, > which CGX driver gets > to know and it uses AF's mailbox communication to inform ethernet > driver about the event. Would it make sense then to combine the CGX driver and the AF driver into a single module? It sounds like you can never really use one without the other anyway, and that would make it easier to have a sensible abstraction to user space. Arnd