Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6217284imm; Wed, 27 Jun 2018 04:19:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdWpMz6kuoiLMor3vj4ZbGmf8HEESrPkfSRLMuFVMqldRUv9Qx4EE9BZbwDpt3IYsQ3w9Ua X-Received: by 2002:a62:c5c5:: with SMTP id j188-v6mr5473798pfg.32.1530098375670; Wed, 27 Jun 2018 04:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530098375; cv=none; d=google.com; s=arc-20160816; b=nvaEd9ES4rgPa4CgAHGhlFfBmjCSdt48wD47txFP6bjDdSc7xpTXkihl9PzoJ1mqRT VjdWasUurdNIGLoYSWx4itFGNsiVQOqOvsRmfi0jTa5ss1mBnxtEniXj+WM2zkCcqcLx C42aRk/Nqc8MS1T6swQfBeo7JOUI9JrG1h+hR55LEKp7QXTE1K9F7Ev7yJe4uM3aNGQv UyjPtqGCXHFErrExS5vCdDWLkQv1XokdpvmS9lhZ2uZdIdVJNin8RfFB63Hgi9fd4EFG BrCy+kP2r5Y8brpNoxfGxXWXrcD3pgeqlAsaDwjcelzLnV7ACYvzRn3RP5hXt/NfwwHu +oNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=4Mz7mLWA6R7M7bAvZY1YeI2m5SqJ3iGdXktQ012BAsQ=; b=np9ARUlsnbzLoQcX6rj0rSSb6sbC+P6I6yRFMu8LrjlnudA7ZemAxDqkLimlZP8arR Zr6oW8I/Yv73S9hh8n5YRahLgRGpqAEv28vxKNXMSnnRVYuMS6HCQtXbXBvqE88EiNB6 F5ZHLP6HViTBCBP8rHvIScU33cUYVggukf2FQq9xq7ZnKaCxs3fmFLOoUU62Q05qVNLN qXY2tUE5fDacGoeFJo1zP94iHZBNhAcB4yPUF1IZZcOqEPBzIHuRTA84bxGvJcWhKS/E QeY/Kvxg8NXLGTQZDPDVRmDxUhz4WfFOVVyY1606wXW7Om8uOFYdQCLpaqajw8N6BJIA opWw== 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 c12-v6si3234716pga.608.2018.06.27.04.19.21; Wed, 27 Jun 2018 04:19:35 -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 S933067AbeF0LQd (ORCPT + 99 others); Wed, 27 Jun 2018 07:16:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51544 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932242AbeF0LQb (ORCPT ); Wed, 27 Jun 2018 07:16:31 -0400 X-UUID: abca11c0455a462fa32d018016246a25-20180627 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1813034705; Wed, 27 Jun 2018 19:16:27 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 27 Jun 2018 19:16:25 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 27 Jun 2018 19:16:24 +0800 From: Houlong Wei To: Jassi Brar , Matthias Brugger , Rob Herring CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , CK HU , Bibby Hsieh , YT Shen , Daoyuan Huang , Jiaguang Zhang , Dennis-YC Hsieh , Monica Wang , Houlong Wei , HS Liao , , Subject: [PATCH v22 0/4] MediaTek MT8173 CMDQ support Date: Wed, 27 Jun 2018 19:16:08 +0800 Message-ID: <1530098172-31385-1-git-send-email-houlong.wei@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. Changes since v21: -rebase on v4.18-rc1 -remove subsys code and event id definition from mtk-cmdq-helper.c -add mt8173-gce.h to define the subsys code and envent id Changes since v20: -rebase on v4.15-rc1 -move dma_map_single outside of spinlock Changes since v19: - rebase to v4.10-rc2 Houlong Wei (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit mailbox: mediatek: Add Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node soc: mediatek: Add Mediatek CMDQ helper .../devicetree/bindings/mailbox/mtk-gce.txt | 65 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 11 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 633 ++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 12 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 258 ++++++++ include/dt-bindings/gce/mt8173-gce.h | 48 ++ include/linux/mailbox/mtk-cmdq-mailbox.h | 70 +++ include/linux/soc/mediatek/mtk-cmdq.h | 132 ++++ 11 files changed, 1242 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/dt-bindings/gce/mt8173-gce.h create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.h -- 1.7.9.5