From patchwork Thu Nov 4 14:14:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 516802 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1984143iml; Thu, 4 Nov 2021 07:15:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB/o1ebFe8uLcmkGir/b8to+GXzuXTrFgCFoAWIi/orU1CV2zryXSh9VGG53j1rzNtpkp/ X-Received: by 2002:a05:6402:350e:: with SMTP id b14mr17485370edd.271.1636035348303; Thu, 04 Nov 2021 07:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636035348; cv=none; d=google.com; s=arc-20160816; b=M6yHArYgM8T7EzzjoXiJReOewe3bNCNcI0JlDFLoq6KF4zwqcfVAoE46jYFN4dyV8x kFLy69RRzVIoZvzcuP1noxfKhvdbaxta3obH0LkGGtinnL+7al72SQhs6W/0f7sgOOUK +QY+nmXEC0cBgAk4SsNb3XDREO5Xw2LODpQuYAwhVvoWgWKMbOST+qtA+wI666oR42Go dBWyoudS7VTIGoxT8nqza3wqLTc9lc7fBP48ub4kc1iUpCk3TDKRS7fXKnXD/DSIwK0W 6wiri8KYeCWmfJdZSqQFADD4k4Ez9FWNT0FnUdNWTokZLdG5kOtBPcXd3X4ropBbHJIj QeIg== 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=t/9c8YlPwdiUpJXUeIXjuzdJhRHwX29nVuyu/8jcmOM=; b=hFwi0x5RjMegffgbjCziozKTaZHzdlbXUSMWadsmAg/3aSV6A3QTPv9x71KgUH58Vu t02TSxHH5oXT2MTM9VEzjr+BOxvdJ0DHJ8ydedSeQIckKxSYHv8ZCkybodVb3m/cAHL+ Fhxi4bY9GZpZeRanXP/exC9c1mQAf2sf/W4fNx70aMAFnoOAEBkfzz6YuwFu8t3MksMN ZXtJOCinx4AHiOZc4o4c9JT12RGvOJCehdFCvsJOZ/qa8ireO5OzUpcjzh9eJ78uFzfA 2k+GRNyWG0fecBcLJ69VX5CDLcGm57vqfS5Gou62eG9UAsRgCG69YnxXvRpomVqxYq1a 4zYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wo8UUm4v; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id k9si9457673edv.52.2021.11.04.07.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wo8UUm4v; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 EBFFD836D7; Thu, 4 Nov 2021 15:15:24 +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="Wo8UUm4v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CDF21836CA; Thu, 4 Nov 2021 15:15:11 +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-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 770B4836BA for ; Thu, 4 Nov 2021 15:15:02 +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-wr1-x430.google.com with SMTP id d13so8852612wrf.11 for ; Thu, 04 Nov 2021 07:15:02 -0700 (PDT) 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=t/9c8YlPwdiUpJXUeIXjuzdJhRHwX29nVuyu/8jcmOM=; b=Wo8UUm4vKK9OvJOpUk5r+2WdgbqgTL4bimiW1qtPUuM7VtfrOrNSAMO5Z207yOjXPI wRzzZfUWF4AqI4IT8puL0RRB0E4Zus01c/cLVsRV/KgInPlhqMeTrtslsr+T1tDVPolF bhVyuFM10kkguZhw3D+8lWY5rqyKDsPHSCorq4tbK8ojBgCq0KjHjrWRueOpdvvI8zqT i9tssuClGtF8elIfefBv8Mj4yjyHbxdvoAA16NbbxUDlzT5e/DxssUPcpwaniuSkSUVL wBcPB+yBLjOWtnfMHqKQuekPlPwNo8PdhNK3zpByX3Ftux6ZfUFs5mHZscmsO3hpsycy 0+Lg== 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=t/9c8YlPwdiUpJXUeIXjuzdJhRHwX29nVuyu/8jcmOM=; b=p5Lw8pPRE1xJqJX678qIKm+vb6IVGlQbZ1ONxjhf4/LQKaJTFg6IGajJKB6PBDcPVH agP8Ki1rEzTYcIYmsT7O71G2jw4BFUUcVzDTHXqLNmIRG/CAycHgNPkm0enVEl/ufGEQ ssHCR15j6uOs7Xlc5bv52Ewgj1vzPT4UHvl7J/Z10T6PBwX+MmT2HMayKyW3Vjw0EJk0 LY+4CzQ+nRW6Jlc225mkK0/P7CjvGnlrVXoeK+T9zoOsXvFPloJdv6iI8rfyAuR6TKar dafyVh2dMyWlIWBmBYkPWJZ89YUMM4b/ErPwn+ZDkg2iw3ihmkV7nbl2RmxciCa0Xbnj cVyA== X-Gm-Message-State: AOAM530Ho5gKh9Gjo1v/MfHxa6U8wXLhEiIhf6ammUUmrlb0khf9PlCH R7jlDx04JImW6kHJ4XDL2WxrID4rPoaNxA== X-Received: by 2002:a5d:49c3:: with SMTP id t3mr47479232wrs.207.1636035301733; Thu, 04 Nov 2021 07:15:01 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10b3:52ee:40ee:3a6f:5eb8:bd35]) by smtp.gmail.com with ESMTPSA id l26sm5354862wms.15.2021.11.04.07.15.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:15:01 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Jens Wiklander Subject: [PATCH 3/5] tee: optee: define TEE error code TEE_ERROR_SHORT_BUFFER Date: Thu, 4 Nov 2021 15:14:49 +0100 Message-Id: <20211104141451.29967-3-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211104141451.29967-1-etienne.carriere@linaro.org> References: <20211104141451.29967-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 Signed-off-by: Etienne Carriere Reviewed-by: Patrick Delaunay Reviewed-by: Jens Wiklander --- include/tee.h | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 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