From patchwork Tue Nov 9 16:08:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 518045 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1899846iml; Tue, 9 Nov 2021 08:09:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAjJBmTI7tYvxwzu5AzCAHiIvPsboDewSRRgEEn9JR3mr8Lai3wwl06H27xAT1ATEl5qjc X-Received: by 2002:a05:6402:455:: with SMTP id p21mr11720978edw.384.1636474171217; Tue, 09 Nov 2021 08:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636474171; cv=none; d=google.com; s=arc-20160816; b=Qa4uB+ixnOUM97aYz3VHdwVtopcwq8ito0JEAdR2r0ZfD4phu4O7ncHEF2BCB/ikbn FiN9+/9DnJtwNeRzX5nghl3ynB8hkSd+6KS9Z34r16yCNis2briXgzllUCkFEvw6NR6m 58Qx5mohhHnyGusiMW2j4w7ZVyDQIllqzQDmNDc7w1E+VL8UNeye2+ogwwA73Lu2So5C LYlpcySmjxPqYry487BTabrfCaU1y/fbYblCVyP98PUESebBIpDjnQJ4wkL63LnKPvUG VJkw08hQpGcS3NwncBpPWtQJUoejiXNKe9e18bZWcJWXxuh2uI36zH5w/Hzypph7nt4I 1oWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Qb3P5XBmEO30RM1MFZo2YmxmHO27ojDSActweGvwFjI=; b=U83W0jIrOZrzAHKRP7h//Q8aRgyLLG3iU7i2dge24xBuGmhvn4yC5i86FLJVXhIVPv Hn40jLo0rS/hsbo3JVE/imrn4oGONecPRmydmJsyM1F3LrsXNXghiaqPTcJfsPyWKGPW cDxL74hC92NU3m2N/+DrSKPBYrTGyOrH2qRjjrDHtFFKXty749p0aSDYS46xYj6Keotx kRsIEtg3Mlu5qKn1+aCChfuH88MHsUVh5p9qd6fSbRE96d8fH0urH6pgqQ1+5kYrdOjM 0BtTMybB2w8KkG6USZINHl6QcFXOve8QmcbYUgv5E+ATrm6GUcVCRixpR/myPuxtPxn9 7tIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XJ9Rjoot; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id cr1si2173813ejc.534.2021.11.09.08.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 08:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XJ9Rjoot; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A90E83974; Tue, 9 Nov 2021 17:09:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="XJ9Rjoot"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E29D83969; Tue, 9 Nov 2021 17:09:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6BDAB83953 for ; Tue, 9 Nov 2021 17:09:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wm1-x332.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso2324009wml.1 for ; Tue, 09 Nov 2021 08:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qb3P5XBmEO30RM1MFZo2YmxmHO27ojDSActweGvwFjI=; b=XJ9RjootKDnQWId74m39B2OFVMlNr1NiJm1WSCPXRo7Dz5Gvr3c5+uZLbaez4/co5z ebAHtOVPYAaHgmit8sJIrIPjxdn+QxLvaz9ddoVD0FPWKiOqp9JetAEmZ1g7RghJ+20M ZfYr4Jm2AhKLSOSbFtbm04hf13HJ3DXN0+CLGwnn2IrBP0OoGBHmTEFG31nJadWoONuA KQ/wUAWxlU8nYBpoQEKSNH/R6oyQbpXzW7oQR8IK5Ks1J34iZ+DL189axQXmZ8oCied5 d/f3e5RNVhCXhyWHLAEe2Vo1m6u2V7qouPe5prQAPSFBBTzAl4Fh4hIfPpp5aRXKBGTe +W8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Qb3P5XBmEO30RM1MFZo2YmxmHO27ojDSActweGvwFjI=; b=eZedS1ogpHVwfA5QkOmkRLE01bdPkkn7zHeof+jF9RZwNlYukQQVFbeRDZ92yvHKZX 7U1yWxFUy9Z6nMPJ6oUQT0C/BXqPGd9l8p8MWJQHwQmGgtKdsEvS+Do04Tyk1VqC9iD/ wi+tzgw6ASE4EViTALNubLOZg5p3WH/m+/9hdvrIA/TU/WqQxZwKZOTxXYaLUdpLYj7B 4/ZFMC8XtVv0mf0RbvaheKla2wtK7jPiFxI/RJnK25S8ObZpHYuSGHZtM/ukp54HQeDH hBMZXaBGWIzPygOca06BBqdLe8y2BEsvWxVNoxaLnYF3qVOeJ09VKO9G4y2nXw24KKCE 4P7w== X-Gm-Message-State: AOAM533uzD8652xrGqe1npDMOLjd3I7FZlP7qEpSuey0lY/z8cnyntYV JhkNqgaHgjq4j8HFZoHK0OsTFNNAo/LkrCKj X-Received: by 2002:a7b:c14f:: with SMTP id z15mr8444222wmi.56.1636474145695; Tue, 09 Nov 2021 08:09:05 -0800 (PST) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10ec:fe30:ed93:5b26:60a4:aace]) by smtp.gmail.com with ESMTPSA id e18sm20130236wrs.48.2021.11.09.08.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Nov 2021 08:09:05 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Jens Wiklander Subject: [PATCH v2 3/5] tee: optee: define TEE error code TEE_ERROR_SHORT_BUFFER Date: Tue, 9 Nov 2021 17:08:22 +0100 Message-Id: <20211109160824.18268-3-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211109160824.18268-1-etienne.carriere@linaro.org> References: <20211109160824.18268-1-etienne.carriere@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Adds TEE_ERROR_SHORT_BUFFER as TEE error code. This error code is commonly used by TEEs to inform caller that the buffer(s) it provided is too small for the desired operation. Cc: Jens Wiklander Reviewed-by: Patrick Delaunay Reviewed-by: Jens Wiklander Signed-off-by: Etienne Carriere --- Changes since v1: - Apply review tags --- include/tee.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/tee.h b/include/tee.h index 30ea2ee164..50051496ae 100644 --- a/include/tee.h +++ b/include/tee.h @@ -64,6 +64,7 @@ #define TEE_ERROR_NOT_SUPPORTED 0xffff000a #define TEE_ERROR_COMMUNICATION 0xffff000e #define TEE_ERROR_SECURITY 0xffff000f +#define TEE_ERROR_SHORT_BUFFER 0xffff0010 #define TEE_ERROR_OUT_OF_MEMORY 0xffff000c #define TEE_ERROR_OVERFLOW 0xffff300f #define TEE_ERROR_TARGET_DEAD 0xffff3024