From patchwork Wed Jun 1 08:27:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 577782 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8f0c:0:0:0:0 with SMTP id mq12csp358397mab; Wed, 1 Jun 2022 01:27:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKrY548g5g3SoGJ+6SnmjOxoEdipbyZURsZ/eT7MYK6I7W0eg2d0MvxslYlTr2vmExzR1U X-Received: by 2002:a02:90ce:0:b0:32e:e2ce:b17c with SMTP id c14-20020a0290ce000000b0032ee2ceb17cmr22096836jag.268.1654072071951; Wed, 01 Jun 2022 01:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654072071; cv=none; d=google.com; s=arc-20160816; b=grEuAOKRtYGX0LiJUC0xs2AmSwjAHg+lZQjsOM3O8N94+CAGuVgrpSehgl6NaFZrBH rM4qSkn/hwAaCVu7TStP+AX0pO1Q9kS6jorBrmdUhPxYyCsYqNyW4qs72hIHoIq0KwKt POzVwd0T3BmBYWNrdfISL1t3bt6l7bXCV+hQxyIv8Mwzdaew6OCbllIb7uICFOG7jqT8 U8e9x/WEtB0HkMnVwICSt7Qt2qQUknbM0osC4BFZdtjFhI+iq7qW+rw5FBYIcAG1cXAV yDlC/EQzxCIwR0OMcocuktcrTjuyJCbIDVxqwlU3jybVLQAB83/eB1uAYo3e9QjYSMgz mthg== 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=sTREcZ05rNDYPIT3NY8v4FY4VjKGVbQdeDudtwgDOyA=; b=VgNQXZTc0HBlPoGgh8/EICZiO7KX3ioBVdwkJHaA8Fw5e3yNtfeOdXNeW/1Rx4E9Ko ksnqrzrP2RZO567LUe2dcL9kVQBPhVcFvB4p1h6UsUoCc71znupb2d2YAD5QucfR4+Fj luQRP+add+4HL0dl/l3jkGrCbGsiBC1C6mx+1fuGH15vQBEK+clheHY/xBJ+jjYGBGy9 hlTC45+y/rQer9flvxdUCQ4Z557EgzTVcxmGlGxuviiSA8ZU2Ria3IhgNa0zOl+a9cRK KDozXN69I7vIyysqSODbpByunfYKzJw/vm5ak04RC/wBmL8a84UXSshxMsHYSgRpt/aa FECw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1LWKiej; 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 f15-20020a056638328f00b0032e0a9f3e3dsi1647886jav.58.2022.06.01.01.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 01:27:51 -0700 (PDT) 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=p1LWKiej; 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 3D7DF83EF9; Wed, 1 Jun 2022 10:27:47 +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="p1LWKiej"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F6FB83E80; Wed, 1 Jun 2022 10:27:44 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 CFBBB83DFD for ; Wed, 1 Jun 2022 10:27:38 +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=etienne.carriere@linaro.org Received: by mail-wr1-x431.google.com with SMTP id k16so1258887wrg.7 for ; Wed, 01 Jun 2022 01:27:38 -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=sTREcZ05rNDYPIT3NY8v4FY4VjKGVbQdeDudtwgDOyA=; b=p1LWKiejV+p9LSiGIRHnNVRTiG7IfRkJOs0v5FIsuEnQFjlMDM+QoTd0Yu7aWbPdyE U1z7Zuqe8r15cgcDvBcR5R/vtqiOSGiFfw1uW0HYUzZ7oNypxKU8R4kagLkQ9lx/GU1M lWAWjOPUIs6/Y31O1haOddJZpHCaM1kocP89i+FjiPbxrwf+TFMbS8Ed+3TyrUyr3j/n FxKSI3xWtuKBtMrF05pCvoMoQxqq30Jkxjmox3czd+8w5RLtOwbCF3Xv+Ztg6i+lEtBA aZviGAIYXxtE6vsKxrP+B2NdN1Xe7N1tAxQw388+v//1PoyljUrpuIAZ2OpCgPh4KcKR SeFA== 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:mime-version :content-transfer-encoding; bh=sTREcZ05rNDYPIT3NY8v4FY4VjKGVbQdeDudtwgDOyA=; b=IN6XvtCsWcf/rhFNmv8//uEZukSjFV3z5Bhwh3J2NqBtJiHtdYjdHpQ3czRbyFYN2M vEsl6CJAHfdjGwP0qdftCUQu/aeWm/bLe7E5uqlS8Ivdb537AedD3hqwSriL+afRbxwq O3cUwJguEXARGDctEcbthhYjSdSWn7zqRIE4TKJAwqnmheiZzniip0ry8gDtltiVELDT 7OHzSQrkd2TMS9CjWcMtGgX4HtaISqKsYR/8qQXRj/UHLA1r8RiBXDBgWNeEaoKEWcjs rbCSCOibw/pMX706aWPlIqE31+Zv47HYh9xvsRpWJp2ngF+I30GRptASqK9pHQXBWMP9 FXcA== X-Gm-Message-State: AOAM532yQFG+uhbwJYuEK4k3DkKYn6IdofD9fbO+V7ndRJ9EIFPH9oFJ 7Z77KgE7LlXi6EbzByFogdnvWWuCNXL2og== X-Received: by 2002:a5d:6dc3:0:b0:210:89d:30bc with SMTP id d3-20020a5d6dc3000000b00210089d30bcmr25487712wrz.272.1654072058156; Wed, 01 Jun 2022 01:27:38 -0700 (PDT) Received: from lmecxl1178.lme.st.com ([2a04:cec0:117a:a94e:2216:1d3f:505:2dfb]) by smtp.gmail.com with ESMTPSA id i6-20020a05600c290600b00397470a8226sm1166140wmd.15.2022.06.01.01.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 01:27:37 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere Subject: [PATCH 1/4] smccc: define generic IDs for feature discovery Date: Wed, 1 Jun 2022 10:27:31 +0200 Message-Id: <20220601082734.301474-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Defines function IDs ARM_SMCCC_ARCH_FEATURES used to query SMCCC feature support, applicable from Arm SMCCC v1.1 specification. Defines macro ARM_SMCCC_RET_NOT_SUPPORTED as generic return identifier for when a SMCCC feature is not supported. Signed-off-by: Etienne Carriere --- include/linux/arm-smccc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h index 7f2be23394..94a20c9793 100644 --- a/include/linux/arm-smccc.h +++ b/include/linux/arm-smccc.h @@ -51,6 +51,10 @@ #define ARM_SMCCC_QUIRK_NONE 0 #define ARM_SMCCC_QUIRK_QCOM_A6 1 /* Save/restore register a6 */ +#define ARM_SMCCC_ARCH_FEATURES 0x80000001 + +#define ARM_SMCCC_RET_NOT_SUPPORTED ((unsigned long)-1) + #ifndef __ASSEMBLY__ #include