From patchwork Thu Sep 22 11:30:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 76742 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2542625qgf; Thu, 22 Sep 2016 04:32:29 -0700 (PDT) X-Received: by 10.66.228.226 with SMTP id sl2mr2451534pac.131.1474543949910; Thu, 22 Sep 2016 04:32:29 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id gz6si1705599pac.235.2016.09.22.04.32.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2016 04:32:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bn2Dy-00015O-9d; Thu, 22 Sep 2016 11:31:30 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bn2DN-0000jf-BI for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2016 11:30:56 +0000 Received: by mail-wm0-x235.google.com with SMTP id l132so142818051wmf.1 for ; Thu, 22 Sep 2016 04:30:32 -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:in-reply-to:references; bh=Cz1Sg3QxMm+nGo6sz/FxkV2xre+1+D78aCpqidjr1lw=; b=LY58kyIldjS3CenvACu7iP1meFB/v1vorO2FpcDE/uNc4Gtj4/QavfxGhRGwxodyru jN0dVMscExADrNeLhGA+mvtVHotD5TeZQ9KjfXb1KDAX50ZnhgJUGS6UP9FqX21RhmWC 99BvgcXBbBHb4vUKbSsdqpEzDIRaP1SRlW5mU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Cz1Sg3QxMm+nGo6sz/FxkV2xre+1+D78aCpqidjr1lw=; b=amFI+P9N986muOvmVgmYplHI3PfwFzVWjSsR9d69ciXgdNpxsFhBYZ3MqCApzXZs1d UwZdmA1SXInPjqvMrX0SyHA8W8BpOP0rD7rI1asPRFJOxr0tAByBRh8Kl2PEklbZeJon fkWMiT1QsNvUhVEinxYOKF5kBuHBELzGxMl/2I7V2J+j9NjXa7Z70/6ozW2TDKB/ECYT rkgWElt5FXyydWYBPIpzDmU4VBRxbDwDShcOffBUt2jtF5LYj6CoFRWXni0W8vFtfx3b xi/7hUPaAlSQLvnFRnT3+/DOIZI2cX2/a7Qq6aPosVIPGh/fG2uOm4yiwfwx9l95OQg7 fQmw== X-Gm-Message-State: AE9vXwOZEau/yhwoEB2aSBGwHBgOZj6wSBp4cU0buLJTqW7sGdMjfITT2wbMb3PeDzNYfk86 X-Received: by 10.194.9.228 with SMTP id d4mr1704603wjb.135.1474543831583; Thu, 22 Sep 2016 04:30:31 -0700 (PDT) Received: from localhost.localdomain ([105.138.52.229]) by smtp.gmail.com with ESMTPSA id bl3sm1629143wjc.26.2016.09.22.04.30.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Sep 2016 04:30:30 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, matt@codeblueprint.co.uk, mark.rutland@arm.com, leif.lindholm@linaro.org Subject: [RFC PATCH 2/3] efi/arm: add SIMD stash/unstash operations Date: Thu, 22 Sep 2016 12:30:05 +0100 Message-Id: <1474543806-19210-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474543806-19210-1-git-send-email-ard.biesheuvel@linaro.org> References: <1474543806-19210-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160922_043053_819006_2A84E76D X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:235 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: glikely@secretlab.ca, john.stultz@linaro.org, haojian.zhuang@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org This adds the SIMD stash/unstash operations that we need to allow UEFI runtime services calls to call back into the kernel. In the ARM case, these are actually NOPs, since UEFI on ARM is not allowed to use the FP/NEON register file. Signed-off-by: Ard Biesheuvel --- arch/arm/include/asm/efi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/include/asm/efi.h b/arch/arm/include/asm/efi.h index 766bf9b78160..c71ea8c21d0d 100644 --- a/arch/arm/include/asm/efi.h +++ b/arch/arm/include/asm/efi.h @@ -83,4 +83,15 @@ static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) #define MIN_ZIMAGE_OFFSET MAX_UNCOMP_KERNEL_SIZE #define MAX_FDT_OFFSET ZIMAGE_OFFSET_LIMIT +struct efi_simd_reg_stash { +}; + +static inline void arch_efi_stash_simd_regs(struct efi_simd_reg_stash *stash) +{ +} + +static inline void arch_efi_unstash_simd_regs(struct efi_simd_reg_stash *stash) +{ +} + #endif /* _ASM_ARM_EFI_H */