Message ID | 20231222045228.27826-2-jason-jh.lin@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-9343-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp849380dyi; Thu, 21 Dec 2023 20:54:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwhYSPAT++RnbvdoQJvQ3LMG6TNIHmksw1ojWSvZQRESOKhw4oIdE9MZB/PYMTNNHCr3CS X-Received: by 2002:a05:622a:60f:b0:419:6391:6bef with SMTP id z15-20020a05622a060f00b0041963916befmr1226647qta.0.1703220855617; Thu, 21 Dec 2023 20:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703220855; cv=none; d=google.com; s=arc-20160816; b=zwPgMc2SA1tRoUuGtkOjPT8BgGhMIl2Rl2a3BUPklhccHyclScmJZ3TIjZdM1I3Cqq Gxv4jrhlmT5XmpdSCGPcei6nipSVG2Cv1iEcgI0PpZmeu4H+1Ddwe+VLubFuwlsZYP8R Vuw0FgqsB5WMtsBUbWenHk0bZCIrZt/dVHc5numo6OYbytsFP2prSc11HrM2zFjwvbX+ bjbX9dBLVq+4Lb7hXxmrl/6S8GrRTsEvmi25pJtl5Ys2HF4y1KEKaUROb+FBHcnGT+qR x2xugfn24e2AYk1jnahM0VpUbDUlN+SCIIQdG3/xgW0BX4mJ38H0o5xkkYVy7EOXgM/S OA/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ApMxyzbtFHgYNE0PrnErFp8M92tSIPCACubSqBW+Fxs=; fh=9GXooidGHdC4mKy+YjbRPS9j3Njre1sTa37NFoEebi8=; b=KdCQs+QWDudROMgkg+0Z3y1GQyp3vACIfjCNTsLKVGbysuo9/hqPHkFJmy9/QC9xjN e2+/p+gC04A736mN6t/CSh4BvORfC2UGnN3Llh9AXxmeBZ3DqFmPFaU5EuXArxYCu00y noPgeAbZ1iq3sbXUi7htADiWEeJ+4K9Rjg1DoGFES0HDudAdWtiUmJz6UldCgK29e5vJ P1cWGXieCCYmafkuYFLTEMwUUoxIPsCAg/cyU7o78OPfhV8+6HVNnl2HiT6OFhS8BHtv ZQM4m09k3sWOb1LNZgwo0AEt6WWw4hKkRwfdQa7TaJv+6D58TQscScGZwSS6Yh51+MhH 3lIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kT55w8dW; spf=pass (google.com: domain of linux-kernel+bounces-9343-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9343-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e14-20020ac84e4e000000b004237544461csi3698093qtw.355.2023.12.21.20.54.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:54:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9343-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kT55w8dW; spf=pass (google.com: domain of linux-kernel+bounces-9343-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9343-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F7651C24BD6 for <ouuuleilei@gmail.com>; Fri, 22 Dec 2023 04:54:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B841FBE8; Fri, 22 Dec 2023 04:52:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="kT55w8dW" X-Original-To: linux-kernel@vger.kernel.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7AFB566D; Fri, 22 Dec 2023 04:52:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: ea9c934ca08511eeba30773df0976c77-20231222 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=ApMxyzbtFHgYNE0PrnErFp8M92tSIPCACubSqBW+Fxs=; b=kT55w8dWd7DqmAkoZtrSdXVsrDshX3t/ZPBR0HU4893YLc5OZzogHtqgHf5ef1Cm16CVSzAnEt7PHfM4tBiQe2tye8bOBIz1ihVFVEYiQCqNZhAeZoJrbtn2PvZrKXuwMYUIkjV4Jfjuxj1GZFhKfepR0OSFSI0dlr5RMWHQioo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:fa52da85-4e29-41ad-8e4f-9ede808b8be3,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5d391d7,CLOUDID:ecac8c7e-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: ea9c934ca08511eeba30773df0976c77-20231222 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from <jason-jh.lin@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 449370549; Fri, 22 Dec 2023 12:52:32 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 22 Dec 2023 12:52:30 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 22 Dec 2023 12:52:30 +0800 From: Jason-JH.Lin <jason-jh.lin@mediatek.com> To: Jassi Brar <jassisinghbrar@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org> CC: Conor Dooley <conor+dt@kernel.org>, Mauro Carvalho Chehab <mchehab@kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-media@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, Jason-ch Chen <jason-ch.chen@mediatek.com>, Johnson Wang <johnson.wang@mediatek.com>, "Jason-JH . Lin" <jason-jh.lin@mediatek.com>, Singo Chang <singo.chang@mediatek.com>, Nancy Lin <nancy.lin@mediatek.com>, Shawn Sung <shawn.sung@mediatek.com>, <Project_Global_Chrome_Upstream_Group@mediatek.com> Subject: [PATCH v3 1/9] dt-bindings: gce: mt8195: Add CMDQ_SYNC_TOKEN_SECURE_THR_EOF event id Date: Fri, 22 Dec 2023 12:52:20 +0800 Message-ID: <20231222045228.27826-2-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231222045228.27826-1-jason-jh.lin@mediatek.com> References: <20231222045228.27826-1-jason-jh.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785956511621832516 X-GMAIL-MSGID: 1785956511621832516 |
Series |
Add CMDQ secure driver for SVP
|
|
Commit Message
Jason-JH Lin (林睿祥)
Dec. 22, 2023, 4:52 a.m. UTC
There are 2 kind of GCE event signal:
- The SW token means: a GCE event signal triggered by SW drivers.
e.g. SW driver append a GCE command to set a GCE event after a specific
GCE command. Or SW driver use CPU to write a event id to GCE register to
trigger the GCE event corresponding to that event id.
- The HW event means: a GCE event signal triggered by HW engines.
e.g. When HW OVL fetches all the data in frame buffer, HW OVL will send
a frame done irq and also send a frame done GCE event via HW bus directly.
CMDQ_SYNC_TOKEN_SECURE_THR_EOF is a SW token event that is set in the
end of each cmdq secure pkt. It is used as a secure irq to notify
CMDQ driver in the normal world that GCE secure thread has completed
a secure cmd buffer in thee secure world.
Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
---
include/dt-bindings/gce/mt8195-gce.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/dt-bindings/gce/mt8195-gce.h b/include/dt-bindings/gce/mt8195-gce.h index dcfb302b8a5b..b6b3db82c381 100644 --- a/include/dt-bindings/gce/mt8195-gce.h +++ b/include/dt-bindings/gce/mt8195-gce.h @@ -800,6 +800,12 @@ #define CMDQ_EVENT_WPE_VPP1_WPE_GCE_FRAME_DONE 969 #define CMDQ_EVENT_WPE_VPP1_WPE_DONE_SYNC_OUT 970 +/* + * Notify normal CMDQ there are some secure task done, + * this token sync with secure world. + */ +#define CMDQ_SYNC_TOKEN_SECURE_THR_EOF 980 + #define CMDQ_EVENT_DP_TX_VBLANK_FALLING 994 #define CMDQ_EVENT_DP_TX_VSC_FINISH 995