Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1884369pxb; Sat, 7 Nov 2020 01:57:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxM6tGpCr+2zYvoRu7LTYC4TU40w9wOAAq6ipDUJACOj0X8kSeG5fOSiNwFEcF7X0ppZbWp X-Received: by 2002:aa7:d34e:: with SMTP id m14mr6080223edr.42.1604743071540; Sat, 07 Nov 2020 01:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604743071; cv=none; d=google.com; s=arc-20160816; b=M7GvvsrnoZqSUujgTOHcreJM+wfFfnqqppiT2DMEh1aVeN4PixxQjno3VbH3+EI29W nWGJe/GkF1SmTN+jQK2663rjtOuRagDHbV9nxsBAXofb8GU4ZfnrQvn7Zsxt4Qfl3jFN q8r0fkZbfKAk4kyZxnGPgwWxksiRA5Ak2RkQAjWTSsFXZMYsMsogi/42yNApIhbFe/R6 BfMO+5no/JS6AHFLJ0S5As5uSG8NZsYKRcK1EAXMHz5qn5A6nN03n/JkCJPa3Oq/0Er3 OmqGwgjz2e6Rc1k4MrRrPhM6/2FoERXPGA6cc7V0o/JO6d0DcriRp+6LH2LXaMU0E6J4 Qxdg== 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=10EFBjXA+iwSXNF+Xv8f6EkHniNWExonHy4/nmTGe+w=; b=OOPbt4Qw3qZ/GKMNqY81iUlyGD4JKwxyi9FiagIp2nmisOxk4lHSDkWVi6AcBk1p94 L2PlsCUa8w6uP2J3/7sWH9sTuiAj7Ca0VOIT25IEe17cWBE0XDb7L3z5M4OBj7B88KgF M+yrQpTFlKjxu1I2KLFZ1ny5qMbB/tyG6k/vQKoxrta3H24/PDGqysbgAFpev6EnUeHT uxns2sHljg2bDNEBqz4umCQKYI1ck+0XchUF9fSZoecGq63NTu5izGhv22QLx5D2q5C6 vzJP6lmVDUQ6OPggq4PPi+laCgwzM4yAaFvaVMs+gSRVpSYBTRCD/8W/MV2bAouWxJr3 0hew== 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 ly22si2771447ejb.511.2020.11.07.01.57.28; Sat, 07 Nov 2020 01:57:51 -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 S1728144AbgKGJxK (ORCPT + 99 others); Sat, 7 Nov 2020 04:53:10 -0500 Received: from depni-mx.sinp.msu.ru ([213.131.7.21]:25 "EHLO depni-mx.sinp.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727810AbgKGJxJ (ORCPT ); Sat, 7 Nov 2020 04:53:09 -0500 Received: from spider (unknown [176.192.246.239]) by depni-mx.sinp.msu.ru (Postfix) with ESMTPSA id 94F821BF408; Sat, 7 Nov 2020 12:53:10 +0300 (MSK) From: Serge Belyshev To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , erhard_f@mailbox.org, schwab@linux-m68k.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/32s: Use relocation offset when setting early hash table References: <9e225a856a8b22e0e77587ee22ab7a2f5bca8753.1604740029.git.christophe.leroy@csgroup.eu> Date: Sat, 07 Nov 2020 12:53:04 +0300 In-Reply-To: <9e225a856a8b22e0e77587ee22ab7a2f5bca8753.1604740029.git.christophe.leroy@csgroup.eu> (Christophe Leroy's message of "Sat, 7 Nov 2020 09:07:40 +0000 (UTC)") Message-ID: <87blg9lchr.fsf@depni.sinp.msu.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > When calling early_hash_table(), the kernel hasn't been yet > relocated to its linking address, so data must be addressed > with relocation offset. > > Add relocation offset to write into Hash in early_hash_table(). > > Reported-by: Erhard Furtner > Reported-by: Andreas Schwab > Fixes: 69a1593abdbc ("powerpc/32s: Setup the early hash table at all time.") > Signed-off-by: Christophe Leroy Tested-by: Serge Belyshev