From patchwork Thu Feb 27 01:06:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245428 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZK6663Yz9sR4 for ; Thu, 27 Feb 2020 12:07:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=Vj3UJZJk; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZK56dznzDqRp for ; Thu, 27 Feb 2020 12:07:37 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (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 48SZJf4jFWzDqQR for ; Thu, 27 Feb 2020 12:07:14 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=Vj3UJZJk; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJf0bq6z9sRQ; Thu, 27 Feb 2020 12:07:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765634; bh=gcO0DrGMxdpMW++qV8G0BgEtTbeMkpv8qbWOlPWcUpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vj3UJZJkPMhK3mqrjIkVACDWgs3FVWlUDt9tgilnJlfcauWuWX9QbCMBtPHSngB6w VUXLhbkq7KMUKoTqXGaGQN/OWWQOryPYHrBnmcsz3PBYVynIEP1FqnRmJNqmqvXCxD tXzk3evi3C3RGd+CQSRoy+WcCg4F83acteWzs9BBmKOzJHIzz/FERpVpJE7kPcBDOX /4UAoHv7gPUMVIthjpcIHpHUbGsrS7TEs4bIWyM7LBG6KifLpImf+wAY1hE/9NOaGn CHdUlHNhbKt4B9DZjrZCCeNFv+mEguCDPFWcUisAzfpxXyXFG0cEVD4xO/yIZPN/PU 3lSMq8Vl+ScdA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:46 +1100 Message-Id: <20200227010704.145608-2-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 01/19] libsbefifo: Fix compilation error for undefined variable X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libsbefifo/operation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsbefifo/operation.c b/libsbefifo/operation.c index 07d9f64..8717f15 100644 --- a/libsbefifo/operation.c +++ b/libsbefifo/operation.c @@ -60,17 +60,18 @@ static int sbefifo_transport(struct sbefifo_context *sctx, uint8_t *msg, uint32_ int rc; size_t buflen; + buflen = msg_len; rc = sbefifo_write(sctx, msg, buflen); if (rc) { - LOG("write: cmd=%08x, rc=%d\n", cmd, rc); + LOG("write: cmd=%08x, rc=%d\n", be32toh(*(uint32_t *)(msg+4)), rc); return rc; } buflen = *out_len; rc = sbefifo_read(sctx, out, &buflen); if (rc) { - LOG("read: cmd=%08x, buflen=%zu, rc=%d\n", cmd, buflen, rc); + LOG("read: cmd=%08x, buflen=%zu, rc=%d\n", be32toh(*(uint32_t *)(msg+4)), buflen, rc); return rc; } From patchwork Thu Feb 27 01:06:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245424 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 48SZJn6sW3z9sR4 for ; Thu, 27 Feb 2020 12:07:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=c/rurvqU; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZJn2HyrzDqRt for ; Thu, 27 Feb 2020 12:07:21 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJf57gBzDqQS for ; Thu, 27 Feb 2020 12:07:14 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=c/rurvqU; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJf2Q2Tz9sRR; Thu, 27 Feb 2020 12:07:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765634; bh=tBIQ/V3I9loVzWCXk5gpoi4Jkefn6s063hnyJjFWMY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c/rurvqUfMRVLTJ022J5X85pN3Va1k73YNfCz/sR7oLdFwU2O6bcJxKG1CbmRPgnr E+gskecchJ920eGrblkqDGLR4qLiEqIg/eLQzXXAbHx5RgNSlQRozHOkHQr7RpSlyS HUWvISVXKbe4eHCmvFcDVQsTZaUiroAx7YMq5uBqPBf8LvNVq9NxX2u++wLu5IW88O lM/T6W8sXohIRJo+1oJ0k4iZDghYqfJF9Q5uB1w4xg/5qDTEJNmPqng/Anjc95kyHt XuiJQ8SIXxUkvTKSKIC6nTp9Y+tbKpoHHPmECSDpMERUVfvnk0kDvsx2NPDf9Mr0Y8 WfZVnEudc+ROw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:47 +1100 Message-Id: <20200227010704.145608-3-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 02/19] libsbefifo: Use the correct sized pointer X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libsbefifo/cmd_scom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsbefifo/cmd_scom.c b/libsbefifo/cmd_scom.c index bc9b5f9..bb44e5e 100644 --- a/libsbefifo/cmd_scom.c +++ b/libsbefifo/cmd_scom.c @@ -24,7 +24,7 @@ static int sbefifo_scom_get_push(uint64_t addr, uint8_t **buf, uint32_t *buflen) { - uint8_t *msg; + uint32_t *msg; uint32_t nwords, cmd; nwords = 4; @@ -83,7 +83,7 @@ int sbefifo_scom_get(struct sbefifo_context *sctx, uint64_t addr, uint64_t *valu static int sbefifo_scom_put_push(uint64_t addr, uint64_t value, uint8_t **buf, uint32_t *buflen) { - uint8_t *msg; + uint32_t *msg; uint32_t nwords, cmd; nwords = 6; From patchwork Thu Feb 27 01:06:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245426 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZJy6ZhLz9sR4 for ; Thu, 27 Feb 2020 12:07:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=qD5DC9RG; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZJx2196zDqQR for ; Thu, 27 Feb 2020 12:07:29 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJg0FbJzDqQm for ; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=qD5DC9RG; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJf50rzz9sRY; Thu, 27 Feb 2020 12:07:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765634; bh=9nSIIf1Z3lXB9QKNrUWhYXzItHlK/LGmnYFy9E2sT4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qD5DC9RGdNxLVHqbauMCBz7BGRdmD3LJ4OgxTrMMHg//8zlNEGGhBg+FEcKh5WWPx j92unepyZldWCwfNlhYj8v6BfakMI7oB65sk8Ps6PttLNsMzjutssivfA5YlDk7PbD N1BKEmNoRQJg2xcmIvC8JoeaqZf+5d7g++5jxSvmXumyerCnMUsLBAI/ukMdVfo9yP KRV1OpUVFfD8kMv1d93L+zlpoGWnYneFTLgXk0SJuFZagKRsjiF4e/E1LDxejfZjTh /VSG2UjQ1Jsg+m1ddueNr9FHI/lvb+7Mhc0wNPRYSrd005RbwEUhv7Xi63UICH++k8 Vyc+dqLzJaayw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:48 +1100 Message-Id: <20200227010704.145608-4-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 03/19] libpdbg: Add an api to get current backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/dtb.c | 5 +++++ libpdbg/target.h | 1 + 2 files changed, 6 insertions(+) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index dc51334..f14388a 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -290,6 +290,11 @@ bool pdbg_set_backend(enum pdbg_backend backend, const char *backend_option) return true; } +enum pdbg_backend pdbg_get_backend(void) +{ + return pdbg_backend; +} + const char *pdbg_get_backend_option(void) { return pdbg_backend_option; diff --git a/libpdbg/target.h b/libpdbg/target.h index fffdc49..c638fb2 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -79,6 +79,7 @@ extern struct list_head empty_list; extern struct list_head target_classes; struct pdbg_dtb *pdbg_default_dtb(void *system_fdt); +enum pdbg_backend pdbg_get_backend(void); const char *pdbg_get_backend_option(void); bool pdbg_fdt_is_writeable(void *fdt); From patchwork Thu Feb 27 01:06:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245425 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (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 48SZJt66yMz9sPK for ; Thu, 27 Feb 2020 12:07:26 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=hNnYLUfb; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZJt2mdmzDqSC for ; Thu, 27 Feb 2020 12:07:26 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJg2NxyzDqQn for ; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=hNnYLUfb; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJg0Czbz9sR4; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765635; bh=NDGUr9od0JKGNC+y+8MDcQqBJF3z8D71KQ6R+uHj/L4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hNnYLUfbe2Tm/64H8hvlduu8UoHFhljcLaKAjvX9G8cRu6fqGEztOTKPs+Rl102+a CUPl5N47u2xxHQ1dABbAF546q7nzDZ61/Fe1oabSbyEaTkbSe2XiCf5I7gj/gA3A79 D0zJtWbt3XVKrMrFGOJG8BrwNRoYAY8EIH5w5rto2UlgmsLenOF/tGOEgq5phvGLzC NhrWKycUUnGyhD+ENi5OwNpMF8Ncm19//brVf8CgwdvPi36XXQlOFa+51ocZ+TjB15 SssgYTLEMrsACsWSWiuoj4BljS/ZfJ1dJGiSfu+iK514k44nKkPwwNtjGtlF9yhbjN B4kkOzucaY7DQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:49 +1100 Message-Id: <20200227010704.145608-5-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 04/19] libpdbg: Register hwunit drivers per backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" This will allow to load backend specific drivers first. All the drivers are registered with the default backend, so this patch does not change libpdbg behaviour. Signed-off-by: Amitay Isaacs --- libpdbg/adu.c | 4 ++-- libpdbg/bmcfsi.c | 2 +- libpdbg/cfam.c | 8 +++---- libpdbg/cronus.c | 6 ++--- libpdbg/fake.c | 8 +++---- libpdbg/host.c | 2 +- libpdbg/htm.c | 6 ++--- libpdbg/hwunit.c | 31 +++++++++++++++++-------- libpdbg/hwunit.h | 2 +- libpdbg/i2c.c | 2 +- libpdbg/kernel.c | 4 ++-- libpdbg/p8chip.c | 4 ++-- libpdbg/p9_fapi_targets.c | 48 +++++++++++++++++++-------------------- libpdbg/p9chip.c | 6 ++--- libpdbg/sbefifo.c | 8 +++---- 15 files changed, 77 insertions(+), 64 deletions(-) diff --git a/libpdbg/adu.c b/libpdbg/adu.c index df610a7..fe60118 100644 --- a/libpdbg/adu.c +++ b/libpdbg/adu.c @@ -597,6 +597,6 @@ DECLARE_HW_UNIT(p9_adu); __attribute__((constructor)) static void register_adu(void) { - pdbg_hwunit_register(&p8_adu_hw_unit); - pdbg_hwunit_register(&p9_adu_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_adu_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_adu_hw_unit); } diff --git a/libpdbg/bmcfsi.c b/libpdbg/bmcfsi.c index 1d2e304..2639595 100644 --- a/libpdbg/bmcfsi.c +++ b/libpdbg/bmcfsi.c @@ -519,5 +519,5 @@ DECLARE_HW_UNIT(bmcfsi); __attribute__((constructor)) static void register_bmcfsi(void) { - pdbg_hwunit_register(&bmcfsi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &bmcfsi_hw_unit); } diff --git a/libpdbg/cfam.c b/libpdbg/cfam.c index da4c5fc..0b0b6f0 100644 --- a/libpdbg/cfam.c +++ b/libpdbg/cfam.c @@ -353,8 +353,8 @@ DECLARE_HW_UNIT(cfam_hmfsi); __attribute__((constructor)) static void register_cfam(void) { - pdbg_hwunit_register(&fsi_pib_hw_unit); - pdbg_hwunit_register(&p8_opb_hw_unit); - pdbg_hwunit_register(&p8_opb_hmfsi_hw_unit); - pdbg_hwunit_register(&cfam_hmfsi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fsi_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_opb_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_opb_hmfsi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cfam_hmfsi_hw_unit); } diff --git a/libpdbg/cronus.c b/libpdbg/cronus.c index ff8af4c..23d555b 100644 --- a/libpdbg/cronus.c +++ b/libpdbg/cronus.c @@ -219,7 +219,7 @@ DECLARE_HW_UNIT(cronus_sbefifo); __attribute__((constructor)) static void register_cronus(void) { - pdbg_hwunit_register(&cronus_pib_hw_unit); - pdbg_hwunit_register(&cronus_fsi_hw_unit); - pdbg_hwunit_register(&cronus_sbefifo_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cronus_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cronus_fsi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cronus_sbefifo_hw_unit); } diff --git a/libpdbg/fake.c b/libpdbg/fake.c index 82415db..ae02463 100644 --- a/libpdbg/fake.c +++ b/libpdbg/fake.c @@ -90,8 +90,8 @@ DECLARE_HW_UNIT(fake_thread); __attribute__((constructor)) static void register_fake(void) { - pdbg_hwunit_register(&fake_fsi_hw_unit); - pdbg_hwunit_register(&fake_pib_hw_unit); - pdbg_hwunit_register(&fake_core_hw_unit); - pdbg_hwunit_register(&fake_thread_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_fsi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_core_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_thread_hw_unit); } diff --git a/libpdbg/host.c b/libpdbg/host.c index 428c18b..d02b53d 100644 --- a/libpdbg/host.c +++ b/libpdbg/host.c @@ -127,5 +127,5 @@ DECLARE_HW_UNIT(host_pib); __attribute__((constructor)) static void register_host(void) { - pdbg_hwunit_register(&host_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &host_pib_hw_unit); } diff --git a/libpdbg/htm.c b/libpdbg/htm.c index 4d23e82..a259478 100644 --- a/libpdbg/htm.c +++ b/libpdbg/htm.c @@ -1158,7 +1158,7 @@ DECLARE_HW_UNIT(p8_chtm); __attribute__((constructor)) static void register_htm(void) { - pdbg_hwunit_register(&p8_nhtm_hw_unit); - pdbg_hwunit_register(&p9_nhtm_hw_unit); - pdbg_hwunit_register(&p8_chtm_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_nhtm_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_nhtm_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_chtm_hw_unit); } diff --git a/libpdbg/hwunit.c b/libpdbg/hwunit.c index c7ec63d..710c78a 100644 --- a/libpdbg/hwunit.c +++ b/libpdbg/hwunit.c @@ -20,26 +20,28 @@ #include "hwunit.h" #define MAX_HW_UNITS 1024 +#define MAX_BACKENDS 16 -static const struct hw_unit_info *g_hw_unit[MAX_HW_UNITS]; -static int g_hw_unit_count; +static const struct hw_unit_info *g_hw_unit[MAX_BACKENDS][MAX_HW_UNITS]; +static int g_hw_unit_count[MAX_BACKENDS]; -void pdbg_hwunit_register(const struct hw_unit_info *hw_unit) +void pdbg_hwunit_register(enum pdbg_backend backend, const struct hw_unit_info *hw_unit) { - assert(g_hw_unit_count < MAX_HW_UNITS); + assert(g_hw_unit_count[backend] < MAX_HW_UNITS); - g_hw_unit[g_hw_unit_count] = hw_unit; - g_hw_unit_count++; + g_hw_unit[backend][g_hw_unit_count[backend]] = hw_unit; + g_hw_unit_count[backend]++; } -const struct hw_unit_info *pdbg_hwunit_find_compatible(const char *compat) +static const struct hw_unit_info *find_compatible(enum pdbg_backend backend, + const char *compat) { const struct hw_unit_info *p; struct pdbg_target *target; int i; - for (i = 0; i < g_hw_unit_count; i++) { - p = g_hw_unit[i]; + for (i = 0; i < g_hw_unit_count[backend]; i++) { + p = g_hw_unit[backend][i]; target = p->hw_unit; if (!strcmp(target->compatible, compat)) @@ -48,3 +50,14 @@ const struct hw_unit_info *pdbg_hwunit_find_compatible(const char *compat) return NULL; } + +const struct hw_unit_info *pdbg_hwunit_find_compatible(const char *compat) +{ + const struct hw_unit_info *p; + + p = find_compatible(pdbg_get_backend(), compat); + if (!p) + p = find_compatible(PDBG_DEFAULT_BACKEND, compat); + + return p; +} diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h index 2de5972..74b04b2 100644 --- a/libpdbg/hwunit.h +++ b/libpdbg/hwunit.h @@ -31,7 +31,7 @@ struct hw_unit_info { size_t size; }; -void pdbg_hwunit_register(const struct hw_unit_info *hw_unit); +void pdbg_hwunit_register(enum pdbg_backend backend, const struct hw_unit_info *hw_unit); const struct hw_unit_info *pdbg_hwunit_find_compatible(const char *compat); /* diff --git a/libpdbg/i2c.c b/libpdbg/i2c.c index 1a5d089..3d0b80a 100644 --- a/libpdbg/i2c.c +++ b/libpdbg/i2c.c @@ -177,5 +177,5 @@ DECLARE_HW_UNIT(p8_i2c_pib); __attribute__((constructor)) static void register_i2c(void) { - pdbg_hwunit_register(&p8_i2c_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_i2c_pib_hw_unit); } diff --git a/libpdbg/kernel.c b/libpdbg/kernel.c index dbd3586..c4637a7 100644 --- a/libpdbg/kernel.c +++ b/libpdbg/kernel.c @@ -264,6 +264,6 @@ DECLARE_HW_UNIT(kernel_pib); __attribute__((constructor)) static void register_kernel(void) { - pdbg_hwunit_register(&kernel_fsi_hw_unit); - pdbg_hwunit_register(&kernel_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &kernel_fsi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &kernel_pib_hw_unit); } diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c index 1bf71e8..484d77c 100644 --- a/libpdbg/p8chip.c +++ b/libpdbg/p8chip.c @@ -738,6 +738,6 @@ DECLARE_HW_UNIT(p8_core); __attribute__((constructor)) static void register_p8chip(void) { - pdbg_hwunit_register(&p8_thread_hw_unit); - pdbg_hwunit_register(&p8_core_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_thread_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_core_hw_unit); } diff --git a/libpdbg/p9_fapi_targets.c b/libpdbg/p9_fapi_targets.c index 94c58ea..860533e 100644 --- a/libpdbg/p9_fapi_targets.c +++ b/libpdbg/p9_fapi_targets.c @@ -611,28 +611,28 @@ DECLARE_HW_UNIT(p9_pauc); __attribute__((constructor)) static void register_p9_fapi_targets(void) { - pdbg_hwunit_register(&p9_ex_hw_unit); - pdbg_hwunit_register(&p9_mba_hw_unit); - pdbg_hwunit_register(&p9_mcs_hw_unit); - pdbg_hwunit_register(&p9_xbus_hw_unit); - pdbg_hwunit_register(&p9_abus_hw_unit); - pdbg_hwunit_register(&p9_l4_hw_unit); - pdbg_hwunit_register(&p9_eq_hw_unit); - pdbg_hwunit_register(&p9_mca_hw_unit); - pdbg_hwunit_register(&p9_mcbist_hw_unit); - pdbg_hwunit_register(&p9_mi_hw_unit); - pdbg_hwunit_register(&p9_dmi_hw_unit); - pdbg_hwunit_register(&p9_obus_hw_unit); - pdbg_hwunit_register(&p9_obus_brick_hw_unit); - pdbg_hwunit_register(&p9_sbe_hw_unit); - pdbg_hwunit_register(&p9_ppe_hw_unit); - pdbg_hwunit_register(&p9_pec_hw_unit); - pdbg_hwunit_register(&p9_phb_hw_unit); - pdbg_hwunit_register(&p9_mc_hw_unit); - pdbg_hwunit_register(&p9_mem_port_hw_unit); - pdbg_hwunit_register(&p9_nmmu_hw_unit); - pdbg_hwunit_register(&p9_pau_hw_unit); - pdbg_hwunit_register(&p9_iohs_hw_unit); - pdbg_hwunit_register(&p9_fc_hw_unit); - pdbg_hwunit_register(&p9_pauc_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_ex_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mba_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mcs_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_xbus_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_abus_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_l4_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_eq_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mca_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mcbist_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_dmi_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_obus_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_obus_brick_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_sbe_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_ppe_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_pec_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_phb_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mc_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_mem_port_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_nmmu_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_pau_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_iohs_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_fc_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_pauc_hw_unit); } diff --git a/libpdbg/p9chip.c b/libpdbg/p9chip.c index 37cc93b..e9956b0 100644 --- a/libpdbg/p9chip.c +++ b/libpdbg/p9chip.c @@ -611,7 +611,7 @@ DECLARE_HW_UNIT(p9_chiplet); __attribute__((constructor)) static void register_p9chip(void) { - pdbg_hwunit_register(&p9_thread_hw_unit); - pdbg_hwunit_register(&p9_core_hw_unit); - pdbg_hwunit_register(&p9_chiplet_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_thread_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_core_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p9_chiplet_hw_unit); } diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index 7b9a57a..d8a87a7 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -303,8 +303,8 @@ DECLARE_HW_UNIT(kernel_sbefifo); __attribute__((constructor)) static void register_sbefifo(void) { - pdbg_hwunit_register(&kernel_sbefifo_hw_unit); - pdbg_hwunit_register(&sbefifo_chipop_hw_unit); - pdbg_hwunit_register(&sbefifo_mem_hw_unit); - pdbg_hwunit_register(&sbefifo_pba_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &kernel_sbefifo_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chipop_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_mem_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pba_hw_unit); } From patchwork Thu Feb 27 01:06:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245429 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKB3CCDz9sPK for ; Thu, 27 Feb 2020 12:07:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=yPB7POlp; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZK94Fz4zDqRr for ; Thu, 27 Feb 2020 12:07:41 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJg4NmszDqQt for ; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=yPB7POlp; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJg2J80z9sRf; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765635; bh=ib9hbdg0uKFOe9qM6t2YZq44uFZAZ763gm4I306tpAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yPB7POlpaX5lYWI5CYwACax6npC436AmhHEpPufL+2aqvciGxFBDzW1Dzp/NP/BTS OaruVvtfwDJj0eP+ygAlxZlGLI7ejVBFccOHqn0nyJgO9I5WF/8h/K/F5hzB2xXVTM afv93S9Y3UPEs/nw1a2Q9twDu7V8dSuMUkWd4g4ofOYYabwy2XzSHcRh65NQybd0k9 pQnKV01owvVeHqey1VE4saBTexzghb4MagLFxJmtayTNNSea0j3oW2qIFzHStxgTCE ucTpcQg2OT8cNgq5m1ORKdKsu2O0Wh0/QiZfijeWLOJrhVaqEiiiBmfrkox0RNNOR9 Nkrf7PH+BBSZg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:50 +1100 Message-Id: <20200227010704.145608-6-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 05/19] libpdbg: Register fsi drivers with fsi backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/bmcfsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpdbg/bmcfsi.c b/libpdbg/bmcfsi.c index 2639595..2f199fa 100644 --- a/libpdbg/bmcfsi.c +++ b/libpdbg/bmcfsi.c @@ -519,5 +519,5 @@ DECLARE_HW_UNIT(bmcfsi); __attribute__((constructor)) static void register_bmcfsi(void) { - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &bmcfsi_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_FSI, &bmcfsi_hw_unit); } From patchwork Thu Feb 27 01:06:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245430 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKD64s6z9sRR for ; Thu, 27 Feb 2020 12:07:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=kDp5L6EK; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKD5PJ0zDqQS for ; Thu, 27 Feb 2020 12:07:44 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJg5znlzDqQJ for ; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=kDp5L6EK; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJg4RLvz9sPK; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765635; bh=jFohuu2D9DXxfvn5B5xz9wP57KAOyccvKDagGnfM9GU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kDp5L6EKDnnyZgMnvqZMI7Qrx8kuUVhiI9REafb2Fht447rgHMqx7deY4U4WGa9fM 6MpEBijwlXo0BWYgbOo0KEFYFT1rK+BPUptp6tsWftBS75SXPXRou1Ef+K2AL1QDpt LelXdRqlXtcHdmZKS00hpgD9Q3o+UROwrJtGXigl/sTehty17mudFzyFJ3Vd74W86w 4QoYTYgebmVJiHE2jdfTq+4rZMTxH8Q8SPgPa9Gt8na5NDRO8NpZwW4I/1nGhCebYp Al+KZnCD9TBjebFhn8Xsc/bkgS5+0rJbGtEzEw9yEVbxessWXHQb4Ktfa+61Hi1IUD Vquyc1PhmLWLQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:51 +1100 Message-Id: <20200227010704.145608-7-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 06/19] libpdbg: Register i2c driver with i2c backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpdbg/i2c.c b/libpdbg/i2c.c index 3d0b80a..e3d508b 100644 --- a/libpdbg/i2c.c +++ b/libpdbg/i2c.c @@ -177,5 +177,5 @@ DECLARE_HW_UNIT(p8_i2c_pib); __attribute__((constructor)) static void register_i2c(void) { - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_i2c_pib_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_I2C, &p8_i2c_pib_hw_unit); } From patchwork Thu Feb 27 01:06:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKL4Tklz9sR4 for ; Thu, 27 Feb 2020 12:07:50 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=UnvOtXDb; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKL30SzzDqQR for ; Thu, 27 Feb 2020 12:07:50 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJh1C91zDqQS for ; Thu, 27 Feb 2020 12:07:16 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=UnvOtXDb; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJg60N3z9sR4; Thu, 27 Feb 2020 12:07:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765635; bh=GNZyfWUXvRG3/r5hilYxh8IJaJEah96ng78FZp6Oi9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UnvOtXDbVETvKUoJgeReVn6trW/+Ij1pI3gkM1Af2NbcJwPM5THBIkd87FMSSGZ+M 1KxQBRWE+7GlnDHL1BEovgxbpQpP65ryVdE0emNr9RhbnJfBZcF7bfbyX1w5hjqI4p pg3ejURHEwiljXocRgAZATTqQ4y/PS56EguD4Os8t8OxYSDwwSymNn4yoa8VRD6LaL mRHcATw4l8p5YukkU8gzcaW4OP9V8ORKUrz8mArx4+arIKHvlOfG7EIkImDFXpGnW0 rw3ugwmjcBAeS5ndIvv0M+z7gzWqiv+wEG8hCG9W79boHNIukEc5ZvOAov0nqHzvmE XjPORzQnXv7Pg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:52 +1100 Message-Id: <20200227010704.145608-8-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 07/19] libpdbg: Register fake drivers with fake backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/fake.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libpdbg/fake.c b/libpdbg/fake.c index ae02463..64925d4 100644 --- a/libpdbg/fake.c +++ b/libpdbg/fake.c @@ -90,8 +90,8 @@ DECLARE_HW_UNIT(fake_thread); __attribute__((constructor)) static void register_fake(void) { - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_fsi_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_pib_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_core_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_thread_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_fsi_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_pib_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_core_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_thread_hw_unit); } From patchwork Thu Feb 27 01:06:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245432 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKR1xLPz9sPK for ; Thu, 27 Feb 2020 12:07:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=VRZZVmuV; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKQ3T7xzDqQJ for ; Thu, 27 Feb 2020 12:07:54 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJh3Tb3zDqQJ for ; Thu, 27 Feb 2020 12:07:16 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=VRZZVmuV; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJh1HCcz9sRQ; Thu, 27 Feb 2020 12:07:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765636; bh=+tSPq2uy7cQq8ql5IN40GNat8dOO9t5+D4xkWlqbP7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VRZZVmuVdO0ei5M9s/i2YBngV3imn9NklBKgbcG8uM1lGbiSJjp45VGMHkASvdRpF hnhX/UjJXq8BEAkGHh09h0iWiqAO2hLbl6dv36O+7eY3dVI+q0szZtpqRWvzYhn/6S f67noHKINXsFWIo18iDnfE3fWhrxurNqRGOFOiNsEx9YBHsC7wRzPCV4xB+OzB1P64 9HZUi1Tdi6Pr5EdGCurAO4Pwjl+zZ7H46EfxPcb2uOD/ZziCciNJh8vA8zUwS4aDqx CxdQL4vBdSeiZUiqzRee7785BN5LzmNh4sqFqy7xO/nn4Q6SnU7P2jW0QipDh8eDOL MSYxxmNqnilhg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:53 +1100 Message-Id: <20200227010704.145608-9-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 08/19] libpdbg: Register host drivers with host backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpdbg/host.c b/libpdbg/host.c index d02b53d..63a0d5b 100644 --- a/libpdbg/host.c +++ b/libpdbg/host.c @@ -127,5 +127,5 @@ DECLARE_HW_UNIT(host_pib); __attribute__((constructor)) static void register_host(void) { - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &host_pib_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_HOST, &host_pib_hw_unit); } From patchwork Thu Feb 27 01:06:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245433 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKW2HGsz9sPK for ; Thu, 27 Feb 2020 12:07:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=hVzZn+w1; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKV6QTGzDqR0 for ; Thu, 27 Feb 2020 12:07:58 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJh50Q3zDqQR for ; Thu, 27 Feb 2020 12:07:16 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=hVzZn+w1; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJh3WHTz9sPK; Thu, 27 Feb 2020 12:07:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765636; bh=YAN57/iJdHcTcU8j/JFGrW0+vB4+QHpgxzpNLiSonJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hVzZn+w1jcSBRnTfwJBYbAjJMsOfAo0Zs4qsKjrRwaC1XeHSVCFcuuYfKYeQlM1oR 4rwm3BAoXBznf99IuQq0cV9LIv8lBeMz4JIasT3Ikl6EH/DbfP1a+bozYE2S+2EJJd elNb5fO+eD64spkaCVorOxK55PXxh3GX8NG9v1JQivIxfHJVmXLJXRh10nSCu7FPIe Pp6pMHXzqk/CIoiF1Jw1+5My2ZrvEouf24RvS+uOUQx8hnj/8Z7jtQSoczrLULV95q qeNJPNg1KMOIVZxfSJVmY9sNyulFWThZRGjkLdmz2jADZyh4F0zl0QARrBWP4tuRv5 DTgfHFNqTpwtQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:54 +1100 Message-Id: <20200227010704.145608-10-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 09/19] libpdbg: Register cronus drivers with cronus backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/cronus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libpdbg/cronus.c b/libpdbg/cronus.c index 23d555b..eeaedc5 100644 --- a/libpdbg/cronus.c +++ b/libpdbg/cronus.c @@ -219,7 +219,7 @@ DECLARE_HW_UNIT(cronus_sbefifo); __attribute__((constructor)) static void register_cronus(void) { - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cronus_pib_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cronus_fsi_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &cronus_sbefifo_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_CRONUS, &cronus_pib_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_CRONUS, &cronus_fsi_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_CRONUS, &cronus_sbefifo_hw_unit); } From patchwork Thu Feb 27 01:06:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245434 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKZ5Cm4z9sRQ for ; Thu, 27 Feb 2020 12:08:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=u5WmOoKg; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKZ404DzDqSC for ; Thu, 27 Feb 2020 12:08:02 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJj09Q4zDqQJ for ; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=u5WmOoKg; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJh54X2z9sR4; Thu, 27 Feb 2020 12:07:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765636; bh=Nd3Uxfpr27xwkhYwZj3jVLCyo7yKiwZYJe4+0e/eZWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u5WmOoKgVd8ZulGP8jFR1lbDcJoP/Pd62WDI/nRekpHN7ySmG1cwpV0FVs3SSFav1 j9Rgm0VYLus/ffJGBCJW5lAHzBobuK3g2T9C0EPFQLX/K14t1XbuWgu6gxMtQEbbyU l2AjAl9j8qsi6/Pq7t6tk7yZwbG+XyTrvUQdVnrDiCue19TZBLumMRrcS/ooxqWDGO HdH4CH9YWEUN2a+sx6LWT3WSvQAv713OebMPuSYDFpy2Z6QfYM2u81YTvnQVmai3jt jHs/psSYkbrV79VwCiBKSlU/uV9Frz72QoF3HQji6feBhLRSxuKPxKf6nbrKq9f09o 7DgyA1oJ/SKXQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:55 +1100 Message-Id: <20200227010704.145608-11-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 10/19] libpdbg: Add pib driver using sbefifo X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/sbefifo.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index d8a87a7..486d15e 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -221,6 +221,22 @@ static int sbefifo_op_thread_sreset(struct chipop *chipop, return sbefifo_op_control(chipop, core_id, thread_id, SBEFIFO_INSN_OP_SRESET); } +static int sbefifo_pib_read(struct pib *pib, uint64_t addr, uint64_t *val) +{ + struct sbefifo *sbefifo = target_to_sbefifo(pib->target.parent); + struct sbefifo_context *sctx = sbefifo->get_sbefifo_context(sbefifo); + + return sbefifo_scom_get(sctx, addr, val); +} + +static int sbefifo_pib_write(struct pib *pib, uint64_t addr, uint64_t val) +{ + struct sbefifo *sbefifo = target_to_sbefifo(pib->target.parent); + struct sbefifo_context *sctx = sbefifo->get_sbefifo_context(sbefifo); + + return sbefifo_scom_put(sctx, addr, val); +} + static struct sbefifo_context *sbefifo_op_get_context(struct sbefifo *sbefifo) { return sbefifo->sf_ctx; @@ -288,6 +304,18 @@ static struct chipop sbefifo_chipop = { }; DECLARE_HW_UNIT(sbefifo_chipop); +static struct pib sbefifo_pib = { + .target = { + .name = "SBE FIFO Chip-op based PIB", + .compatible = "ibm,sbefifo-pib", + .class = "pib", + }, + .read = sbefifo_pib_read, + .write = sbefifo_pib_write, + .fd = -1, +}; +DECLARE_HW_UNIT(sbefifo_pib); + static struct sbefifo kernel_sbefifo = { .target = { .name = "Kernel based FSI SBE FIFO", @@ -305,6 +333,7 @@ static void register_sbefifo(void) { pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &kernel_sbefifo_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chipop_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pib_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_mem_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pba_hw_unit); } From patchwork Thu Feb 27 01:06:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245435 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKg3nknz9sPK for ; Thu, 27 Feb 2020 12:08:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=g7+zWDeP; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKf6vFxzDqQJ for ; Thu, 27 Feb 2020 12:08:06 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJj27VWzDqQR for ; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=g7+zWDeP; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJj0CxCz9sRR; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765637; bh=3f9ntWJts9hWs/BBvwMvqSvm9+BiDFZ/vN7kZ1SXJdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g7+zWDePM+1Z1lPIZoxZl1VLV2d4eb43QoY7lttjlpBcR2Iz7IalaMHRhW0xY5QEU 7K2z6x/u6NSQ6SatqA/bVX9YWVKOrZuVmvi9d5KQbv/zhTuX2HwbTw21eilHrMFBPx GdNR8P+lvRWWrMdowVQuIe7I/awGL14gHP9DTqnLl48X49/46Xay5HG646VcjviBel 2iKaKSgIY6mu34d1HPCqvSbmkwZT06ZncGSsXC8kSl31JKSHLT6EJVuOGGuu3FFzU9 yzhLxnzDXH1EGpTsA9IRX/gD7MPS+GdQjVb2b/+wskRZWsRXZX+uBM22Wr9HOcCabe MfkGMaAbu9Vdw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:56 +1100 Message-Id: <20200227010704.145608-12-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 11/19] libpdbg: Add chiplet driver using sbefifo X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/sbefifo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index 486d15e..f703f94 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -316,6 +316,15 @@ static struct pib sbefifo_pib = { }; DECLARE_HW_UNIT(sbefifo_pib); +static struct chiplet sbefifo_chiplet = { + .target = { + .name = "SBE FIFO Chip-op based Chiplet", + .compatible = "ibm,sbefifo-chiplet", + .class = "chiplet", + }, +}; +DECLARE_HW_UNIT(sbefifo_chiplet); + static struct sbefifo kernel_sbefifo = { .target = { .name = "Kernel based FSI SBE FIFO", @@ -334,6 +343,7 @@ static void register_sbefifo(void) pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &kernel_sbefifo_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chipop_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pib_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chiplet_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_mem_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pba_hw_unit); } From patchwork Thu Feb 27 01:06:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245436 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKk3Wdgz9sRQ for ; Thu, 27 Feb 2020 12:08:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=nR+xI0nZ; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKk2WwxzDqSC for ; Thu, 27 Feb 2020 12:08:10 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJj3dkxzDqQJ for ; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=nR+xI0nZ; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJj27Wtz9sPK; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765637; bh=VYklZ2w6Sf4W0ugBvq1D8EsBNsSLheruk5+PCN58GKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nR+xI0nZcy5LIixj2vlvfqPfpo0hARLva93b2IhdLrsAtETL2q6Qhp7S608oTX10h Enmtceitk6cZ5yrZHA1fdauFRDXlUhCj6jZV4ZQQrOHqmQZnPj0E8fPyLkhAkMKUUv eOOHC2CRmt9dz4fINVYFkOP4KE/IAEn8w4/vDpfUNX5Hl/RFnHWEfWJvfs/fTKSbz0 qDDqqR2JKwUDxh5y01EICBq9ngiGSKaeLWbiISdr8+d7HV/ryapKZlJLmfyiQoMi+I ibed3S0TkYqDBLTRkadTwlEI9dGwGJC+5KMFwS7pZHcmTIzvRPZmGAykX2IC8yjKdE IJf5KTDvB9Ctw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:57 +1100 Message-Id: <20200227010704.145608-13-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 12/19] libpdbg: Add core driver using sbefifo X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/sbefifo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index f703f94..eeef988 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -325,6 +325,15 @@ static struct chiplet sbefifo_chiplet = { }; DECLARE_HW_UNIT(sbefifo_chiplet); +static struct core sbefifo_core = { + .target = { + .name = "SBE FIFO Chip-op based Core", + .compatible = "ibm,sbefifo-core", + .class = "core", + }, +}; +DECLARE_HW_UNIT(sbefifo_core); + static struct sbefifo kernel_sbefifo = { .target = { .name = "Kernel based FSI SBE FIFO", @@ -344,6 +353,7 @@ static void register_sbefifo(void) pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chipop_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pib_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chiplet_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_core_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_mem_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pba_hw_unit); } From patchwork Thu Feb 27 01:06:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245437 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKn5cDLz9sRQ for ; Thu, 27 Feb 2020 12:08:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=NKM/DGVZ; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKn3s9nzDqQR for ; Thu, 27 Feb 2020 12:08:13 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJj5R3jzDqQS for ; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=NKM/DGVZ; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJj3fS8z9sR4; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765637; bh=EMeCE7XOkOiEWiLkT+Un2fQfJqhswsLszL9bKRMnAhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NKM/DGVZa4LbPH/3fOHKtQRNFgRsPHJsYGO4/AempxFrAPtviFKc70VJT2IMkur0h H1yEaFq1/ps5rti8RBmzihCFtKNRfB8NSS8U+9RRXybQfwtoFBVymKD5NVbXPx/K6S MH1MFtU9fC4uuZmZyaeK5Ed/Zdpwhf0unYdLz6wr19Eye9ojRz3NIlkSZ3A5/tGcMP 8Azx5QaINNUlbZKxRJGc4tydfWC2gVSKqYeDkQU/9w/9Kek8aIIfgfUdWyKT1YU+2F 5HNE/f/ZIZABYx4NjYaJEzbLhhmDvUP0oJbPmyYJlsBT2mIOGDKBbWa40TyID9I1r8 T5Ua0tDonhxuw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:58 +1100 Message-Id: <20200227010704.145608-14-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 13/19] libpdbg: Add thread driver using sbefifo X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/sbefifo.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index eeef988..0236058 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -237,6 +237,65 @@ static int sbefifo_pib_write(struct pib *pib, uint64_t addr, uint64_t val) return sbefifo_scom_put(sctx, addr, val); } +static int sbefifo_thread_probe(struct pdbg_target *target) +{ + struct thread *thread = target_to_thread(target); + uint32_t tid; + + assert(!pdbg_target_u32_property(target, "tid", &tid)); + thread->id = tid; + + return 0; +} + +static void sbefifo_thread_release(struct pdbg_target *target) +{ +} + +static int sbefifo_thread_op(struct thread *thread, uint32_t oper) +{ + struct pdbg_target *core = pdbg_target_require_parent("core", &thread->target); + struct sbefifo *sbefifo = target_to_sbefifo( + pdbg_target_require_parent("sbefifo", &thread->target)); + struct sbefifo_context *sctx = sbefifo->get_sbefifo_context(sbefifo); + uint8_t mode = 0; + + /* Enforce special-wakeup for thread stop and sreset */ + if ((oper & 0xf) == SBEFIFO_INSN_OP_STOP || + (oper & 0xf) == SBEFIFO_INSN_OP_SRESET) + mode = 0x2; + + return sbefifo_control_insn(sctx, + pdbg_target_index(core), + thread->id, + oper, + mode); +} +static int sbefifo_thread_start(struct thread *thread) +{ + return sbefifo_thread_op(thread, SBEFIFO_INSN_OP_START); +} + +static int sbefifo_thread_stop(struct thread *thread) +{ + return sbefifo_thread_op(thread, SBEFIFO_INSN_OP_STOP); +} + +static int sbefifo_thread_step(struct thread *thread, int count) +{ + int i, rc; + + for (i = 0; i < count; i++) + rc |= sbefifo_thread_op(thread, SBEFIFO_INSN_OP_STEP); + + return rc; +} + +static int sbefifo_thread_sreset(struct thread *thread) +{ + return sbefifo_thread_op(thread, SBEFIFO_INSN_OP_SRESET); +} + static struct sbefifo_context *sbefifo_op_get_context(struct sbefifo *sbefifo) { return sbefifo->sf_ctx; @@ -334,6 +393,21 @@ static struct core sbefifo_core = { }; DECLARE_HW_UNIT(sbefifo_core); +static struct thread sbefifo_thread = { + .target = { + .name = "SBE FFIO Chip-op based Thread", + .compatible = "ibm,sbefifo-thread", + .class = "thread", + .probe = sbefifo_thread_probe, + .release = sbefifo_thread_release, + }, + .start = sbefifo_thread_start, + .stop = sbefifo_thread_stop, + .step = sbefifo_thread_step, + .sreset = sbefifo_thread_sreset, +}; +DECLARE_HW_UNIT(sbefifo_thread); + static struct sbefifo kernel_sbefifo = { .target = { .name = "Kernel based FSI SBE FIFO", @@ -354,6 +428,7 @@ static void register_sbefifo(void) pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pib_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chiplet_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_core_hw_unit); + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_thread_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_mem_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pba_hw_unit); } From patchwork Thu Feb 27 01:06:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245438 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKs0bDbz9sRR for ; Thu, 27 Feb 2020 12:08:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=JeHKhMXd; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKr69RrzDqQn for ; Thu, 27 Feb 2020 12:08:16 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJk0lXCzDqQJ for ; Thu, 27 Feb 2020 12:07:18 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=JeHKhMXd; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJj5VNnz9sRQ; Thu, 27 Feb 2020 12:07:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765637; bh=Qleum+GqaMD7LFOM3wnz4cCNXXHcCX2EDQGZqPU3wuY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JeHKhMXdlhLY8LinQ/anGYTJFNj6s9tbKn192OAJh9d5gpYeuYY3/a/y6q8/ViA// HMuE6WeJs5bwhs3UwvazDOGLpBxY8++3dtMY7eyknLjGGtyzZce5Yo0A1wEEw8rDYD 30663jz6Nf5B4hviYb0zjlWldr1SrSjyTAwZFxc2zuTCQJ1KwklXB/cQq42PAAsJ7H GkLhmNdG4dAcRGYM2ewdNTGKwGbSPi83ANzWHPzeC9RZwGqGWvn/NB2I4LsAkw8n+I XBKckGGiF7alIhJ49K545JLckQFo1u7JU1EKXnRBTMmKhuxAbPpCGqWfs1ToNpyDUq 8pxqA+H0/b4uw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:06:59 +1100 Message-Id: <20200227010704.145608-15-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 14/19] libpdbg: Add all thread procedures to pib target X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/hwunit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h index 74b04b2..3375c71 100644 --- a/libpdbg/hwunit.h +++ b/libpdbg/hwunit.h @@ -87,6 +87,10 @@ struct pib { struct pdbg_target target; int (*read)(struct pib *, uint64_t, uint64_t *); int (*write)(struct pib *, uint64_t, uint64_t); + int (*thread_start_all)(struct pib *); + int (*thread_stop_all)(struct pib *); + int (*thread_step_all)(struct pib *, int); + int (*thread_sreset_all)(struct pib *); void *priv; int fd; }; From patchwork Thu Feb 27 01:07:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245439 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKv0zbYz9sRQ for ; Thu, 27 Feb 2020 12:08:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=VWlyZivX; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKt74WqzDqRv for ; Thu, 27 Feb 2020 12:08:18 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJk2m8XzDqQR for ; Thu, 27 Feb 2020 12:07:18 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=VWlyZivX; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJk0gR6z9sRR; Thu, 27 Feb 2020 12:07:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765638; bh=2tDGqjckltPIBHDVbjIo2zg/NwOE6sipg1ytLbG6FjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VWlyZivXIJs5DIN7naEziORGfLxir/6nYka+JATnJBYsC91wYH/4kNTuBaZsZNHC8 epl8FnfctPw4oGo1ms/0mPAO2bK4QpGfFIjf394D1QYPn4iFcLssEYjp/usQ5AYVdM QB3W6A+9TSEjaPUrCgECjhAcWOqffOKO4ni/UMoIgiaTZLDMsVJ7ZQTv+vndtGr7Nw GPX84hphhdd2ovLe9T4V0q7zGJM5ufGPtW1Hwf/2cKmOoO85OJi785S5RMRtFSkugE wRorR8GWM4hkzMfLgrU7DmvuRs82x4WLUY7QAW4vt/zpsHg044lGK2JeCjWgm05k0B FhQn0gte+mi0w== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:07:00 +1100 Message-Id: <20200227010704.145608-16-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 15/19] libpdbg: Implement all thread procedures using sbefifo X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/sbefifo.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index 0236058..0231b28 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -237,6 +237,53 @@ static int sbefifo_pib_write(struct pib *pib, uint64_t addr, uint64_t val) return sbefifo_scom_put(sctx, addr, val); } +static int sbefifo_pib_thread_op(struct pib *pib, uint32_t oper) +{ + struct sbefifo *sbefifo = target_to_sbefifo(pib->target.parent); + struct sbefifo_context *sctx = sbefifo->get_sbefifo_context(sbefifo); + uint32_t core_id, thread_id; + uint8_t mode = 0; + + /* + * core_id = 0xff (all SMT4 cores) + * thread_id = 0xf (all 4 threads in the SMT4 core) + */ + core_id = 0xff; + thread_id = 0xf; + + /* Enforce special-wakeup for thread stop and sreset */ + if ((oper & 0xf) == SBEFIFO_INSN_OP_STOP || + (oper & 0xf) == SBEFIFO_INSN_OP_SRESET) + mode = 0x2; + + return sbefifo_control_insn(sctx, core_id, thread_id, oper, mode); +} + +static int sbefifo_pib_thread_start(struct pib *pib) +{ + return sbefifo_pib_thread_op(pib, SBEFIFO_INSN_OP_START); +} + +static int sbefifo_pib_thread_stop(struct pib *pib) +{ + return sbefifo_pib_thread_op(pib, SBEFIFO_INSN_OP_STOP); +} + +static int sbefifo_pib_thread_step(struct pib *pib, int count) +{ + int i, rc = 0; + + for (i = 0; i < count; i++) + rc |= sbefifo_pib_thread_op(pib, SBEFIFO_INSN_OP_STEP); + + return rc; +} + +static int sbefifo_pib_thread_sreset(struct pib *pib) +{ + return sbefifo_pib_thread_op(pib, SBEFIFO_INSN_OP_SRESET); +} + static int sbefifo_thread_probe(struct pdbg_target *target) { struct thread *thread = target_to_thread(target); @@ -371,6 +418,10 @@ static struct pib sbefifo_pib = { }, .read = sbefifo_pib_read, .write = sbefifo_pib_write, + .thread_start_all = sbefifo_pib_thread_start, + .thread_stop_all = sbefifo_pib_thread_stop, + .thread_step_all = sbefifo_pib_thread_step, + .thread_sreset_all = sbefifo_pib_thread_sreset, .fd = -1, }; DECLARE_HW_UNIT(sbefifo_pib); From patchwork Thu Feb 27 01:07:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245440 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZKz2218z9sR4 for ; Thu, 27 Feb 2020 12:08:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=WJ6WDxce; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZKy1rkkzDqSm for ; Thu, 27 Feb 2020 12:08:22 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJk5J6KzDqQJ for ; Thu, 27 Feb 2020 12:07:18 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=WJ6WDxce; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJk2pjYz9sPK; Thu, 27 Feb 2020 12:07:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765638; bh=pQo0EU0lAESEXmZ6fyLP6EjZ3KmOQuvCoUDGPrBi8qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WJ6WDxceAO1buMtWRxSdtRWl5lxal06+jVSJCRWLKAOQkOlM9jzvJqcHuI0FhBBFE gc52fYACkBVvNknFUixuRf93/Dh1ZGnzzBlCO7T/UtRW8kMmRNMg1sl7iKm2Z9Fw1c J+A5MOPiV4tRKRRtdP3vZIddK0so1Naljq8Nr7rgEkmMJNv4Z9MRg7jtcSFcI4MOpt XyXSCj1Bvg3e0Spx85qdPe65AW1JYCrRCmQS5nsOwF5G0Uq62+C815NOTnrwPcca6P v2RsdKC6VBg9q7Z1Ojx4q5cFhd4Lp/lQG8I+wzCCU24TP5/ykkNSFNbylrQMxk/TUh Ni2mA2paWjmpw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:07:01 +1100 Message-Id: <20200227010704.145608-17-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 16/19] libpdbg: Remove special case thread procedures using sbefifo X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Always check if the all thread procedures are provided by pib. If not, use individual thread operations. Signed-off-by: Amitay Isaacs --- libpdbg/chip.c | 60 +++++++++++++++++--------------------------------- 1 file changed, 20 insertions(+), 40 deletions(-) diff --git a/libpdbg/chip.c b/libpdbg/chip.c index 908b20d..5bbbc47 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -156,21 +156,16 @@ int thread_sreset(struct pdbg_target *thread_target) int thread_step_all(void) { - struct pdbg_target *pib, *thread; + struct pdbg_target *target, *thread; int rc = 0, count = 0; - pdbg_for_each_class_target("pib", pib) { - struct chipop *chipop; + pdbg_for_each_class_target("pib", target) { + struct pib *pib = target_to_pib(target); - chipop = pib_to_chipop(pib); - if (!chipop) + if (!pib->thread_step_all) break; - /* - * core_id = 0xff (all SMT4 cores) - * thread_id = 0xf (all 4 threads in the SMT4 core) - */ - rc |= chipop->thread_step(chipop, 0xff, 0xf); + rc |= pib->thread_step_all(pib, 1); count++; } @@ -189,21 +184,16 @@ int thread_step_all(void) int thread_start_all(void) { - struct pdbg_target *pib, *thread; + struct pdbg_target *target, *thread; int rc = 0, count = 0; - pdbg_for_each_class_target("pib", pib) { - struct chipop *chipop; + pdbg_for_each_class_target("pib", target) { + struct pib *pib = target_to_pib(target); - chipop = pib_to_chipop(pib); - if (!chipop) + if (!pib->thread_start_all) break; - /* - * core_id = 0xff (all SMT4 cores) - * thread_id = 0xf (all 4 threads in the SMT4 core) - */ - rc |= chipop->thread_start(chipop, 0xff, 0xf); + rc |= pib->thread_start_all(pib); count++; } @@ -222,21 +212,16 @@ int thread_start_all(void) int thread_stop_all(void) { - struct pdbg_target *pib, *thread; + struct pdbg_target *target, *thread; int rc = 0, count = 0; - pdbg_for_each_class_target("pib", pib) { - struct chipop *chipop; + pdbg_for_each_class_target("pib", target) { + struct pib *pib = target_to_pib(target); - chipop = pib_to_chipop(pib); - if (!chipop) + if (!pib->thread_stop_all) break; - /* - * core_id = 0xff (all SMT4 cores) - * thread_id = 0xf (all 4 threads in the SMT4 core) - */ - rc |= chipop->thread_stop(chipop, 0xff, 0xf); + rc |= pib->thread_stop_all(pib); count++; } @@ -255,21 +240,16 @@ int thread_stop_all(void) int thread_sreset_all(void) { - struct pdbg_target *pib, *thread; + struct pdbg_target *target, *thread; int rc = 0, count = 0; - pdbg_for_each_class_target("pib", pib) { - struct chipop *chipop; + pdbg_for_each_class_target("pib", target) { + struct pib *pib = target_to_pib(target); - chipop = pib_to_chipop(pib); - if (!chipop) + if (!pib->thread_sreset_all) break; - /* - * core_id = 0xff (all SMT4 cores) - * thread_id = 0xf (all 4 threads in the SMT4 core) - */ - rc |= chipop->thread_sreset(chipop, 0xff, 0xf); + rc |= pib->thread_sreset_all(pib); count++; } From patchwork Thu Feb 27 01:07:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245441 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZL140Zxz9sR4 for ; Thu, 27 Feb 2020 12:08:25 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=qOSx827C; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZL11n3nzDqSC for ; Thu, 27 Feb 2020 12:08:25 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJl0LxJzDqQR for ; Thu, 27 Feb 2020 12:07:19 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=qOSx827C; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJk5J6Dz9sR4; Thu, 27 Feb 2020 12:07:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765638; bh=dWILvTOudxoOWMPIALTiVb9b0KUT+2TEy1otIIADGw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qOSx827CSWAq8ub3+LKNzWIwy1pGeytveFc/NIFzac3NSUrON1lvxxw/erc4gQG63 yConfaAGAxT5IOO1GSVqKev9OshAuOEeyYZuv7m+d1d1K2MB+OPgddOBl1TcM0fMdF CwIsQnB5BVaUhsIwbRaZMVeVusLjk3FwngvZI9hWnWzdJM/+X5rznPWIzNav75gjL+ +KtANesDH2OIBxfaiREy+KAXptW/ed9jByYW+XedFsPut7GGQKLdrpXTb3QgpFk3JB aPVHUJRTRGTWsQ7BkK69k0QzHcPVOTU3egWpGru9iBP+160woUZQarCjJuQHHWbiDM Jqj8QHK8+NzIw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:07:02 +1100 Message-Id: <20200227010704.145608-18-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 17/19] libpdbg: Drop thread procedures from chipop target X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/hwunit.h | 4 ---- libpdbg/sbefifo.c | 46 ---------------------------------------------- 2 files changed, 50 deletions(-) diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h index 3375c71..91cee73 100644 --- a/libpdbg/hwunit.h +++ b/libpdbg/hwunit.h @@ -69,10 +69,6 @@ struct chipop { struct pdbg_target target; uint32_t (*ffdc_get)(struct chipop *, const uint8_t **, uint32_t *); int (*istep)(struct chipop *, uint32_t major, uint32_t minor); - int (*thread_start)(struct chipop *, uint32_t core_id, uint32_t thread_id); - int (*thread_stop)(struct chipop *, uint32_t core_id, uint32_t thread_id); - int (*thread_step)(struct chipop *, uint32_t core_id, uint32_t thread_id); - int (*thread_sreset)(struct chipop *, uint32_t core_id, uint32_t thread_id); }; #define target_to_chipop(x) container_of(x, struct chipop, target) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index 0231b28..efbf72d 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -179,48 +179,6 @@ static int sbefifo_op_istep(struct chipop *chipop, return sbefifo_istep_execute(sctx, major & 0xff, minor & 0xff); } -static int sbefifo_op_control(struct chipop *chipop, - uint32_t core_id, uint32_t thread_id, - uint32_t oper) -{ - struct sbefifo *sbefifo = target_to_sbefifo(chipop->target.parent); - struct sbefifo_context *sctx = sbefifo->get_sbefifo_context(sbefifo); - uint8_t mode = 0; - - /* Enforce special-wakeup for thread stop and sreset */ - if ((oper & 0xf) == SBEFIFO_INSN_OP_STOP || - (oper & 0xf) == SBEFIFO_INSN_OP_SRESET) - mode = 0x2; - - PR_NOTICE("sbefifo: control c:0x%x, t:0x%x, op:%u mode:%u\n", core_id, thread_id, oper, mode); - - return sbefifo_control_insn(sctx, core_id & 0xff, thread_id & 0xff, oper & 0xff, mode); -} - -static int sbefifo_op_thread_start(struct chipop *chipop, - uint32_t core_id, uint32_t thread_id) -{ - return sbefifo_op_control(chipop, core_id, thread_id, SBEFIFO_INSN_OP_START); -} - -static int sbefifo_op_thread_stop(struct chipop *chipop, - uint32_t core_id, uint32_t thread_id) -{ - return sbefifo_op_control(chipop, core_id, thread_id, SBEFIFO_INSN_OP_STOP); -} - -static int sbefifo_op_thread_step(struct chipop *chipop, - uint32_t core_id, uint32_t thread_id) -{ - return sbefifo_op_control(chipop, core_id, thread_id, SBEFIFO_INSN_OP_STEP); -} - -static int sbefifo_op_thread_sreset(struct chipop *chipop, - uint32_t core_id, uint32_t thread_id) -{ - return sbefifo_op_control(chipop, core_id, thread_id, SBEFIFO_INSN_OP_SRESET); -} - static int sbefifo_pib_read(struct pib *pib, uint64_t addr, uint64_t *val) { struct sbefifo *sbefifo = target_to_sbefifo(pib->target.parent); @@ -403,10 +361,6 @@ static struct chipop sbefifo_chipop = { }, .ffdc_get = sbefifo_op_ffdc_get, .istep = sbefifo_op_istep, - .thread_start = sbefifo_op_thread_start, - .thread_stop = sbefifo_op_thread_stop, - .thread_step = sbefifo_op_thread_step, - .thread_sreset = sbefifo_op_thread_sreset, }; DECLARE_HW_UNIT(sbefifo_chipop); From patchwork Thu Feb 27 01:07:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245442 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZL41GfTz9sRQ for ; Thu, 27 Feb 2020 12:08:28 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=HxfJ3jpY; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZL372yCzDqRt for ; Thu, 27 Feb 2020 12:08:27 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJl2Zf3zDqQJ for ; Thu, 27 Feb 2020 12:07:19 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=HxfJ3jpY; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJl0KZjz9sRQ; Thu, 27 Feb 2020 12:07:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765639; bh=Ck5VyzBrz648hm0T0xC4EgrbVTv8KHTuA23QKLzlE6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HxfJ3jpYGQo5MiyjX/LfMmCXnjwNkuDMIoHRotfe0JBzqZ1bIBEXLc5ddOVnCOeNj uK6qaxf636cC5Wer0JbITmbnmobfaDdqbL5japjVTGOJP+B8n5eYJPLKPkWwvcGlWw vaxBhxYNeFOPpKuvK25X1tOUOzpxlDsXCFCtPsWMn6SebZXDG0YCBfcoyIxy7UrPXc u2yXxQ1QtO1Dh1c0e1jj8zwZ7RD+ci4WpSWApL/Z134L4f/yArPYUrpO76Nubt62PM Eo26QcDoODAYmBeldkCPqRgBZwMKB3+wKuOVAxz3pMxXu6OtZstO9cuEqbm8SLfN+6 2w2CBvXSJ0d2Q== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:07:03 +1100 Message-Id: <20200227010704.145608-19-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 18/19] libpdbg: Add sbefifo backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- Makefile.am | 1 + libpdbg/dtb.c | 19 ++ libpdbg/libpdbg.h | 7 +- libpdbg/sbefifo.c | 8 +- p9-sbefifo.dts.m4 | 86 ++++++ p9.dts | 654 +++++++++++++++++++++++----------------------- 6 files changed, 443 insertions(+), 332 deletions(-) create mode 100644 p9-sbefifo.dts.m4 diff --git a/Makefile.am b/Makefile.am index a4ca5f3..6b0a415 100644 --- a/Makefile.am +++ b/Makefile.am @@ -77,6 +77,7 @@ endif DT = fake.dts fake2.dts p8-cronus.dts p9-cronus.dts \ p8-fsi.dts p8-i2c.dts p8-kernel.dts \ p9w-fsi.dts p9r-fsi.dts p9z-fsi.dts p9-kernel.dts \ + p9-sbefifo.dts \ p8-host.dts p9-host.dts p8.dts DT_sources = $(DT:.dts=.dtb.S) p9.dtb.S diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index f14388a..33e455c 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -43,6 +43,7 @@ #include "p9-host.dt.h" #include "p8-cronus.dt.h" #include "p9-cronus.dt.h" +#include "p9-sbefifo.dt.h" #include "p8.dt.h" #include "p9.dt.h" @@ -399,6 +400,24 @@ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) } break; + case PDBG_BACKEND_SBEFIFO: + if (!pdbg_backend_option) { + pdbg_log(PDBG_ERROR, "No system type specified\n"); + pdbg_log(PDBG_ERROR, "Use p9\n"); + return NULL; + } + + if (!strcmp(pdbg_backend_option, "p9")) { + if (!dtb->backend.fdt) + dtb->backend.fdt = &_binary_p9_sbefifo_dtb_o_start; + if (!dtb->system.fdt) + dtb->system.fdt = &_binary_p9_dtb_o_start; + } else { + pdbg_log(PDBG_ERROR, "Invalid system type %s\n", pdbg_backend_option); + pdbg_log(PDBG_ERROR, "Use p9\n"); + } + break; + default: pdbg_log(PDBG_WARNING, "Unable to determine a valid default backend, using fake backend for testing purposes\n"); /* Fall through */ diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index 1fc7ef4..86f27d2 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -142,7 +142,6 @@ enum pdbg_target_status { PDBG_TARGET_RELEASED, }; - /** * @brief Describes the various methods (referred to as backends) for * accessing hardware depending on where the code is executed. @@ -197,6 +196,12 @@ enum pdbg_backend { * the BMC network address / hostname. For example p9@spoon2-bmc. */ PDBG_BACKEND_CRONUS, + + /** + * This backend uses sbefifo kernel driver on BMC to access hardware + * via SBE. + */ + PDBG_BACKEND_SBEFIFO, }; /** diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index efbf72d..96781cb 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -430,10 +430,10 @@ static void register_sbefifo(void) { pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &kernel_sbefifo_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chipop_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pib_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_chiplet_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_core_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_thread_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_SBEFIFO, &sbefifo_pib_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_SBEFIFO, &sbefifo_chiplet_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_SBEFIFO, &sbefifo_core_hw_unit); + pdbg_hwunit_register(PDBG_BACKEND_SBEFIFO, &sbefifo_thread_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_mem_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &sbefifo_pba_hw_unit); } diff --git a/p9-sbefifo.dts.m4 b/p9-sbefifo.dts.m4 new file mode 100644 index 0000000..48b3051 --- /dev/null +++ b/p9-sbefifo.dts.m4 @@ -0,0 +1,86 @@ +/dts-v1/; + +/ { + #address-cells = <0x1>; + #size-cells = <0x0>; + + fsi0: kernelfsi@0 { + #address-cells = <0x2>; + #size-cells = <0x1>; + compatible = "ibm,kernel-fsi"; + reg = <0x0 0x0 0x0>; + index = <0x0>; + status = "mustexist"; + system-path = "/proc0/fsi"; + + sbefifo@2400 { /* Bogus address */ + reg = <0x0 0x2400 0x7>; + index = <0x0>; + compatible = "ibm,kernel-sbefifo"; + device-path = "/dev/sbefifo1"; + + sbefifo-pib { + #address-cells = <0x2>; + #size-cells = <0x1>; + index = <0x0>; + compatible = "ibm,sbefifo-pib"; + system-path = "/proc0/pib"; + }; + + sbefifo-mem { + compatible = "ibm,sbefifo-mem"; + system-path = "/mem0"; + }; + + sbefifo-pba { + compatible = "ibm,sbefifo-mem-pba"; + system-path = "/mempba0"; + }; + + sbefifo-chipop { + compatible = "ibm,sbefifo-chipop"; + index = <0x0>; + }; + }; + + hmfsi@100000 { + #address-cells = <0x2>; + #size-cells = <0x1>; + compatible = "ibm,fsi-hmfsi"; + reg = <0x0 0x100000 0x8000>; + port = <0x1>; + index = <0x1>; + system-path = "/proc1/fsi"; + + sbefifo@2400 { /* Bogus address */ + reg = <0x0 0x2400 0x7>; + index = <0x1>; + compatible = "ibm,kernel-sbefifo"; + device-path = "/dev/sbefifo2"; + + sbefifo-pib { + #address-cells = <0x2>; + #size-cells = <0x1>; + index = <0x1>; + compatible = "ibm,sbefifo-pib"; + system-path = "/proc1/pib"; + }; + + sbefifo-mem { + compatible = "ibm,sbefifo-mem"; + system-path = "/mem1"; + }; + + sbefifo-pba { + compatible = "ibm,sbefifo-mem-pba"; + system-path = "/mempba1"; + }; + + sbefifo-chipop { + compatible = "ibm,sbefifo-chipop"; + index = <0x1>; + }; + }; + }; + }; +}; diff --git a/p9.dts b/p9.dts index ffbc44e..b917b03 100644 --- a/p9.dts +++ b/p9.dts @@ -37,7 +37,7 @@ }; chiplet@1000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x01 >; reg = < 0x00 0x1000000 0xfffff >; #address-cells = < 0x02 >; @@ -51,7 +51,7 @@ }; chiplet@2000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x02 >; reg = < 0x00 0x2000000 0xfffff >; @@ -67,7 +67,7 @@ }; chiplet@3000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x03 >; reg = < 0x00 0x3000000 0xfffff >; @@ -83,7 +83,7 @@ }; chiplet@4000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x04 >; reg = < 0x00 0x4000000 0xfffff >; @@ -99,7 +99,7 @@ }; chiplet@5000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x05 >; reg = < 0x00 0x5000000 0xfffff >; @@ -115,7 +115,7 @@ }; chiplet@6000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x06 >; reg = < 0x00 0x6000000 0xfffff >; #address-cells = < 0x02 >; @@ -130,7 +130,7 @@ }; chiplet@7000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x07 >; reg = < 0x00 0x7000000 0xfffff >; #address-cells = < 0x02 >; @@ -169,7 +169,7 @@ }; chiplet@8000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x08 >; reg = < 0x00 0x8000000 0xfffff >; #address-cells = < 0x02 >; @@ -208,7 +208,7 @@ }; chiplet@9000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x09 >; reg = < 0x00 0x9000000 0xfffff >; #address-cells = < 0x02 >; @@ -222,7 +222,7 @@ }; chiplet@c000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0c >; reg = < 0x00 0xc000000 0xfffff >; #address-cells = < 0x02 >; @@ -236,25 +236,25 @@ }; chiplet@d000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0d >; reg = < 0x00 0xd000000 0xfffff >; }; chiplet@e000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0e >; reg = < 0x00 0xe000000 0xfffff >; }; chiplet@f000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0f >; reg = < 0x00 0xf000000 0xfffff >; }; chiplet@10000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x10 >; reg = < 0x00 0x10000000 0xfffff >; #address-cells = < 0x02 >; @@ -277,40 +277,40 @@ chiplet@20000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x20 >; reg = < 0x00 0x20000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x00 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -321,40 +321,40 @@ chiplet@21000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x21 >; reg = < 0x00 0x21000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x01 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -373,40 +373,40 @@ chiplet@22000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x22 >; reg = < 0x00 0x22000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x02 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -417,40 +417,40 @@ chiplet@23000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x23 >; reg = < 0x00 0x23000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x03 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -462,7 +462,7 @@ }; chiplet@11000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x11 >; reg = < 0x00 0x11000000 0xfffff >; #address-cells = < 0x02 >; @@ -485,40 +485,40 @@ chiplet@24000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x24 >; reg = < 0x00 0x24000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x04 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -529,40 +529,40 @@ chiplet@25000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x25 >; reg = < 0x00 0x25000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x05 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -581,40 +581,40 @@ chiplet@26000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x26 >; reg = < 0x00 0x26000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x06 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -625,40 +625,40 @@ chiplet@27000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x27 >; reg = < 0x00 0x27000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x07 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -670,7 +670,7 @@ }; chiplet@12000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x12 >; reg = < 0x00 0x12000000 0xfffff >; #address-cells = < 0x02 >; @@ -693,40 +693,40 @@ chiplet@28000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x28 >; reg = < 0x00 0x28000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x08 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -737,40 +737,40 @@ chiplet@29000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x29 >; reg = < 0x00 0x29000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x09 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -789,40 +789,40 @@ chiplet@2a000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2a >; reg = < 0x00 0x2a000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0a >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -833,40 +833,40 @@ chiplet@2b000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2b >; reg = < 0x00 0x2b000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0b >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -878,7 +878,7 @@ }; chiplet@13000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x13 >; reg = < 0x00 0x13000000 0xfffff >; #address-cells = < 0x02 >; @@ -901,40 +901,40 @@ chiplet@2c000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2c >; reg = < 0x00 0x2c000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0c >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -945,40 +945,40 @@ chiplet@2d000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2d >; reg = < 0x00 0x2d000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0d >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -997,40 +997,40 @@ chiplet@2e000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2e >; reg = < 0x00 0x2e000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0e >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1041,40 +1041,40 @@ chiplet@2f000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2f >; reg = < 0x00 0x2f000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0f >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1086,7 +1086,7 @@ }; chiplet@14000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x14 >; reg = < 0x00 0x14000000 0xfffff >; #address-cells = < 0x02 >; @@ -1109,40 +1109,40 @@ chiplet@30000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x30 >; reg = < 0x00 0x30000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x10 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1153,40 +1153,40 @@ chiplet@31000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x31 >; reg = < 0x00 0x31000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x11 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1205,40 +1205,40 @@ chiplet@32000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x32 >; reg = < 0x00 0x32000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x12 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1249,40 +1249,40 @@ chiplet@33000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x33 >; reg = < 0x00 0x33000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x13 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1294,7 +1294,7 @@ }; chiplet@15000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x15 >; reg = < 0x00 0x15000000 0xfffff >; #address-cells = < 0x02 >; @@ -1317,40 +1317,40 @@ chiplet@34000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x34 >; reg = < 0x00 0x34000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x14 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1361,40 +1361,40 @@ chiplet@35000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x35 >; reg = < 0x00 0x35000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x15 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1413,40 +1413,40 @@ chiplet@36000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x36 >; reg = < 0x00 0x36000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x16 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1457,40 +1457,40 @@ chiplet@37000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x37 >; reg = < 0x00 0x37000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x17 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1520,7 +1520,7 @@ index = < 0x00 >; adu@90000 { - compatible = "ibm-power9-adu"; + compatible = "ibm,power9-adu"; reg = < 0x00 0x90000 0x50 >; system-path = "/mem1"; }; @@ -1538,7 +1538,7 @@ }; chiplet@1000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x01 >; reg = < 0x00 0x1000000 0xfffff >; #address-cells = < 0x02 >; @@ -1552,7 +1552,7 @@ }; chiplet@2000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x02 >; reg = < 0x00 0x2000000 0xfffff >; @@ -1568,7 +1568,7 @@ }; chiplet@3000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x03 >; reg = < 0x00 0x3000000 0xfffff >; @@ -1584,7 +1584,7 @@ }; chiplet@4000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x04 >; reg = < 0x00 0x4000000 0xfffff >; @@ -1600,7 +1600,7 @@ }; chiplet@5000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x05 >; reg = < 0x00 0x5000000 0xfffff >; @@ -1616,7 +1616,7 @@ }; chiplet@6000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x06 >; reg = < 0x00 0x6000000 0xfffff >; #address-cells = < 0x02 >; @@ -1631,7 +1631,7 @@ }; chiplet@7000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x07 >; reg = < 0x00 0x7000000 0xfffff >; #address-cells = < 0x02 >; @@ -1670,7 +1670,7 @@ }; chiplet@8000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x08 >; reg = < 0x00 0x8000000 0xfffff >; #address-cells = < 0x02 >; @@ -1709,7 +1709,7 @@ }; chiplet@9000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x09 >; reg = < 0x00 0x9000000 0xfffff >; #address-cells = < 0x02 >; @@ -1723,7 +1723,7 @@ }; chiplet@c000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0c >; reg = < 0x00 0xc000000 0xfffff >; #address-cells = < 0x02 >; @@ -1737,25 +1737,25 @@ }; chiplet@d000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0d >; reg = < 0x00 0xd000000 0xfffff >; }; chiplet@e000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0e >; reg = < 0x00 0xe000000 0xfffff >; }; chiplet@f000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x0f >; reg = < 0x00 0xf000000 0xfffff >; }; chiplet@10000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x10 >; reg = < 0x00 0x10000000 0xfffff >; #address-cells = < 0x02 >; @@ -1778,40 +1778,40 @@ chiplet@20000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x20 >; reg = < 0x00 0x20000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x00 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1822,40 +1822,40 @@ chiplet@21000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x21 >; reg = < 0x00 0x21000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x01 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1874,40 +1874,40 @@ chiplet@22000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x22 >; reg = < 0x00 0x22000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x02 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1918,40 +1918,40 @@ chiplet@23000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x23 >; reg = < 0x00 0x23000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x03 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -1963,7 +1963,7 @@ }; chiplet@11000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x11 >; reg = < 0x00 0x11000000 0xfffff >; #address-cells = < 0x02 >; @@ -1986,40 +1986,40 @@ chiplet@24000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x24 >; reg = < 0x00 0x24000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x04 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2030,40 +2030,40 @@ chiplet@25000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x25 >; reg = < 0x00 0x25000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x05 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2082,40 +2082,40 @@ chiplet@26000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x26 >; reg = < 0x00 0x26000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x06 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2126,40 +2126,40 @@ chiplet@27000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x27 >; reg = < 0x00 0x27000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x07 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2171,7 +2171,7 @@ }; chiplet@12000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x12 >; reg = < 0x00 0x12000000 0xfffff >; #address-cells = < 0x02 >; @@ -2194,40 +2194,40 @@ chiplet@28000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x28 >; reg = < 0x00 0x28000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x08 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2238,40 +2238,40 @@ chiplet@29000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x29 >; reg = < 0x00 0x29000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x09 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2290,40 +2290,40 @@ chiplet@2a000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2a >; reg = < 0x00 0x2a000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0a >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2334,40 +2334,40 @@ chiplet@2b000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2b >; reg = < 0x00 0x2b000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0b >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2379,7 +2379,7 @@ }; chiplet@13000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x13 >; reg = < 0x00 0x13000000 0xfffff >; #address-cells = < 0x02 >; @@ -2402,40 +2402,40 @@ chiplet@2c000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2c >; reg = < 0x00 0x2c000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0c >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2446,40 +2446,40 @@ chiplet@2d000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2d >; reg = < 0x00 0x2d000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0d >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2498,40 +2498,40 @@ chiplet@2e000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2e >; reg = < 0x00 0x2e000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0e >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2542,40 +2542,40 @@ chiplet@2f000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x2f >; reg = < 0x00 0x2f000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x0f >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2587,7 +2587,7 @@ }; chiplet@14000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x14 >; reg = < 0x00 0x14000000 0xfffff >; #address-cells = < 0x02 >; @@ -2610,40 +2610,40 @@ chiplet@30000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x30 >; reg = < 0x00 0x30000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x10 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2654,40 +2654,40 @@ chiplet@31000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x31 >; reg = < 0x00 0x31000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x11 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2706,40 +2706,40 @@ chiplet@32000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x32 >; reg = < 0x00 0x32000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x12 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2750,40 +2750,40 @@ chiplet@33000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x33 >; reg = < 0x00 0x33000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x13 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2795,7 +2795,7 @@ }; chiplet@15000000 { - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x15 >; reg = < 0x00 0x15000000 0xfffff >; #address-cells = < 0x02 >; @@ -2818,40 +2818,40 @@ chiplet@34000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x34 >; reg = < 0x00 0x34000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x14 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2862,40 +2862,40 @@ chiplet@35000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x35 >; reg = < 0x00 0x35000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x15 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2914,40 +2914,40 @@ chiplet@36000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x36 >; reg = < 0x00 0x36000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x16 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; @@ -2958,40 +2958,40 @@ chiplet@37000000 { #address-cells = < 0x02 >; #size-cells = < 0x01 >; - compatible = "ibm,power9-chiplet"; + compatible = "ibm,sbefifo-chiplet", "ibm,power9-chiplet"; index = < 0x37 >; reg = < 0x00 0x37000000 0xfffff >; core@0 { #address-cells = < 0x01 >; #size-cells = < 0x00 >; - compatible = "ibm,power9-core"; + compatible = "ibm,sbefifo-core", "ibm,power9-core"; index = < 0x17 >; reg = < 0x00 0x00 0xfffff >; thread@0 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x00 >; index = < 0x00 >; }; thread@1 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x01 >; index = < 0x01 >; }; thread@2 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x02 >; index = < 0x02 >; }; thread@3 { - compatible = "ibm,power9-thread"; + compatible = "ibm,sbefifo-thread", "ibm,power9-thread"; reg = < 0x00 >; tid = < 0x03 >; index = < 0x03 >; From patchwork Thu Feb 27 01:07:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1245443 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48SZL64JXRz9sRQ for ; Thu, 27 Feb 2020 12:08:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=Pc6GGmpo; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48SZL63MRBzDqR3 for ; Thu, 27 Feb 2020 12:08:30 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48SZJl5DztzDqQR for ; Thu, 27 Feb 2020 12:07:19 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=Pc6GGmpo; dkim-atps=neutral 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48SZJl2fT3z9sPK; Thu, 27 Feb 2020 12:07:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1582765639; bh=kkkebF0AG2F9e7sHzoosyL38irvGCXwzE75+B31dydg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pc6GGmpoO4p6Ag37koOvbl0whZTdc5Fz21DoMdBS+0OIpe5xyIeDfhllCCMzj4DeJ ThA4PKNHqGCWNUMYZi75N6+w+vYNym3dXcAF+Ab5t0VIDV8kRz1vooJB7mSw/aov84 NhMfRIWkvNrv5b9fAwm48iXqF80YGCwm02OJt4Hdi8gqNzrVmrHXBgPsxkpf/UiMOS Jf3wrMpPrnpDtacmzTu8jEy2/C90q2U/+JkWR2+Oqi/7NdEaREpWGMkAAixr27VPoX U5+bRdsf+li+8lLkyn9fgIVaN+ha+rxajARQ9Y557Hc/E5wXNx3Gk7qyuByPIzRp6E +u9OCSozaGETw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 27 Feb 2020 12:07:04 +1100 Message-Id: <20200227010704.145608-20-amitay@ozlabs.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200227010704.145608-1-amitay@ozlabs.org> References: <20200227010704.145608-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 19/19] main: Add sbefifo backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 785dc26..5a5616d 100644 --- a/src/main.c +++ b/src/main.c @@ -149,6 +149,7 @@ static void print_usage(void) printf("\t\tRun command on all possible processors/chips/threads (default)\n"); printf("\t-b, --backend=backend\n"); printf("\t\tcronus:\tA backend based on cronus server\n"); + printf("\t\tsbefifo:\tA backend using sbefifo kernel driver\n"); printf("\t\tfsi:\tAn experimental backend that uses\n"); printf("\t\t\tbit-banging to access the host processor\n"); printf("\t\t\tvia the FSI bus.\n"); @@ -392,6 +393,8 @@ static bool parse_options(int argc, char *argv[]) backend = PDBG_BACKEND_HOST; } else if (strcmp(optarg, "cronus") == 0) { backend = PDBG_BACKEND_CRONUS; + } else if (strcmp(optarg, "sbefifo") == 0) { + backend = PDBG_BACKEND_SBEFIFO; } else { fprintf(stderr, "Invalid backend '%s'\n", optarg); opt_error = true;