Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2693865ybc; Mon, 18 Nov 2019 03:14:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwQYlZ+nrT2h2PjTQxEw8+uh2ZLKHPvyC1rgZNILOdx2xz3TIerNG1PfyWtq+vHUujftqIc X-Received: by 2002:adf:ed4e:: with SMTP id u14mr30413293wro.132.1574075648684; Mon, 18 Nov 2019 03:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574075648; cv=none; d=google.com; s=arc-20160816; b=zuQG5YnDV9ZLaPFZbK1M5CWzMTo8WnLjAa9KxcsCzctNqmukOcR2SqHiI2D5yMMuKZ Zj2lsjrWhhAG0j0w2AgGKh9ueExdpqjWe0+ulbFyuOYp3iKxON2RwydoLAf0Iru0P77N VxDQesSomtGfJWBsJlhzFzCxeeq/OtW22nT8VfoADvSp5GsYm+QZg5Cq/LLqTwLeQeq5 zHU225B4DlHoIod6Y1EFxb0D0vbEY0/WVD+yClBfhIZxqZTtECkcuKRRMYVfnECCPsok BohderQqlZiX03Sw6/1Ky4PhHPpkFwNrw0b6KXZVQ2Gi1bXJUBXxF+GqfNUSQWLjMtQq 1bvw== 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=/oxaAdlfYBz10+S0NDfH5vVtjv1yDiNzrw+heJ/HHtU=; b=WV/4CpQgRcwULNs7sTKWuwpfBZObFTOGZpe/EhjnvYSATvgIvrwgFGM5KlbJpzMGwv sKoO5hY/bZDkzjnelOpj+GOxFVIK6JLxcLTYABJ8s5n0x8bSJPM9DWO8boq7ImOQo+yG OPUT/sjnt0QjVxhdNiQ4iULJoDftyuFoTBouCY+8NQBhCQUxjJq/4V22DOIfney+ItFP U2RPFpEHqSuE8xuYczVm0UYNqJwEko0tjmozbadB0pTYSy3k67zBUyIallYp+SUznG6a Pm9t56UgiHsDXdtb/mB7L7AgfLtqIGF9MDiHYyu48oVJAVqBI8alL0CLtJSxyBn+EM31 uVjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=hpoz6mdZ; 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 g13si13029772eda.292.2019.11.18.03.13.44; Mon, 18 Nov 2019 03:14:08 -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=hpoz6mdZ; 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 S1726767AbfKRLLv (ORCPT + 99 others); Mon, 18 Nov 2019 06:11:51 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:37703 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfKRLLs (ORCPT ); Mon, 18 Nov 2019 06:11:48 -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 47GmVm1C3vz9sPW; Mon, 18 Nov 2019 22:11:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1574075505; bh=QByUf344DbijnEcOKjXE4bov4EScyA8n8e5maydZozo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hpoz6mdZbL3VKo2Lz73Gfs7my5GTa4IlFeffXEBJLPoLFaqeRT4/mNgJfEfZ6PPnF nrtW48n7UNoMazweZHcXu+Hz5/6qsmDT7VXwoRTblB/vNHXuoCqq2cBzolunk4gyvH S8xeV3xe/3p02onu0nUjRz1B/rhuyqOnFuONi7Q2yIzFAyuMlLeS9fMi0CLzZYjsuU +jE8ZkIqe3ITpz8ELVMjdH+YLwjY5elttiCPWITPTFDeIf//ymDk5bakwsq/3Bu4wC 0IBdwBeu1oAbW095JNG5+UKtDpPP0Yj4MsBv/JWD6CNjj9fZtmqf0mJ34ACz743r/d Ew/T7s/F/ZfqA== 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: References: Date: Mon, 18 Nov 2019 22:11:38 +1100 Message-ID: <87v9rhcuc5.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 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? cheers