Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1016465pxx; Thu, 29 Oct 2020 22:44:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGRK03VWSIO45uHy7Udal9Mk69cfHGFmqaSL2L2FxvX64VUU3tC0vhbhVb1rPm2KWgYkQ1 X-Received: by 2002:a17:906:fa1b:: with SMTP id lo27mr833094ejb.216.1604036667249; Thu, 29 Oct 2020 22:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604036667; cv=none; d=google.com; s=arc-20160816; b=SXhCXHMAcotM287971sKdrLZ2BHNmrPcMRecG32s8Qq0GZGcdboynIJcA/8iUjVH6I DJiapbPM6OSC1rgfEaUrjJtelSBjHITEsgOXO0ri56mXvhnz9IIPFfRma8Gg8+jo6u+V wbJcGlL+hMb13WUWPZ3QoKEF2Ia1MEzx8BZWPkIAXhJs0fHwi4J3AIZpVGKR/cD9NJSN 37U10hWfl8xRVN5ckRyk1THYqsU7CztfUO4ducnZqJITPWuNitIp0VZCzr2l7LxP6hTx sKjW3sTxIN9dFcsI3zqqLfDCXhvlyE6jr+wBsxMOwOVfBPS8eZd9avIxO5C70xSOIhM8 c5pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=g17NLadQlMNHRS3Ht5UYozcNciyiTHzLrix1dfy+teg=; b=z0uhazv6k2eJOFwBPUNOHen4RnL0AXmsLHZcjQHRpRz9uvVvp5jenVw+JfTLiTqMeM 81M7BhnUdG+KJrApdR0uXX7CVQnmGvl0LU7dWdn+O5JtxwoUDIpI2aK14HHjoy/+wg3Y rWg1qOU+rxxrXS6Gb2qVRGOE0MBlr6mv3nnXfsAvEyVeP1ACN2D8TFjFVcVQEQRN4/lL BueLLXKRfX6RBOf4bKMKBFosFuMck5H49phJ33pm7zsoRq2YZxGZUrvcxGiFhDcsSZVv VfXfBPJczyyEBon4zZSFxBxENU27AtqeDZFMTQzhdn/m1V8J3UookDGohGO7EsnXqh99 Z9tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=ZWtYU3oS; 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 c1si3636502edv.546.2020.10.29.22.44.03; Thu, 29 Oct 2020 22:44:27 -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; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=ZWtYU3oS; 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 S1725771AbgJ3FTR (ORCPT + 99 others); Fri, 30 Oct 2020 01:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJ3FTR (ORCPT ); Fri, 30 Oct 2020 01:19:17 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DF6C0613CF for ; Thu, 29 Oct 2020 22:19:16 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4CMrFp2wQkz9sSn; Fri, 30 Oct 2020 16:19:09 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1604035152; bh=g17NLadQlMNHRS3Ht5UYozcNciyiTHzLrix1dfy+teg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZWtYU3oSZTvC/DroUBsF45c5IzIXb9Ywz7/J0acvBPlTOIC27HaTAZBYB1mteG1AQ 2945SGAhJd2MoV9nM98Q4otxrL2LRV4tWbDT0kphAbPQfHfGMJCCKR2/ra8WxRT/H4 RCxDdE6kuqmmiO2sF56YnnRqVOhupzboRbIDFiVknOSEl2irTF6sYNo4gJG1NHmTPg JYFzBZDiFZxLFdciSH8jFET35mJv/DBAvReGwuzYQqBRlhDNfAiD7Md2MLlbHHUlTt 9dm+DM5qKPb/27a4kgX/G8IfWfEbB+jtP5CYahjGPAGl0+SNCMcsStY+iEwrWUKdo/ WdvWpTqgItTfw== From: Michael Ellerman To: Andreas Schwab , Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/32s: Setup the early hash table at all time. In-Reply-To: <87wnz8vizm.fsf@igel.home> References: <87wnz8vizm.fsf@igel.home> Date: Fri, 30 Oct 2020 16:19:07 +1100 Message-ID: <87y2jouw8k.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? cheers