Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5264580ybi; Tue, 28 May 2019 10:05:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXu9HJARxybZvDHJeSxrVjBFX7kFrvhBBpPARwDRiXYvbAw44VxipmV9gVg7PhPzF8pHoP X-Received: by 2002:a17:90a:f98d:: with SMTP id cq13mr7203697pjb.41.1559063125023; Tue, 28 May 2019 10:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559063125; cv=none; d=google.com; s=arc-20160816; b=CksgQAonByO0Yz4xvxBIXSzDvLQ2621RJf/B6G9fApc4JXWJf7waE3mVLDxa2RwN/j YD7Zy69Y+/ND2/Njbknd5vZvyMv6BeL6qYyjZ0gVV/EqBc1aSqXwOzoCfVCEL0QSsHWa CMgUtd81LTz8GSLGiJLiEmcoLBaAf4c3Q1MlxThFWeWKRiF2tBmsxvSY56/+CqV61i5q PPW/B1Pe6Y/on6dsXQ+taY8S1e8OL4FfJLPWtgR9OipC4NNHN/1QkzxKreLTYhkGTxRD pdpL+oVmeMWtBsbrR8iUPVT+O/U2HCYLujaT7ddmWJy7rex4vsCShQvwzwi8f2gAl5vb q8YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-disposition:mime-version:user-agent:in-reply-to:references :subject:cc:to:from:message-id:date; bh=OuPY6pJ7xIUhWho7tiQ52R84gSWMDBaWXzsBUsJMVMw=; b=AvsIl5zXWazAp9DMJXI/YnfJuOSHHqHj5x5J0epHWYWtfniRC+VKUlQZQLkI6Mcd6Q x9aYkA2QONAKpp0h7RQC0RO2DHeQ8oGbyKFeijUbG2DC8myVzvnC1X/iLDbt6FCtH27S fIG8o+aSAywwYm8cIC+wMdOeanva7duUSJIE+j7t1akqABWV23LrkYiuycC2YUbsVYDX tJIcg8KHiZYUR9X7aaGJ7o7XI67tlotsTv/9F/G4Ri2vKRyNb/XzX5PDwlcbRVD8r1ZU VXKW6YN155Q2lIu+blLJOQnvNDo6jUP9jtsxiQ6MqghgAlmLvNnvc+kv1CKFSfhq2jkG PAAQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si23822115pfh.227.2019.05.28.10.05.09; Tue, 28 May 2019 10:05:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727109AbfE1RDp convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 May 2019 13:03:45 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:31366 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbfE1RDp (ORCPT ); Tue, 28 May 2019 13:03:45 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45D0YB2pz3z9tyRn; Tue, 28 May 2019 19:03:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id zifMpZ7Ll3nN; Tue, 28 May 2019 19:03:42 +0200 (CEST) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 45D0YB21rQz9tyRm; Tue, 28 May 2019 19:03:42 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 0690589D; Tue, 28 May 2019 19:03:41 +0200 (CEST) Received: from 37-170-84-163.coucou-networks.fr (37-170-84-163.coucou-networks.fr [37.170.84.163]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Tue, 28 May 2019 19:03:41 +0200 Date: Tue, 28 May 2019 19:03:41 +0200 Message-ID: <20190528190341.Horde.nTXOule-IO2ReXFiNIqNbg8@messagerie.si.c-s.fr> From: Christophe Leroy To: Michael Ellerman Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Paul Mackerras Subject: Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE References: <3e254178a157e7eaeef48f983880f71f97d1f296.1556627571.git.christophe.leroy@c-s.fr> <20190523061427.GA19655@blackberry> <98bf5745-88ae-7f17-fcb9-7d06ba5b9e49@c-s.fr> <58f0e70f-ed9d-965e-e8d2-cc5d13a4c9eb@c-s.fr> <87r28jp2b0.fsf@concordia.ellerman.id.au> In-Reply-To: <87r28jp2b0.fsf@concordia.ellerman.id.au> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Ellerman a écrit : > Christophe Leroy writes: >> Le 23/05/2019 à 09:00, Christophe Leroy a écrit : >> >> [...] >> >>>> 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. >> >> It looks like I missed the macro expansion. >> >> The called function should be kvmppc_handler_8_0x01B >> >> Seems like kisskb doesn't build any config like this. > > I thought we did, ie: > > http://kisskb.ellerman.id.au/kisskb/buildresult/13817941/ That's a ppc64 config it seems. The problem was on booke32. Christophe > > But clearly something is missing to trigger the bug. > > cheers