Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1245598lfc; Wed, 1 Jun 2022 12:57:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0EkZdyeHTjAsB8D+GJnW1wDVf5UMQpGovX3+SBXgwGbuhQvPkj5cdO6aDGbx0JNI2MOCl X-Received: by 2002:a63:5b42:0:b0:3fc:136f:9a5b with SMTP id l2-20020a635b42000000b003fc136f9a5bmr915085pgm.560.1654113434383; Wed, 01 Jun 2022 12:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113434; cv=none; d=google.com; s=arc-20160816; b=mVEEDYZzUc5H3QPzf/DA1PLidhDzxIVlRnhse0oSUMFgBcS9Ov0M3V3t4aNCkSromE mY6v0WFpOYVRuFuHR8FU42qanPKeKooS+HbFwGuJhIyLBIzXwZlp7+RoDay9/qck42yH PgkxlKtXJ1UgTfL4Ybxur46rAmGkb1CM8eQlbGWaFJ4d8YQKo7D+fNLvbrQM2e2me2+t mDVjG+XfmlYp1aY3amQhpr3Y81r3kWs+AJVrFP63ZI4AzTL6Vpo4F4S7PMNi0q6WrO2X ioixYZYJMAhdNxy3BiE8ZXoOA3/eat3LdxqiBLRyQRUKuXF+S2jaut9f3lLtWge2MXw4 jJEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=UMNAiKSYB/USbHc1RErKP++CuwST9i867T7m5DEXLkA=; b=YQSIgnOPmRZTtkUDaKREZehX7ti+Qavt2WZ9S/C8QBHLYVAhKXkj17nYDtZrHyc3el hNm6401M7u/6kk7YbC2DNb0uwHIQhbhu83lPMcUIdYAaiS+DDWcVUfkklj7IEBuPVf8K GrA7ZtFFL/4nexyECuU9MCY7XUKjlupfK1Y7NJ9qQmdl+4hPZpF3C1YRRsk/XBHX7T4l YlKO2RVjYnc0FTKygoucx+hBpPohbCc5ldnxlmbALiZpsX16fixe/Mp96ndau6Od8/6w PqLKTbv+dMlwgSAydA9+pTUugiMvRdLPn6qO/rI4IXPJRVjPsnn3+P3FkrMJQM/2siky 8cMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l5-20020a056a00140500b0051b97c12336si3397766pfu.376.2022.06.01.12.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:57:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4709F212C9A; Wed, 1 Jun 2022 12:16:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240048AbiE3Tmg (ORCPT + 99 others); Mon, 30 May 2022 15:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233186AbiE3Tmf (ORCPT ); Mon, 30 May 2022 15:42:35 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8F0762219 for ; Mon, 30 May 2022 12:42:33 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvlGn-0004LO-Ul; Mon, 30 May 2022 21:41:41 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nvlGh-005Vep-Cd; Mon, 30 May 2022 21:41:34 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nvlGf-00D9uL-Eh; Mon, 30 May 2022 21:41:33 +0200 Date: Mon, 30 May 2022 21:41:33 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Palmer Dabbelt Cc: wangkefeng.wang@huawei.com, guoren@linux.alibaba.com, sunnanyong@huawei.com, jszhang@kernel.org, mick@ics.forth.gr, linux-riscv@lists.infradead.org, Stephen Rothwell , alex@ghiti.fr, christophe.leroy@csgroup.eu, naveen.n.rao@linux.vnet.ibm.com, lizhengyu3@huawei.com, aou@eecs.berkeley.edu, liaochang1@huawei.com, Paul Walmsley , Bjorn Topel , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, penberg@kernel.org, ebiederm@xmission.com, kernel@pengutronix.de, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] RISC-V: Prepare dropping week attribute from arch_kexec_apply_relocations[_add] Message-ID: <20220530194133.udwdjsb2l33hsiil@pengutronix.de> References: <20220530074202.pydmbbgvbtaugw5j@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="krrdaxdkw2concro" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --krrdaxdkw2concro Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Mon, May 30, 2022 at 11:58:16AM -0700, Palmer Dabbelt wrote: > On Mon, 30 May 2022 00:42:02 PDT (-0700), u.kleine-koenig@pengutronix.de = wrote: > > Without this change arch/riscv/kernel/elf_kexec.c fails to compile once > > commit 233c1e6c319c ("kexec_file: drop weak attribute from > > arch_kexec_apply_relocations[_add]") is also contained in the tree. > > This currently happens in next-20220527. > >=20 > > Prepare the RISC-V similar to the s390 adaption done in 233c1e6c319c. > > This is safe to do on top of the riscv change even without the change to > > arch_kexec_apply_relocations. > >=20 > > Fixes: 838b3e28488f ("RISC-V: Load purgatory in kexec_file") > > Looks-good-to: liaochang (A) > > Signed-off-by: Uwe Kleine-K=F6nig > > --- > >=20 > > On Mon, May 30, 2022 at 09:43:26AM +0800, liaochang (A) wrote: > > > > I can confirm that doing > > > > > diff --git a/arch/riscv/include/asm/kexec.h > > > b/arch/riscv/include/asm/kexec.h > > > > index 206217b23301..eee260e8ab30 100644 > > > > --- a/arch/riscv/include/asm/kexec.h > > > > +++ b/arch/riscv/include/asm/kexec.h > > > > @@ -55,6 +55,13 @@ extern riscv_kexec_method riscv_kexec_norelocate; > > > > > #ifdef CONFIG_KEXEC_FILE > > > > extern const struct kexec_file_ops elf_kexec_ops; > > > > + > > > > +struct purgatory_info; > > > > +int arch_kexec_apply_relocations_add(struct purgatory_info *pi, > > > > + Elf_Shdr *section, > > > > + const Elf_Shdr *relsec, > > > > + const Elf_Shdr *symtab); > > > > +#define arch_kexec_apply_relocations_add arch_kexec_apply_relocati= ons_add > > > > #endif > > > > > #endif > > >=20 > > > LGTM, you could send a fixup patch to riscv, thanks. > > >=20 > > > > > on top of 838b3e28488f results in a compilable tree. And when > > > merging > > > > 233c1e6c319c into this, it is still building. > > > > > I'm not enough into kexec (and riscv) to judge if this is > > > sensible, or > > > > create a useful commit log but the obvious way forward is to apply = the > > > > above patch to the riscv tree before it hits Linus' tree. > >=20 > > Ok, here comes a patch with a generic commit log. > >=20 > > @riscv people: If you prefer, squash it into 838b3e28488f. >=20 > Sorry, just saw this after I sent my version of the fix. They're the sam= e, > but do you mind sending a full-on patch so I can merge it? Sorry, I don't understand your request. I found https://lore.kernel.org/linux-riscv/20220530180408.16239-1-palmer@rivosinc.= com/ but I don't know what a full-on patch is and what stops you merging my patch.=20 Is it that it's in reply to a patch series and b4 fails to fetch the right patch and you ask to send it in a new thread? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --krrdaxdkw2concro Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmKVHeoACgkQwfwUeK3K 7AmIjAf/cIdZXzTm8ALuTDgUrKH3cNzpFjQ944mYn/qfLoGkdCnQlYzghw570rDo 0QKgHNkqRQQ7lgaXGnex5HizEMdc+++QESut+gBcrV92K33EZU3XSXUp+75SE+Jz DjRnmCm4xkh/9zZysNW0OXLnjd4AtGMlbzXYFKsKKxtaGgd7+f06D3cTzoVOfLbL i0DPa56ftXEmEYl6WpqIg1gb9gQMQx7E9vsscEgoOX6u9AlinTk/cxkDA6lhMNEj 03qeCXcYyUQtszhTYw3jo8cLqM1KGLVU3i9Blj0mAIQ8DVaXUd3hWx3AFqjeA55K bErpEBzedIdALZNq1g3XX9JHLEMP7Q== =qw7s -----END PGP SIGNATURE----- --krrdaxdkw2concro--