Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1370191ybm; Wed, 22 May 2019 23:17:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjUBTG3fY/raklk1f1DgLoXDFuSCgOxiJoUExpcgrzQiSklKCEf+0KUkVkJhJQdUPGggF1 X-Received: by 2002:a17:902:2947:: with SMTP id g65mr75813320plb.115.1558592255187; Wed, 22 May 2019 23:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558592255; cv=none; d=google.com; s=arc-20160816; b=n2kf0EZcKeArOtLbBUhFcvsaasL7eEPeaNSw17hNw2MB8eUQ0vk70YvVbyzCbY/Yni HofymP2kaKDjaWMl73Al0jls2kx+3loNzGbrgGksjn2UW+cdpwtfAq37aSRHB21zxBkr HurXVInu4nbejS+UgJtVb9HwoIXeCJ2/2HDjahR885yFFU7CkyU6v/GEZ/c4omG7zLH7 M77I1lqrPxsXgl7VISeoOezkNlkLr4+my17vS3febpokoAT7MXelSDhelBF4g1q9YCMe qxv0fhC0hfhPkBYz8xQoFisiXCOAy2Me379OI0+gdahOBoUc8fV24i+Vs1nGv4N/0UEC JiDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=M+QtCvYTKrgX34vXETlWpfoEZEobRbPEs1H80hX6neQ=; b=AgTGSRGAsmvpEHDQvXVMsITPUhQfCiUlXwXPSh6sszxsrO2/6cWnw8g6xgWM7Xc940 i9CCu/59ydo+/EhIZQfAYvLU1C8ocNUM/MP1Zyhf0nwbDXpNWO6luiCob020yP+X4eaF gjUvE3BJpPK/95imHGLZbnzgW/dJZ8WwWvk9Kik7uFzSTHv1AR5WpeMYfn1sDB33hKL8 rolhOJ6g5jgCHb69NU5qoaj/VyGwaF96MVS7r6sVo2wkjpik3vBY/nJn/EUTQ8tt0d3k 6bNNV6JDzLWSUCDPmQ3VKFtVzKy8Sz0ROPkfPbW28Pe9gSlS1R+fU0fRsVP2Izj/pP6k 2Ruw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=iHrJwjk2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q204si2322221pgq.470.2019.05.22.23.17.19; Wed, 22 May 2019 23:17:35 -0700 (PDT) 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; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=iHrJwjk2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbfEWGOc (ORCPT + 99 others); Thu, 23 May 2019 02:14:32 -0400 Received: from ozlabs.org ([203.11.71.1]:45989 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbfEWGOc (ORCPT ); Thu, 23 May 2019 02:14:32 -0400 Received: by ozlabs.org (Postfix, from userid 1003) id 458fNP5zgyz9s6w; Thu, 23 May 2019 16:14:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1558592069; bh=Tr73qojhfVjEZCm5/e8GumQVv2PX+3DhCXwgTZaf9eA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iHrJwjk21wsErNroYSoT3Ay7LcZvRgset0OR28n19aUJtizFBULwKHdwdYeELZVs7 yQPr7hIxjT5QEbkSpu3LKQ6llJyW68FWRehC62TVIJeG3HFl5Qsg3AMUz0UEajvyyM bVresl/mOT5RkLO74c/3INadBxhN1LVXXyTioH9J6MfswNVeFHbFzupj3NGWBxqnsY O8niIP6YeNyWk6V4PZ/f+uFR/AXmo6H/MZegB6COwqBtZbgUaCZEb3VVJb5tBp/nu7 y+e3lIhYIFqwRwNQ4IPe1vTPwM6Ry4yf95i8zN7ALEM7LiEfdYVJwP/kHEnOd+Wgr7 4yRKQ9xdStmHQ== Date: Thu, 23 May 2019 16:14:27 +1000 From: Paul Mackerras To: Christophe Leroy Cc: Benjamin Herrenschmidt , Michael Ellerman , Nicholas Piggin , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE Message-ID: <20190523061427.GA19655@blackberry> References: <3e254178a157e7eaeef48f983880f71f97d1f296.1556627571.git.christophe.leroy@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e254178a157e7eaeef48f983880f71f97d1f296.1556627571.git.christophe.leroy@c-s.fr> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 12:39:03PM +0000, Christophe Leroy wrote: > This patch implements a fast entry for syscalls. > > Syscalls don't have to preserve non volatile registers except LR. > > This patch then implement a fast entry for syscalls, where > volatile registers get clobbered. > > As this entry is dedicated to syscall it always sets MSR_EE > and warns in case MSR_EE was previously off > > It also assumes that the call is always from user, system calls are > unexpected from kernel. This is now upstream as commit 1a4b739bbb4f. On the e500mc test config that I use, I'm getting this build failure: arch/powerpc/kernel/head_fsl_booke.o: In function `SystemCall': arch/powerpc/kernel/head_fsl_booke.S:416: undefined reference to `kvmppc_handler_BOOKE_INTERRUPT_SYSCALL_SPRN_SRR1' Makefile:1052: recipe for target 'vmlinux' failed > +.macro SYSCALL_ENTRY trapno intno > + mfspr r10, SPRN_SPRG_THREAD > +#ifdef CONFIG_KVM_BOOKE_HV > +BEGIN_FTR_SECTION > + mtspr SPRN_SPRG_WSCRATCH0, r10 > + stw r11, THREAD_NORMSAVE(0)(r10) > + stw r13, THREAD_NORMSAVE(2)(r10) > + mfcr r13 /* save CR in r13 for now */ > + mfspr r11, SPRN_SRR1 > + mtocrf 0x80, r11 /* check MSR[GS] without clobbering reg */ > + bf 3, 1975f > + b kvmppc_handler_BOOKE_INTERRUPT_\intno\()_SPRN_SRR1 It seems to me that the "_SPRN_SRR1" on the end of this line isn't meant to be there... However, it still fails to link with that removed. Paul.