Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp536239imu; Thu, 20 Dec 2018 00:52:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/WSCYJzngMXMtRqqWIkI1rI+OEcpbRVZt/GCL+bqBOF1yQ1ZiCAHyx5NdVmJbrlux6r4WcI X-Received: by 2002:a17:902:830a:: with SMTP id bd10mr23493906plb.321.1545295932027; Thu, 20 Dec 2018 00:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545295932; cv=none; d=google.com; s=arc-20160816; b=JLqoFvR2i+z6IFRAzTqaapDET75FngI3RopoNnALaalL0+6izLJEqfRWF+BLtCDcla ZE0TalngyOQ8ivm5nH9q1JkSlq5IKh20IETFgM0TaDhdRrOUVu93F0wwgOQvmlYp4PhE 1mJuU/A8daAvGdGePGsVmk3hiQO34Fad/pyFssXn0MGWQ0YwfUFtYzxhT5w5pka11wfB E6YPYh0GoDP9obTtTK8R9Be3zlv56IRzjK29whtroSYzki1bwlma2gVYQAdOyUuWXb7x Nc+y8jmzTj3fUykYueNAl7da6Q6m7Ft0HOGyVuAdlBEBJLLHtYxpJsHPvWZc1UhZO2P4 GDGA== 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; bh=DOpYPW6/jSXKoSHcQbDh0HevW+uTpj1UaoFaVe7indc=; b=Pa7gmxXog7VjmaT7/RkuN/syvwsQJfoWzEz0kD8Sa9uPI6hrVnoOxKlHAVec+oA1f+ Yftr/SaVA7rjhkxVORb1fmFs4y1gixnTkSqXSNhL5AXTwFFc8F+0GOYRchDRV7oKlKSh qQ9wJUe5+BDettzQRzoy8YZTyxgySWxEfKvVAJmQVJ583WWJ4nzEQVjDapUpKvv2kIAN ZHGHrKDyQ7h71Hv3tEcYwe6ey9IBk0oRO3JkIDyfxrbsqyQdm8Q5gULYQJFxTdwLOU8c TfpIA2jEOrtly+vXOCrAa391F5ayOslGU21gALdhoIiLiv6rFSVeb0bdugNF4HqUuvOc L6vw== ARC-Authentication-Results: i=1; mx.google.com; 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 o8si17300845plk.28.2018.12.20.00.51.56; Thu, 20 Dec 2018 00:52:11 -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; 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 S1728839AbeLTIuF (ORCPT + 99 others); Thu, 20 Dec 2018 03:50:05 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:46869 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727933AbeLTIuF (ORCPT ); Thu, 20 Dec 2018 03:50:05 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43L56z0y9kz9tyfP; Thu, 20 Dec 2018 09:50:03 +0100 (CET) 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 oF7vHVdQOlGZ; Thu, 20 Dec 2018 09:50:03 +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 43L56z0SJ4z9tyfN; Thu, 20 Dec 2018 09:50:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E0C038B7A1; Thu, 20 Dec 2018 09:50:03 +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 8KG58wi7QfFd; Thu, 20 Dec 2018 09:50:03 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 86BFC8B7AD; Thu, 20 Dec 2018 09:50:03 +0100 (CET) Subject: Re: [PATCH] powerpc/8xx: Map a second 8M text page at startup when needed. To: Christoph Hellwig Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <27edd227d3b9dcda4e2ce7d00d9fddeb7a5520a1.1545241146.git.christophe.leroy@c-s.fr> <20181220082403.GA25436@infradead.org> From: Christophe Leroy Message-ID: <49bf27a4-b0b1-27e1-78f1-a5d55c720d91@c-s.fr> Date: Thu, 20 Dec 2018 09:50:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <20181220082403.GA25436@infradead.org> 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 20/12/2018 à 09:24, Christoph Hellwig a écrit : > On Thu, Dec 20, 2018 at 05:48:25AM +0000, Christophe Leroy wrote: >> Some debug setup like CONFIG_KASAN generate huge >> kernels with text size over the 8M limit. >> >> This patch maps a second 8M page when _einittext is over 8M. > > Do we also need a check to generate a useful warning if we ever overflow > the 16MB? > I don't think any other platform does that (the 40x also maps 16Mb, book3s/601 maps 24Mb) But why not, could do that in another patch. Is there an easy way to get the link to fail when CONFIG_PIN_TLB_TEXT is set and _einittext is higher than 16Mb ? Or should we just map up to 24Mb on the 8xx and consider we are on the safe side with that much ? Christophe