Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp630248lqp; Wed, 22 May 2024 15:02:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr5ROtvrcIKFda285nREB123wd9tYlMjjCCPUCoB+nTXddSm0laJu0GnbJO2R5oX05pMcQFPCgaeqW8F7b92wRkqB2GfxARr6ZwvMvOg== X-Google-Smtp-Source: AGHT+IEDeusitrvhH6pCGSrUyRM8myLVtvIFL0Xz8/C+iY4CfsoOM77zK54oY4aIvvDcNV2K+Fxz X-Received: by 2002:a05:6a20:1049:b0:1af:9ec6:afb9 with SMTP id adf61e73a8af0-1b1f8739170mr3744514637.2.1716415353123; Wed, 22 May 2024 15:02:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716415353; cv=pass; d=google.com; s=arc-20160816; b=oaeN03xdwXl9vYmtDRg7mRKKeidXeWzf5Ek1DzFRwsl3oAeubO9iw+4LD+Rj3mAFuL LlnW8WQCSB7Z4t1mBeVrWdQ2W7fBNPO4QTLy/QHTmeu8ORuYTLQuK+iooC6weIstXGoA QUrBTB5NFQvqLhaW6SzktIrbtMjk0lRg2MYfL9r5Vim8T/jO+SBa4qd54XOxWHbK3Dwb 4Ywaa1fXHQdSs7VDFaqRq0I8XXKMoI5kypkGSqhq9aDrcO+0eP3Zh8toUtI8PfmvXLvp Lybtsr7qdOuztVEf8uRpd2Y4BDpYwLgOv3JvK66XFKB6F0vvjOFtWK3MyVv8lcUiI5AJ LCvg== 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=1lVFWowAKoYeYcU9JPCxf0HAA1fler+xeLdc8O1dM1Q=; fh=dDGKIMcG3H+q3nWvOlO7AA2IrGQ/jjD28aNw+O4OeK0=; b=CuDqaxTk70WDjJOULFNQdl5bQrLP2cKUyYfGp4N31OMhoQlnnPktZr5YGW9xWXYqX5 R+9nEZaHU3uG3y4Wn5tNlhjG2gEVclUfgCZO3j7IbaLl2OFNjwuT1/2+d0BAKtxiIiV3 b8RFUOw+yd0PzxAGcCxpBuNoTmip2D8dUioy/Y6tVn2wma/0qdLzZeGvhpq2AZjiWobF dKOzeGX28sw724sq7/XXlFd+Mj6sgxhRiuajCMqyODYDR9+2wap1M9hrTVWTVyN3umnf HBYceFhvirwjU89A8MBuMTqd9OkPTG+OqfOEBKCULAO/2oBTPy2y/pLK1XXokoT+rQZV 2lmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=bOzprQDC; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=o5TeU4xE; 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-186758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e837acsi351839a12.102.2024.05.22.15.02.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 15:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=bOzprQDC; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=o5TeU4xE; 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-186758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186758-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B693A281F87 for ; Wed, 22 May 2024 22:02:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A26FC80034; Wed, 22 May 2024 22:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="bOzprQDC"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="o5TeU4xE" Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) (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 AE06A23CB; Wed, 22 May 2024 22:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716415345; cv=none; b=LQQKO3VnZGE8aUKNoAtwTd83VIhOGgLllgGMHbOzSBGAkhfVxp8peniSBy6YBSXZC5sLI42RuJCpJOqRjNKut+/5YoM8h8QrAKvKX9GwfzEcmHf+Q9BIWbnhCAQurXsNlwO9FAIsM4lK6oxJ3colfaXsel04a8i5axsA+tU9TTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716415345; c=relaxed/simple; bh=p2/PlDQriaIsR1jy5J5xFUSAUzQ9nze99NlrlTAGyLc=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=oyQz2t/HcuQv9GXIL68a+nrC8ImjKcG5u0fxeBbKDkQ4GHzV/F4x/Qt8G4WhuaeASmRww/6oCEXY1A/eDoxOugxcRr4BWmpEPU6McdROTY5ismdaSlrGaj0Wjv2gl+ByRXGecPfibviAw9t5+oE8Rn5yaX2JTFXf36H+29M8FWE= 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=bOzprQDC; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=o5TeU4xE; arc=none smtp.client-ip=64.147.123.155 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 compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.west.internal (Postfix) with ESMTP id 964BD180010B; Wed, 22 May 2024 18:02:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 22 May 2024 18:02:22 -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=1716415341; x=1716501741; bh=1l VFWowAKoYeYcU9JPCxf0HAA1fler+xeLdc8O1dM1Q=; b=bOzprQDCkwcpY/U/yq 52iFm9CRm59bLMfWfaip3iH+ewR11MRw/jsdJzrcFBblrEdrQdrL/2lxVJsstAL6 nMKLjnuWGWSBRRd6Yl3wuWbr3+zu1wUsHZicLJWcWeRsWQLI78f/i+j3cOtwlGr7 26FBDW+2sMBu/Dszl0nGyDNHow7rbBfayKheUG0Tu0tREwXKvT2VGEPYqgHoGfmQ rR5MLk34utcFKwSnanlS19HtS/G2A0fzPg+rlUDEX/AxWCFxrK8c5niiAMUKE1Zr yEM7U0BArROLNT3eHjAlulAzF5K4NUhq7U1CwOzfFejz2Zi4iH/HHrcwHm0z+NYm woyA== 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=1716415341; x=1716501741; bh=1lVFWowAKoYeY cU9JPCxf0HAA1fler+xeLdc8O1dM1Q=; b=o5TeU4xEMeVDxgn5xkmV14Rc6se5r dm5zGELI6FTJUHi8j1DPfq4oTxVGEberOR9F45twpKbLlyP6x67RETSG9+IoiCy5 7qDNcy0QVYJl5QHnTYwBsUUjAB+mSs4DSUDOUsmxk01Pulx4Y1JWKFHI/ON9S0kU I6sTH/rab7QsUXJD4dD8x2ZkAV28sBvFdgH1NsLNn5+8zFKM9LuIm0N06RIpPTzY RaMH+oM7MaYH+LDkr3eLZt0XAA2XivY/J0br3fKRXO9dh97RSgFGTawFdgPCn1zE JaN3Hi9V1GZswQDncojXJF8PPZvWodyQ961PudOYcPr+BGS1jqp3QQnMw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeihedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepgfevffejteegjeeflefgkeetleekhfeugfegvdeuueejkeejteek kedvfffffedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 May 2024 18:02:19 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH v3 0/4] LoongArch: Bootloader interface fixes Date: Wed, 22 May 2024 23:02:16 +0100 Message-Id: <20240522-loongarch-booting-fixes-v3-0-25e77a8fc86e@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=H4sIAGhrTmYC/4XNTQ7CIBAF4Ks0rMXwU0BdeQ/jgtIpJakdAw2xa Xp3aVe6MC7fm7xvFpIgBkjkUi0kQg4p4FiCPFTE9Xb0QENbMhFM1EwJTgfE0dvoetogTmH0tAs vSFRqDVyCcVYpUtbPCPuhjG/3kvuQJozz/ijzrf1vZk4Z1ersBOOOScOu3TB7tNPR4YNsahafk vgtiSIZYaBtzhpUffqW1nV9A2oz0wkKAQAA 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=1463; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=p2/PlDQriaIsR1jy5J5xFUSAUzQ9nze99NlrlTAGyLc=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhjS/7JyAguk2h26HP7MRmxF292BasOjkNrEP+6J1C9tjU uf91MrtKGVhEONikBVTZAkRUOrb0HhxwfUHWX9g5rAygQxh4OIUgIkotzEy/HgqtO8+W81dxQpF sbSzffWHsmXKD17QlZ/ueM+vL3uBFMP/slP7pA5esE669OnK5osfjxSembJ000zxezFv0nWfcJf PYQIA 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 --- Changes in v3: - Polish all individual patches with comments received offline. - Link to v2: https://lore.kernel.org/r/20240522-loongarch-booting-fixes-v2-0-727edb96e548@flygoat.com Changes in v2: - Enhance PATCH 3-4 based on off list discussions with Huacai & co. - Link to v1: https://lore.kernel.org/r/20240521-loongarch-booting-fixes-v1-0-659c201c0370@flygoat.com --- 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: Override higher address bits in JUMP_VIRT_ADDR arch/loongarch/include/asm/stackframe.h | 2 +- arch/loongarch/kernel/head.S | 2 +- arch/loongarch/kernel/setup.c | 6 ++++-- arch/loongarch/kernel/smp.c | 5 ++++- arch/loongarch/kernel/vmlinux.lds.S | 2 ++ drivers/firmware/efi/libstub/loongarch.c | 2 +- 6 files changed, 13 insertions(+), 6 deletions(-) --- base-commit: 124cfbcd6d185d4f50be02d5f5afe61578916773 change-id: 20240521-loongarch-booting-fixes-366e13e7ca55 Best regards, -- Jiaxun Yang