Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3958133ioa; Tue, 26 Apr 2022 13:23:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzquudX8pBoOuLigQ511p0xLv75pCFrw4cTsVMHs2bz3eL7jJTsIE8EXYXnVIenG4idZzuu X-Received: by 2002:a17:907:3f0d:b0:6f3:76b8:fc2f with SMTP id hq13-20020a1709073f0d00b006f376b8fc2fmr16727076ejc.355.1651004633044; Tue, 26 Apr 2022 13:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651004633; cv=none; d=google.com; s=arc-20160816; b=lDvla5hxVTSuko+NPrSu0aCNiAdjhS5fhkrj4blTSWhWvDi9z/Tr/6dxAIxfQjGFLv GiyG3OlsJt1sUmdBD94WlnaF/+jtcQd2ym7mdM52uEEQpMfxFNjNpZM4IUZxCZfWGeTA POw1LKakYNSpkjmwfluoABvyOhG9p/Jy5dWB9mY2TTbUkmVQptf3Wrohk96tq850sqi7 hUiwUx1gHJITfRy+HnKrGg2xTAhAxCLAuHD24NMh95VBwIiAY80/cCQvOb7mXrxc8fIy CXClihIzk1e3NkzFGkSZpqp8e5xwuscU5xB1f0UNcXNfAsnF2kT6q+H7zgRJMZxvLgRV 1RPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=L0ykPtVYjVt4oFI7AGVhn3ILxo121j/P3YjYHh3pXVI=; b=t7TSO1XXmf47Jmae83rT+0UyAOXwegr5kV6M5Nj2mc25xfT4XvnfWt/SNWcGko8aOL BiDLdlw6BVa9hx7tnTtaOy+0E8ukacVZ9U7uZadykB0Iz1OtXiLi45oPjMKs0A6Mfpuf J4+3wsIQ1bgVA2rBSnVmETCTb6zJDWkFfigMJHK0eoIGpu3YvZ0xZM162U0UTsrbDz1I MeH4gmh/6X8EfEDCaa1HAW5GwByZpdFwVCQDexo7nkXnjh6kMo+aG+8Go3WdC5V+F+Po SiRx+IQhv/R0Ez9VAlUi3obqNZEIQzQQcCjHINB3ktaTJccb2+p4DOIYTT8Ccv7/L1sn rudg== ARC-Authentication-Results: i=1; mx.google.com; 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 jz19-20020a170906bb1300b006e875262481si19686803ejb.936.2022.04.26.13.23.29; Tue, 26 Apr 2022 13:23:53 -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; 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 S1345060AbiDZIfe (ORCPT + 99 others); Tue, 26 Apr 2022 04:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243337AbiDZIdq (ORCPT ); Tue, 26 Apr 2022 04:33:46 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C9A13CFC2 for ; Tue, 26 Apr 2022 01:25:38 -0700 (PDT) Received: from [172.16.4.143] (unknown [87.190.40.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 086E861EA1928; Tue, 26 Apr 2022 10:25:35 +0200 (CEST) Message-ID: <44c145a8-cbfd-c8e4-8391-76abb9562f97@molgen.mpg.de> Date: Tue, 26 Apr 2022 10:25:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v5 01/11] aach: arm: mach-hpe: Introduce the HPE GXP architecture Content-Language: en-US To: Nick Hawkins Cc: verdun@hpe.com, joel@jms.id.au, arnd@arndb.de, openbmc@lists.ozlabs.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220421192132.109954-1-nick.hawkins@hpe.com> From: Paul Menzel In-Reply-To: <20220421192132.109954-1-nick.hawkins@hpe.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Dear Nick, Thank you for the patches. Am 21.04.22 um 21:21 schrieb nick.hawkins@hpe.com: > From: Nick Hawkins Type in the prefix: s/aach/arch/. Looking at `git log --oneline arch/arm`, *ARM* or *arm* seems to be commonly used though. > The GXP is the HPE BMC SoC that is used in the majority > of HPE Generation 10 servers. Traditionally the asic will > last multiple generations of server before being replaced. Please mention what kind of documentation (datasheets, …) are available. > In gxp.c we reset the EHCI controller early to boot the asic. Why does the EHCI controller need to be reset? > Info about SoC: > > HPE GXP is the name of the HPE Soc. This SoC is used to implement > many BMC features at HPE. It supports ARMv7 architecture based on > the Cortex A9 core. It is capable of using an AXI bus to which > a memory controller is attached. It has multiple SPI interfaces > to connect boot flash and BIOS flash. It uses a 10/100/1000 MAC > for network connectivity. It has multiple i2c engines to drive > connectivity with a host infrastructure. The initial patches > enable the watchdog and timer enabling the host to be able to > boot. Maybe doe that in separate commits? Please reflow the commit message for 75 characters per line. > Signed-off-by: Nick Hawkins > > --- > v5: > * Fixed version log > v4: > * Removed unecessary code: restart, iomap, init_machine unnecessary > * Reordered Kconfig depends > * Removed SPARSE_IRQ, MULTI_IRQ_HANDLER, IRQ_DOMAIN, PINCTL from > Kconfig > v3: > * Put into proper patchset format > v2: > * No change > --- > arch/arm/Kconfig | 2 ++ > arch/arm/Makefile | 1 + > arch/arm/mach-hpe/Kconfig | 17 +++++++++++++++++ > arch/arm/mach-hpe/Makefile | 1 + > arch/arm/mach-hpe/gxp.c | 16 ++++++++++++++++ > 5 files changed, 37 insertions(+) > create mode 100644 arch/arm/mach-hpe/Kconfig > create mode 100644 arch/arm/mach-hpe/Makefile > create mode 100644 arch/arm/mach-hpe/gxp.c > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 2e8091e2d8a8..13f77eec7c40 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -620,6 +620,8 @@ source "arch/arm/mach-highbank/Kconfig" > > source "arch/arm/mach-hisi/Kconfig" > > +source "arch/arm/mach-hpe/Kconfig" > + > source "arch/arm/mach-imx/Kconfig" > > source "arch/arm/mach-integrator/Kconfig" > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index a2391b8de5a5..97a89023c10f 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -179,6 +179,7 @@ machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge > machine-$(CONFIG_ARCH_GEMINI) += gemini > machine-$(CONFIG_ARCH_HIGHBANK) += highbank > machine-$(CONFIG_ARCH_HISI) += hisi > +machine-$(CONFIG_ARCH_HPE) += hpe > machine-$(CONFIG_ARCH_INTEGRATOR) += integrator > machine-$(CONFIG_ARCH_IOP32X) += iop32x > machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx > diff --git a/arch/arm/mach-hpe/Kconfig b/arch/arm/mach-hpe/Kconfig > new file mode 100644 > index 000000000000..c075248b259e > --- /dev/null > +++ b/arch/arm/mach-hpe/Kconfig > @@ -0,0 +1,17 @@ > +menuconfig ARCH_HPE > + bool "HPE SoC support" > + depends on ARCH_MULTI_V7 > + help > + This enables support for HPE ARM based SoC chips Add a dot/period at the end? > +if ARCH_HPE > + > +config ARCH_HPE_GXP > + bool "HPE GXP SoC" > + depends on ARCH_MULTI_V7 > + select ARM_VIC > + select GENERIC_IRQ_CHIP > + select CLKSRC_MMIO > + help > + Support for GXP SoCs Please elaborate here, maybe copying parts of the commit message, in what servers it is used. > + > +endif > diff --git a/arch/arm/mach-hpe/Makefile b/arch/arm/mach-hpe/Makefile > new file mode 100644 > index 000000000000..8b0a91234df4 > --- /dev/null > +++ b/arch/arm/mach-hpe/Makefile > @@ -0,0 +1 @@ > +obj-$(CONFIG_ARCH_HPE_GXP) += gxp.o > diff --git a/arch/arm/mach-hpe/gxp.c b/arch/arm/mach-hpe/gxp.c > new file mode 100644 > index 000000000000..e2f0c3ae6bd8 > --- /dev/null > +++ b/arch/arm/mach-hpe/gxp.c > @@ -0,0 +1,16 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P.*/ Space before closing comment delimiter. > + > +#include > +#include > + > +static const char * const gxp_board_dt_compat[] = { > + "hpe,gxp", > + NULL, > +}; > + > +DT_MACHINE_START(GXP_DT, "HPE GXP") > + .dt_compat = gxp_board_dt_compat, > + .l2c_aux_val = 0, > + .l2c_aux_mask = 0, > +MACHINE_END Where is the EHCI controller reset? Kind regards, Paul