Received: by 10.223.164.202 with SMTP id h10csp1018925wrb; Tue, 7 Nov 2017 19:56:29 -0800 (PST) X-Google-Smtp-Source: ABhQp+RA52pXTkOkQLYGyuS3G40yWFev/MahUaBlLCQn30hRwVfT+glNXjDyXVswTzETTm4PjpFk X-Received: by 10.99.44.214 with SMTP id s205mr938933pgs.80.1510113389403; Tue, 07 Nov 2017 19:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510113389; cv=none; d=google.com; s=arc-20160816; b=kiLqk0OnRf9ONNQB79BDHkHVNhY2PMiw7fOadWFRE71onQzDhG1hyFlpYhp6tqnwYx oUbMJdvWezhURiG2HHwZdaKplcRto64hgSyjsZoWdbjXhqd+TyHznPFC2Uqdz765sZCn tclHwTVxEi1VowhuOcIPm+taz599jEBa07FG29LeTM9/5Pofii3vf6z1zpF3ElKtta/z 5xb0QImxAqd9XMCKYwP3xgw81eg9BrIhT1ZVuKKYbaR+RRtSN4+Ib6G+7VSwGWWfAWeV wt1mb91sd0wkqQxkONIHFb7iezBj0VcxhNYOio6ReLtJ1u7J4pVIYYZB0Yeou6unNnGr 2+Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=4xTqWWWmFFP3+eS4+vOB2jycVz/YuPfOqQdoH70BmcQ=; b=lwokXAsQkuUOqbnuSq8HUBQZ8fsVHMAN2K//NU199G0pqyMH68Bc9wru0O7BrhIQGA tnhnBVWoi9jR/H47MB5midL9XaVCguz10Ic7Nq2y8htVnuPeab/TtyVSw8BU90bVpu2L VHhwwQFQjHE30hX5QiUab8c8en0BZBWBK1I9H3XEFyUV5XHnuRGaZC58pnaaOUrvb1QE SBOGwbOBAZH0R27tfOGpuyP2ee00VQPpumO6rHMzL9x4hdPoa+BLHlsMzjQKhmv+2YB+ MMVOU43ZFLkizvrkWIDYqgqnUyVd9xiBuqt3npIHZ2ZGfbrIpVOPa/9skG82W0mDHALZ CJrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w71si2842499pfd.262.2017.11.07.19.56.16; Tue, 07 Nov 2017 19:56:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753839AbdKHC0S (ORCPT + 90 others); Tue, 7 Nov 2017 21:26:18 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60714 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753224AbdKHCYW (ORCPT ); Tue, 7 Nov 2017 21:24:22 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA82Nr0a124528 for ; Tue, 7 Nov 2017 21:24:22 -0500 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e3muau2es-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 07 Nov 2017 21:24:22 -0500 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Nov 2017 19:24:21 -0700 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 7 Nov 2017 19:24:18 -0700 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vA82OINv5112166; Tue, 7 Nov 2017 19:24:18 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0CD776A03C; Tue, 7 Nov 2017 19:24:18 -0700 (MST) Received: from suka-w540.usor.ibm.com (unknown [9.70.94.25]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id 853476A03B; Tue, 7 Nov 2017 19:24:17 -0700 (MST) From: Sukadev Bhattiprolu To: Michael Ellerman Cc: Benjamin Herrenschmidt , mikey@neuling.org, hbabu@us.ibm.com, nicholas.piggin@gmail.com, linuxppc-dev@ozlabs.org, Subject: [PATCH v3 12/18] powerpc: have copy depend on CONFIG_BOOK3S_64 Date: Tue, 7 Nov 2017 18:23:52 -0800 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510107838-15181-1-git-send-email-sukadev@linux.vnet.ibm.com> References: <1510107838-15181-1-git-send-email-sukadev@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 17110802-0028-0000-0000-0000089DBC7E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008029; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000239; SDB=6.00942691; UDB=6.00475553; IPR=6.00722980; BA=6.00005677; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017903; XFM=3.00000015; UTC=2017-11-08 02:24:20 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17110802-0029-0000-0000-0000383F0987 Message-Id: <1510107838-15181-13-git-send-email-sukadev@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-07_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1711080027 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Have the COPY/PASTE instructions depend on CONFIG_BOOK3S_64 rather than CONFIG_PPC_STD_MMU_64. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/kernel/process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index a0c74bb..37ed60b 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1215,10 +1215,14 @@ struct task_struct *__switch_to(struct task_struct *prev, batch = this_cpu_ptr(&ppc64_tlb_batch); batch->active = 1; } +#endif /* CONFIG_PPC_STD_MMU_64 */ if (current_thread_info()->task->thread.regs) { +#ifdef CONFIG_PPC_STD_MMU_64 restore_math(current_thread_info()->task->thread.regs); +#endif /* CONFIG_PPC_STD_MMU_64 */ +#ifdef CONFIG_PPC_BOOK3S_64 /* * The copy-paste buffer can only store into foreign real * addresses, so unprivileged processes can not see the @@ -1237,8 +1241,8 @@ struct task_struct *__switch_to(struct task_struct *prev, asm volatile(PPC_COPY(%0, %1) : : "r"(dummy_copy_buffer), "r"(0)); } +#endif /* CONFIG_PPC_BOOK3S_64 */ } -#endif /* CONFIG_PPC_STD_MMU_64 */ return last; } -- 2.7.4 From 1586247940964845950@xxx Fri Dec 08 20:12:00 +0000 2017 X-GM-THRID: 1586247940964845950 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread