Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp799108ybc; Tue, 19 Nov 2019 09:25:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyD9WchdoBbsAqJb97S8Eo34u+yvwnQ7iVTQdlwv/T3/WWy/mj2rRIVZLXeJ1aPmPkETinr X-Received: by 2002:a5d:458d:: with SMTP id p13mr38472829wrq.181.1574184358016; Tue, 19 Nov 2019 09:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574184358; cv=none; d=google.com; s=arc-20160816; b=JWhGY2YHmzL8u7cJwLB9bMwHxlInncQyOfk/Yz8YTPypWDOE/W80y9dW+7MH9iRIBn fmMSjI3fp3xU3JXtduBiDkexgjfOEszP9yANGSzFDr7r841ckPtyjf63d5RnFSOnHyRi 01NVRT6iphCT1YQ/eNKNIZndzDZsnRSD0wRmZo7N0lSegzbdPnmodC4Ouij44a5J+4I9 MrBYpT44vVFb7lUu0vDqC84di3KxVQp6R9YXMDslIvycva9zvgG4P3HPwkwo9CCLTul6 YG0izShEy0nn4FJl2+K7zc4GIKFL4MXhHiGEw/J/utOIWOqBZz8aDieP5owI3Jo3otqk 2UJA== 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=IPPtslt070uwMdoKvf8VGF+GjJq0MetF7CdAAx1rPKo=; b=rjH6G8FUy4jWTeS8BF2PDuxpiiKP3BRqtNBNh8vh1byWbXSWj93KfHusVV2pDGwcZC QY4ct8URmmhF6OFH/W8CozdY9FErv3cBRMFTSGk6vjOGQNjjLU92t+hKmXOvBLqh1Kts 3+6K9OZtMvfLIQzHN6Xbd1iTvFg17CJhpJJEHqnW2NTooaCZRGRWMsLqJAOgsX/eto+o qmLz3OvzhY2bv1E7mdtp8qyJHKqayjXh2QwJNv12aAy3DDMF9bTLtrPHdwM1eXjypZ4J ec9jjgHQD7osRrxHL8hZ/mJ0pqciS4ncnSTsw/CC3IhmCsiXO2+W4sOBl/DKhGW/WCSV rwJg== 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 bi17si16693912edb.430.2019.11.19.09.25.31; Tue, 19 Nov 2019 09:25:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728442AbfKSRXM convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Nov 2019 12:23:12 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:62135 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbfKSRXL (ORCPT ); Tue, 19 Nov 2019 12:23:11 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47HXht0h7hz9tyLh; Tue, 19 Nov 2019 18:23:10 +0100 (CET) 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 9_yGQs22jHWr; Tue, 19 Nov 2019 18:23:10 +0100 (CET) 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 47HXhs50M2z9tyLQ; Tue, 19 Nov 2019 18:23:09 +0100 (CET) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id A9FDCCCF; Tue, 19 Nov 2019 18:23:10 +0100 (CET) Received: from 37-173-93-145.coucou-networks.fr (37-173-93-145.coucou-networks.fr [37.173.93.145]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Tue, 19 Nov 2019 18:23:10 +0100 Date: Tue, 19 Nov 2019 18:23:10 +0100 Message-ID: <20191119182310.Horde.k9AYj80RSVXLkAUdXVQqrQ1@messagerie.si.c-s.fr> From: Christophe Leroy To: Michael Ellerman Cc: linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, dja@axtens.net, npiggin@gmail.com, Paul Mackerras , Benjamin Herrenschmidt Subject: Re: [PATCH v3 15/15] powerpc/32s: Activate CONFIG_VMAP_STACK References: <87v9rhcuc5.fsf@mpe.ellerman.id.au> In-Reply-To: <87v9rhcuc5.fsf@mpe.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: >> A few changes to retrieve DAR and DSISR from struct regs >> instead of retrieving them directly, as they may have >> changed due to a TLB miss. >> >> Also modifies hash_page() and friends to work with virtual >> data addresses instead of physical ones. >> >> Signed-off-by: Christophe Leroy >> --- >> arch/powerpc/kernel/entry_32.S | 4 +++ >> arch/powerpc/kernel/head_32.S | 19 +++++++++++--- >> arch/powerpc/kernel/head_32.h | 4 ++- >> arch/powerpc/mm/book3s32/hash_low.S | 46 >> +++++++++++++++++++++------------- >> arch/powerpc/mm/book3s32/mmu.c | 9 +++++-- >> arch/powerpc/platforms/Kconfig.cputype | 2 ++ >> 6 files changed, 61 insertions(+), 23 deletions(-) > > If I build pmac32_defconfig with KVM enabled this causes a build break: > > arch/powerpc/kernel/head_32.S: Assembler messages: > arch/powerpc/kernel/head_32.S:324: Error: attempt to move .org backwards > scripts/Makefile.build:357: recipe for target > 'arch/powerpc/kernel/head_32.o' failed > make[2]: *** [arch/powerpc/kernel/head_32.o] Error 1 > > In the interests of getting the series merged I'm inclined to just make > VMAP_STACK and KVM incompatible for now with: > > diff --git a/arch/powerpc/platforms/Kconfig.cputype > b/arch/powerpc/platforms/Kconfig.cputype > index 15c9097dc4f7..5074fe77af40 100644 > --- a/arch/powerpc/platforms/Kconfig.cputype > +++ b/arch/powerpc/platforms/Kconfig.cputype > @@ -31,7 +31,7 @@ config PPC_BOOK3S_6xx > select PPC_HAVE_PMU_SUPPORT > select PPC_HAVE_KUEP > select PPC_HAVE_KUAP > - select HAVE_ARCH_VMAP_STACK > + select HAVE_ARCH_VMAP_STACK if !KVM_BOOK3S_32 > > config PPC_BOOK3S_601 > bool "PowerPC 601" > > > Thoughts? Ok, lets do it the way you propose. I'll look at this problem with KVM when I'm back next week. Thanks Christophe