Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp488587ybl; Sat, 18 Jan 2020 04:48:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwl5KZcd9TUYeL/M9ai3bcxGoAW7/Mo3JbwXTOXc+uwXrORRurodkNQx12yRKyxjL2TbJ2q X-Received: by 2002:aca:5d57:: with SMTP id r84mr7046357oib.42.1579351705463; Sat, 18 Jan 2020 04:48:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579351705; cv=none; d=google.com; s=arc-20160816; b=dAONxNRfWOFKJnxlXxMtjqyau7c8/WE6kMYn3LI9TQYQMhw+vkyofG4xeGWhrxSGxb 43OMI58/WcnfrFSnR+k7c+YUh4g9+KRwPFoCKsl73ZdikjVBEu5rwUZg5jBvdW4G1c6w SZfXGHF5jQmBYfMDPGdbhtaMThVxXFNLhR7309MlrBxG3rbs97iyQg9SkGrzplWIN6gV l/tBHaiNLbMSuAvYARL0+1D1cb3g57M2sS8W/v40u1KomK7W7JHFZrbNV6Ej6SYzR1Ff xAHDfFTlnPEi8NcG8/TdbtQoZL55uQeGDcoILffEIrxsAk5k7XD8A/+VihnnzQTjlcvv SNIw== 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=DaTgbOTkJVyGbsWUOub4q9Y/iKymVUpvuKk2HXfwatQ=; b=sWKBR5NZu3N6kklloMvu0kJigWmqwwvBSy7B4fCXukebqBQ4rXKSBJMOjKBoHaCzxq EXfsz+bs8RJq1AwutiJe6IX4nNnCFSLIZP6VNXfHD8i31p+WZA/TtFSxmBleE4JtjlHE U1Gz/EEMSNP1hW4Gw1/zUrcVw5zDw0AcdbAVhkSXIdyzgf15cIghRwjV0/frJC+5Hf6b CKbX15vnVOeqiffSU/+sv7YtuECuJFYT0ichSekxq3E4aMfE2V90XKfSq5o2dfPJYIKY OtYdwl8tGY3IF9MH9+DQxA+YFr1J+KC2W7d2GGc2QS1aAfSWdiy60Lx1RDJ0ALSjlhaf QScg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=NyPxHY1G; 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 l14si13657283oii.37.2020.01.18.04.48.13; Sat, 18 Jan 2020 04:48:25 -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=NyPxHY1G; 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 S1729011AbgARMqK (ORCPT + 99 others); Sat, 18 Jan 2020 07:46:10 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:38465 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727459AbgARMqK (ORCPT ); Sat, 18 Jan 2020 07:46:10 -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 480HjW0nc3z9s1x; Sat, 18 Jan 2020 23:46:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1579351568; bh=gqPYNeS2exoxqfo0y6nSLXdl3WItA/rkMscwL22uFjk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NyPxHY1GrZe6EuxL1v7qz8SPgZc7Pibfz+2hurvb+daChsK+3EtjyKLlXUIzCSEj3 5ctHnFxgvTMJ78ujZoVBJizUpBTRscNkDIA9kw7Vsvr19fg5SmWW5ZjMtBy6zvOCH3 ESDJLBlE/T1xbP+S3kTmPZUMFoZM5OGo9Nurm5dUBZF/YOWxNGqwMjIscynRnM4qLo 4ZfcwtUysuagKsHQ+nutZMnYb3+3zAlLlauybF+PWGfDCEzH73TIPja7es70iMC5ky WjzApNDUlVcnqmST86U7mmBddd6Hc2mCkBqmH2/Ck5phY23y9bxYyDRiIST4MHH6DK DeZvMOOeLmZUA== From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , dja@axtens.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org Subject: Re: [PATCH v5 17/17] powerpc/32s: Enable CONFIG_VMAP_STACK In-Reply-To: <2e2509a242fd5f3e23df4a06530c18060c4d321e.1576916812.git.christophe.leroy@c-s.fr> References: <2e2509a242fd5f3e23df4a06530c18060c4d321e.1576916812.git.christophe.leroy@c-s.fr> Date: Sat, 18 Jan 2020 22:46:13 +1000 Message-ID: <87zhel6iga.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: > diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S > index 90ef355e958b..3be041166db4 100644 > --- a/arch/powerpc/kernel/head_32.S > +++ b/arch/powerpc/kernel/head_32.S > @@ -272,14 +272,20 @@ __secondary_hold_acknowledge: > */ > . = 0x200 > DO_KVM 0x200 > +MachineCheck: > EXCEPTION_PROLOG_0 > +#ifdef CONFIG_VMAP_STACK > + li r11, MSR_KERNEL & ~(MSR_IR | MSR_RI) /* can take DTLB miss */ > + mtmsr r11 > +#endif > #ifdef CONFIG_PPC_CHRP > mfspr r11, SPRN_SPRG_THREAD > + tovirt_vmstack(r11, r11) This didn't build: arch/powerpc/kernel/head_32.S:283: Error: syntax error; found `r', expected `,' arch/powerpc/kernel/head_32.S:283: Error: found 'r', expected: ')' arch/powerpc/kernel/head_32.S:283: Error: bad expression arch/powerpc/kernel/head_32.S:283: Error: junk at end of line: `r11,%r11),0xc0000000@h' I fixed it by dropping the brackets. cheers