From patchwork Tue Aug 20 10:34:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver O'Halloran X-Patchwork-Id: 1150014 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46CRyB5lGRz9s00 for ; Tue, 20 Aug 2019 20:35:14 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LIbPtqbZ"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46CRyB45XczDqvg for ; Tue, 20 Aug 2019 20:35:14 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::543; helo=mail-pg1-x543.google.com; envelope-from=oohall@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LIbPtqbZ"; dkim-atps=neutral Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46CRy45ZB9zDqq8 for ; Tue, 20 Aug 2019 20:35:08 +1000 (AEST) Received: by mail-pg1-x543.google.com with SMTP id p3so2986754pgb.9 for ; Tue, 20 Aug 2019 03:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vhGW6OO4sP5PkXq0Q6r7AkKTUoqCksyTyUx3lwDz5sw=; b=LIbPtqbZdgl+9nCx6RaRHTrSmt0NazLnIWTpSmATt3Jjov4D/gRAtuAl6x1Ko8pguF enkBxhUpO3JOHsNLG/0MFPoAjIELMuqg84J2pdRQ1mdSVMqoLQRA4ZdjjBwWR1atbPps KBEQotZ3GvQfvpq5Wmho8l0Sj9cgIN9+bjSzjLZlQXvaiNHgYbnmilB7gzVNV0Osi0UQ +McaGeFvKcTIzT5zLxbjTjyYaXWU2K/8HMfVY4CGm+NpDpcETBxXclyYONH7JaweQCxd weraxdmzJkqehmScd9RMQXwLknXhX8dLKLI3J70auuOyLx04BL58uIcUIWFZsSxsezwn AcdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vhGW6OO4sP5PkXq0Q6r7AkKTUoqCksyTyUx3lwDz5sw=; b=p6IFgbj4vc9AFO85z7/kEY5iyHR0q+rKsCJ7d59Q27uIBC4hquidw+eOJOUoTQIEwp Pc0FpDLbi4OS5MH0ymCqrV+lrzPHimvSMec8sRLqfWnIgEOMRZfWi/lysiyhjnUXXnGW BiQHswmQLr3TFJnGtWWPKwJRLpEnwUdIRM0JFELSaroeC0RCASl+rUYgTq40eI1e2Vq/ qDcTvK4fw0wr4lvhBkaK4clj83rcPWFDGXG3CsSBLZmB6FDxQjuZuaPfS+4c3rQHxsYz PmBprUw7t48eHDxZqOrb65LaFqgQTspajAMPuKi+pJwje45DHp94VKu043WraJHGt/7p woSw== X-Gm-Message-State: APjAAAUmK3Za57myJSV3gZ7PgPQXYvA6QI0u6lgUl03QgQU1N8SS6ZnN Akk/l9Nw3gYOhbgbGC0uk0HRVqi5 X-Google-Smtp-Source: APXvYqxDfOQMbakDtUMSgqbgltpKzke514zRXjpejW+7Fc7uky7GUBsiUIfSAkG9Toq4tPSP1ayHtA== X-Received: by 2002:aa7:8c57:: with SMTP id e23mr18765869pfd.48.1566297305375; Tue, 20 Aug 2019 03:35:05 -0700 (PDT) Received: from wafer.ozlabs.ibm.com.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id r4sm23818032pfl.127.2019.08.20.03.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 03:35:04 -0700 (PDT) From: Oliver O'Halloran To: skiboot@lists.ozlabs.org Date: Tue, 20 Aug 2019 20:34:55 +1000 Message-Id: <20190820103455.30501-1-oohall@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Skiboot] [PATCH] hdata: Add Axone IOHUB support X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" The PEC / PHB mapping is the same on P9P / Axone as it is on Nimbus add it to the HDAT parser so we get PCI. Signed-off-by: Oliver O'Halloran --- hdata/iohub.c | 4 ++++ hdata/spira.h | 1 + 2 files changed, 5 insertions(+) diff --git a/hdata/iohub.c b/hdata/iohub.c index 99c31c0292f4..6921d95ce322 100644 --- a/hdata/iohub.c +++ b/hdata/iohub.c @@ -809,6 +809,10 @@ static void io_parse_fru(const void *sp_iohubs) prlog(PR_INFO, "CEC: Cumulus !\n"); io_add_p9(hub, sp_iohubs); break; + case CECHUB_HUB_AXONE_HOPPER: + prlog(PR_INFO, "CEC: Axone !\n"); + io_add_p9(hub, sp_iohubs); + break; default: prlog(PR_ERR, "CEC: Hub ID 0x%04x unsupported !\n", hub_id); diff --git a/hdata/spira.h b/hdata/spira.h index ce24441ca994..eb5d1ea1b707 100644 --- a/hdata/spira.h +++ b/hdata/spira.h @@ -650,6 +650,7 @@ struct cechub_io_hub { #define CECHUB_HUB_NIMBUS_MONZA 0x0021 /* Nimbus+monza from spec */ #define CECHUB_HUB_NIMBUS_LAGRANGE 0x0022 /* Nimbus+lagrange from spec */ #define CECHUB_HUB_CUMULUS_DUOMO 0x0030 /* cumulus+duomo from spec */ +#define CECHUB_HUB_AXONE_HOPPER 0x0040 /* axone+hopper */ __be32 ec_level; __be32 aff_dom2; /* HDAT < v9.x only */ __be32 aff_dom3; /* HDAT < v9.x only */