Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1344190

Re: [PATCH v7 RESEND 0/4] mailbox: hisilicon: add Hi6220 mailbox driver

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Jassi Brar <jassisinghbrar@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v7 RESEND 0/4] mailbox: hisilicon: add Hi6220 mailbox driver
Date Fri, 26 Feb 2016 12:50:02 +0100
Message-ID <r6p4e-2AD-13@gated-at.bofh.it> (permalink)
References <r2rR1-1Jl-7@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=TcTs/6hpts8h9uRFsLfTeKJJ9Qe/kSHKst5uJb0F/9s=; b=TIm+V1njEO0drTMNHYXJrTFl37kAX32sx2DmV+0XNz19RiyJN9tcpdYLewN2hGIv5Q LiF/fvewGRgLuQvE0HWUULCuY/tiLI89Wz95OyyoeuxsoA//WcCX4uyFbHgdEaRCygzu SbXBbQL7YiVsqjcsjUtZB/iQDRsHcVRl/Wb7Fl8zt3M/3i97tsZvGZfB6VDwe21Xk5Wl r+jC2jVVDe+pQF4GYmZOxPct7aX1TNGFuj04qZkc9rxRzHzOjvgZ8R+ow/Lf/KTZVFX3 nxCySFebPYhuIy8tw3UIz07t9NpnLM+JxGoVHVLOPQSSEzhnB7TXqp0SzKM/GK4BcXEh cpTQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=TcTs/6hpts8h9uRFsLfTeKJJ9Qe/kSHKst5uJb0F/9s=; b=DKBcxFNYdrjkg5jb/Gq/BegNhPHVSUHYlD7TKk9dxM37qLGPfD9JlckzIGaWc5cZvz 5V/E/r7maAXJ3aO0Dr2hlX8VsBGCw8d+7AL3tHkLT/NYThmFPk6q2rbo6pRLL2LV4WCG gfCVmTCC/2VwEFe3ta4i1/lGI9Y4grY0isE5LwJyTLhHkxxX1CbX5Nqu80UbCuocHRss nOdNqhSsPvaMAgkPsUXXNrcF+evTI8rG0+KXCDUa+8i4KBwK3fGbUci9W0EuPERguP/W JTgPT5timf082oGotRfJfunSJiVJ53wN8iskcJK/B/MAngV+6jIrWXKi1z/+c098lie5 FBJQ==
X-Gm-Message-State AD7BkJKhp6m760IrLZRKG92mAdWE/GjtwfXuZxBDTq5Zdv3NENdopwEMBW8tSuQci4ZmYaRFOIR8KyZ4DLqdUg==
MIME-Version 1.0
X-Received by 10.50.155.67 with SMTP id vu3mr2231325igb.50.1456486811079; Fri, 26 Feb 2016 03:40:11 -0800 (PST)
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 66
Organization linux.* mail to news gateway
X-Original-Cc Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>, Mark Rutland <mark.rutland@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kumar Gala <galak@codeaurora.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Tyler Baker <tyler.baker@linaro.org>, Arnd Bergmann <arnd@arndb.de>, Sudeep Holla <sudeep.holla@arm.com>, Bintian Wang <bintian.wang@huawei.com>, Chen Feng <puck.chen@hisilicon.com>, Devicetree List <devicetree@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Wei Xu <xuwei5@hisilicon.com>
X-Original-Date Fri, 26 Feb 2016 17:10:11 +0530
X-Original-Message-ID <CABb+yY0_OzKmftb0HQKyfuE+2jgOfoRLHp-ok=Ux36sK8na6Ag@mail.gmail.com>
X-Original-References <1455544226-10094-1-git-send-email-leo.yan@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1344190

Show key headers only | View raw


On Mon, Feb 15, 2016 at 7:20 PM, Leo Yan <leo.yan@linaro.org> wrote:
> Hi6220 mailbox supports up to 32 channels. Each channel is unidirectional
> with a maximum message size of 8 words. I/O is performed using register
> access (there is no DMA) and the cell raises an interrupt when messages
> are received.
>
> This patch series is to implement Hi6220 mailbox driver. It registers
> two channels into framework for communication with MCU, one is tx channel
> and another is rx channel. Now mailbox driver is used to send message to
> MCU to control dynamic voltage and frequency scaling for CPU, GPU and DDR.
>
> Changes from v6:
> * Fix to use lowercase for hexadecimal value in DT binding document
>
> Changes from v5:
> * Refine to use mailbox three specifiers for client driver, so add xlate
>   callback function in mailbox driver to support these specifiers
> * Refine document for property "hi6220,mbox-tx-noirq"
>
> Changes from v4:
> * According to Jassi's suggestion, using DT binding to register channels
> * Change to use operating-points-v2 to register operating points
>
> Changes from v3:
> * The patch series for enabling idle state for Hi6220 has reserved memory
>   regions, so this series will not include it anymore
> * Refined mailbox driver according to Jassi's suggestion;
>   Removed kfifo from mailbox driver;
>   Removed spinlock for ipc registers accessing, due every channel has its
>   own dedicated bit in ipc register and readl/writel will introduce memory
>   barrier, so don't need spinlock to protect ipc registers accessing
> * After mailbox driver is ready, can use patch 4 to enable CPU's OPPs and
>   stub clock driver; finally can enable CPUFreq driver for CPU frequency
>   scaling
>
> Changes from v2:
> * Get rid of unused memory regions from memory node in DT, and don't use
>   reserved-memory node according to Mark and Leif's suggestion; Haojian also
>   has updated UEFI for efi memory info
>
> Changes from v1:
> * Correct lock usage for SMP scenario
>
> Changes from RFC:
> * According to Jassi's review, totally remove the abstract common driver
>   layer and only commit driver dedicated for Hi6220
> * According to Paul Bolle's review, fix typo issue for Kconfig and remove
>   unnecessary dependency with OF and fix minor for mailbox driver
> * Refine a little for dts nodes
>
>
> Leo Yan (4):
>   dt-bindings: mailbox: Document Hi6220 mailbox driver
>   mailbox: Hi6220: add mailbox driver
>   arm64: dts: add mailbox node for Hi6220
>   arm64: dts: add Hi6220's stub clock node
>
>  .../bindings/mailbox/hisilicon,hi6220-mailbox.txt  |  74 ++++
>  arch/arm64/boot/dts/hisilicon/hi6220.dtsi          |  64 ++++
>  drivers/mailbox/Kconfig                            |   8 +
>  drivers/mailbox/Makefile                           |   2 +
>  drivers/mailbox/hi6220-mailbox.c                   | 395 +++++++++++++++++++++
>
Applied 1 & 2 to mailbox-for-next.  Patch-3&4 should go via asoc tree.

Thanks

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v7 RESEND 0/4] mailbox: hisilicon: add Hi6220 mailbox driver Jassi Brar <jassisinghbrar@gmail.com> - 2016-02-26 12:50 +0100
  Re: [PATCH v7 RESEND 0/4] mailbox: hisilicon: add Hi6220 mailbox  driver Wei Xu <xuwei5@hisilicon.com> - 2016-02-27 09:00 +0100

csiph-web