Received: by 10.223.176.5 with SMTP id f5csp1006936wra; Tue, 30 Jan 2018 23:30:07 -0800 (PST) X-Google-Smtp-Source: AH8x2279ifhZTfP/osCiYWf0Gv0bFZQfkjTeETS5K0dQ9p3CXJOf1L0e8t67uZQjCjhpvDOZ8fUD X-Received: by 10.98.97.4 with SMTP id v4mr22444947pfb.160.1517383807269; Tue, 30 Jan 2018 23:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517383807; cv=none; d=google.com; s=arc-20160816; b=hzkNKTUTZYk6zev4Wtir7SAoosSne25hnArnJ4GnjFXmkAmQAd87uJubfpoOVPJUfy Nx0NBhPm5GDxxobcdh7a0vk75D4Nu0nYNTPQXTKnEke5tHjTVZOe0PDVqezYkligAa7K lDI+mo28XgsOw8K3+v1j9cixc0yze9ekcDIkFEYqA8QXXlkKkjugFS5XPeKtFXCdz8D0 yAZPWu1nPWISSBN33HE0nUN0AND4O0M9J5BN2irthPUhgVseW1v9iOtmX3vpn5JQAQrs ydkr2r8O2xNfupRRarHwpSWb4QJuBpy8CZRvzkc5uOk3GCw40mOC+w+BwOzMPXx7Sd1m nIYw== 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=vol3AAiFefT9QVvx/+cY09FfxJ/I9x1KxlnCnHUo/Is=; b=Q/8s10q/RcxlGhVGkTs1YYdWfT+bRSOHSIlbaRgUQkTiV6ouvba5aN5z4h0xwkoLoL oSrpZQ7kM8aExAukjieQiSb2u+PRnteWITfZzGVYFtEaHkeffLKQpZUgpL1GNXpG5VY9 7s02lq+kzUZxBSFX1K688pmRgXgAtfGxEMzYZzr11xfeCWCAGSpdl0o5qvUbvoV88939 QsUp3fy80X6B9eh7p/NvGYpLzzeDQKmpum5GjK3sad0iTvnJxQ0VjuYZ1uqRHtKNb/oY 7W7qfQGk8xRmkpDme0Cfoub5sV9OHYGWjNm00AlFic4O5TlZRCswhcbq9BbgeCz0UAc2 FvBQ== 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 j72si1159626pfk.24.2018.01.30.23.29.53; Tue, 30 Jan 2018 23:30:07 -0800 (PST) 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 S1752867AbeAaH3O (ORCPT + 99 others); Wed, 31 Jan 2018 02:29:14 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:30658 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752843AbeAaH3M (ORCPT ); Wed, 31 Jan 2018 02:29:12 -0500 X-UUID: 83c4726366524cec9445ec943ee806c0-20180131 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 49432465; Wed, 31 Jan 2018 15:29:06 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 31 Jan 2018 15:29:05 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 31 Jan 2018 15:29:03 +0800 From: To: Jassi Brar , Matthias Brugger , Rob Herring CC: Daniel Kurtz , Sascha Hauer , , , , , , Sascha Hauer , Philipp Zabel , Nicolas Boichat , CK HU , cawa cheng , Bibby Hsieh , YT Shen , Daoyuan Huang , Damon Chu , Josh-YC Liu , Glory Hung , Jiaguang Zhang , Dennis-YC Hsieh , Monica Wang , Houlong Wei , HS Liao Subject: [PATCH v21 0/4] Mediatek MT8173 CMDQ support Date: Wed, 31 Jan 2018 15:28:09 +0800 Message-ID: <1517383693-25591-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 v20: -rebase to v4.15-rc1 -move dma_map_single outside of spinlock Changes since v19: -rebase to v4.10-rc2 hs.liao@mediatek.com (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 | 43 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 594 ++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 12 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 322 +++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 77 +++ include/linux/soc/mediatek/mtk-cmdq.h | 174 ++++++ 10 files changed, 1245 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/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.h -- 1.7.9.5