From patchwork Tue Sep 25 17:20:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 147513 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp987276lji; Tue, 25 Sep 2018 10:22:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV61YCrptD6G6ZHfn25RpUxY9bnWPaUdF1cIldqqhlmOdge0rCZgN0CWFrXz69UdrbW3f3Sih X-Received: by 2002:a6b:dd11:: with SMTP id f17-v6mr1814783ioc.45.1537896178481; Tue, 25 Sep 2018 10:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537896178; cv=none; d=google.com; s=arc-20160816; b=WtpBRe2+i1epd6wqpIZuP5xlDvmubA3/zNX0mQcKJmMhGMbl7M9Q1TUZd7CkJ6c6wy g94UxNqWUXxcGHsBMvV/viU+W04I3gnnzzodQOojsKvtv9S8jzlH9I2zFFyLTOJpxyII 1oPWnourotQPvMx5DBncdXFPoOliGT0diGWOMtlKLcPjwBIyLxE+cjHecFcnYIWtk11R SqfYdKSQW7jWBZ71v6QRVNnQx3jgJ9jNsEeF0uuV/L+9TWwYNCRc7ROdgMjxtzW16gQ+ lPbZlgUUB2XLnyodEX1+VunLLjz1GQE3fCWahJEQb54uMzKo8ugGdhhtRJdkGt91Wmx8 NP+w== 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; bh=ePU7bk80U0iZeBPeJzNtK8fk4FzSqQzg2MIQCOropSY=; b=OiyEPsc6T/lhumCI+U1HMbYdlOjzhez0RsBM+T5lQiVqxyQpCmCUKgULHpnTWRD90V ahodcqIfq35oOykc1cVhxTdTT/blrd+YK8SnLeuE49FuxKcUEogIRRMHlIClMlABL26T 39Mcu0mLbadR1lPyW7Q7oGj+LxD3cYdLHei+tJS5C/21bwvl4ZpSs8SK+azlm4Y8+oR0 YH6TOx+LyyNcvHmMFNoDdgFctryUfyqb8r28Sy5pkbNYbCFd+AZghImEZ9rLJKbd3nZD JRG8johJvhl8nwu6I/SmZaNRSbVzHeBUIFHGfwyeXe3P4Qab/XqSCl/ncm/9Wvf7Pbr1 3IdA== 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 l20-v6si1795316itb.31.2018.09.25.10.22.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 10:22:58 -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 1g4r14-0004AI-6D; Tue, 25 Sep 2018 17:20:54 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1g4r12-0004A1-Kh for xen-devel@lists.xen.org; Tue, 25 Sep 2018 17:20:52 +0000 X-Inumbo-ID: 80db1f1e-c0e7-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 80db1f1e-c0e7-11e8-a6a9-d7ebe60f679a; Tue, 25 Sep 2018 17:21:56 +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 3ED557A9; Tue, 25 Sep 2018 10:20:50 -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 50A4E3F5BD; Tue, 25 Sep 2018 10:20:49 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 25 Sep 2018 18:20:37 +0100 Message-Id: <20180925172043.20248-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH v2 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 | 100 +++++++++++++++++++++++++++++++++------ 11 files changed, 170 insertions(+), 56 deletions(-) create mode 100644 xen/arch/arm/arm64/smc.S delete mode 100644 xen/arch/arm/smc.S