From patchwork Thu Jul 16 20:27:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 235656 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1109642ilg; Thu, 16 Jul 2020 13:28:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZJ/aemteRe6Bfbm2diFD9n7JWa5o6A73G2Qc7glVthKyj4eyOqwRsFn9g6ROhnUV89v+m X-Received: by 2002:a17:906:970a:: with SMTP id k10mr3172757ejx.236.1594931287401; Thu, 16 Jul 2020 13:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594931287; cv=none; d=google.com; s=arc-20160816; b=blLD6mEseLpDrDxbycO1ud+1eP/FWuCfF+fripIPc+Lj8bew00c1D08HczTTApK3V4 WmTdPQ548d7dH9/XxSFYkJGBI1MDcEiIatVehNt1Tzai7aJctgcYunTQVJx8q+/YrNlL WuGuLnDiir6+7PHsQJURbdiRHGyXiF9akFKc9TMh6J6uVLdToi49Vk9psu0IZlsaXdpZ uTNPjT6K/7KIVDOAV9cQoIS79rf7qQt4qaffJfo4wXTQ9uxCa8eVAvIsvLg2jvB6hnwf Jqcdj/AIlzWwgeDtyqbCAH2na4sps09sWqEl4tNhFx6NwJTjvGBim+76msRfEtemOZfc PCbQ== 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:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ncNf1lKsSosO4kal2yfegvAlXDmViKWGxcO0hi65SSE=; b=qIrGSNa6sXW3rXj5nA0UyFFlCWEJU+JqqhR2cxtK4EUVP89QrqhNpzitPnPEWqvJaB wRYn5g7Xow4GLXryuXnYVzp2TwJUDuNnbn+oBmUP2nypyFif1RZ/Br6U9D0MU1VJDuoX qOz0vzkeWcoJI/FNZ0BCNyjViVNoczvOToHjIoop9geLqd/Phu0YSCbuNCjvbrIjLWms JCob77ArTfT7ZZO9JWVXCu17wAvi3Ode2eQxDSWw5MhHIipJkVP7XLm898hit7OICFOj SZ03SU/2xEtNwEsSucaMchdEI1lx6mJ3vbe2WAd416eG+/fXA5IDO7u0Ofbp1U8H+vwP 29oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gpGnCjMU; 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 lf11si4048842ejb.475.2020.07.16.13.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 13:28:07 -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=gpGnCjMU; 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 303A681BBF; Thu, 16 Jul 2020 22:28:04 +0200 (CEST) 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="gpGnCjMU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C95FC81BC0; Thu, 16 Jul 2020 22:28:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (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 60CB181BBC for ; Thu, 16 Jul 2020 22:27:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x441.google.com with SMTP id s10so8409884wrw.12 for ; Thu, 16 Jul 2020 13:27:58 -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:mime-version :content-transfer-encoding; bh=ncNf1lKsSosO4kal2yfegvAlXDmViKWGxcO0hi65SSE=; b=gpGnCjMUzWAw0BemflimFvUxUeuJ5wCWYFIKdA5srEXuBv5AX8EDUas2v2cPWJK4xH oi/VXj6n2pbvphjGfRTkvGVxM8rtgmXddMP9o4MJx9h2Q3ECt9W5aQiI9LukX6ZrtsYK FWtK4/Eq4umslQBvUUw/8IUy7Svi0IYxJdWtHQuQkZtzDX/rNtCWeVA8yV9hlKi2xtRu hmS0XKsJtHMbMUDrxUt6T6vSQNABUMkjy3SUJPyFGLWNkJuA6GXzXnYnPWgDu3YlxE0S aRV7MEoqbaiGWHCXNfCxX/r3fbziSRezAkuutwXK4U7MzahF+NkAoYMTCqGnsvzU+/u4 nMYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ncNf1lKsSosO4kal2yfegvAlXDmViKWGxcO0hi65SSE=; b=HPZ6kDXMs8rpVwwNoZ9ohu2fG8crDV8tkG5sttR1iko2uDH6j5Ti6FAhrQlCKoM34n wjgLxGeNmBfZmjkaO6h/aXQfI9GZbjjoDVKKbM0MTk00ijvhKFTMyi7FeVWebIFDvGSU eHUfMnhXB3Q7VyjJAPh6aoQRtP0omGK6m5UFzakvp2LTBpyqsDw31mKjKRp2/E72UYsR dNqW9bCBKiDgg/dqWu3ig3AK8x1wiOJHjHy8KREuFdCWHyVf1RI+BBnytbExgSydSZEM m4rf6Ln7qCKjaPWlh0E769DDGN59yd2KWsrDJLZp0LG2SK4s0dSyqk+lQ42gCpRDwOQV UZYw== X-Gm-Message-State: AOAM532oJ9dXW2avz7sblLn8eAWRcD43MDgev/nGtDgdKOEyTzp8TKZE pn7dFRCrG0T25JVgmdA0gq4qf0nYQ/k= X-Received: by 2002:a05:6000:1008:: with SMTP id a8mr6791240wrx.416.1594931277629; Thu, 16 Jul 2020 13:27:57 -0700 (PDT) Received: from apalos.home ([2a02:587:460d:e29f:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id v11sm7176428wmb.3.2020.07.16.13.27.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 13:27:57 -0700 (PDT) From: Ilias Apalodimas To: u-boot@lists.denx.de, xypron.glpk@gmx.de Cc: agraf@csgraf.de, Ilias Apalodimas Subject: [PATCH] efi_loader: Correct value for ARM_SMC_MM_RET_NO_MEMORY Date: Thu, 16 Jul 2020 23:27:54 +0300 Message-Id: <20200716202754.164026-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.28.0.rc0 MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Instead of adding the definition for the specific MM SVC used in StandAloneMM we added the one used in the standard SMC calls. So change the value from -4 to -5 to match the correct one defined in EDK2 Fixes 23a397d2e2fb: ("efi_loader: Add headers for EDK2 StandAloneMM communication") Signed-off-by: Ilias Apalodimas --- include/mm_communication.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.28.0.rc0 diff --git a/include/mm_communication.h b/include/mm_communication.h index 193c4d157874..5aa60160ac63 100644 --- a/include/mm_communication.h +++ b/include/mm_communication.h @@ -52,14 +52,14 @@ struct efi_mm_communicate_header { #define MM_COMMUNICATE_HEADER_SIZE \ (sizeof(struct efi_mm_communicate_header)) -/* Defined in EDK2 ArmPkg/Include/IndustryStandard/ArmStdSmc.h */ +/* Defined in EDK2 ArmPkg/Include/IndustryStandard/ArmMmSvc.h */ /* MM return error codes */ #define ARM_SMC_MM_RET_SUCCESS 0 #define ARM_SMC_MM_RET_NOT_SUPPORTED -1 #define ARM_SMC_MM_RET_INVALID_PARAMS -2 #define ARM_SMC_MM_RET_DENIED -3 -#define ARM_SMC_MM_RET_NO_MEMORY -4 +#define ARM_SMC_MM_RET_NO_MEMORY -5 /* Defined in EDK2 MdeModulePkg/Include/Guid/SmmVariableCommon.h */