Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2845751yba; Mon, 8 Apr 2019 06:06:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqye2ZwZ8A3hixRtotuyzOY4rJZYbv7gT0EIxQzcs1IvtWPvNcIp/w8y7HYi3TajI0giSjR6 X-Received: by 2002:a63:f115:: with SMTP id f21mr26310908pgi.65.1554728776068; Mon, 08 Apr 2019 06:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554728776; cv=none; d=google.com; s=arc-20160816; b=t8S/RVQLX0v4MHCP8IRLxeAT0XK9KIUuiucFfAGed2SlNRDqsbO1qfOD5vxBofu1ln /muDuxH7vFSwQUIAI/Ce92n8N629STa7CQaWLCcHWK5ndIL7pCKj9tJxudk6RA4CcarM oE/+Bn2fBXHQIZHby5PId8yKjLTDnUSTh8k7EYwY9EE5VsS5vWQ0nlccR4B33Xt9X4pW Pd9ykaqyMZYV3DjmFQiGeWE4d+oNPAhtABLlWRqnLedUB3AUlekj7awg2kbXdM2jHufO mGM+nMSljFRLAFHMrBM+0l9+aIT4qxfpqfCQO1N9SS9YiQVy99uN/TpKTC5xZZA+rYv+ sGgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=Xg5LyGhC44qAdj91tH43k9u4gBRdSt1p61Y3X1wvkV4=; b=SHEdrA+kly+TrE0wDbIFjwknH9Ketw3KkU0p601upYqaDxSH54WnOjjgpYeDDh8KJI S3+OcdGy3+wWdCxQDCILh44IAvOdVxXC6vvmdvYGXkoO4h2hPxoaVqzPlchCB4gUKzzd zkyArIzyD3cncakgYzbKEE2i3Yc/znZlmxzjRnu5fTkjxp4r/Dn5Fjzir1x3WYNM4+29 1kwElNd/RJSHYG/4RH8wvTqgDccGuVBDBYwc9w/8+UPtTaoOj1x7AYTC9L0cqrG/8/VL f1u7bIx87Iw2tVEwPn76QVW5sV5sVM9XN1Lf87w/9w7NU+Gi1U3ib8eQJ0IkVOKIAHM0 Yk/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si27251278plr.153.2019.04.08.06.05.59; Mon, 08 Apr 2019 06:06:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbfDHNDk (ORCPT + 99 others); Mon, 8 Apr 2019 09:03:40 -0400 Received: from ozlabs.org ([203.11.71.1]:33951 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfDHNDk (ORCPT ); Mon, 8 Apr 2019 09:03:40 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 44d9bF3KVHz9sQq; Mon, 8 Apr 2019 23:03:36 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: fd427103e8dfcb4b438269afd710b63e7af61463 X-Patchwork-Hint: ignore In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Larry Finger From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/rtas: fix early boot failure. Message-Id: <44d9bF3KVHz9sQq@ozlabs.org> Date: Mon, 8 Apr 2019 23:03:36 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-03-25 at 08:43:33 UTC, Christophe Leroy wrote: > Commit 0df977eafc79 ("powerpc/6xx: Don't use SPRN_SPRG2 for storing > stack pointer while in RTAS") changes the code to use a field in > thread struct to store the stack pointer while in RTAS instead of > using SPRN_SPRG2. It therefore converts all places which were > manipulating SPRN_SPRG2 to use that field. During early startup, > the zeroing of SPRN_SPRG2 has been replaced by a zeroing of that > field in thread struct. But at least in start_here, that's done > wrongly because it used the physical address of the fields while > MMU is on at that time. > > So the virtual address of the field should be used instead, but in > the meantime, thread struct has already been zeroised and initialised > so we can just drop this initialisation. > > Reported-by: Larry Finger > Fixes: 0df977eafc79 ("powerpc/6xx: Don't use SPRN_SPRG2 for storing stack pointer while in RTAS") > Signed-off-by: Christophe Leroy > Tested-by: Larry Finger Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/fd427103e8dfcb4b438269afd710b63e cheers