From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64EDBC433E0 for ; Tue, 16 Mar 2021 20:43:31 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B6E0164F80 for ; Tue, 16 Mar 2021 20:43:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6E0164F80 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4F0QH51Tt3z30QS for ; Wed, 17 Mar 2021 07:43:29 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=sTZwieeJ; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=bruce.mitchell@ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=sTZwieeJ; dkim-atps=neutral Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4F0QGd0gYYz30Cb for ; Wed, 17 Mar 2021 07:43:04 +1100 (AEDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12GKY4M6134035 for ; Tue, 16 Mar 2021 16:43:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=in-reply-to : from : to : cc : date : mime-version : references : content-transfer-encoding : content-type : message-id : subject; s=pp1; bh=Am5P6FMs5IllmZjPyM7It/FxeX3v8+Eg1yiPx57p1dw=; b=sTZwieeJosVUPFC1857+5Bsy/SE8bjsgDOf4Ag+edUbGb/AgsTZfaiB8s1sPWMcYEX8Q oKx5+wcRMLEdPzjeTNN4zVdpAbl3nkjzg2Eff+Nftsjpcn5ykYDCfIHli6T63GOf/1s7 XTWTGw80k5m7H5nV7Je+kkX5/gWkRzactYjj6024k3ZJ0lZIbY2xi/yl0lEp9K4c0SXz OpHeUAeaXxkdQ3iVJt0DGXJUNzMofj1bA/vTvk3yEgAWAZPVugo8m7hnNhQWsXZ0oHZh weWHFtw/jGKbhdwTDgUmAS+KWbhpoT5nRiG5uX3LPCfibC8rVKj1N234IUk4N0bDdA+z 0A== Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [158.85.210.114]) by mx0a-001b2d01.pphosted.com with ESMTP id 37b0gcp5ns-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 16 Mar 2021 16:43:01 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Tue, 16 Mar 2021 20:43:01 -0000 Received: from us1b3-smtp04.a3dr.sjc01.isc4sb.com (10.122.203.161) by smtp.notes.na.collabserv.com (10.122.47.58) with smtp.notes.na.collabserv.com ESMTP; Tue, 16 Mar 2021 20:42:58 -0000 Received: from us1b3-mail33.a3dr.sjc01.isc4sb.com ([10.122.7.203]) by us1b3-smtp04.a3dr.sjc01.isc4sb.com with ESMTP id 2021031620425853-713668 ; Tue, 16 Mar 2021 20:42:58 +0000 In-Reply-To: From: "Bruce Mitchell" To: Joel Stanley , "Andrew Jeffery" Date: Tue, 16 Mar 2021 20:42:57 +0000 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) References: , , X-Mailer: IBM iNotes ($HaikuForm 1054.1) | IBM Domino Build SCN1812108_20180501T0841_FP130 January 13, 2021 at 14:04 X-KeepSent: AC3A0AF2:EC072501-0025869A:00702F91; type=4; name=$KeepSent X-LLNOutbound: False X-Disclaimed: 16055 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 x-cbid: 21031620-1639-0000-0000-0000037F6427 X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0; ST=0; TS=0; UL=0; ISC=; MB=0.010312 X-IBM-SpamModules-Versions: BY=3.00014881; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000296; SDB=6.01521491; UDB=6.00822281; IPR=6.01304004; MB=3.00036388; MTD=3.00000008; XFM=3.00000015; UTC=2021-03-16 20:42:59 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2021-03-12 19:14:57 - 6.00012368 x-cbparentid: 21031620-1640-0000-0000-0000C8E867A7 Message-Id: Subject: RE: My kexec test patches for OpenBMC X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-16_07:2021-03-16, 2021-03-16 signatures=0 X-Proofpoint-Spam-Reason: orgsafe X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , OpenBMC Maillist , bradleyb@fuzziesquirrel.com Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" -----Bruce Mitchell/US/IBM wrote: ----- >To: Joel Stanley >From: Bruce Mitchell/US/IBM >Date: 03/05/2021 14:27 >Cc: Andrew Jeffery , OpenBMC Maillist > >Subject: Re: [EXTERNAL] Re: My kexec test patches for OpenBMC > > >-----"openbmc" > wrote: >----- > >>To: Bruce Mitchell >>From: Joel Stanley >>Sent by: "openbmc" >>Date: 02/24/2021 00:04 >>Cc: Andrew Jeffery , OpenBMC Maillist >> >>Subject: [EXTERNAL] Re: My kexec test patches for OpenBMC >> >>On Fri, 19 Feb 2021 at 00:53, Bruce Mitchell >> wrote: >>> >>> Hello Joel, >>> >>> Per your request yesterday, I am emailing the details of my >>kexec/kdump development efforts. >> >>Thanks. Here's what I tested: >> >>https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A=5F=5Fgithub.com=5Fs >h >>enki=5Flinux=5Fcommits=5Fast2600-2Dkexec&d=3DDwIFaQ&c=3Djf=5FiaSHvJObTbx-= siA1 >Z >>Og&r=3DXYNAOU-BEndJr70kO1xkYnetCkaomJrlYQm5DudYzNc&m=3DoX=5FdPGCu4X3pBZ >l >>Dw0XYgu4z-3G1JebwP-IvlNbEMDE&s=3DgT3O534rB4ZDIPbf6Z78bKCR=5Fop-JR1uYc >v >>bd3z18RA&e=3D >> > >Your kernel changes are similar to what I had done. Since you know >the community better than I do, I propose submitting your changes. >I can do the labor, but want you to get the credit. How would you >like me to proceed? > >>> >>> I am running QEMU >>> >>> qemu-system-arm --version >>> QEMU emulator version 5.2.0 (v5.1.0-3479-g27ca38d3db) >> >>That looks fine. I'm using cedric's tree, but anything that will >>boot >>your kernel is fine. >> >>> qemu-system-arm -d cpu=5Freset -M tacoma-bmc -kernel >>/tmp/tmp.y2fpdAXM1h.kernel -dtb /tmp/tmp.BWkadwNbTf.dtb -initrd >>/tmp/tmp.jRpFbzfpBs.initrd -drive >>file=3Dobmc-phosphor-image-witherspoon-tacoma.wic,if=3Dsd,format=3Draw, >i >>ndex=3D2 -net nic -net >>user,hostfwd=3D:127.0.0.1:2222-:22,hostfwd=3D:127.0.0.1:2443-:443,hos >t >>name=3Dqemu -nographic -append "crashkernel=3D64M >>console=3DttyS4,115200n8 rootwait root=3DPARTLABEL=3Drofs-a" >> >>You could simplify your qemu setup if you want. Here's how I >>tested: >> >> $ qemu-system-arm -M tacoma-bmc -nographic -net nic -nic >>user,hostfwd=3D::2222-:22,tftp=3D/srv/tftp/ -kernel >>aspeed-g5-dev/arch/arm/boot/zImage -dtb >>aspeed-g5-dev/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dtb -initrd >>~/dev/kernels/misc/rootfs.cpio.xz >> >>This uses a small initramfs with the kexec utility, and has a >copy >>of >>the kernel, initrd and dtb inside to make testing easy. >> >>Or, if you want, you can copy files into the system over the ssh >>port: >> >>I have this in my ~/.ssh/config: >> >>Host qemu >> Hostname localhost >> Port 2222 >> User root >> UserKnownHostsFile /dev/null >> StrictHostKeyChecking no >> >>And then you can use scp like this: >> >>scp aspeed-g5-dev/arch/arm/boot/zImage >>aspeed-g5-dev/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dtb >>/home/joel/dev/kernels/misc/rootfs.cpio.xz qemu: >> >>> From OpenBMC within QEMU I am using the following to test kexec >>> >>> kexec -d -l /home/kexec=5Ffiles/tmp.y2fpdAXM1h.kernel >>--initrd=3D/home/kexec=5Ffiles/tmp.jRpFbzfpBs.initrd >>--dtb=3D/home/kexec=5Ffiles/tmp.BWkadwNbTf.dtb --append=3D"earlycon >>console=3DttyS4,115200n8 rootwait root=3DPARTLABEL=3Drofs-a 1 maxcpus=3D1 >>reset=5Fdevices" >>> kexec -d -e >> >>Here's how I was running it: >> >># kexec -l zImage --dtb aspeed-bmc-opp-tacoma.dtb --initrd >>rootfs.cpio.xz >># kexec -e >> >>I haven't set a new command line, so it uses the command line >from >>the >>device tree (console=3DttyS4,115200n8). >> >>With my patch we will not get the secondary CPU: >> >>[ 0.039517] ASPEED AST2600 rev A1 (05010303) >>[ 0.042030] smp: Bringing up secondary CPUs . >>[ 1.163950] CPU1: failed to come online >>[ 1.167999] smp: Brought up 1 node, 1 CPU >>[ 1.168164] SMP: Total of 1 processors activated (2250.00 >>BogoMIPS). >> >>That should be the next step in working on the kexec patches. We >>want >>the secondary CPU to be in a state such that the new kernel can >>take >>control as it would in a firmware boot. >> >>Note that this didn't require any changes to the system beyond >the >>kernel patch. I'm using the same defconfig as we have in the >tree. >> >>Cheers, >> >>Joel >> >> > >Hello Joel, > >Thanks again for your advice and sharing your wisdom. >I am being urged by our manager to get this up-streamed >sooner rather than later. How can I best work with the >system to make this happen? > >Thank you! > >-- >Bruce > > Hi Joel and Andrew, I cannot find any response to this thread in my inbox, however I may still have missed it. "Joel's kernel changes are similar to what I had done. Since you know the community better than I do, I propose submitting your changes. I can do the labor, but want you to get the credit. How would you like me to proceed?" Also openbmc/meta-aspeed/MAINTAINERS and the Linux ARM/ASPEED MACHINE SUPPORT MAINTAINERS can communicate faster with Joel than I. I am seeking direction on how to be effective in making this happen that works with the community. Thank you! -- Bruce