From patchwork Fri Aug 24 16:58:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 145088 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1474985ljw; Fri, 24 Aug 2018 10:00:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZwhCqggCDtiLI8H/rJ3+JE5iXqnEnlr3oEnLo7pV9/jVUeArcwQTtWgHfNuYKqTzRg5kXm X-Received: by 2002:a6b:2147:: with SMTP id h68-v6mr1881920ioh.227.1535130044209; Fri, 24 Aug 2018 10:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535130044; cv=none; d=google.com; s=arc-20160816; b=uZLtnAB65uoPmPj4EgDdTJq+qm6FbHEnrzCXj8ucR/OWLBib/6YCy4DjPZqYFWZKDM 5d76di/6Tv4gDnfhrDsPQuRuH6DGdhcXsQcuBBH/HtjzHdmzM69oeHXiqA/tMPUAlqW0 xa20Vs9k1IR4jhERdXVFrkGJ0ZQwCTpKVhVeHWUGfbCi/uI6cNiDQlllXXHrk5+6uRRs OJXcW0hd/0E2y3h0dkWXkStVcUk7kY0hjjTe+wJqoqez89v/bxeFo2B+M0bJbYZcWHtt CM4kMUq3/j4ddcPOPEfIyECmMzOFpxpkWIL//ZsquKgoH+EfsF5NmR5XnEMG1sx3gRa3 UaNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from :arc-authentication-results; bh=8FnPRJu7FrPDtRA1UCZafyLZ1/83jIKCazyNyzhJHYk=; b=YQFROP4LFqL0Ev05DQQggrcynSi9B1UsHgyfddPiGZrp4NOCnXpquIpIMqlo3fP18A wbsq29Ypc1+xGqitSk4L5aWN7tkXZQ3lqkFai8IIraJwNqY6V2QWoTcXHzqLqjGApTcs ldcVJ5XiYAWlfY/UCpqNJ1aBd3Bu7kJn+5C2jNyOxb9hdpqH4ecpYzA9tw7f6BM1TtCN ls3VWyhtpC3yfU5KwJSTV3oK/YyAl4kDAHnLWEYUESYXmUVfj1pjhPtIVdA3qtQb6Ahf gIf/k6istZcbZJm5r7pLVj33nAmXmVitTQwHogRT9A7xDXjN3piL7+L4S+SbysISlOHj 2QOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id m3-v6si1239848itg.125.2018.08.24.10.00.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Aug 2018 10:00:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ftFPr-000056-T9; Fri, 24 Aug 2018 16:58:31 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ftFPq-0008WR-Lw for xen-devel@lists.xen.org; Fri, 24 Aug 2018 16:58:30 +0000 X-Inumbo-ID: 045b784e-a7bf-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 045b784e-a7bf-11e8-a6a9-d7ebe60f679a; Fri, 24 Aug 2018 16:59:09 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 56BEE80D; Fri, 24 Aug 2018 09:58:27 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.Emea.Arm.com [10.4.12.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 61C2E3F5A0; Fri, 24 Aug 2018 09:58:26 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 24 Aug 2018 17:58:14 +0100 Message-Id: <20180824165820.32620-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 0/6] xen/arm: SMCCC fixup and improvement X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This patch series contains fixup and improvement for the SMCCC subsystem. Patch #1 - #2 are candidates for backporting. Cheers, Julien Grall (3): xen/arm: cpufeature: Add helper to check constant caps xen/arm: smccc: Add wrapper to automatically select the calling convention xen/arm: Replace call_smc with arm_smccc_smc Marc Zyngier (2): xen/arm: smccc-1.1: Make return values unsigned long xen/arm: smccc-1.1: Handle function result as parameters Volodymyr Babchuk (1): xen/arm: add SMC wrapper that is compatible with SMCCC v1.0 xen/arch/arm/Makefile | 1 - xen/arch/arm/arm64/Makefile | 1 + xen/arch/arm/arm64/asm-offsets.c | 5 +++ xen/arch/arm/arm64/smc.S | 32 +++++++++++++ xen/arch/arm/platforms/exynos5.c | 3 +- xen/arch/arm/platforms/seattle.c | 4 +- xen/arch/arm/psci.c | 41 ++++++++++++----- xen/arch/arm/smc.S | 21 --------- xen/include/asm-arm/cpufeature.h | 15 ++++++- xen/include/asm-arm/processor.h | 3 -- xen/include/asm-arm/smccc.h | 97 +++++++++++++++++++++++++++++++++------- 11 files changed, 167 insertions(+), 56 deletions(-) create mode 100644 xen/arch/arm/arm64/smc.S delete mode 100644 xen/arch/arm/smc.S Tested-by: Volodymyr Babchuk