From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c06::233; helo=mail-io0-x233.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2998B2095B07A for ; Fri, 6 Oct 2017 14:02:23 -0700 (PDT) Received: by mail-io0-x233.google.com with SMTP id m81so7738117ioi.13 for ; Fri, 06 Oct 2017 14:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Po+9Us5g4v1UhEJbpVVS6hrasWck1s9PWWOQItCvwIc=; b=MDcRPgFmGu/VAwWnPrgfvJYOe+zl4tPHMR0J2/6W/lFSPcBNEMIohnC5WnHcFnzyry 8HuELsaSmJ4gHULmSHtP1ek3UHJSPjvOmeGSpEY67IVMXf+lC0/qlrNI/ZIpUihM/0zs jS/Xjdy8esdDKix7h+8J0V8Q7GcEYcryW2pfs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Po+9Us5g4v1UhEJbpVVS6hrasWck1s9PWWOQItCvwIc=; b=UNSYRMIQaoa/on3k7YUAFJ4ExAdXzecqpn/m4LhS1Jxy4TEfR6cOn1ip3zwuPfRKKQ YTL/R1LQk1QeNmmoIp1Rm8a5DQm0GF/+863tBBRp3kovluIkTk38R0MTNgj6IFk3PhqM tHXONgKy4yBWRZaLuun3u+yQWIusoMNXsjYpr+fHF6K335YhE+foF4LWkBUkBl3bbmiB babC5yaIksoXJDQvZpkeHzGKwpbTu9Oqe1aPS0oVAbOF9neK5WRPLwyp9NCqtPNM857/ +bqg/NvsfR7wtHa82sZKDMz2SSmtCzNr3Q3TEuWHsS2Rn2vro/LwXN7a4DbrOF++qjQy Xh0g== X-Gm-Message-State: AMCzsaUUwoAWRbxTPvgRmgXfBEgQN+g0Z0xjQPFhAqRdnNtMpvAquK59 Y/+ehrWG9TGvcXNleLENPCmHNVijKU1aUjVQTb6bNLlb X-Google-Smtp-Source: AOwi7QDey87TAhQDNnZA4Rf2HfZRYSqC2Cp3yufBJjKS6mj9RCHvLID5T84cX2m6xgsNBnPEPFuijJXnUeljdv0+vg4= X-Received: by 10.107.53.213 with SMTP id k82mr4404761ioo.179.1507323947184; Fri, 06 Oct 2017 14:05:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.131.167 with HTTP; Fri, 6 Oct 2017 14:05:46 -0700 (PDT) In-Reply-To: <20170927185859.27833-1-supreeth.venkatesh@arm.com> References: <20170927185859.27833-1-supreeth.venkatesh@arm.com> From: Ard Biesheuvel Date: Fri, 6 Oct 2017 22:05:46 +0100 Message-ID: To: Supreeth Venkatesh Cc: "edk2-devel@lists.01.org" , Leif Lindholm , Achin Gupta Subject: Re: [PATCH v2 1/2] ArmPkg/Include: Add standard SMC function IDs for MM interface. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 21:02:24 -0000 Content-Type: text/plain; charset="UTF-8" On 27 September 2017 at 19:58, Supreeth Venkatesh wrote: > This patch adds a list of function IDs that fall under the standard > SMC range as defined in > http://infocenter.arm.com/help/topic/com.arm.doc.den0060a/DEN0060A_ARM_MM_Interface_Specification.pdf. > > SMCs associated with Management Mode are in the range 0xC4000040 - > 0xC400005f (64 bit) and 0x84000040 - 0x8400005f (32 bit). > > The function(s) available to the normal world: > 1. Request services from the secure MM environment using MM_COMMUNICATE. > > It also defines MM return codes. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Achin Gupta > Signed-off-by: Supreeth Venkatesh Both patches applied. Thanks. > --- > ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > > diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > index 593a3ce729..37d0796649 100644 > --- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > +++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h > @@ -1,6 +1,6 @@ > /** @file > * > -* Copyright (c) 2012-2014, ARM Limited. All rights reserved. > +* Copyright (c) 2012-2017, ARM Limited. All rights reserved. > * > * This program and the accompanying materials > * are licensed and made available under the terms and conditions of the BSD License > @@ -40,6 +40,24 @@ > #define ARM_SMC_STD_REVISION_MAJOR 0x0 > #define ARM_SMC_STD_REVISION_MINOR 0x1 > > +/* > + * Management Mode (MM) calls cover a subset of the Standard Service Call range. > + * The list below is not exhaustive. > + */ > +#define ARM_SMC_ID_MM_VERSION_AARCH32 0x84000040 > +#define ARM_SMC_ID_MM_VERSION_AARCH64 0xC4000040 > + > +// Request service from secure standalone MM environment > +#define ARM_SMC_ID_MM_COMMUNICATE_AARCH32 0x84000041 > +#define ARM_SMC_ID_MM_COMMUNICATE_AARCH64 0xC4000041 > + > +/* 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 > + > /* > * Power State Coordination Interface (PSCI) calls cover a subset of the > * Standard Service Call range. > -- > 2.14.1 >