Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp995498ybt; Wed, 17 Jun 2020 20:18:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8ElJMfpmHt9G6mV6NmO8+yYeEPhBlmxKO4mz2heamAHKsZAlQkQmtWr9QuCDulI6KmqhG X-Received: by 2002:a17:906:3844:: with SMTP id w4mr2136995ejc.313.1592450318023; Wed, 17 Jun 2020 20:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592450318; cv=none; d=google.com; s=arc-20160816; b=YW8Ea0Gg5MWRxiG6AvYthCXYL0wZ7mrlEsJ9bIJeCkbJrTnPazsLWgU770CvK+0i2b jwGjnJjbyOeOR7wYCwkvIb+A6EwXy+DgFIbtmxMYzAz2Te+CMDoI991AT160qFelryai PB3cRSF/liwo9UXyXTuH68K9DV9k6rK4A5EPQfhUI/v7nLWaesGLx8oiOqbas31XpVGQ kfC3xZelDN1JGbIGN5ojkSQnlI5lYKpgjLMs6+6N0Y8meuA9hng+f5Hr52YEYkJgdHsn 9+dZOdA6Zu9W31K+cD5fbJuMIMGKwNkHp7ufEzQQxJCaBK0J69xPUcw/lQbLbNAABIWK PU1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BQ6+gpUp0LDm306U72ZZjOm3CRXIXZhyD96bzGv7Trs=; b=a9J83W1rGVF5hVR/IPv7ynXvywadLmmUfDsWU8x4dF24em3KRyjGNVG50sChJbQ9Y+ 8viDr1JPA26Zvx+IypXMizsjwHj4c8awGNgsxc7h3YV6RxFmyBZ+DGu8EAenknyJcNXy iIud0z4+h8p2XLvHRs5IGt/yhZ8cy9fue76SWnD4VEM5b3zBootcvazkt5BHSjGidHpj 2vm8P/J6rviOQCv/X6Z/hs0gl1CKRrszwlW8Um7s609bxttvrun5/iDtxXfmfm6z2Gcm MJi2JPoNXaSGXRk7fLpT+la78WSx3ZFriORESuPG02EK2ofIrbRY+AHKzrYY5DfaTJuM v9BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qqUUsVQ2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id uz8si1076749ejb.640.2020.06.17.20.18.15; Wed, 17 Jun 2020 20:18:38 -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=@gmail.com header.s=20161025 header.b=qqUUsVQ2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbgFRDQ2 (ORCPT + 99 others); Wed, 17 Jun 2020 23:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726893AbgFRDQ1 (ORCPT ); Wed, 17 Jun 2020 23:16:27 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC393C06174E for ; Wed, 17 Jun 2020 20:16:25 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id s88so2004486pjb.5 for ; Wed, 17 Jun 2020 20:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BQ6+gpUp0LDm306U72ZZjOm3CRXIXZhyD96bzGv7Trs=; b=qqUUsVQ27Wr3RSWWeIuxq+vOUb3yQy0jEJMER/HF4our6EKbACz5wNRGb1nGwtJgpW IZ0oQW8wuLO3tlCwkoGfSK7V/1NJ8Odxc2vmB1fOsKQQSjMVtooJT0s67O8pfGFz67dF Hxc/l5vuvJAd5NGXJwNO26/I0cdgJij2vOEHPSkVkquD7xDmFcIJNdF14yUEkrtAsDSp 2dp3knP8DyuuKTZ4D2D4mVJL5LgFJYb7Gujz4WknXXjv/iW5TSCKfvbgNKbRRpCC9Eym hlGZmmLSFwwhCyHEUZpQLLWxHqYbS4EVOUhJfHDCk60oNXp/hC2ldyJt2+cuqUgQmnvM 9VgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BQ6+gpUp0LDm306U72ZZjOm3CRXIXZhyD96bzGv7Trs=; b=qh9/j2mZZ8ThC17Z0b1SVxAGNvXaw2x5mvH+nUb6j/6QR7rW4ylzPSCeIISdrniFgn AnJWtWVqzXSWaeB9bZB5p8RG13pBB+3blvUlf5+hcnFjYGvYaM1ncgQulNENfO7XOq0c VsqZcD/pfRQ5hujZHUX/HLn/VxuScNhaxrQA6x/r4X2yWn7u1tXWYzKXqH6bEV+cQVx1 mE7fntZcUDSHoAHVTDctapZ2bxf7dc7BkgCFl0Y/JdeOeijDWtRG1P5qqA5sRC8lsYbj YsdoQ/Mumnnno7g937i/KVIdNS0eIy8QS3r37w/VzG8fazdn2l74e6m9m0rRZfJRWX7a p8lQ== X-Gm-Message-State: AOAM5302sNmkkPG0+4wJVCGtHevd/xlCCaW69kOkCdxW0fBkQDANAJpT AQfE0+i9Kv44MCZqlH12LCw= X-Received: by 2002:a17:90a:a405:: with SMTP id y5mr2092260pjp.15.1592450185243; Wed, 17 Jun 2020 20:16:25 -0700 (PDT) Received: from Ryzen-9-3900X.localdomain ([89.46.114.134]) by smtp.gmail.com with ESMTPSA id r2sm1031469pgg.23.2020.06.17.20.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 20:16:24 -0700 (PDT) Date: Wed, 17 Jun 2020 20:16:22 -0700 From: Nathan Chancellor To: Michael Ellerman 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tuz9ci7e.fsf@mpe.ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > cheers 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 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 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! Cheers, Nathan