Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7056119imm; Tue, 28 Aug 2018 05:49:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdahNci1B/l1ZvTxz5vFh3W7QIKnX/xq6sUNOeKraZnIkNfs7XG1p1PQqNRCk1mAMuHOnnzg X-Received: by 2002:a63:f344:: with SMTP id t4-v6mr1458440pgj.428.1535460570138; Tue, 28 Aug 2018 05:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535460570; cv=none; d=google.com; s=arc-20160816; b=FuJC05AvlhbRy6ec0xxkHdHkGfw4Ea288MFwtrUsfJUnr/pIXcwS8WO885U+Px7phi ikWC2s5njjTJRK8DNaSTsSYE6J0eS3h5QGYdHrK3cKJbDQsvMNgeWaCTL97Eu9v/RtMz TkRPZQRvQsVIailMdocqbIpS+CcJLNuJfBlHItVbfNEKzVaNOPEHaZcUauhnn/CDYQAN TdsT3yFbfn6QdU9619DQWCXjxzOak+ebZlG8K7XIELLbtta6z3LQZ3cQYfXMPA9FHAOf dxCN8Iz5EvAFLWIU5smgOo5sxj0Wk6eA7QNXB8QuxeNc/mkyF7F0xpBBUo1/tXYRdwJQ eHvg== 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=pxuZhYAaqUx6YU3YVGYy8ZMUdTBOC1bDjoQSAjbQKUQ=; b=VItg+cCDGnNgBETcxpHX61TAH+02XPIEmN9Qd29lBiWZAtz0Ev2BEoTok7pYBJiqLz FxWwkbDTRGGDBkXRz1KBesSnULvHtbXKHxSKNni9hreoJ5rTG9bsiMIjKw+UZQpUgII0 SVxpqCx72hPGCsbWMeQgbOvcprs4R42GIbCYu9XPxZLkEh0tUWvv77gkfgpxQIJv0EDk pll4r8eTsb52WdcQrdg+vkO79cVTQf7UQa+DRmm087Sua9+Vn6GrWQKvRnUkqMjnBa06 vmbND5fBwqrP21qvGc8C7ZKUxixn+KqIEKjhgQ5QipZOcESIUbJxtBKzx6Mp/eE/OMlK mPIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=leHmohEm; 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 b87-v6si990867pfm.5.2018.08.28.05.49.14; Tue, 28 Aug 2018 05:49:30 -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=leHmohEm; 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 S1728023AbeH1Qjc (ORCPT + 99 others); Tue, 28 Aug 2018 12:39:32 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41363 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727224AbeH1Qjb (ORCPT ); Tue, 28 Aug 2018 12:39:31 -0400 Received: by mail-wr1-f68.google.com with SMTP id z96-v6so1462446wrb.8; Tue, 28 Aug 2018 05:48:00 -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=pxuZhYAaqUx6YU3YVGYy8ZMUdTBOC1bDjoQSAjbQKUQ=; b=leHmohEm0h3Az5c8RZDxtpR1xa9vUJ6ydshpF8uKm6bnWxZ6KCjVsugR8fOi8c2TK2 OEox/UZgYurGKUFUqFwZxmhfVwN9N9BEYGyZwvQx1aF3FP2s1YQku1ZR7C8nbZcsj/uX z62REHzHDKumtTShzln1gDFGego8+dIJDaZdCpVaKQVx+k0sab1GQ3CibvCDRupdvBAN xYlB0N28m63yrgc9scoedhKxId5ppDQ87byH7CtDdlnOqFJzk8p/L1+21CpTs634i4H5 gEyupLiLtBWYpAWmlZf54OaJN3+iUCFm8wQvdaTMSG+62PyfU+TEdAEfmS+fvcAer1iL y59A== 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=pxuZhYAaqUx6YU3YVGYy8ZMUdTBOC1bDjoQSAjbQKUQ=; b=anRcQE1L+WFT75uqubAytpSslx8pMGCtgtqR28Gj0FH9XyKZQZLOiobwwwheVF3eoX bOcGsf5mp6wX/dsh9xBARm7DoUpHDY2gH1fBlNSDmzEbtTTZV5pbnszJZvb7rYR8BY1s JBIomGkqaszh+t7341wBqQkxRzJfNeXgEOK89hQ0BqeoS1AlAD/XEhHp92k4aGTNVgIb v+/bmHJ9MFO0Wk9jJfqSr0efLq/rvihZxt6LP1mbFRk6KuDq5VeqxfYxSNLRHpikGh7X yFn1Ol3VAsytSlr+grV8lLDfqA9haxJMpCK6XF94r25X0j+Ns2+xKEzFzY8axHP+z8k6 d5dQ== X-Gm-Message-State: APzg51C6AAH4bBtd8eei0m053QFN5gmAQfapeobyLN5ydRaWcoq4t/ZA KOTy0Fp7IkwTEwIIXSCZGVRnQZtHv6FQtb97HWM= X-Received: by 2002:adf:9051:: with SMTP id h75-v6mr1127937wrh.65.1535460480096; Tue, 28 Aug 2018 05:48:00 -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: Sunil Kovvuri Date: Tue, 28 Aug 2018 18:17:48 +0530 Message-ID: Subject: Re: [PATCH 04/15] soc: octeontx2: Add mailbox support infra To: Arnd Bergmann Cc: LKML , olof@lixom.net, LAKML , linux-soc@vger.kernel.org, Aleksey Makarov , Sunil Goutham , Lukasz Bartosik 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 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? > > Arnd 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. Thanks, Sunil.