Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3900262ybc; Tue, 26 Nov 2019 00:06:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxFg/T6TKc2gx14JjqnnezEqgou4twWoet86i8LnZDAq3dy8aKGaUtDqzTFg0Fxl+cUjU6r X-Received: by 2002:a50:930c:: with SMTP id m12mr23790975eda.132.1574755586350; Tue, 26 Nov 2019 00:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574755586; cv=none; d=google.com; s=arc-20160816; b=ZjeGKPgczWsrLZdMSmt91fSEY/Uk8e1d+/8SSjB7NIN+2AjerqkvSpaE3r6eDr/CFH DJlBkF7v/ZkU2GZi8ucvPfzyO5ci90t7J/FV5SwJSOBHIcsj+JJBDJ+5sck+C/sT1KmF r2XQ5Xw+iQV/LTzSr7UR+r5WPQx2qQ3EAo8qqnZMoKq7lB8PEgyPgC6EFf0EHaO1cvlp /VgpP1Wdh8kk+LA268/A1s4SJnfapNNFEfRbZ9HDT4FIbhNPsD7ai4EAxC6+I5GwW37t NPLgFc1bmPcPBNHTkrGa7vm7gTQPivwnv2I+UiAXd7dBc5kMLGpd90njh4/9dsy+OeUb TrnQ== 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:from:references:cc:to:subject:dkim-signature; bh=Yl4+kZ1p5Cyb6s3+0jQVbC3UJyF9FtAmAp/UXPPoPNo=; b=DSupssgP/YqobDIFViPB567w2NbfJO0bP2TOW1pBggcfVd8ymwR0ikvzO87KGfpukJ LV9u4TjdMWPES4IXTSGnaDUcCKEvu5hc18nZ4Nsqr5LfDw6PQKB0w382G0ABIkCPdGwA /VIG05PYAilWhQR2YxmcW7pdZGN/AThjUvacrALa/KfThJ9lvpPDtqTsVSezXcIrjG+n ClGCAmrc08trtT+K80TrmSmEYkI2CPPG4wNuG/N6bW3lUeJFLoOns4fD6typDtBZSyB6 hgC5Y5H7h/ortSSD3qQkH9CpgjablDbXeLCB4RJo7DkHigbW5TuqrS0UlwgAVvGs8N/+ 1Whg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="eiNhmX/3"; 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 d4si7923747edk.445.2019.11.26.00.06.02; Tue, 26 Nov 2019 00:06:26 -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=@c-s.fr header.s=mail header.b="eiNhmX/3"; 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 S1727524AbfKZIBQ (ORCPT + 99 others); Tue, 26 Nov 2019 03:01:16 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:6143 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbfKZIBP (ORCPT ); Tue, 26 Nov 2019 03:01:15 -0500 Received: from localhost (mailhub1-ext [192.168.12.233]) by localhost (Postfix) with ESMTP id 47MbvF4RBrz9txbj; Tue, 26 Nov 2019 09:01:13 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=eiNhmX/3; 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 KmC-aZ693UsB; Tue, 26 Nov 2019 09:01:13 +0100 (CET) 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 47MbvF2TGnz9txbg; Tue, 26 Nov 2019 09:01:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1574755273; bh=Yl4+kZ1p5Cyb6s3+0jQVbC3UJyF9FtAmAp/UXPPoPNo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=eiNhmX/3p1JSMZxMYYU53b3Uvj/rLBVVA1ZgG4CV7ArQenXRfe5Mjcmpel0LxhRo9 PBCT/b4XU75Inbcs/D4NpzEKL6FDQFfbtBjKScGeZtPHcfq3AC+OCTURoNKjyVVviS BZNDVGsocwry4drv/vSThNE9hEkl9aWVnaJNzShI= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4CBC28B7D8; Tue, 26 Nov 2019 09:01:14 +0100 (CET) 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 VvPLu6ECgQep; Tue, 26 Nov 2019 09:01:14 +0100 (CET) Received: from po16098vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EAFB88B771; Tue, 26 Nov 2019 09:01:13 +0100 (CET) Subject: Re: [PATCH] powerpc/8xx: Fix permanently mapped IMMR region. To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <87sgmlcu1x.fsf@mpe.ellerman.id.au> From: Christophe Leroy Message-ID: Date: Tue, 26 Nov 2019 08:01:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <87sgmlcu1x.fsf@mpe.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/18/2019 11:17 AM, Michael Ellerman wrote: > Christophe Leroy writes: >> When not using large TLBs, the IMMR region is still >> mapped as a whole block in the FIXMAP area. >> >> Do not remove pages mapped in the FIXMAP region when >> initialising paging. >> >> Properly report that the IMMR region is block-mapped even >> when not using large TLBs. >> >> Signed-off-by: Christophe Leroy >> --- >> arch/powerpc/mm/mem.c | 8 -------- >> arch/powerpc/mm/nohash/8xx.c | 13 +++++++------ >> 2 files changed, 7 insertions(+), 14 deletions(-) > > This blows up pmac32_defconfig + qemu mac99 for me with: > > NET: Registered protocol family 1 > RPC: Registered named UNIX socket transport module. > RPC: Registered udp transport module. > RPC: Registered tcp transport module. > RPC: Registered tcp NFSv4.1 backchannel transport module. > PCI: CLS 0 bytes, default 32 > Trying to unpack rootfs image as initramfs... > BUG: Unable to handle kernel data access on write at 0xfffdf000 I tested it with pmac32_defconfig and qemu mac99 and don't get the problem: NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. PCI: CLS 0 bytes, default 32 Initialise system trusted keyrings workingset: timestamp_bits=30 max_order=15 bucket_order=0 NFS: Registering the id_resolver key type Key type id_resolver registered ... Looks like I don't get that 'Trying to unpack rootfs image as initramfs...', do you change anything to pmac32_defconfig ? Anyway, when rebasing this patch on next branch, only the arch/powerpc/mm/nohash/8xx.c change remains. The other part is already applied through another patch. So I believe the remaining part is safe to apply Christophe