Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp930205imw; Thu, 14 Jul 2022 13:41:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sUYMjxw7mk3o7pIV5p5sHecOezP56lyOzQGcrRKTcIEa793hHGoszXWpWjy0yZkXkCPY0t X-Received: by 2002:a65:58cb:0:b0:415:ea6a:c535 with SMTP id e11-20020a6558cb000000b00415ea6ac535mr8935655pgu.100.1657831262497; Thu, 14 Jul 2022 13:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657831262; cv=none; d=google.com; s=arc-20160816; b=VBdrMYbPLZAtsOdw52enpQR8j/V66yDT8rEFs+zvk8lkSIBBMyuHElDIGWdNIwF9pY mzICrgyqSUeYRbJ9E/FK+9Nwe0/wNtSORPNp54sLBLEyYNjCQKKrfk/ddj6jQ1E9bozM PI8AaSS+senatmvSXiUuLl29OVZlOcxkZ5X40oZUXqIOe/BfixT89X6fiDdUK2UVS05/ Y/3ebMUmZJaX7PNawBqfP11BMDf4vvt+beQSd79ftOQq2wSRDMvgmdV2BKxO94UHnLn9 MzKOF+lwNZtVjBgqv25/ZvyAhfXCqOcrptEFvvSZZpl1z5TsTB0yCmxQV06TGGB+D8TJ 4QxQ== 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:feedback-id :dkim-signature:dkim-signature; bh=A0UPaGfIQlteEMIT9M1cG19ug+wy+THz1cJHr43LHH0=; b=xtd1FH802zGRBqm66fcyoCNufjRd6nD7Y3HBmyvPjSI5oU/+9xY2azk8l85Pdtkq14 3JMkXHju2lr7y8wRjdyTq3cAtKpHrwZ1nan/tiG/d9u5SU8BXTqgEJE6+23TMdo03OGt jiZ0RPxHDTQ2Hc5FgptcK0qdDrmlunYezv9zpSqJ7D4NrPGfldoO6Z9TZ+ZNdcGHQwXh FrktLxJpUcTvKkpmztv5JrUZkKnR9o2RBZY/H+O8zT+UIjWkdlkyWZEjXp0m4Ubr4HR4 NImygO8UEcGgQt34tbfoyOszeFToSIyGysB0DfSnnlmQ2wCquvyQRGu+kOaG5bbteLEn wIDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pjd.dev header.s=fm1 header.b="yFA/Q6JO"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EOgzC6sj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170902eb8d00b0016c527b7060si2827718plg.66.2022.07.14.13.40.46; Thu, 14 Jul 2022 13:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pjd.dev header.s=fm1 header.b="yFA/Q6JO"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EOgzC6sj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239750AbiGNUaQ (ORCPT + 99 others); Thu, 14 Jul 2022 16:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232159AbiGNUaP (ORCPT ); Thu, 14 Jul 2022 16:30:15 -0400 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 027C9326FA; Thu, 14 Jul 2022 13:30:13 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 158CD2B05AC2; Thu, 14 Jul 2022 16:30:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 14 Jul 2022 16:30:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pjd.dev; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1657830611; x=1657834211; bh=A0UPaGfIQl teEMIT9M1cG19ug+wy+THz1cJHr43LHH0=; b=yFA/Q6JOYrck0XdDItDjkZvGC4 ZyUfQUX/weG5I7DtiGOWZk8WN1bSRXdwMfHVWjm2SBnp+HoI1mMNRIk04n1J3JCm MtJLAItFz+AB0T/tSzKgRzZQaJvWB0gp39V/Rx+D7356FZDu8kZb5PDGEnDi4RfW WfEbSnnbIMM9AyXxs0inq0zTauBtMQh63GmqPkrv6KF/eQOcMrvSHdeqaBlZhOVi Yr6c4d+F/nBzmhH0BscMTM1POdD1EjKZjdALqHOfA26G0oak8lTJurymSRpefX/b 6EhneKBLrHP/PPJm1UIAxjjhNTZXKYBG9aDKf7rH/i9hEJLXbHXCLK+Uz00Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657830611; x=1657834211; bh=A0UPaGfIQlteEMIT9M1cG19ug+wy +THz1cJHr43LHH0=; b=EOgzC6sjJGpgTgUh4BizKgSvrAPewkIQd7gOn+EJTNuc gmHcADbUjw30mlqDjrw8craNgR1XXlvnApTDM1hKRZENwZHkQESumewpLnwB57eT pWMKCaiLapfAhL5jtOXivRWUJKTJ1tUEOcSOFBv3XGNPYvahs31d7m6Sgb86/PpO m/igR/ka3KJ2JM5ndhZzMRktOHvTOz7X7GQXvb36rDr20fYAk3Wg5G2K65OVtsXi qIh4iA+MN4M9BJ75WnJ1sPL8aL//uzAT9UaCW0amGfH42sTcrJ2tcTbjN/lytIFw Zr/KzAlSHCKfcS2tjaXi8/78rWwbei/tUCSZHHiHKw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejledgudehudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefrvght vghrucffvghlvghvohhrhigrshcuoehpvghtvghrsehpjhgurdguvghvqeenucggtffrrg htthgvrhhnpeejudfgfedvhffhffeiudefvdffhfegffegjefffedtheekgfehgfefveeh feejteenucffohhmrghinhepohhpvghntghomhhpuhhtvgdrohhrghdpkhgvrhhnvghlrd horhhgpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehpvghtvghrsehpjhgurdguvghv X-ME-Proxy: Feedback-ID: i9e814621:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Jul 2022 16:30:08 -0400 (EDT) Date: Thu, 14 Jul 2022 13:30:06 -0700 From: Peter Delevoryas To: Arnd Bergmann Cc: DTML , linux-aspeed , Logananth Sundararaj , Andrew Jeffery , OpenBMC Maillist , Linux Kernel Mailing List , naveen.mosess@hcl.com, thangavel.k@hcl.com, SoC Team , Rob Herring , Joel Stanley , Olof Johansson , garnermic@gmail.com, velumanit@hcl.com, Linux ARM Subject: Re: [PATCH v3] The Yosemite V3.5 is a facebook multi-node server platform that host four OCP server. The BMC in the Yosemite V3.5 platform based on AST2600 SoC. Message-ID: References: <20220707132054.GA10610@logan-ThinkPad-T14-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_FMBLA_NEWDOM28, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Jul 14, 2022 at 01:24:59PM -0700, Peter Delevoryas wrote: > On Thu, Jul 14, 2022 at 10:15:15PM +0200, Arnd Bergmann wrote: > > On Thu, Jul 14, 2022 at 8:05 PM Peter Delevoryas wrote: > > > On Thu, Jul 07, 2022 at 03:33:48PM +0200, Arnd Bergmann wrote: > > > > > + model = "Facebook fby35"; > > > > > + compatible = "facebook,fby35", "aspeed,ast2600"; > > > > > + > > > > > + aliases { > > > > > + serial4 = &uart5; > > > > > + }; > > > > > > > > Why not start at serial0 here? > > > > > > Hey, Facebook person jumping in here (using a personal email): > > > > > > I think you're right, it should be like this: > > > > > > aliases { > > > serial0 = &uart5; > > > serial1 = &uart1; > > > serial2 = &uart2; > > > serial3 = &uart3; > > > serial4 = &uart4; > > > }; > > > > Are you actually using all five uarts though? > > Actually yes, I should have mentioned this in my previous message. > > YosemiteV3.5 is similar to YosemiteV3, which you can see here: > > https://www.opencompute.org/products/423/wiwynn-yosemite-v3-server > > This dts is for the BMC on the sled baseboard, and it manages the 4 slots in the > sled. Each slot has a "Bridge Interconnect" (BIC) (an AST1030) that manages the > slot CPU/etc. uart1 is connected to a uart on slot1's BIC, uart2 to slot2, etc. > > We also have a work-in-progress QEMU model for this: > > https://lore.kernel.org/qemu-devel/20220714154456.2565189-1-clg@kaod.org/ > > > > > > > > + chosen { > > > > > + stdout-path = &uart5; > > > > > + bootargs = "console=ttyS4,57600n8 root=/dev/ram rw vmalloc=384M"; > > > > > + }; > > > > > > Also: if we do serial0 = &uart5, it should be console=ttyS0, not ttyS4. > > > > > > > > > > > The bootargs should really come from the boot loader. > > > > > > What if we want to boot the kernel by itself with QEMU? It's kinda annoying to > > > have to specify '-append "console=ttyS0,57600n8...' everytime, or to have to use > > > a wrapper script. But, it's also a source of bugs: I realized yesterday the > > > dts we were using here: > > > > > > https://github.com/facebook/openbmc-linux/blob/e26c76992e0761d9e440ff514538009384c094b4/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts > > > > > > Has the wrong console setting. > > > > You can encode the uart settings like > > > > stdout-path = "serial0:115200n8" > > > > the rest really should be passed on the command line, not in > > the DT shipped with the kernel. Oh sorry, I missed this comment: That sounds good, I'm fine with that. We should remove the bootargs then. Thanks, Peter > > > > Arnd