From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 352A1C433E0 for ; Mon, 29 Jun 2020 12:36:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 028B523CD4 for ; Mon, 29 Jun 2020 12:36:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="h+D5FJvi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="SFGdeLmd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 028B523CD4 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YSGQe5gbHJTmE0ONfzzE3Wt77RXJt81FnzXpOKAcaeg=; b=h+D5FJvitOapZol3Yg6fdZaus BgHUTF+Pd5qi7Cid0t8i1MDcoM9Fdv6N76LsDrIDFoEils7N+wfbW8dk9xCCvA3aova+bVb83ZeIk cueARwZ7e4zWjGpdZKFh+utLadMK5aMlqVZE88NkghcVWw6s7gw/czc+S8aYXrnilOWCISFemytZw LwUmzijvWWMP5wPPCfIqm7BlDZVlH/s9z9yaEZ0zw0XYFQhHB7rMu72LRqBXlH+Urr4oE/9GOYnZw ACRNsQ2JD5o50Rtw+ILFMpshzC3Bhi9zyXHH4gvdMBv0QWBrZoFsNOqsgpmCQX/3rfiAeo0rVNKkf RyLyz2aXg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpszu-0007S7-Fi; Mon, 29 Jun 2020 12:34:54 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpszj-0007Nv-W3 for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2020 12:34:44 +0000 Received: by mail-wm1-x342.google.com with SMTP id a6so13654949wmm.0 for ; Mon, 29 Jun 2020 05:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cAlxN1cVo6gzAHjezMCYBZWx8wH6zhVySur1verMA6M=; b=SFGdeLmdQ5TeA9W93G4heaEah6pwbBb+Tg3fZxs1po87bREA/76QBs6I2DoMtLy8Jj mD6nNjBWl+GjctCnt2jMNn5w+i1UiNegpZS3gmGlo9AsxoPHU/RqdI5/hOWfCFXnr14U OSUAg0yEPfvFgxUcQRmXm4jaIwBB5932YgaTbOec/vgcIwpMv0MWfj2m5/okwgtzj1RV 9laeWMQTnJnSO+R05CqcopN19zuHdFbWzr/khN+Jf1zo8U3WfDKBHw5VRst8BSCVctyo G+kziwgdI8j5udpGmRy/YVfyiZgdaAhEW7AlEUPToTuH1//k4SsZIYa0Eso/u0+SejQV Hqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cAlxN1cVo6gzAHjezMCYBZWx8wH6zhVySur1verMA6M=; b=sl5kVSlQ5S2Gjsil2MNEe/ItmBUHtnEl5s7AnH12QkrdB0chZeiHKFBsDb+H+vvpc+ X+TDr1DfA5QG4+7UYMqhhRY9If3O/KOb928A6UVlY8rsV5bdZho6hcRDDCFn4GHhTzHK CTwfiXeDvoan34i22JonNncuftU5Qqvs482qXjB+K79hjjvSVbSay8b3OjOPti3Sohex zQ2qi9c47nsGANizyjggKJSsWKBedwt+grJUQ7ATb/rNfsr/2gFCqIzL15KhC6SvL0zk w3qQOYpreUgICMug8cvQwxlEsbe0x1DsGjCrK4mAy/T7SdOU+z/1Kplt283H3hKdo4mi ct7Q== X-Gm-Message-State: AOAM5316wmzhOOpvikT6xI+/P8ZPQQLUfYr2Xuz2Fj9zEH6/UucSDRrS Ic29ewVmoVTa4Lyu4Ih9zEb5GW/N9GE= X-Google-Smtp-Source: ABdhPJypllfb/cC7J8FJbKQF1TamYXM9F/d4/UjGTHDS1nWiM7+ljFz+M+qWgRqlq+63f2HLxSK72g== X-Received: by 2002:a1c:a70d:: with SMTP id q13mr14021573wme.55.1593434082607; Mon, 29 Jun 2020 05:34:42 -0700 (PDT) Received: from google.com ([2a00:79e0:d:109:355c:447d:ad3d:ac5c]) by smtp.gmail.com with ESMTPSA id d132sm28409218wmd.35.2020.06.29.05.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 05:34:41 -0700 (PDT) Date: Mon, 29 Jun 2020 13:34:37 +0100 From: Andrew Scull To: linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] smccc: Make constants available to assembly Message-ID: <20200629123437.GA3567128@google.com> References: <20200618145511.69203-1-ascull@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200618145511.69203-1-ascull@google.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, will@kernel.org, lorenzo.pieralisi@arm.com, kernel-team@android.com, sudeep.holla@arm.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 18, 2020 at 03:55:11PM +0100, Andrew Scull wrote: > Move constants out of the C-only section of the header next to the other > constants that are available to assembly. > > Signed-off-by: Andrew Scull > --- > include/linux/arm-smccc.h | 44 +++++++++++++++++++-------------------- > 1 file changed, 22 insertions(+), 22 deletions(-) > > diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h > index 56d6a5c6e353..efcbde731f03 100644 > --- a/include/linux/arm-smccc.h > +++ b/include/linux/arm-smccc.h > @@ -81,6 +81,28 @@ > ARM_SMCCC_SMC_32, \ > 0, 0x7fff) > > +/* Paravirtualised time calls (defined by ARM DEN0057A) */ > +#define ARM_SMCCC_HV_PV_TIME_FEATURES \ > + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ > + ARM_SMCCC_SMC_64, \ > + ARM_SMCCC_OWNER_STANDARD_HYP, \ > + 0x20) > + > +#define ARM_SMCCC_HV_PV_TIME_ST \ > + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ > + ARM_SMCCC_SMC_64, \ > + ARM_SMCCC_OWNER_STANDARD_HYP, \ > + 0x21) > + > +/* > + * Return codes defined in ARM DEN 0070A > + * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C > + */ > +#define SMCCC_RET_SUCCESS 0 > +#define SMCCC_RET_NOT_SUPPORTED -1 > +#define SMCCC_RET_NOT_REQUIRED -2 > +#define SMCCC_RET_INVALID_PARAMETER -3 > + > #ifndef __ASSEMBLY__ > > #include > @@ -331,15 +353,6 @@ asmlinkage void __arm_smccc_hvc(unsigned long a0, unsigned long a1, > */ > #define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__) > > -/* > - * Return codes defined in ARM DEN 0070A > - * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C > - */ > -#define SMCCC_RET_SUCCESS 0 > -#define SMCCC_RET_NOT_SUPPORTED -1 > -#define SMCCC_RET_NOT_REQUIRED -2 > -#define SMCCC_RET_INVALID_PARAMETER -3 > - > /* > * Like arm_smccc_1_1* but always returns SMCCC_RET_NOT_SUPPORTED. > * Used when the SMCCC conduit is not defined. The empty asm statement > @@ -385,18 +398,5 @@ asmlinkage void __arm_smccc_hvc(unsigned long a0, unsigned long a1, > method; \ > }) > > -/* Paravirtualised time calls (defined by ARM DEN0057A) */ > -#define ARM_SMCCC_HV_PV_TIME_FEATURES \ > - ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ > - ARM_SMCCC_SMC_64, \ > - ARM_SMCCC_OWNER_STANDARD_HYP, \ > - 0x20) > - > -#define ARM_SMCCC_HV_PV_TIME_ST \ > - ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ > - ARM_SMCCC_SMC_64, \ > - ARM_SMCCC_OWNER_STANDARD_HYP, \ > - 0x21) > - > #endif /*__ASSEMBLY__*/ > #endif /*__LINUX_ARM_SMCCC_H*/ > -- > 2.27.0.290.gba653c62da-goog > ping :) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel