Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp182661ybc; Mon, 18 Nov 2019 22:58:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzaIzFz7PBbwQa3YSLtIAi+MiRM6jneM83k+uc/dH+z0DxpDqbluU16D0ULtBijiSZweDtD X-Received: by 2002:a17:906:b246:: with SMTP id ce6mr31735100ejb.298.1574146716500; Mon, 18 Nov 2019 22:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574146716; cv=none; d=google.com; s=arc-20160816; b=s3m36L9YkPmZVtvxtNwDcxLxhHeHqUXOuPfn9f2kQElrgaYogoiqYG4ElouMKXKoQ0 32xMrPuFf9siCntu6lStrYtBSjkwkiNmm53teA2raXljEDyhuJLhChLa5Mdy2khoVWlL sO8Qlv9yqbEcshT9c6RxNvPktSnfof/FxqbdfyV5xpmJGpePZ5l/IOqxiLdGHVljGZEn 4rLsM2jYfB++AkhJzQCYY8yvegaA6pueJD3tv88rgFY7FRFkb4FjiVjqad2f/hd+dMWH rX7t0/L9NhCVwm6n6KmCV211L3rez6/LKqALB30ybpuFHH5PzIaJZJgF3g9hDWBwKhFT ukzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=Ulmy+i390DxW0BAP//Za9E6BJ+kFiLW9aN5smp7FZiE=; b=BQyGnItGWJIO6dOe/E0WEUdR+NfTDqFm6/sre1eYgoO505KI5l4VLcF75387aY7XiR wh2W4nhQzM3tCILCu5BJ+d5M66wk82mqFjwinhtIRH5jo69QuBP7Z3S66xZoWvOoAMVW kFqgaNVW+E2ObQe72aq0A8Qd0Xd8oHsgnZoWGmNiAkcXD6xoBqvfjTfIMaMyTUxIfSUM kJLQgqzxVm8BqCpPhETIDxMSbRfo5GkQQktL7n6ZeQUv3C53kpRqZcloJqLVqbrRjbjz z4XNjzhMzzrgVqJ5jzW43uUGPVKDl6pwK3Rf/O8rgBcC8CROQIAV4YPuPO5MmngJ/TUt aWVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=oEzgknc7; 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 z15si15324083edd.8.2019.11.18.22.58.10; Mon, 18 Nov 2019 22:58:36 -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; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=oEzgknc7; 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 S1726860AbfKSG5L (ORCPT + 99 others); Tue, 19 Nov 2019 01:57:11 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:43989 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbfKSG5L (ORCPT ); Tue, 19 Nov 2019 01:57:11 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 47HGpW0SZfz9sRY; Tue, 19 Nov 2019 17:57:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1574146627; bh=abFbgG1igsThhgb3dlNVPaVj97B/UnH0/Rzd5PqAH+0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oEzgknc7lx7h5mOjZB0zQ3OpkhQjE2o7K2yyBwiUDKIpC76o8tVULItublIoVzqSR IdXlpROlMM68c7Ufy69ZgmokqgE4PAe0yrWx53/OeYK+qKsHRJHp/UkbV1I2lYoMvI rb+qPgWWCxtRMW2fBV8yrPh+jL9kbZjyCD9Vvu76Ai9NolmcXQahEze5dtjpCfpj3b 4p3UjTem+R663qkGKc21teebtxS+C74oXnNYQ4stRAaIdu/bgqzIZ2AJbrJt3+eA1i FXSlzh2Chck58Mgg45i3Fe9GR9wP7WCPyGNi2K72I1H9ILsMSqLsVgpsgyvx8k1ksv yh0y5KM8NT1Qw== From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , npiggin@gmail.com, dja@axtens.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org Subject: Re: [PATCH v3 15/15] powerpc/32s: Activate CONFIG_VMAP_STACK In-Reply-To: <87v9rhcuc5.fsf@mpe.ellerman.id.au> References: <87v9rhcuc5.fsf@mpe.ellerman.id.au> Date: Tue, 19 Nov 2019 17:57:03 +1100 Message-ID: <878soccq0w.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Ellerman writes: > 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 For some reason this needs to be !KVM. > config PPC_BOOK3S_601 > bool "PowerPC 601" > > > Thoughts? cheers