Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1206020lqb; Thu, 30 May 2024 03:41:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoA6wLXpphnvrs1fShvpHyr4OUzMM+Xdc9veiDsBxVlAbw1kVP0jS42NIE4Wq/fJcfRNUIPMcbwPJfsafdPCY299KmmBmREbSxpzpRyA== X-Google-Smtp-Source: AGHT+IGMHfq+lwfj4MuhJzvc0JV9MQs9bx8HhATwI6JWkFQjTP3fmNgovlEv93QK88f+sdGRJoTN X-Received: by 2002:a50:9f2f:0:b0:57a:2430:d14d with SMTP id 4fb4d7f45d1cf-57a2430d185mr555770a12.24.1717065695928; Thu, 30 May 2024 03:41:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717065695; cv=pass; d=google.com; s=arc-20160816; b=0fpQaCSByfjFin7S1dRPc9Y54BDjbRTydqFHd+KJXG7DPbDPyYgOpADLUqXKU/M67M I/nb5S4zVhs3v1CVUkJydohjVB4CIfT7/MvA1lm9FQWZMRaGuT5oBPeX6objVF2a3Ywk f1cF/7JAW+1Rd8eHvV/aDi/lAqaX1cFPRiIgiIeHU8A5ehJB0Mmg/D515zYTYHMfMpp0 elQ8IvZs7jrvqIhy+q3RK9A0mj+XxiOY8ta3x9z5SfoxXXzaBCKGyF0O/1+bgL9G7t+A YaAiY5H5DIreC4d5ZH+YLU2yEy+xCPbWEUopBjHckJ/hMzU/sEE33zqom8/UXyuvypTv FrZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MUR4OGr/vIPUgll0tOdNnHBTQl9/2d+qEldadEeWKT0=; fh=XwhsLUblhiR5e1ittp04UK31RjBdIuS+Flx8oI6KJF4=; b=zigR5BQWq2jGWSosXKacl4cEHcfPAMk0txmNGArkPcKrQ9kec0huu/6FsCd8XJsXSH rH3phF76YlbYeLIBoEZIy5kFTBCfqLapRxxLFuoXF/MmOA/TLLL/nP4IRzzugdbXm31k vTMq3fQpE9VVAdyGQpjHEd9nLzMY5FL5jjI+3YQg1MhrpvOjbhfN3eTmggBInx5fF76K k6PgYNmjVo6N61NujTw8VoZCG7L+HjOszlzlQhmra6qW2S8LEpNiPneYXdLj8i/iujG2 OnfSBGPRIetGDglSYt0+crqYdh+/5+zRB3PfkwcXI68woYPps6i3XmgPGO+NO7KQEJWI 2sAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V31vltqg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-578524b53d7si7363860a12.550.2024.05.30.03.41.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 03:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V31vltqg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 925521F23620 for ; Thu, 30 May 2024 10:41:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4D16176ACF; Thu, 30 May 2024 10:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V31vltqg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DC5901761B1; Thu, 30 May 2024 10:41:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717065687; cv=none; b=BSYlNidHKtpDD9lNr1vZs/zksgH3bcKmO0hr/mRrvR6a3m6UOFH/C09qqcwODHtCnGkNX2LY98XIYxADfV9d9yXmqJmDwbfNek6u+T+6NgRBBZh/CcTX4exfcRkF4tSIuCCnT0s4pFDtnNpur+R3EkcRn9nUSumlGK2iFYmWSn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717065687; c=relaxed/simple; bh=PoXLd/saRGX0CFC9ilNw4jmQaclo+pP1tMe3ZlJmqsU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=klxLtH0su0uewzpSELROZ3fqhSJnRlQPwwiPpXKeQX0KNBkdXKyAdRqFpCeQszjER09f3j78RrU9D+REVn5FYUi4AC3guQMmtydxUvYoyhEyaiE+lK9+uRgL5w4Gd3NAkPkPwJN24riNFhviQEX4FHFojyueHxmWLXqA9VSxL6U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V31vltqg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8886CC2BBFC; Thu, 30 May 2024 10:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717065686; bh=PoXLd/saRGX0CFC9ilNw4jmQaclo+pP1tMe3ZlJmqsU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=V31vltqgi+C+T2bxRbmCUtqgV4YjrmOlm9GH+DG0YfbvRKIQjwRrTEqlDmp5+icf8 l7T4OFJJb5CuS33UbTVdeRxRbplo8n5PvrNOr++dYVdttm4n52i/Vt3SzjD993dMyE tNnz+DbNIHZtwxQ1k0LbKMnO50jJ3IR0DrBFAsvOMH2ge/J54X6NBWT/+6d1XRYSOg 1VkLT0tGY+jTASTcjiMXwfOsXRj0LZRbCVLzZ1pSC4y+cyDVbNJOPCFokL901ezqIi zHipGN/ooJM1Ylhfvt5JFqk6+8Jlx8Hgv9K3L8unhqSFZmVVq4GaKIJORfN6gtY+1w mtmEOqDh+xnug== Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a6265d3ba8fso53785566b.0; Thu, 30 May 2024 03:41:26 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV/8cbd3sVygkjiOhcSHt/J6K/m6l6xW5hI/rLdK6O50tuI4UgOc/TI4MIQ3mJli9kfyTtIoqYRmxE3ik3IxyI8TAerF4i/RZ4Qm0/j5vXj+R+8k3M/4sLTZ4DnuWQtg+ljcjtR X-Gm-Message-State: AOJu0YwZvZT/CUaRQgmYtYWq2g5CVjUiwved55ShveAW6RPn1xYHmYlh HQ2PCxAdA9eZCGqV1ryvAvI1kyBAuP2olKSTHM4s0Nq/+e/ukqUBZ6jmzwA8kCdzNNTljWs+wsy DbE+80fmx7v5SMkd7fbQwFZkP9oQ= X-Received: by 2002:a17:906:fb0c:b0:a59:ef75:5382 with SMTP id a640c23a62f3a-a65e8f6f478mr108011966b.43.1717065685141; Thu, 30 May 2024 03:41:25 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240522-loongarch-booting-fixes-v3-0-25e77a8fc86e@flygoat.com> <20240522-loongarch-booting-fixes-v3-3-25e77a8fc86e@flygoat.com> <173627fe-3370-413b-8f9c-50c65892cef9@app.fastmail.com> In-Reply-To: <173627fe-3370-413b-8f9c-50c65892cef9@app.fastmail.com> From: Huacai Chen Date: Thu, 30 May 2024 18:41:12 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/4] LoongArch: Fix entry point in image header To: Jiaxun Yang Cc: WANG Rui , Binbin Zhou , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, "stable@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 30, 2024 at 5:50=E2=80=AFPM Jiaxun Yang wrote: > > > > =E5=9C=A82024=E5=B9=B45=E6=9C=8830=E6=97=A5=E4=BA=94=E6=9C=88 =E4=B8=8A= =E5=8D=886:01=EF=BC=8CWANG Rui=E5=86=99=E9=81=93=EF=BC=9A > [...] > >> /* > >> * Put .bss..swapper_pg_dir as the first thing in .bss. This will > >> @@ -142,6 +143,7 @@ SECTIONS > >> > >> #ifdef CONFIG_EFI_STUB > >> /* header symbols */ > >> + _kernel_entry_phys =3D kernel_entry & TO_PHYS_MASK; > > > > - _kernel_entry_phys =3D kernel_entry & TO_PHYS_MASK; > > + _kernel_entry_phys =3D ABSOLUTE(kernel_entry & TO_PHYS_MASK); > > > > Thanks Rui! > > Huacai, do you mind committing this fix? I will update this patch in my tree, you needn't do anything. Huacai > > Thanks > [...] > >> > >> > > > > - Rui > > -- > - Jiaxun