Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp254520imm; Tue, 24 Jul 2018 18:28:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdZP8bngjxDGp5pHN06FM3QOz8S6486xY22+Oyd2hOanMS164SQpKvrErGgYRhyZ6znvdoW X-Received: by 2002:a17:902:9f90:: with SMTP id g16-v6mr8087781plq.304.1532482107865; Tue, 24 Jul 2018 18:28:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532482107; cv=none; d=google.com; s=arc-20160816; b=RmDRvcoBKxcpSCdNUpUsJFxo2gMOXzRy4NGFamJHuyT0AaXLxpr7rK4zGRYUW4z3Jk aW60cJXgb+4VUljTgjtoa3j8n4B4uDvtL5l16rrpS1lr8CEC5zFDU1vy4UgK9bVWi09e d5T8BF4Z0bRYFq0ifEBL+xQbmnuJexlm+a7/lFho7H99dDc9PoDqCePzCui13hEmXx0f 5RioksuI04nAIeF+P5I17VgNHE130fnpHpjwUtv1vzWyI/It+RNaf2gy7K0G5E2gNRbK ruoUaRyhb3ty//HRDUSEbdh3mccKORZzDEd7RVWhWwQSuuxPJShzSixh/XjOlxgOxqBO 4+Cw== 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=sLoZwFE0tcWQWqHU2hdaCl5wfiHsDpZbDVPRSEnkEWk=; b=LLzzFvzfclwWVmIq4K9Y12uUqW2k06AQk8HMQqpwHTWx0m6/Wd6ii85vXjodvrmd73 YJN37ejhyiFZyDrf8hapN01wQhKy17SeqpFBtKRI2Ffd1VCa7P0tRIOb8A+qCkwxBJaQ oJ5uAPL130AtcsjGtNTOxdStE6IQ2ps8jelyFdHc+LDczk/dz1Hy0ZPnnnsw7uYnNZZr TP4ap0E1x9wMfalvq96QUP6VZtRzjPthsoIZLcfW8fJsbxw6CfuOKtUIre77shQYIU0E 36x07Djr0vCxmwDVpunjjie/6aKGWf8rCv8C9mAgVqYrE4mVjHdPnwCGTryU1cG0hpwf HI2g== 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 h1-v6si11724640pld.485.2018.07.24.18.28.13; Tue, 24 Jul 2018 18:28:27 -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 S2388577AbeGYCgX (ORCPT + 99 others); Tue, 24 Jul 2018 22:36:23 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:52346 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2388420AbeGYCgW (ORCPT ); Tue, 24 Jul 2018 22:36:22 -0400 X-UUID: f80a00c0099b48c69db80ab43e6ab9be-20180725 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 491444132; Wed, 25 Jul 2018 09:27:06 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 25 Jul 2018 09:27:04 +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, 25 Jul 2018 09:27:02 +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 v23 0/4] MediaTek MT8173 CMDQ support Date: Wed, 25 Jul 2018 09:26:38 +0800 Message-ID: <1532482002-11164-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 v22: -remove properties 'timeout' and 'thread-num' from device tree -move timer from CMDQ driver to CMDQ helper -move dma unmap from CMDQ driver to CMDQ helper -config thread number in CMDQ match table -remove reallocate mechanism and let client specify the cmdq buffer size -let client specify the timeout time 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 | 57 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 569 +++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 12 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 291 +++++++++++ include/dt-bindings/gce/mt8173-gce.h | 44 ++ include/linux/mailbox/mtk-cmdq-mailbox.h | 77 +++ include/linux/soc/mediatek/mtk-cmdq.h | 135 +++++ 11 files changed, 1208 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 -- 2.12.5