Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1622452lqb; Sun, 26 May 2024 09:13:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfE7eSKn0N5UVycB3RWq2nj/sQpguouWGytlmfGRgTcr5T2UeXah1+1gx6y1tSe4bl4mEzKbIDz+vHDe/OdlhUfJZFHD6Men5e+IhUWw== X-Google-Smtp-Source: AGHT+IEstaqBoGVuNwKt1h8P9dXZAgNScof8zfjxjg7cX4PQn3BiSNO2ar9h6K/aimsvpa+eAU6V X-Received: by 2002:a17:90a:fb50:b0:2bf:5bb6:5a75 with SMTP id 98e67ed59e1d1-2bf5f306e1cmr7232797a91.34.1716740033870; Sun, 26 May 2024 09:13:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716740033; cv=pass; d=google.com; s=arc-20160816; b=QunWGihpI/67Nq+O6rS74qTzNYdwGP1glsAoFyGuc7sjYuzWO2EJKNy8em7SSYjdUO F0N4kPtLF8x2sreYw/2yab4FlzqEB3IEAQqkcdVuPkT8DnjcQrLC894eG0C1NccK8BI9 kdR2we9fZqwkIB2eL6S17Eo/GZOJ9bfKjCAl5A6TFRLO7+wi/wYlAJRWAl5v9tGEl0Kx meRn7TlLh8pv3lpkCKjUwrt33Hc7loQqAjQ589OjBX+2Lx/icYgTKPjF5fpmHQ+q+3qE kQBx0ixhhh1jhxPdWcCIsWyOawE/NO1WUiw2vPkv84asKwTyjIZW6canIDr9ZgCL4drU 33/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:message-id:references:in-reply-to:cc:to:from:mime-version :list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:date:dkim-signature; bh=O52609GRv3xD7qw3vqEPMnovBck5Z0eCo6hQ6lSwaUw=; fh=MkrfE0jzUFwvbZCU6sQzraR0th0K+lsV+tCzBd9+o9A=; b=Qk0H0lwq8CwnaiDTpGKkNJBMxFr30y/zMeM4hF35IOGYzuBWjE3+LUDBfnKYHq3gD7 Q1YcvYal/ldMFasH1rVl0jWrnRYcN+rocVfaOdSrh4tOH90JAb/91pm6GEwH4nATlDaU 6WyHhgDhLHeHOdgA128PCGUdLNAp7w0A6xlDW4daEs5YHaHLvhSTIrVqeXbhoCZRQTZM HBMBfulHS38Ft/8uBycSAUYzwLgLFkB3TS8W8B3NnFlNWba2l2qImQmohvNzKDu9DMsH /g3BzZxZkJqgoAOjCpqCDCUm6gPenNvDv9v5CUNh8oQl+PMtW1kkyIwTOQeBGSj2IXvG zFZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/92gJPI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9ed93d7si5727049a91.8.2024.05.26.09.13.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 09:13:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/92gJPI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 764ECB20C7F for ; Sun, 26 May 2024 16:13:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1604B18AE0; Sun, 26 May 2024 16:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O/92gJPI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 345418F6A; Sun, 26 May 2024 16:13:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716740020; cv=none; b=SEqDgWp/A9+tU3FsarX0t2Ain/2YJXHCBmClUHRdFigk6HS3i0UGHo1XDRPeHDB5vPiO88f3wjBpjrFngv2y2aBtD9xKNyX96/6mF4uUYZ5ztvt05Am6DwrY2AYkO8DJXRGhSvqreMD5+/10uhvWirfUDiCVpUvKQxgtdCOeonk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716740020; c=relaxed/simple; bh=leD2S7lpS8n5EdWPOzT2u2+2bVeUmpHLgfDZY3EfIow=; h=Date:Content-Type:MIME-Version:From:To:Cc:In-Reply-To:References: Message-Id:Subject; b=hbxRJIpwvEbYXu/BTKuqCOzTdYMkZJHkqTOI0EOzyXjGpVXpZdI8qONchzwfqSfeWszMgn5c28tSb7qTohoxeLn2KtuaxxXKF5Jv/+7WgdQyU5nLDibIelL7LJFKo2Z286kPuDs7VAouoV5bhkNevRUNBZCJRabmSExhA7A0ZvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O/92gJPI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA1AC2BD10; Sun, 26 May 2024 16:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716740019; bh=leD2S7lpS8n5EdWPOzT2u2+2bVeUmpHLgfDZY3EfIow=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=O/92gJPIjF8h703XZyIrycQN5bhPIfL5bQPmr5DgAPmGgDDKXrDPq3vHLNjXDStd0 l10/ktzrPqKjDKHqMg4GWoUDdHxvgaO3Pnz6tjcZ60AQoCqOJI+OglswsCSq9H5VDU pQE5xbgDrhCCfMazsLYfJ+zBFbVqxJtT3Cr3Z+Y4uPM5zbZANNuNImzGPhnhtQbWNy dhmwoZAL8e2u77Y/GHbDEXe9gUYuisBnZ4f8a/Lu+SGKsjU8i4/Xekz5h54CXXSIHr Q1dAgnBD3YzA+U2VPioe4/VqTLziOGyMeTdf/JpXEQ4PbJH6NMbNyp1yAG46C/gFNQ rxMLI9nun3CQQ== Date: Sun, 26 May 2024 11:13:38 -0500 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Rob Herring (Arm)" To: "Jason-JH.Lin" Cc: dri-devel@lists.freedesktop.org, Conor Dooley , Jassi Brar , Matthias Brugger , Singo Chang , Rob Herring , Nancy Lin , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Shawn Sung , linux-arm-kernel@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com, Krzysztof Kozlowski , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, Chun-Kuang Hu , Jason-ch Chen In-Reply-To: <20240526144443.14345-3-jason-jh.lin@mediatek.com> References: <20240526144443.14345-1-jason-jh.lin@mediatek.com> <20240526144443.14345-3-jason-jh.lin@mediatek.com> Message-Id: <171674001829.1684465.16088341885457355919.robh@kernel.org> Subject: Re: [PATCH RESEND,v6 2/8] dt-bindings: mailbox: Add property for CMDQ secure driver On Sun, 26 May 2024 22:44:37 +0800, Jason-JH.Lin wrote: > 1. Add mboxes property to define a GCE loopping thread as a secure IRQ > handler. > The CMDQ secure driver requests a mbox channel and sends a looping > command to the GCE thread. The looping command will wait for a secure > packet done event signal from secure world and then jump back to the > first instuction. Each time it waits for an event, it notifies the > CMDQ driver to perform the same action as the IRQ handler. > > 2. Add gce-events property from gce-props.yaml to define a > secure packet done signal in secure world. > There are 1024 events IDs for GCE to use to execute instructions in > the specific event happened. These events could be signaled by HW or SW > and their value would be different in different SoC because of HW event > IDs distribution range from 0 to 1023. > If we set a static event ID: 855 for mt8188, it might be conflict the > event ID original set in mt8195. > So we define an event ID that will be set when GCE runs to the end of > secure cmdq packet in the secure world. > > This can reduce the latency of software communication between normal > world and secure world. In addition, we can also remove the complex > logic after the secure packet done in the secure world. > > Signed-off-by: Jason-JH.Lin > Signed-off-by: Hsiao Chien Sung > --- > .../devicetree/bindings/mailbox/mediatek,gce-mailbox.yaml | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > My bot found errors running 'make dt_binding_check' on your patch: yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mailbox/mediatek,gce-mailbox.example.dtb: mailbox@10212000: False schema does not allow {'compatible': ['mediatek,mt8173-gce'], 'reg': [[0, 270606336, 0, 4096]], 'interrupts': [[0, 135, 8]], '#mbox-cells': [[2]], 'clocks': [[4294967295, 4]], 'clock-names': ['gce'], '$nodename': ['mailbox@10212000']} from schema $id: http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240526144443.14345-3-jason-jh.lin@mediatek.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.