Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp227045imp; Wed, 20 Feb 2019 23:44:48 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib1A3p2FS10FtYdXediGLHBduct3d0V6Hj7HwAFFxM3BkRVrv0OmrwnDfYQnHr8EMrFEqsN X-Received: by 2002:a17:902:6a4:: with SMTP id 33mr40364859plh.99.1550735088837; Wed, 20 Feb 2019 23:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550735088; cv=none; d=google.com; s=arc-20160816; b=lgkhioI8fv13rLf6OtVfOQHWUZy/qpLcYn7wQMmcaZHhTDNWlUscd4NKxy+zn1s+yp EWM/oPN7gP42ipSLctUdqzB2vb9eMhrcys3on9loop7nMOji4q33nBXFeQHpNdJZ8Uig ihib0/KG1uyIq29m0lEmoI7XBCEadx+ACHaYUZJXKDzAf7+QK7Mwlq/hwdQKcdMbs6xy Neswmw/4Cn5N31i5iO3TPRGMcCurTSSrDX5vaq997VJBF14fdD9GW8eXB/lLwcmfJjRT F+wOI0EBmUsLZjAAJNCg83CBuuxdFmZaUsGDWE+XRkksZSvWlwG6Bl/ZGvdtVr6HE0// h7gw== 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=lWdc6nz5IJrMOKAwLhVS/NTvPYy+zFyuoVYBhW7fWHo=; b=p/w9cZ4bJsG2JWXwFkya7XRTWOzLp0l/c2dR6qRsW17NQ2Wxubj6OUHl1OkIvPA0Yr bOAZDHMVuKUFtqzOzImoS5y15O8g7WMp3QYKF+EtAjB8J5IHG2YqAIJqzJTfhQlTUe6Z rnt6H4m5b0+r3aVsAQryQG54QV8tOvD9nZ9jE1zKVEqZQRKQD5R+eoyc1Q1xVR+SmfL2 VuD64Nd36dj+B5g43bMm2uydcF0F+BuI3Xe9wDSE0bU79nt2vI3ijIhezzt420fTGAwy 9N4y/duZ2TyulUxlMfabQmPNskvrGdLppwHslmy3zQChfWgoolAHb8qMv2wi3BVw2Ugg cDtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Kt+bScOe; 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 d10si18801964pgv.14.2019.02.20.23.44.32; Wed, 20 Feb 2019 23:44:48 -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=Kt+bScOe; 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 S1726560AbfBUHmX (ORCPT + 99 others); Thu, 21 Feb 2019 02:42:23 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:55566 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbfBUHmX (ORCPT ); Thu, 21 Feb 2019 02:42:23 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 444mdm65P2z9tyFM; Thu, 21 Feb 2019 08:42:20 +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=Kt+bScOe; 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 wfcoxRKWw_2l; Thu, 21 Feb 2019 08:42:20 +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 444mdm4h4Rz9tyF4; Thu, 21 Feb 2019 08:42:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550734940; bh=lWdc6nz5IJrMOKAwLhVS/NTvPYy+zFyuoVYBhW7fWHo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Kt+bScOeGKyudtsvAz0yBm1W41cJqRPY2E1Fv5mKxux175NlucQh0F12Jaml3/fmc KjNHAPep1+05SM9YZaUDQrHlAoYbi28fvlewdsxeMA6erFFZvrbImmP8ArErl2xfXO 09D3yjqzrQJYyqru8NNXUuNOtKI5boL45NbCBfJM= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 93E2F8B78F; Thu, 21 Feb 2019 08:42:21 +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 DO_TCIqwh4DS; Thu, 21 Feb 2019 08:42:21 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 263148B75B; Thu, 21 Feb 2019 08:42:21 +0100 (CET) Subject: Re: [PATCH v3 00/16] powerpc/32: Use BATs/LTLBs for STRICT_KERNEL_RWX To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , j.neuschaefer@gmx.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <87mumpx68h.fsf@concordia.ellerman.id.au> <82af8805-3e2a-cfb3-9df6-d883b50ff460@c-s.fr> From: Christophe Leroy Message-ID: Date: Thu, 21 Feb 2019 08:42:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <82af8805-3e2a-cfb3-9df6-d883b50ff460@c-s.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 21/02/2019 à 07:31, Christophe Leroy a écrit : > > > Le 21/02/2019 à 02:47, Michael Ellerman a écrit : >> Christophe Leroy writes: >> >>> The purpose of this serie is to: >>> - use BATs with STRICT_KERNEL_RWX on book3s (See patch 13 for details.) >>> - use LTLBs with STRICT_KERNEL_RWX on 8xx (See patch 15 for a few >>> details.) >> >> This doesn't boot qemu-mac99 for me: >> >>    spawn ~/src/qemu/ppc-softmmu/qemu-system-ppc -nographic -vga none >> -M mac99 -m 1G -kernel build/vmlinux -initrd ppc32-initrd.gz -append >> console=ttyPZ0 init=/bin/sh >>    >> ============================================================= >>    >> OpenBIOS 1.1 [Feb 15 2019 10:05] >>    >> Configuration device id QEMU version 1 machine id 1 >>    >> CPUs: 1 >>    >> Memory: 1024M >>    >> UUID: 00000000-0000-0000-0000-000000000000 >>    >> CPU type PowerPC,G4 >>    milliseconds isn't unique. >>    Welcome to OpenBIOS v1.1 built on Feb 15 2019 10:05 >>    >> [ppc] Kernel already loaded (0x01000000 + 0x00c2c338) (initrd >> 0x01d2d000 + 0x007e72f0) >>    >> [ppc] Kernel command line: console=ttyPZ0 init=/bin/sh >>    >> switching to new context: >>    OF stdout device is: /pci@f2000000/mac-io@c/escc@13000/ch-a@13020 >>    Preparing to boot Linux version >> 5.0.0-rc2-gcc-8.2.0-00125-g4fcb83ca7936 (michael@ka4) (gcc version >> 8.2.0 (Buildroot 2018.11-rc2-00003-ga0787e9)) #724 Thu Feb 21 12:03:14 >> AEDT 2019 >>    Detected machine type: 00000400 >>    command line: >>    memory layout at init: >>      memory_limit : 00000000 (16 MB aligned) >>      alloc_bottom : 02515000 >>      alloc_top    : 30000000 >>      alloc_top_hi : 40000000 >>      rmo_top      : 30000000 >>      ram_top      : 40000000 >>    copying OF device tree... >>    Building dt strings... >>    Building dt structure... >>    Device tree strings 0x02516000 -> 0x025150a4 >>    Device tree struct  0x02517000 -> 0x3fde7eb0 >>    Quiescing Open Firmware ... >>    Booting Linux via __start() @ 0x01000000 ... >>    FAIL! Booting BE pmac32 >> >> >> That's pmac32 defconfig ish. >> I haven't had time to debug it further sorry. >> > > Ok. I boots fine without the '-m 1G'. > > I'll find out why. > Doesn't boot because it maps memory above total_lowmem. I'll fix it. Christophe