Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1251625pxx; Fri, 30 Oct 2020 06:00:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHrlKsNN6u7EPpf3ftA5me1IW24PLCgB946zE7+sixMclSoNuF6VW4etjoydWtjzNGIrdm X-Received: by 2002:a17:906:2f97:: with SMTP id w23mr2444015eji.54.1604062814486; Fri, 30 Oct 2020 06:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604062814; cv=none; d=google.com; s=arc-20160816; b=gKg8JWSX14FP2/WTPv0ZEpXMDFagukyhuQXPaHuL42qBdYzNpkoWuih5C8yFDhfyrn 9DSlhfLV5jjqRiTtl1MmWVsXKUrucXc0pvXJaljaEYLLhBQ2E2GObc6HKRoiNqCUqtC6 ts/Kl96CwmrYl6LxZUEejaA/9m5vnvsNU9EPBF+yZrOBjDSRWwFDGDREMbehtp6g2OEt 8LlLcAnjctmhtECZy0bqKAk99+ShA5NZZO7Wamk+K7JaH7MiCwolyHgQZkAURZdDIyn7 ixrg1OAcALvlmP4D+KLNTLngEHYzBnDWZfYM0IbwZEEI0AQ+EgAeS/F4bAvjOS0DbHFP WkLQ== 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-disposition :mime-version:user-agent:in-reply-to:references:subject:cc:to:from :message-id:date; bh=Ius1YV2EAIfXSAxhE6IBHCo8mW8F7dT4BOPQVnVOq2o=; b=aJNOIUkU43tSoLHDrchdL0FRpkktC8b3kjQekTrRRwBVgJafxRmrhqKGPhhFQav5XD W0EbrEbOrxv16ZVPuvFHcukRkiuCceKuYz7+YbJ8yPxnqEwkuDCnaUy00FNicod32kQX I8S4J8Y6Qn2U7FLs3Ja9hTY1iHvd2O8RvbBPqGjiMf+zT3M871m/NgnrHv0cQ2ctKM+/ EwwFza50z0uWTOViuR7A944LsvZvepBaGVDDU4G6E36sMmhH3VH1cL1PMeJovUUdrDT8 uhfuZCsbc8N+DiGBBVPAq7BPhdwvGf/DP6ljWl8vGuzmfpZEmsPc9scnnbW6kb5Ic3oh gfqg== 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 s13si4181829ejv.213.2020.10.30.05.59.50; Fri, 30 Oct 2020 06:00:14 -0700 (PDT) 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 S1726565AbgJ3M6R convert rfc822-to-8bit (ORCPT + 99 others); Fri, 30 Oct 2020 08:58:17 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:22337 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgJ3M6R (ORCPT ); Fri, 30 Oct 2020 08:58:17 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4CN2RS2Hrdz9vCxr; Fri, 30 Oct 2020 13:58:12 +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 g-TNzz5dYdfZ; Fri, 30 Oct 2020 13:58:12 +0100 (CET) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 4CN2RS1156z9vCxm; Fri, 30 Oct 2020 13:58:12 +0100 (CET) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 7996D24BA; Fri, 30 Oct 2020 14:00:47 +0100 (CET) Received: from 37-171-46-117.coucou-networks.fr (37-171-46-117.coucou-networks.fr [37.171.46.117]) by messagerie.c-s.fr (Horde Framework) with HTTP; Fri, 30 Oct 2020 14:00:47 +0100 Date: Fri, 30 Oct 2020 14:00:47 +0100 Message-ID: <20201030140047.Horde.TJJqKGzG9vSGbMRNIj-MPg7@messagerie.c-s.fr> From: Christophe Leroy To: Andreas Schwab Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Paul Mackerras , Benjamin Herrenschmidt , Michael Ellerman Subject: Re: [PATCH] powerpc/32s: Setup the early hash table at all time. References: <87wnz8vizm.fsf@igel.home> <87y2jouw8k.fsf@mpe.ellerman.id.au> <87v9esaxlv.fsf@igel.home> In-Reply-To: <87v9esaxlv.fsf@igel.home> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andreas Schwab a écrit : > On Okt 30 2020, Michael Ellerman wrote: > >> Andreas Schwab writes: >>> 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. >> >> Do you get an oops or anything? > > Nope, nothing at all. > Under qemu it was working. Can you share your .config, or are you using one of the defconfig ? Christophe