Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp771550pxx; Thu, 29 Oct 2020 14:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxggRvuAaU7FYXqisQZ0n4BZXYwnJsbV9pEGsztUOvpUxVsBoN2plo0I3Imqx4SaGXsWVUa X-Received: by 2002:a50:8426:: with SMTP id 35mr6117712edp.156.1604005826566; Thu, 29 Oct 2020 14:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604005826; cv=none; d=google.com; s=arc-20160816; b=MnfVTbLSoPUHQJTd1Rp0RvplZnPiA+SjMKR53vSudDQ/BauLdbErWMERXjVsEKqO5J 5GtIY8NIOxGezymK6+bUaHaKjcLed+t71dVv3Sx1O3lzukf0v3DprIeZJJisXzBKg0DH yw2RAIsJ8LYxalZf4A8/F84TSIi6m0jU2yl9UccV6cxIbcBCQVQn6cAdiZF32GYIOgcH 2fGnlGWHdS5R3jsFgMYvrdcWNwFtQXiRR2lFtyxhRIXujgpknvHeKy+wyjKGEz3pZAOR cvzVbZSeZhPNPmQKKFgiRZOPgEsdDCb0PhkmeAxnYLbpnDxJ+XK0Y/0GEvcYaiatPCU4 dwAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=cKAwc0SrogaehfQCDnwku3yhaJEPUrZCLiGC76HHEpI=; b=siHDJRniDaPD/wGTrcoi8M4pfhPZSkKfyxU8r6N1Y1fkK8e/pHTxFQtycNUWTiq57O fjho1BZVf1i+E8Q42bIAElq2V11E44LaH2ZGFq3bgSlEHCQBObXt1AzQOOF02+2RMvfv oHguNmHMNxzaSO7CHNKnAtyxDnSu5jW2Ock/HyMQ4SKprv0LtiLveBF4hNGu1aECO4Fu 25XLYnFTyZRQ/S8g1J7/EpEV+2zB8Qo9T7pCVQE6AKekyqNbBKAXwEFHX+Uz5K/9g8RP omK7kyxNe2LKWJSRZLONx2iaJd4HdxnNpHlXByqPEa5AmdCiiFP8ZxPDr0gtVmpopQjt Aalw== 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 m26si2928831edq.372.2020.10.29.14.10.03; Thu, 29 Oct 2020 14:10:26 -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 S1726463AbgJ2VHq (ORCPT + 99 others); Thu, 29 Oct 2020 17:07:46 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:39349 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgJ2VHp (ORCPT ); Thu, 29 Oct 2020 17:07:45 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CMdLl6MhFz1qs3l; Thu, 29 Oct 2020 22:07:43 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CMdLl5TXRz1qrDX; Thu, 29 Oct 2020 22:07:43 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id k699Cd7e8b5J; Thu, 29 Oct 2020 22:07:42 +0100 (CET) X-Auth-Info: NJWoqHmsJh1N4XDFuSowjw7hTV+tPs+CbVlv+oxQcW2k8guG3gADYzfsi21Nimha Received: from igel.home (ppp-46-244-169-42.dynamic.mnet-online.de [46.244.169.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 29 Oct 2020 22:07:42 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id E3DE12C0B1B; Thu, 29 Oct 2020 22:07:41 +0100 (CET) From: Andreas Schwab To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/32s: Setup the early hash table at all time. References: X-Yow: Are we THERE yet?! Date: Thu, 29 Oct 2020 22:07:41 +0100 In-Reply-To: (Christophe Leroy's message of "Thu, 1 Oct 2020 15:35:38 +0000 (UTC)") Message-ID: <87wnz8vizm.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."