Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp154474lqp; Tue, 21 May 2024 23:31:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/ec2r7BQRcdfYDITMaBzRp6W2x65AtoTJSDrF2E51j8P4ZujcI0Bz4iW1ESHmnOytuz6WPtr5YQ4/xWUiTUDJz4m16nWfDeHZdR4y2A== X-Google-Smtp-Source: AGHT+IEigpU0GU4c1URZEEW5rhtkLk3SOb8yU8EuYJOdjkk83s8QZIyxtEgGKuJeMJW6zy6C6sLi X-Received: by 2002:a17:902:f945:b0:1e8:b715:45bc with SMTP id d9443c01a7336-1f31c98f11bmr9051105ad.29.1716359474511; Tue, 21 May 2024 23:31:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716359474; cv=pass; d=google.com; s=arc-20160816; b=MUVOkKaeDFa4zVRFJekHDKfeF5yLx5eKDNM+ka5QpU2w2teuKMVihxCgW1utFvy7KX 3EPyOUl8OSpicUK7S6m1Rg3NAp1bU8Q0VepAbgl09fQoODC5vu9imD1Q6d/2Zz2cupKj qzk/vfRVwJSf/p0QdCc3biTpf+VWYyu2LHsWdKxHEPMPvk5CYhsP8sNJI9W4QqRv76Pn uPwnO7Dg/yB1tyaX+uHxN7SKTCcBA/8W+/j6EsmbR6xmAFaUVVH4iPnieZ8RH1AD+mAq rhC/4N9qmPIohqA+iikk0g8M1SWWLZ2x2oycZwIV2Zbq5JjkFxgYHWN4gJe4AoQcC8xj Y32w== 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=PoqbFlwlOxxeVqLPi5c26N1LmtDnXQI+TPXMUrISFyE=; fh=dDGKIMcG3H+q3nWvOlO7AA2IrGQ/jjD28aNw+O4OeK0=; b=iAJ1HUq0Bg372bHz7XlsisdgWmQ7YX8JNP1mt+ouab7OCp4DG8uNxrhJTZ6bXsbZPe wPhoH/V36LfpyYtIiB4Jy03ooOofR0vtju4/tQ7YTGpcki4UQ/5gpN+uwnjs7uUpoPF7 A4zfcqnFdYqNEtx7oJ7hJo+qE8XDw/rGMKZPHPfaqqRploZNVmVKhEKMq5XUA8j8VEv2 IP3jy2BqDYsI+SBRjUFfoVWq9l871lE2BcBeAMmdeQSAO++XNSy4UPE6K49qjeO60TiQ /mNGdrzeehBZhCppXy5jSUNioUfYSO0gtR6ZRSJwuwhwVmq7AKyQQPWDL3zOSwY86svm bkAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=kL9PyRbg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=bs06KnfL; 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-185812-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185812-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 d9443c01a7336-1f2f6f1ad69si22760945ad.630.2024.05.21.23.31.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 23:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185812-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=kL9PyRbg; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=bs06KnfL; 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-185812-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185812-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 5CD0D2825D9 for ; Wed, 22 May 2024 06:30:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F2A97C086; Wed, 22 May 2024 06:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="kL9PyRbg"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="bs06KnfL" Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 5358277F1B; Wed, 22 May 2024 06:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359426; cv=none; b=U+iYfs6nfo1wxhwchJj7Qd3Ze2meO+qYjSMuo78CNSSeRQ9iBRhlJWDc/wMnFVZVvIXuYoRKDXj3YjIugNeik2aE+7/PTwrsTUqOKgepiys9A6+oVwUtEVvOOBx0t+1uRQSjg716YHmcttVXhRJ3xVkQSGNi135x2z2G5ZfUKuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716359426; c=relaxed/simple; bh=RQvekNk+Mw4VZKNhgWLZ47RRb5dhc61tf07pkWTicZQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=cc4JKasBp/B4uAWg7VBgYC0Jx43adXmAe3MCOoPOlZDw+QteDqH3z+Tytjs0MFQfDKD274f+hHnW1ygxqDmdI2vpGBaGYp6wuQk/cboiD9pjBqIL6bQAA39KEpA1J4QQF8bicz0epMVsCdBnNYU09/3icu6f2G1YCZWZLjCDY1Q= 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=kL9PyRbg; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=bs06KnfL; arc=none smtp.client-ip=103.168.172.153 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 compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 6D43C11401F3; Wed, 22 May 2024 02:30:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 22 May 2024 02:30:23 -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=1716359423; x=1716445823; bh=Po qbFlwlOxxeVqLPi5c26N1LmtDnXQI+TPXMUrISFyE=; b=kL9PyRbgkPm10KyF3+ T7MqjAqfEcAeY0uIeuy6nHlVw4+4CTnPGN/sBRxUusTE1Ki/+bwSP1ppfE0MS2kO fUlKO24qixYNt1joUZdyo3fcu4Bs+Ribk9dnKY1TtxB14qk2LbY5hinVGardQ3Uz zJDTptw0AdxtnUNXnl4Kl8buF1K+P7qy0OztBR7N7BXEEE5K5V6TeS1L1oUizvht KtOLUb168yIFaoy5uEhVcmuqN3iYaTc2C1nqR8p+GS3f5W+0dB8qXi/jkT24St8h K5TOcnLk/QoXWjaZJFd53A71ncqamYl/pEaaInPiU4UjmOVDaUI5TbZ4eNkhHion uflQ== 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=1716359423; x=1716445823; bh=PoqbFlwlOxxeV qLPi5c26N1LmtDnXQI+TPXMUrISFyE=; b=bs06KnfL39womXWDJWuNWhOqtl63U +61/5lwrdVVTSIm7A9gmBtcAt3mW+V+b5/rGDwrBUCJvcUO7dvv8fPRbrr8xfrOw 6yRv0t4jkZIFEyw0iRU0MQ57MGgYxLR/0zjOXG5brUVotq/4uEGDNzxnoct9BKDU 2HTQk7zDc+HWTi6hRBe2tBw+68QuaZIJBfXkKeQ6QqBQb9TyfWMDas4wpSXNHg2R 0qlKJXXz9gyh5OOUChd4aid2tgeS/x0uzevJ0H6LxB4QijnRh98DaVf5pecCEFdp rFfZ0guLO1vKDKNTG/Nlt1yFMQfu+4qn/ac9uNgDcjilFvsxfrPozOU7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeifedgleekucetufdoteggodetrfdotf 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 02:30:21 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH v2 0/4] LoongArch: Bootloader interface fixes Date: Wed, 22 May 2024 07:30:19 +0100 Message-Id: <20240522-loongarch-booting-fixes-v2-0-727edb96e548@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=H4sIAPuQTWYC/4WNQQ6CMBBFr0Jm7Zi2WIiuvIdhUetQJsEOaQmRE O5u5QIu3/95/2+QKTFluFUbJFo4s8QC5lSBH1wMhPwqDEaZi7JG4ygSg0t+wKfIzDFgzx/KWDc N6Zpa76yFYk+JjqLIj67wwHmWtB5Hi/6l/zcXjQobe/VGaa/qVt37cQ3i5rOXN3T7vn8Bo2V6D MAAAAA= 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=1226; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=RQvekNk+Mw4VZKNhgWLZ47RRb5dhc61tf07pkWTicZQ=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhjTfCf8OzdpdsT5wY6rlYdHeZxauZxbJPba1TmP6V6HLX rf5xLmvHaUsDGJcDLJiiiwhAkp9GxovLrj+IOsPzBxWJpAhDFycAjCRW88Y/jsEWc3wW/7igZS2 G8tCteynFSJivl8n/n2jFvHOaPKP+HpGhhPOdu7Hj02eUzctNbCnz8VpHZ/RgmkB7OVsUnd07s3 N5AYA 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 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 ++++- drivers/firmware/efi/libstub/loongarch.c | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) --- base-commit: 124cfbcd6d185d4f50be02d5f5afe61578916773 change-id: 20240521-loongarch-booting-fixes-366e13e7ca55 Best regards, -- Jiaxun Yang