Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7060581imm; Tue, 28 Aug 2018 05:54:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaSdYEMf9+LVboFu/Ze47L3KnhAIM7PNNoSQtACPrMqaX8cvpMFwzDQ06voNm/kKXo7JSR3 X-Received: by 2002:a63:4d47:: with SMTP id n7-v6mr1466834pgl.270.1535460855738; Tue, 28 Aug 2018 05:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535460855; cv=none; d=google.com; s=arc-20160816; b=CNZJi5M93Ahbs9q2t/XwfOWhmX58KTeNpaXC5GpOnjrY4XXNnT4ikVJOyLrjsGRWrc ukrHDA5TJhem7r/i9rR1XTz9fqjUfWQyfxlGcn2Nq3cIkPS5JzkPgMBpZ0Of74uNVy5p bDc+/swH7F1vgfOCDIMhfBG41n+ol715ofAAg6JQa11nZtOVxXGWCWkpDpMa3dl8fHJY 49BfToyShicWpzHMB+Evqn+I0e52WAOpxyNXSzS4Aj6fq0bIQsRvMjae2ZZhWOnjKtbn H+9NG5IbLiGjjaFSBZp+Ph23GaI7RU1DdBGHpjYNv6WftwyairWvIiQcqDaBXk9xCZP/ JRqQ== 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=daeeH0czeyZPJwNOZjDyqBx45o6MGqwmHVNKhVJn3Yo=; b=x3gavSFyBzIt5LfzLm53gtQOWX6cWPpNFQH4nOkb2Dv+XhsOk4WWnm++kVrrNmq2sk v0SEbd+AbaN2FPI6UiNQy0vkDuD2NmR6igjRIW0wv/jjK309gUR1FZAo/jCefjxgQcDU VJp5pnOQD2BP09zmarxcUAERMVxg8NREal3g5CH9+nkJ5vjjmQucZ/unF5AAiPCSecSc FcDJc7QfwhPlCg1WOFfZJVFivFvkPdfF791338q1H3VlUmvUDeNG1Eyfg90EbLR8UlsE kLaC1z9KZzYna7c7sTP/lYrdz7FmhpzUWV5WttWZRDNu0wged4391w/lrbsKoAFKFagC iOJw== 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 e68-v6si969870plb.38.2018.08.28.05.53.59; Tue, 28 Aug 2018 05:54:15 -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 S1727853AbeH1QoZ (ORCPT + 99 others); Tue, 28 Aug 2018 12:44:25 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:43684 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1QoZ (ORCPT ); Tue, 28 Aug 2018 12:44:25 -0400 Received: by mail-qt0-f194.google.com with SMTP id g53-v6so1457676qtg.10; Tue, 28 Aug 2018 05:52:53 -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=daeeH0czeyZPJwNOZjDyqBx45o6MGqwmHVNKhVJn3Yo=; b=BLLOyj29ElS7VFOGyniS7g4MpwkPr0X4xSECDQgS2xnHSw1l/4pBizsOKnpzOGh9yq cM/tQ/Y0A/EhkTmwu4l9aE+h280Fqjw1nxb89JajnQV79j9+ZsdrPNZIZpxdbmw2qiKP N0hCLM3E/IgMTyErZI6AEuapk6gp2clR1NpdZbb4G7oehsOpHWF3qLYt1re8HSJIUovL CYhcNhfq1odNsUSwvMHJ19/gycgm7Bc93o6NjGK0hcurcaNG052qIU5qXO3T0t/p2w27 Usfv5pMKyQPk/UfI2mzvl+FYQLBjXPjBJB+aKxw3fn5X9OtgIBx6fOZDKq2o0L7T1a5w t5+g== X-Gm-Message-State: APzg51BwLILVN3rWHAG4JWNybFT5l3WKZuzzwHWdkdJwU2rzivkM8bBP OgSSJ8JypSLMPgW/nNUXy55EfjMQB8znpeF5uP4= X-Received: by 2002:ac8:6959:: with SMTP id n25-v6mr1482418qtr.9.1535460773306; Tue, 28 Aug 2018 05:52:53 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> <1535453838-12154-5-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 28 Aug 2018 14:52:36 +0200 Message-ID: Subject: Re: [PATCH 04/15] soc: octeontx2: Add mailbox support infra To: Sunil Kovvuri Cc: Linux Kernel Mailing List , Olof Johansson , Linux ARM , linux-soc@vger.kernel.org, amakarov@marvell.com, sgoutham@marvell.com, lbartosik@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 2:48 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:33 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:57 PM wrote: > > > > > > From: Aleksey Makarov > > > > > > This patch adds mailbox support infrastructure APIs. > > > Each RVU device has a dedicated 64KB mailbox region > > > shared with it's peer for communication. RVU AF has > > > a separate mailbox region shared with each of RVU PFs > > > and a RVU PF has a separate region shared with each of > > > it's VF. > > > > > > These set of APIs are used by this driver (RVU AF) and > > > other RVU PF/VF drivers eg netdev, crypto e.t.c. > > > > > > Signed-off-by: Aleksey Makarov > > > Signed-off-by: Sunil Goutham > > > Signed-off-by: Lukasz Bartosik > > > > Why does this driver not use the drivers/mailbox/ infrastructure? > > > This is a common administrative software driver which will be handling requests > from kernel drivers and as well as drivers in userspace applications. > We had to keep mailbox communication infrastructure same across all usages. Can you explain more about the usage of userspace applications and what interface you plan to use into the kernel? Do you things like AF_XDP and virtual machines, or something else? Arnd