Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1463269ybm; Thu, 23 May 2019 01:13:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcmdjdIJhrWwJhAJ9NnOzXAxMophLBxdbQeOBpdsEb4SNPsmyKKczo507kBW3Rh+pNo4dZ X-Received: by 2002:a63:ee0a:: with SMTP id e10mr81665969pgi.28.1558599218521; Thu, 23 May 2019 01:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558599218; cv=none; d=google.com; s=arc-20160816; b=SHNkucNDlrE32J8F/SgRP3KaQsQC08VPVFloxPRy/MAayyMvSvYnFmg5HAD6ik6Jl6 CTXgBSp3HE6ocDqNg1eQTZ14I7s5/rVc8z2W5noC8326iPw1+4XXP6jmDTjFfzOyc8GW cHRCaGKOAMWJZo+ghoPTB8rwMHZGSNE5BZSZ8scrEB2xluRP9ycJsP5Hwg/vOYa+yVnN qu9xEEa9zCsgLP5rEN7MD5xFZuDt+6dMyDiC+PGI4vGYbCT07m0BX0MtQ35DEOMaKox1 MOF1YCBkoqjWAouE+TBFM8/4cmDpB3YrpEI+XAG0z+bcOnk9CUZi3Q8gGmcXtVptF9pm ZZ2g== 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-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=htOA7A7o8Wi6zLAJA9t7xk2NyPWEHzRDYWW5icgzEWw=; b=iO0157wYrEO9RtO4eq2/JFgpVgmdZaD+RR/RUcN6/G1AK1VybTUyS3q3a03J6Xl3Ql rX+ges4NNqjtVu5VeWqCJJTYRNIOMXzfgUzRtJP33TIjxgRSnBAM18Ii7igsxaRTF9g+ bxaYwJtuMrrlyzrapYo1NWq2YWG58ExXURs0IlX3alSbh6NB5z328cYARw3q9NZUrFaw 17YPMQIPVxxC5aRIDRmv3/azO20qbbhbjzZ9NXHjavGYKwA+slzXYfzfAio0yzeL//HH Ac89uVsxVYnRUOuxc/vm/uWXfIaSD86iZe9lDOn2pIoYNCN7T1ncfi1RI7/DCp/rmUKT ZjOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=WYfoZ9wX; 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 r26si28197452pgb.32.2019.05.23.01.13.19; Thu, 23 May 2019 01:13:38 -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=@c-s.fr header.s=mail header.b=WYfoZ9wX; 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 S1729958AbfEWIKs (ORCPT + 99 others); Thu, 23 May 2019 04:10:48 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:6386 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfEWIKr (ORCPT ); Thu, 23 May 2019 04:10:47 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 458hyX4xfVz9ty20; Thu, 23 May 2019 10:10:44 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=WYfoZ9wX; dkim-adsp=pass; dkim-atps=neutral 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 zj566mV9uPRn; Thu, 23 May 2019 10:10:44 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 458hyX3nmdz9ty1y; Thu, 23 May 2019 10:10:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1558599044; bh=htOA7A7o8Wi6zLAJA9t7xk2NyPWEHzRDYWW5icgzEWw=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=WYfoZ9wXEi9c9wELKQjVpGLFo19AD+4x2oUqSwfOByliYQ1YqJnY/cKTd9NGmXq9Z 34od+gBJaFvTP9w/sXWsoj0bMRsX/mrIXF/80Yl5K8BmAYm71PLd/6lTckK+oKj2u5 AkU9ezqmXBB1/poEiDFUHNWtHECDO+e2aRLPUyWk= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 90F1A8B781; Thu, 23 May 2019 10:10:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id fX5nDcjC2Yuv; Thu, 23 May 2019 10:10:45 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 395578B77D; Thu, 23 May 2019 10:10:45 +0200 (CEST) Subject: Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE From: Christophe Leroy To: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Piggin References: <3e254178a157e7eaeef48f983880f71f97d1f296.1556627571.git.christophe.leroy@c-s.fr> <20190523061427.GA19655@blackberry> <98bf5745-88ae-7f17-fcb9-7d06ba5b9e49@c-s.fr> Message-ID: <58f0e70f-ed9d-965e-e8d2-cc5d13a4c9eb@c-s.fr> Date: Thu, 23 May 2019 10:10:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <98bf5745-88ae-7f17-fcb9-7d06ba5b9e49@c-s.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Christophe > > This SYSCALL_ENTRY macro is a slimmed version of NORMAL_EXCEPTION_PROLOG() > > In NORMAL_EXCEPTION_PROLOG(), we have: >     DO_KVM    BOOKE_INTERRUPT_##intno SPRN_SRR1; > > The _SPRN_SRR1 comes from there > > > Then in /arch/powerpc/include/asm/kvm_booke_hv_asm.h: > > .macro DO_KVM intno srr1 > #ifdef CONFIG_KVM_BOOKE_HV > BEGIN_FTR_SECTION >     mtocrf    0x80, r11    /* check MSR[GS] without clobbering reg */ >     bf    3, 1975f >     b    kvmppc_handler_\intno\()_\srr1 > 1975: > END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV) > #endif > .endm > > > Christophe