Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp435935ybt; Fri, 19 Jun 2020 05:33:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeECsAvGslNhpreBycHv1X3qRCbKD658l/ie3cE7DespKSIItwR33yPXhzDKvAr0M0GBK7 X-Received: by 2002:aa7:d952:: with SMTP id l18mr3009063eds.151.1592570007138; Fri, 19 Jun 2020 05:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592570007; cv=none; d=google.com; s=arc-20160816; b=0ZuyU6+LivbQM2Np0hbD0km7VgxlIbryevmem0DBPyPYJr1o5X/owCIO2lyTrOSUSo TS735gS3vdt/e2PThZ/j+IWuXqdQGJsJcNe7C5Vm/RJ0Di9Z2zcv4CawT6NTde6rG+CG ZxPYAFl7gtEzt8Y1875LAprw51xYrntTmk2Z1gD2lt5HxuVvM0AO9rOTiR3mAQIrr9t1 Qe0RK2EBX85YfET0OJhszWVurHzZrwjKjQks3zg/5TV18NXPpjA8jtWXNFg8cSytLmzI i3IukUoUPhlaSQavBSp7JbvxnxGPw66ZImdhSDXhxmVUHayUlx9sYjZgVnuEy6EONMq0 N0eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=TXcy8zjFyT4z+EftuG3I562QrL19DXICR+N8Hrr0J7E=; b=dXlXIn5H+Id6FRpHay+krURyjjekbJaQ1fiErgycSUlOaBtRGgeJT2nfvWuF9d5l9g NvqVkfv7PTiDbL4pvFl/dz9MgJ0KOV4e+YV7zNMkkY7ayqENQeJtKgY2J2tkLoC3Kgmi p3tZMlWFGXMo4qxxXE1vOfZZWkctsNBjwi08I1918L/aNua/ZWXK20YvUjmJyGXS+hl9 htlkOD9SDlBBvJrVshWpqAYDW9cZ5X4HuV8iafeXIrYmoDUvtSoTJHlHB/N8SwZTkSZ3 10iWuVlJ97YwOflrgVhc3TdLvzbw7m7VOpfoN0LfttHAvLBpUs/piGD2FW4tqOwDLnsJ /ffQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=hUvsuHH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si3651118ejf.226.2020.06.19.05.33.04; Fri, 19 Jun 2020 05:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=hUvsuHH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732406AbgFSLCe (ORCPT + 99 others); Fri, 19 Jun 2020 07:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732362AbgFSLCb (ORCPT ); Fri, 19 Jun 2020 07:02:31 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AC9C06174E for ; Fri, 19 Jun 2020 04:02:30 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49pG9F1Hymz9sNR; Fri, 19 Jun 2020 21:02:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1592564546; bh=rAqfkxmj6miJ3CdT8VIZQ0jD0mt69z6oFkgb4VkM+nY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hUvsuHH5zg5MocG6lzLJUaAKWnDpXsp2BPw0cRbwBaGO1Fn6oezy66yxwASCm8T5x osaTYp3QrtnE2Ykbh7/w6JxL3vnqsSfk+KgGSbCGsBH/evnydr9q/sAjbeqTlxyhMb QCrfQiN89P2uMjuKC80eNU0caqS/dCUEm5JEtmeYHwYsdOI4ABGXmlKgmZG8UU0Uxa RrIedFQ2RuKhfY4eVjwyjQ0BqnzcoMR3g3X+6XQTukvZDfpCgXB/qJ/bQUmUwOl0Oq RrYzGRmTZho7O8Cg/gFkcCdQ5ZvbxOO2cbkSrMLy917NBAvwP6ccLR2HRidkRDxjGR U4Bu9ryECzzmA== From: Michael Ellerman To: Nathan Chancellor Cc: Nick Desaulniers , Michal Simek , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Arnd Bergmann , linuxppc-dev , LKML , clang-built-linux Subject: Re: [PATCH v5 01/13] powerpc: Remove Xilinx PPC405/PPC440 support In-Reply-To: <20200618031622.GA195@Ryzen-9-3900X.localdomain> References: <8c593895e2cb57d232d85ce4d8c3a1aa7f0869cc.1590079968.git.christophe.leroy@csgroup.eu> <20200616002720.GA1307277@ubuntu-n2-xlarge-x86> <68503e5e-7456-b81c-e43d-27cb331a4b72@xilinx.com> <20200616181630.GA3403678@ubuntu-n2-xlarge-x86> <50fb2dd6-4e8f-a550-6eda-073beb86f2ff@xilinx.com> <87bllidmk4.fsf@mpe.ellerman.id.au> <878sgmdmcv.fsf@mpe.ellerman.id.au> <87tuz9ci7e.fsf@mpe.ellerman.id.au> <20200618031622.GA195@Ryzen-9-3900X.localdomain> Date: Fri, 19 Jun 2020 21:02:53 +1000 Message-ID: <87eeqbco82.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan Chancellor writes: > On Thu, Jun 18, 2020 at 10:48:21AM +1000, Michael Ellerman wrote: >> Nick Desaulniers writes: >> > On Wed, Jun 17, 2020 at 3:20 AM Michael Ellerman wrote: >> >> Michael Ellerman writes: >> >> > Michal Simek writes: >> >> >> >> >> >> >> Or if bamboo requires uImage to be built by default you can do it via >> >> >> Kconfig. >> >> >> >> >> >> diff --git a/arch/powerpc/platforms/44x/Kconfig >> >> >> b/arch/powerpc/platforms/44x/Kconfig >> >> >> index 39e93d23fb38..300864d7b8c9 100644 >> >> >> --- a/arch/powerpc/platforms/44x/Kconfig >> >> >> +++ b/arch/powerpc/platforms/44x/Kconfig >> >> >> @@ -13,6 +13,7 @@ config BAMBOO >> >> >> select PPC44x_SIMPLE >> >> >> select 440EP >> >> >> select FORCE_PCI >> >> >> + select DEFAULT_UIMAGE >> >> >> help >> >> >> This option enables support for the IBM PPC440EP evaluation board. >> >> > >> >> > Who knows what the actual bamboo board used. But I'd be happy to take a >> >> > SOB'ed patch to do the above, because these days the qemu emulation is >> >> > much more likely to be used than the actual board. >> >> >> >> I just went to see why my CI boot of 44x didn't catch this, and it's >> >> because I don't use the uImage, I just boot the vmlinux directly: >> >> >> >> $ qemu-system-ppc -M bamboo -m 128m -display none -kernel build~/vmlinux -append "console=ttyS0" -display none -nodefaults -serial mon:stdio >> >> Linux version 5.8.0-rc1-00118-g69119673bd50 (michael@alpine1-p1) (gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #4 Wed Jun 17 20:19:22 AEST 2020 >> >> Using PowerPC 44x Platform machine description >> >> ioremap() called early from find_legacy_serial_ports+0x690/0x770. Use early_ioremap() instead >> >> printk: bootconsole [udbg0] enabled >> >> >> >> >> >> So that's probably the simplest solution? >> > >> > If the uImage or zImage self decompresses, I would prefer to test that as well. >> >> The uImage is decompressed by qemu AIUI. >> >> >> That means previously arch/powerpc/boot/zImage was just a hardlink to >> >> the uImage: >> > >> > It sounds like we can just boot the zImage, or is that no longer >> > created with the uImage? >> >> The zImage won't boot on bamboo. >> >> Because of the vagaries of the arch/powerpc/boot/Makefile the zImage >> ends up pointing to treeImage.ebony, which is for a different board. >> >> The zImage link is made to the first item in $(image-y): >> >> $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) >> $(Q)rm -f $@; ln $< $@ >> ^ >> first preqrequisite >> >> Which for this defconfig happens to be: >> >> image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony >> >> If you turned off CONFIG_EBONY then the zImage will be a link to >> treeImage.bamboo, but qemu can't boot that either. >> >> It's kind of nuts that the zImage points to some arbitrary image >> depending on what's configured and the order of things in the Makefile. >> But I'm not sure how we make it less nuts without risking breaking >> people's existing setups. > > Hi Michael, > > For what it's worth, this is squared this away in terms of our CI by > just building and booting the uImage directly, rather than implicitly > using the zImage: > > https://github.com/ClangBuiltLinux/continuous-integration/pull/282 > https://github.com/ClangBuiltLinux/boot-utils/pull/22 Great. > We were only using the zImage because that is what Joel Stanley intially > set us up with when PowerPC 32-bit was added to our CI: > > https://github.com/ClangBuiltLinux/continuous-integration/pull/100 Ah, so Joel owes us all beers then ;) > Admittedly, we really do not have many PowerPC experts in our > organization so we are supporting it on a "best effort" basis, which > often involves using whatever knowledge is floating around or can be > gained from interactions such as this :) so thank you for that! No worries. I definitely don't expect you folks to invest much effort in powerpc, especially the old 32-bit stuff, so always happy to help debug things, and really appreciate the testing you do. cheers