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: 1637794 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=p1LWKiej; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LCj2L1p4xz9s1l for ; Wed, 1 Jun 2022 18:27:54 +1000 (AEST) 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-Google-Smtp-Source: ABdhPJzvjpzhBUZwruCDMOjs0BQIT27YHUTj+oEXVbREOJiGu28YRde6MMgbBEb5UtgNC4poMqY3mg== 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