Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1867915pxb; Sat, 7 Nov 2020 01:15:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyk/cWnmtfR3Vkt/ZRegyCsVhrhtKX8uIlWMbG4Ao4jVtXz0M7NWey0yg11wstkjeY1x5j9 X-Received: by 2002:a17:906:3795:: with SMTP id n21mr5912262ejc.502.1604740526968; Sat, 07 Nov 2020 01:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604740526; cv=none; d=google.com; s=arc-20160816; b=nK4fkZtkPfxiSj85iWD7PGpycaOFZONYFmiFvTtDMmN25p5Fw/IuuqjwoN2OLi9MtA KHp75Cfe72MBjRbdIcqWLlcZh2/Dmka8KOYMVz1K+WCYBzrlDzTzM4AippBuB3q+HcU8 s5r3r4HEj5rH8kUiN46WzK4smOFAtxTPnlPT0u/9YLXvnC6kVp6BMOb2XF+ZMVakvi62 tGu9dOj1eLGxxQBuoXbo9WJw0b/4Spj41uhNM8D8S4n+RWPLFkm6kdhNeS07KbrDOe49 /K/ELPnrdAdU/vQ87fLCv06s3vFtWE59EoewhvY4vBWUsLa+EBegONUZFFng/aY1WdvF 6oTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=VO689WUzl8oTAGzRB4ZCKrWfR925NWrNp7YkaxN1opQ=; b=cZNSw5hXqejcaml9QL0g0fqo4j9epree8jlvAx2YXs4kZceaoBYDEa+HR13+hDOVKk sU7vrkaFbdHnNVRgclPN3Vdd5Kx5F8flkq7rR50EBkx67m0fC1SX6FzVe/O5KTJqIbGF wAW2ul7dy0Nj19eOGKtJ5WkOr/OroQHu36ThsESha9RmClXfEpTOcZIB7kbL5sq8YQia 18SYVoitOVp6DmVH7tNsHabZoCajJ/vi3OOx5GrZxHvTnKdK+t+zMX4JBGlJaeY1CbAt 4XHsEAx1UCV1Vm5RQftGYW9glzuzp8C9dTj5vL23RCITXJ7lxQvKZK4uAskZ+l60TNLo fCng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h27si3216012ejd.385.2020.11.07.01.15.01; Sat, 07 Nov 2020 01:15:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728317AbgKGJMi (ORCPT + 99 others); Sat, 7 Nov 2020 04:12:38 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:36697 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgKGJMh (ORCPT ); Sat, 7 Nov 2020 04:12:37 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4CSs3P297Wz9v6vF; Sat, 7 Nov 2020 10:12:33 +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 RkBNfoV0imP0; Sat, 7 Nov 2020 10:12:33 +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 4CSs3N6qNPz9v6vD; Sat, 7 Nov 2020 10:12:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0B9B28B776; Sat, 7 Nov 2020 10:12:34 +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 ulalRhQSzBtJ; Sat, 7 Nov 2020 10:12:33 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9FC888B75B; Sat, 7 Nov 2020 10:12:33 +0100 (CET) Subject: Re: [PATCH] powerpc/32s: Setup the early hash table at all time. To: Andreas Schwab Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <87wnz8vizm.fsf@igel.home> From: Christophe Leroy Message-ID: <30b6696d-b78e-cb95-6700-70b69e3947ba@csgroup.eu> Date: Sat, 7 Nov 2020 10:12:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <87wnz8vizm.fsf@igel.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 29/10/2020 à 22:07, Andreas Schwab a écrit : > On Okt 01 2020, Christophe Leroy wrote: > >> At the time being, an early hash table is set up when >> CONFIG_KASAN is selected. >> >> There is nothing wrong with setting such an early hash table >> all the time, even if it is not used. This is a statically >> allocated 256 kB table which lies in the init data section. >> >> This makes the code simpler and may in the future allow to >> setup early IO mappings with fixmap instead of hard coding BATs. >> >> Put create_hpte() and flush_hash_pages() in the .ref.text section >> in order to avoid warning for the reference to early_hash[]. This >> reference is removed by MMU_init_hw_patch() before init memory is >> freed. > > This breaks booting on the iBook G4. > Can you test patch https://patchwork.ozlabs.org/project/linuxppc-dev/patch/9e225a856a8b22e0e77587ee22ab7a2f5bca8753.1604740029.git.christophe.leroy@csgroup.eu/ Thanks Christophe