From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9B41C0650F for ; Mon, 5 Aug 2019 10:03:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CACF2147A for ; Mon, 5 Aug 2019 10:03:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NDbySwMa"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="hSLcHvvU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CACF2147A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hwZrPn0j78+d9m7HtUujIFaoG/JRez/SKNb1vyLdNYQ=; b=NDbySwMaaaEU+e P/014hC9dJVJR+JAgf/cMZyfeBhOFZ1MFoMhDG9ZNceoGxsuyd1uZkUdXDsvyr5gZonSLP/wczH02 yYlV6g+Au0gQ73Rsdlr9o1RuUuk+DAt1kd5BM4AtsM1sKDhvowjSkxOE5i7+VqipB4SbDR0sEEDhc Ml9wbJ3H9gMD3RcSDchHiWAQtb4V+IkxxeilgNxTDu9rxTJRpi1raT5tgvNyvLea4wHaun/Fa9z90 3+8IxJCDt7Dke4uFna+BZR0KaBUrDrtcS1uDzznsf6RkmxRUKbTdcm3sAM+/qvPMmduuzYCGPgs/J F9pofcqD2v52SpseLCNA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1huZpr-0005qB-2m; Mon, 05 Aug 2019 10:03:23 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1huZpn-0005pZ-Ej for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2019 10:03:20 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D63212075B; Mon, 5 Aug 2019 10:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564999399; bh=YOw3eXXTngamY2vUc4t6eNrKhwGf591Fl1XUuUTIR14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hSLcHvvUheEUjR3iZldH1kFTzjsmKYQEJY3qZfcH2XHVp85wSCD10iY/IOI7hrQ0M RXojUUFfKcGjxcUYjZhk++s1wQBVkRKmQhCSJkDbeHWO0jF/4x/0ofAqCZ0MduABXE R/xSf8650vmGSiEbz9ThcRl5ywyoTZtrvpD4W18g= Date: Mon, 5 Aug 2019 11:03:14 +0100 From: Will Deacon To: Steven Price Subject: Re: [PATCH 7/9] arm/arm64: Provide a wrapper for SMCCC 1.1 calls Message-ID: <20190805100313.x65743i3n4qx6gyc@willie-the-truck> References: <20190802145017.42543-1-steven.price@arm.com> <20190802145017.42543-8-steven.price@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190802145017.42543-8-steven.price@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190805_030319_515113_762D3556 X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Catalin Marinas , Suzuki K Pouloze , linux-doc@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, James Morse , linux-arm-kernel@lists.infradead.org, Marc Zyngier , Paolo Bonzini , kvmarm@lists.cs.columbia.edu, Julien Thierry Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 02, 2019 at 03:50:15PM +0100, Steven Price wrote: > SMCCC 1.1 calls may use either HVC or SMC depending on the PSCI > conduit. Rather than coding this in every call site provide a macro > which uses the correct instruction. The macro also handles the case > where no PSCI conduit is configured returning a not supported error > in res, along with returning the conduit used for the call. > > This allow us to remove some duplicated code and will be useful later > when adding paravirtualized time hypervisor calls. > > Signed-off-by: Steven Price > --- > include/linux/arm-smccc.h | 44 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel