Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3317691lqo; Tue, 21 May 2024 13:12:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEiomY0X7j5Xr8uR9lmuCAPLMV2bIOd3kxlLstHnZhEkHIli0w0ujNyzk4/DODIM64iQhMvx/9kYTr4pGTcC35txm/XGP5SWTOxrlwzA== X-Google-Smtp-Source: AGHT+IFjrUFsujU+9obGlA1Q2k34zxW27xRhc9/rl+An/9NyF8BwzKpXK5hCbYE4MeNaUDYVUwnT X-Received: by 2002:a05:620a:1111:b0:792:c70f:101c with SMTP id af79cd13be357-79499456355mr346785a.38.1716322349161; Tue, 21 May 2024 13:12:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716322349; cv=pass; d=google.com; s=arc-20160816; b=rOA2ilGBmMdbWWraSaqmzjzZuUpzr5UgX6vwMfhhsTaRdmCSNVHBTB1Jt/9qrzL1as O/jOVJXYpzOvC01vbWMcN2p/MSNAvKzOoy+l6Ugug8pw4Y/1KOfDepzNK/Bu1ZJmloUc tmW7Z5yQU0+ziOpMWorXby/XHFjyKcCD6qNezTWejfdHjXbuPB70Fvkd+zbCW1mGnE42 iGRjr8b9Ji33xiewnF5xt5iZQDgczyIkPRyfCYaG1XUaRdVozX8Hnw7D5/BQZHr4lCXP s4OmaqeH+fZOrlqe8B44dsliW1rTIY05wvD1ShfDDEs+aUhfuKhTfIwV4Q+WHPOWOCMg kIVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :feedback-id:dkim-signature:dkim-signature; bh=CKd/Bt9HXJciJ5UZehDW04kyPnJ5NZPt6aGBwwwY28Y=; fh=dDGKIMcG3H+q3nWvOlO7AA2IrGQ/jjD28aNw+O4OeK0=; b=0H3/I4QNu26Y/s4TwMrpZ2rdaU9XDXx+x+TJhpokfj0VRe9TdVx9G87Kg69dfyQf9k plK33Xqj/ND6ue1O03bkE6YpeQdPcZb5+E100+es6NuddeDsMZfDHa+Er//OEo+1F+LQ pCLZDOj74v8x1e5GsT9oy5cmzP/b/+It+hawXfScJxoOEYQ1Zfs9g8+I75VLInbMS1yj oSb1FGfsEacM3apJsfBtizyEmkUPnHTppSRuIMEPWLVGgLC58BF+6yNfXRx3jBX03AiC ioy9nM3UeLdxSKBY5vDEhCdb0fwUwJPkZxo2n1W9/4Zv8VDKUT+vnJLvhv7KBSUd4UyH 1oNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=4LTogLoG; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=brJx1+nr; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-185406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185406-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43e10788b66si237922871cf.152.2024.05.21.13.12.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 13:12:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=4LTogLoG; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=brJx1+nr; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-185406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185406-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DFD4A1C219C3 for ; Tue, 21 May 2024 20:12:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B05F01494D0; Tue, 21 May 2024 20:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="4LTogLoG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="brJx1+nr" Received: from wfout1-smtp.messagingengine.com (wfout1-smtp.messagingengine.com [64.147.123.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 031201CD18; Tue, 21 May 2024 20:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716322340; cv=none; b=COd3Z25m84lE6Zx2VTH8/B09VvQ7EcntYYv0CL26dNIq4m54tZqXqQKj8UiYi0A27GomOsKwpV4T6LdT8LCI0TBwnWM2pEJ7Ze/uckTUjk6M07OCX0evtXL8UmYEVpf5r3Ya9SS/3FledgZpaCFeW6caRzFdoe5jENVeW5PVIFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716322340; c=relaxed/simple; bh=/3RYxDMoRE6zF4QXwHWBpSH29hM6c2SjbD5QDOOo7E0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ljVWJy1XySBHsCjEycFZDfA3i+uVr51RNuHGo/8CEFj7dHiyWzximYGYGxdVRsKRolzVJsjfQVd1G4QdWesfJDZpBIvXnhavxT2IoS88uskomfOQ4t0wylDQi9pRTPMzW0HxjjM6axH7BhgR0gt07FaF9ubTRKLroo9HmcVoBTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=4LTogLoG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=brJx1+nr; arc=none smtp.client-ip=64.147.123.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id E1A461C000B6; Tue, 21 May 2024 16:12:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 21 May 2024 16:12:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1716322337; x=1716408737; bh=CK d/Bt9HXJciJ5UZehDW04kyPnJ5NZPt6aGBwwwY28Y=; b=4LTogLoG6xWs7a85Yi wknjS0laHoy6z3HD/fBA0XrHVpipkSUUH+vV7I1NQte/X7KnFkg4XWfFnFx1zudr TIR22pFi2fHOol988mk033/iqrlMqVEpy59LTpLPZOBqhnClE7qYTMRQhD4QZnbQ DW6uhrqdugAxEAQ2baEzwBHQr+VvlmCMiwOo99WoviSTvUoKVQJ1xEZq5Qajc7D1 tHkXIVayDq9L2T91Bd0LWgOEzSpb1kt2ELCkJx0E8KH0ilasmeW13iJnDDe1LUVV l9ZXQ6RUbwhI93pephTS87loqPwevrAhh+YiVDefGzetj4Fb4tnqLXaDtXsyYZ6k UMbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1716322337; x=1716408737; bh=CKd/Bt9HXJciJ 5UZehDW04kyPnJ5NZPt6aGBwwwY28Y=; b=brJx1+nr2Zjydf+8QOJyhdYZQmrGT NPBNDRvY7kv4bAWW1Dw9PjBrqAX3qpYjwoUfFSsQVwEkVXfVM/oPMmALtAZuXGM/ zgoJ4WoLa0IBr6YieJ6y809TpXvycfvFiijGq2KoWbW+l8k7pJigFrlrDiE1lsRU I1QT5g8HYgd8Ys/w3YIl/AyODhJ+wEdvRaqrYVkS4juf7m20Cn5UhfHYEpFAka7a +2ZQ++F1/2m7X1KLTu4b/DPfY4u61KkGAsm77yduSwwa0N72eMMpsucj4ATEtDRB IKj5rCCHcjJx2F1wTJo95fEyY8Bp7vfF7r2VV/poerBjV+3CiREZcb4/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeivddgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhufffkfggtgfgvfevofesthejredtredtjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpedufffffffhueehvefhgfelveekueegteefgeeiieejheefkeeh keevudevieegueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 May 2024 16:12:16 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH 0/4] LoongArch: Bootloader interface fixes Date: Tue, 21 May 2024 21:12:11 +0100 Message-Id: <20240521-loongarch-booting-fixes-v1-0-659c201c0370@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABsATWYC/x3LQQqAIBBA0avErBtIzYKuEi3MJhsIJzQiiO6et Hx8/gOZElOGoXog0cWZJRaougK/uRgIeSkG3ei2sVrhLhKDS37DWeTkGHDlmzKariNlqPfOWij 3kegPZR6n9/0AJP7hYGkAAAA= To: Huacai Chen , Binbin Zhou Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Jiaxun Yang , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=975; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=/3RYxDMoRE6zF4QXwHWBpSH29hM6c2SjbD5QDOOo7E0=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhjRfBgWLQj0mCcl1F4UT85fMCb/xek7otu8x+7dd0f1eG H3IM35jRykLgxgXg6yYIkuIgFLfhsaLC64/yPoDM4eVCWQIAxenAEzk83eGX8ydN54rhD2QvtV0 46mEv2Kl/I8bLsJ3Cgo2Fc27lP74YxIjw5TWv9POVL3XmezL9fvdnwvPQuyNJdyNbpyNfbbNeuq Om7wA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Hi all, This series fixed some issues on bootloader - kernel interface. The first two fixed booting with devicetree, the last two enhanced kernel's tolerance on different bootloader implementation. Please review. Thanks Signed-off-by: Jiaxun Yang --- Jiaxun Yang (4): LoongArch: Fix built-in DTB detection LoongArch: smp: Add all CPUs enabled by fdt to NUMA node 0 LoongArch: Fix entry point in image header LoongArch: Clear higher address bits in JUMP_VIRT_ADDR arch/loongarch/include/asm/stackframe.h | 4 +++- arch/loongarch/kernel/head.S | 2 +- arch/loongarch/kernel/setup.c | 6 ++++-- arch/loongarch/kernel/smp.c | 5 ++++- 4 files changed, 12 insertions(+), 5 deletions(-) --- base-commit: 124cfbcd6d185d4f50be02d5f5afe61578916773 change-id: 20240521-loongarch-booting-fixes-366e13e7ca55 Best regards, -- Jiaxun Yang