From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752404AbcHTFvm (ORCPT ); Sat, 20 Aug 2016 01:51:42 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:35346 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbcHTFvl (ORCPT ); Sat, 20 Aug 2016 01:51:41 -0400 From: Andy Gross To: linux-arm-kernel@lists.infradead.org Cc: linux-arm-msm@vger.kernel.org, Will Deacon , Catalin Marinas , Srinivas Kandagatla , Stephen Boyd , stanimir.varbanov@linaro.org, linux-kernel@vger.kernel.org, patches@linaro.org, Bjorn Andersson , Andy Gross Subject: [PATCH 0/2] Qualcomm SMCCC Session ID Support Date: Sat, 20 Aug 2016 00:51:12 -0500 Message-Id: <1471672274-19317-1-git-send-email-andy.gross@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This set of patches fixes a problem with the recent adoption of the ARM SMCCC in the Qualcomm SCM firmware. Qualcomm actually uses the optional Trusted OS Session ID parameter. When SCM calls are interrupted, the session ID field is populated with a value that must be used when the SCM call is resumed. The first patch extends the arm_smccc_res structure to contain the additional a6 result field and modifies the SMCCC ASM macro to store register 6 in the additional field. The second patch modifies the Qualcomm SCM code to use the new result field. Andy Gross (2): arm64: kernel: Add SMC Session ID to results firmware: qcom: scm: Fix interrupted SCM calls arch/arm64/kernel/asm-offsets.c | 1 + arch/arm64/kernel/smccc-call.S | 1 + drivers/firmware/qcom_scm-64.c | 6 ++++-- include/linux/arm-smccc.h | 4 +++- 4 files changed, 9 insertions(+), 3 deletions(-) -- 1.9.1