From patchwork Thu Jul 2 03:39: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: 1320952 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 49y3kN6dqZz9sQt for ; Thu, 2 Jul 2020 13:39:40 +1000 (AEST) 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=b8xE1EYC; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3kN013LzDqpL for ; Thu, 2 Jul 2020 13:39:40 +1000 (AEST) 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 49y3kD4GRmzDqlP for ; Thu, 2 Jul 2020 13:39:32 +1000 (AEST) 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=b8xE1EYC; 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 49y3kD1lKtz9sRN; Thu, 2 Jul 2020 13:39:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661172; bh=6o5T4VoTNVp6i/iz7pFGeac/Udjj4eUVTrYlqR+Tf20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b8xE1EYC/yZgGNkcMu1qVLxz+t6g1RXE4BmGGrTQpxt9KsJ0CfiWC01EEVRPssjJ3 tB4ljPs0uf/bB7wXZXX3TzNF2/OY/2MFG6L9XLGp6CYBZIrqgMQXJCNXgGRBEmQccq +D/fBUbOdDO7a022rJpIR2op1s9upVDcORDp6a+4gBnWQ4Dy4BCaS9Ozy9S980PSzn 7EJR9UCq02wxuPytlrH/oBnHtBVpz60ua2ANX1DxvAzizCn5+Zck5wBOR3SUV2azqk qO9UgisUOZlukei0JM+nKqmC6fJ+yTl+OGwoH8pi1gB5N2ujxCZ8vPfCkeiszjtZ+8 cZOwcK40WIX3A== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:00 +1000 Message-Id: <20200702033918.708013-2-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 01/19] libpdbg: Run hwp only if target is enabled and hwp is defined 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" For bridge devices (fsi, pib, opb, etc.), the enabled check is on the bridge devices and not on the children of the bridge devices. For example, a core device can do a pib_read() during probe. That means core device is not yet enabled, but the parent pib is enabled. Signed-off-by: Amitay Isaacs --- libpdbg/adu.c | 42 ++++++++++ libpdbg/htm.c | 44 +++++++++- libpdbg/target.c | 112 +++++++++++++++++++++++++ libpdbg/thread.c | 210 ++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 392 insertions(+), 16 deletions(-) diff --git a/libpdbg/adu.c b/libpdbg/adu.c index 6600caa..6358e7a 100644 --- a/libpdbg/adu.c +++ b/libpdbg/adu.c @@ -118,6 +118,11 @@ static int adu_read(struct mem *adu, uint64_t start_addr, uint8_t *output, int rc = 0; uint64_t addr0, addr; + if (!adu->getmem) { + PR_ERROR("getmem() not implemented for the target\n"); + return -1; + } + if (!block_size) block_size = 8; @@ -167,6 +172,10 @@ int adu_getmem(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_read(adu, start_addr, output, size, 8, false); @@ -178,6 +187,10 @@ int adu_getmem_ci(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_read(adu, start_addr, output, size, 8, true); @@ -189,6 +202,10 @@ int adu_getmem_io(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); /* There is no equivalent for cachable memory as blocksize @@ -202,6 +219,10 @@ int __adu_getmem(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_read(adu, start_addr, output, size, 8, ci); @@ -213,6 +234,11 @@ static int adu_write(struct mem *adu, uint64_t start_addr, uint8_t *input, int rc = 0, tsize; uint64_t addr, data, end_addr; + if (!adu->putmem) { + PR_ERROR("putmem() not implemented for the target\n"); + return -1; + } + if (!block_size) block_size = 8; @@ -251,6 +277,10 @@ int adu_putmem(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_write(adu, start_addr, input, size, 8, false); @@ -262,6 +292,10 @@ int adu_putmem_ci(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_write(adu, start_addr, input, size, 8, true); @@ -273,6 +307,10 @@ int adu_putmem_io(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_write(adu, start_addr, input, size, block_size, true); @@ -284,6 +322,10 @@ int __adu_putmem(struct pdbg_target *adu_target, uint64_t start_addr, struct mem *adu; assert(pdbg_target_is_class(adu_target, "mem")); + + if (pdbg_target_status(adu_target) != PDBG_TARGET_ENABLED) + return -1; + adu = target_to_mem(adu_target); return adu_write(adu, start_addr, input, size, 8, ci); diff --git a/libpdbg/htm.c b/libpdbg/htm.c index a259478..0d755dd 100644 --- a/libpdbg/htm.c +++ b/libpdbg/htm.c @@ -171,11 +171,13 @@ struct htm_status { static struct htm *check_and_convert(struct pdbg_target *target) { - if (!pdbg_target_is_class(target, "nhtm") && !pdbg_target_is_class(target, "chtm")) return NULL; + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return NULL; + return target_to_htm(target); } @@ -183,21 +185,45 @@ int htm_start(struct pdbg_target *target) { struct htm *htm = check_and_convert(target); - return htm ? htm->start(htm) : -1; + if (!htm) + return -1; + + if (!htm->start) { + PR_ERROR("start() not implemented for the target\n"); + return -1; + } + + return htm->start(htm); } int htm_stop(struct pdbg_target *target) { struct htm *htm = check_and_convert(target); - return htm ? htm->stop(htm) : -1; + if (!htm) + return -1; + + if (!htm->stop) { + PR_ERROR("stop() not implemented for the target\n"); + return -1; + } + + return htm->stop(htm); } int htm_status(struct pdbg_target *target) { struct htm *htm = check_and_convert(target); - return htm ? htm->status(htm) : -1; + if (!htm) + return -1; + + if (!htm->status) { + PR_ERROR("status() not implemented for the target\n"); + return -1; + } + + return htm->status(htm); } int htm_dump(struct pdbg_target *target, char *filename) @@ -207,6 +233,11 @@ int htm_dump(struct pdbg_target *target, char *filename) if (!htm || !filename) return -1; + if (!htm->dump) { + PR_ERROR("dump() not implemented for the target\n"); + return -1; + } + return htm->dump(htm, filename); } @@ -217,6 +248,11 @@ int htm_record(struct pdbg_target *target, char *filename) if (!htm || !filename) return -1; + if (!htm->record) { + PR_ERROR("record() not implemented for the target\n"); + return -1; + } + return htm->record(htm, filename); } diff --git a/libpdbg/target.c b/libpdbg/target.c index 99bce92..dff446c 100644 --- a/libpdbg/target.c +++ b/libpdbg/target.c @@ -133,7 +133,17 @@ int pib_read(struct pdbg_target *pib_dt, uint64_t addr, uint64_t *data) int rc; pib_dt = get_class_target_addr(pib_dt, "pib", &target_addr); + + if (pdbg_target_status(pib_dt) != PDBG_TARGET_ENABLED) + return -1; + pib = target_to_pib(pib_dt); + + if (!pib->read) { + PR_ERROR("read() not implemented for the target\n"); + return -1; + } + if (target_addr & PPC_BIT(0)) rc = pib_indirect_read(pib, target_addr, data); else @@ -152,7 +162,17 @@ int pib_write(struct pdbg_target *pib_dt, uint64_t addr, uint64_t data) int rc; pib_dt = get_class_target_addr(pib_dt, "pib", &target_addr); + + if (pdbg_target_status(pib_dt) != PDBG_TARGET_ENABLED) + return -1; + pib = target_to_pib(pib_dt); + + if (!pib->write) { + PR_ERROR("write() not implemented for the target\n"); + return -1; + } + PR_DEBUG("addr:0x%08" PRIx64 " data:0x%016" PRIx64 "\n", target_addr, data); if (target_addr & PPC_BIT(0)) @@ -188,8 +208,17 @@ int pib_wait(struct pdbg_target *pib_dt, uint64_t addr, uint64_t mask, uint64_t int rc; pib_dt = get_class_target_addr(pib_dt, "pib", &addr); + + if (pdbg_target_status(pib_dt) != PDBG_TARGET_ENABLED) + return -1; + pib = target_to_pib(pib_dt); + if (!pib->read) { + PR_ERROR("read() not implemented for the target\n"); + return -1; + } + do { if (addr & PPC_BIT(0)) rc = pib_indirect_read(pib, addr, &tmp); @@ -208,7 +237,17 @@ int opb_read(struct pdbg_target *opb_dt, uint32_t addr, uint32_t *data) uint64_t addr64 = addr; opb_dt = get_class_target_addr(opb_dt, "opb", &addr64); + + if (pdbg_target_status(opb_dt) != PDBG_TARGET_ENABLED) + return -1; + opb = target_to_opb(opb_dt); + + if (!opb->read) { + PR_ERROR("read() not implemented for the target\n"); + return -1; + } + return opb->read(opb, addr64, data); } @@ -218,8 +257,16 @@ int opb_write(struct pdbg_target *opb_dt, uint32_t addr, uint32_t data) uint64_t addr64 = addr; opb_dt = get_class_target_addr(opb_dt, "opb", &addr64); + + if (pdbg_target_status(opb_dt) != PDBG_TARGET_ENABLED) + return -1; + opb = target_to_opb(opb_dt); + if (!opb->write) { + PR_ERROR("write() not implemented for the target\n"); + return -1; + } return opb->write(opb, addr64, data); } @@ -230,8 +277,17 @@ int fsi_read(struct pdbg_target *fsi_dt, uint32_t addr, uint32_t *data) uint64_t addr64 = addr; fsi_dt = get_class_target_addr(fsi_dt, "fsi", &addr64); + + if (pdbg_target_status(fsi_dt) != PDBG_TARGET_ENABLED) + return -1; + fsi = target_to_fsi(fsi_dt); + if (!fsi->read) { + PR_ERROR("read() not implemented for the target\n"); + return -1; + } + rc = fsi->read(fsi, addr64, data); PR_DEBUG("rc = %d, addr = 0x%05" PRIx64 ", data = 0x%08" PRIx32 ", target = %s\n", rc, addr64, *data, pdbg_target_path(&fsi->target)); @@ -245,8 +301,17 @@ int fsi_write(struct pdbg_target *fsi_dt, uint32_t addr, uint32_t data) uint64_t addr64 = addr; fsi_dt = get_class_target_addr(fsi_dt, "fsi", &addr64); + + if (pdbg_target_status(fsi_dt) != PDBG_TARGET_ENABLED) + return -1; + fsi = target_to_fsi(fsi_dt); + if (!fsi->write) { + PR_ERROR("write() not implemented for the target\n"); + return -1; + } + rc = fsi->write(fsi, addr64, data); PR_DEBUG("rc = %d, addr = 0x%05" PRIx64 ", data = 0x%08" PRIx32 ", target = %s\n", rc, addr64, data, pdbg_target_path(&fsi->target)); @@ -274,7 +339,16 @@ int mem_read(struct pdbg_target *target, uint64_t addr, uint8_t *output, uint64_ assert(pdbg_target_is_class(target, "mem")); + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + mem = target_to_mem(target); + + if (!mem->read) { + PR_ERROR("read() not implemented for the target\n"); + return -1; + } + rc = mem->read(mem, addr, output, size, block_size, ci); return rc; @@ -287,7 +361,16 @@ int mem_write(struct pdbg_target *target, uint64_t addr, uint8_t *input, uint64_ assert(pdbg_target_is_class(target, "mem")); + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + mem = target_to_mem(target); + + if (!mem->write) { + PR_ERROR("write() not implemented for the target\n"); + return -1; + } + rc = mem->write(mem, addr, input, size, block_size, ci); return rc; @@ -299,6 +382,10 @@ struct chipop *pib_to_chipop(struct pdbg_target *pib) uint32_t index; assert(pdbg_target_is_class(pib, "pib")); + + if (pdbg_target_status(pib) != PDBG_TARGET_ENABLED) + return NULL; + index = pdbg_target_index(pib); pdbg_for_each_class_target("chipop", chipop) { @@ -320,6 +407,11 @@ int sbe_istep(struct pdbg_target *target, uint32_t major, uint32_t minor) if (!chipop) return -1; + if (!chipop->istep) { + PR_ERROR("istep() not implemented for the target\n"); + return -1; + } + return chipop->istep(chipop, major, minor); } @@ -331,6 +423,11 @@ int sbe_mpipl_enter(struct pdbg_target *target) if (!chipop) return -1; + if (!chipop->mpipl_enter) { + PR_ERROR("mpipl_enter() not implemented for the target\n"); + return -1; + } + return chipop->mpipl_enter(chipop); } @@ -342,6 +439,11 @@ int sbe_mpipl_continue(struct pdbg_target *target) if (!chipop) return -1; + if (!chipop->mpipl_continue) { + PR_ERROR("mpipl_continue() not implemented for the target\n"); + return -1; + } + return chipop->mpipl_continue(chipop); } @@ -353,6 +455,11 @@ int sbe_mpipl_get_ti_info(struct pdbg_target *target, uint8_t **data, uint32_t * if (!chipop) return -1; + if (!chipop->mpipl_get_ti_info) { + PR_ERROR("mpipl_get_ti_info() not implemented for the target\n"); + return -1; + } + return chipop->mpipl_get_ti_info(chipop, data, data_len); } @@ -364,6 +471,11 @@ uint32_t sbe_ffdc_get(struct pdbg_target *target, const uint8_t **ffdc, uint32_t if (!chipop) return -1; + if (!chipop->ffdc_get) { + PR_ERROR("ffdc_get() not implemented for the target\n"); + return -1; + } + return chipop->ffdc_get(chipop, ffdc, ffdc_len); } diff --git a/libpdbg/thread.c b/libpdbg/thread.c index 193efb2..e494dbc 100644 --- a/libpdbg/thread.c +++ b/libpdbg/thread.c @@ -36,7 +36,17 @@ int thread_step(struct pdbg_target *target, int count) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + + if (!thread->step) { + PR_ERROR("step() not implemented for the target\n"); + return -1; + } + return thread->step(thread, count); } @@ -45,7 +55,17 @@ int thread_start(struct pdbg_target *target) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + + if (!thread->start) { + PR_ERROR("start() not implemented for the target\n"); + return -1; + } + return thread->start(thread); } @@ -54,7 +74,17 @@ int thread_stop(struct pdbg_target *target) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + + if (!thread->stop) { + PR_ERROR("stop() not implemented for the target\n"); + return -1; + } + return thread->stop(thread); } @@ -63,7 +93,17 @@ int thread_sreset(struct pdbg_target *target) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + + if (!thread->sreset) { + PR_ERROR("sreset() not implemented for the target\n"); + return -1; + } + return thread->sreset(thread); } @@ -75,6 +115,9 @@ int thread_step_all(void) pdbg_for_each_class_target("pib", target) { struct pib *pib = target_to_pib(target); + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + continue; + if (!pib->thread_step_all) break; @@ -90,9 +133,13 @@ int thread_step_all(void) continue; rc |= thread_step(thread, 1); + count++; } - return rc; + if (count > 0) + return rc; + + return -1; } int thread_start_all(void) @@ -103,6 +150,9 @@ int thread_start_all(void) pdbg_for_each_class_target("pib", target) { struct pib *pib = target_to_pib(target); + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + continue; + if (!pib->thread_start_all) break; @@ -118,9 +168,13 @@ int thread_start_all(void) continue; rc |= thread_start(thread); + count++; } - return rc; + if (count > 0) + return rc; + + return -1; } int thread_stop_all(void) @@ -131,6 +185,9 @@ int thread_stop_all(void) pdbg_for_each_class_target("pib", target) { struct pib *pib = target_to_pib(target); + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + continue; + if (!pib->thread_stop_all) break; @@ -146,9 +203,13 @@ int thread_stop_all(void) continue; rc |= thread_stop(thread); + count++; } - return rc; + if (count > 0) + return rc; + + return -1; } int thread_sreset_all(void) @@ -159,6 +220,9 @@ int thread_sreset_all(void) pdbg_for_each_class_target("pib", target) { struct pib *pib = target_to_pib(target); + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + continue; + if (!pib->thread_sreset_all) break; @@ -174,9 +238,13 @@ int thread_sreset_all(void) continue; rc |= thread_sreset(thread); + count++; } - return rc; + if (count > 0) + return rc; + + return -1; } int thread_getmem(struct pdbg_target *target, uint64_t addr, uint64_t *value) @@ -184,13 +252,18 @@ int thread_getmem(struct pdbg_target *target, uint64_t addr, uint64_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); - if (thread->getmem) - return thread->getmem(thread, addr, value); + if (!thread->getmem) { + PR_ERROR("getmem() not imeplemented for the target\n"); + return -1; + } - PR_ERROR("Not implemented on the backend\n"); - return -1; + return thread->getmem(thread, addr, value); } int thread_getregs(struct pdbg_target *target, struct thread_regs *regs) @@ -198,13 +271,18 @@ int thread_getregs(struct pdbg_target *target, struct thread_regs *regs) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); - if (thread->getregs) - return thread->getregs(thread, regs); + if (!thread->getregs) { + PR_ERROR("getregs() not imeplemented for the target\n"); + return -1; + } - PR_ERROR("Not implemented on the backend\n"); - return -1; + return thread->getregs(thread, regs); } int thread_getgpr(struct pdbg_target *target, int gpr, uint64_t *value) @@ -212,8 +290,17 @@ int thread_getgpr(struct pdbg_target *target, int gpr, uint64_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->getgpr) { + PR_ERROR("getgpr() not imeplemented for the target\n"); + return -1; + } + return thread->getgpr(thread, gpr, value); } @@ -222,8 +309,17 @@ int thread_putgpr(struct pdbg_target *target, int gpr, uint64_t value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->putgpr) { + PR_ERROR("putgpr() not imeplemented for the target\n"); + return -1; + } + return thread->putgpr(thread, gpr, value); } @@ -232,8 +328,17 @@ int thread_getspr(struct pdbg_target *target, int spr, uint64_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->getspr) { + PR_ERROR("getspr() not imeplemented for the target\n"); + return -1; + } + return thread->getspr(thread, spr, value); } @@ -242,8 +347,17 @@ int thread_putspr(struct pdbg_target *target, int spr, uint64_t value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->putspr) { + PR_ERROR("putspr() not imeplemented for the target\n"); + return -1; + } + return thread->putspr(thread, spr, value); } @@ -252,8 +366,17 @@ int thread_getmsr(struct pdbg_target *target, uint64_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->getmsr) { + PR_ERROR("getmsr() not imeplemented for the target\n"); + return -1; + } + return thread->getmsr(thread, value); } @@ -262,8 +385,17 @@ int thread_putmsr(struct pdbg_target *target, uint64_t value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->putmsr) { + PR_ERROR("putmsr() not imeplemented for the target\n"); + return -1; + } + return thread->putmsr(thread, value); } @@ -272,8 +404,17 @@ int thread_getnia(struct pdbg_target *target, uint64_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->getnia) { + PR_ERROR("getnia() not imeplemented for the target\n"); + return -1; + } + return thread->getnia(thread, value); } @@ -282,8 +423,17 @@ int thread_putnia(struct pdbg_target *target, uint64_t value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->putnia) { + PR_ERROR("putnia() not imeplemented for the target\n"); + return -1; + } + return thread->putnia(thread, value); } @@ -292,8 +442,17 @@ int thread_getxer(struct pdbg_target *target, uint64_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->getxer) { + PR_ERROR("getxer() not imeplemented for the target\n"); + return -1; + } + return thread->getxer(thread, value); } @@ -302,8 +461,17 @@ int thread_putxer(struct pdbg_target *target, uint64_t value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->putxer) { + PR_ERROR("putxer() not imeplemented for the target\n"); + return -1; + } + return thread->putxer(thread, value); } @@ -312,8 +480,17 @@ int thread_getcr(struct pdbg_target *target, uint32_t *value) struct thread *thread; assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + thread = target_to_thread(target); + if (!thread->getcr) { + PR_ERROR("getcr() not imeplemented for the target\n"); + return -1; + } + return thread->getcr(thread, value); } @@ -321,8 +498,17 @@ int thread_putcr(struct pdbg_target *target, uint32_t value) { struct thread *thread; + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + assert(pdbg_target_is_class(target, "thread")); + thread = target_to_thread(target); + if (!thread->putcr) { + PR_ERROR("putcr() not imeplemented for the target\n"); + return -1; + } + return thread->putcr(thread, value); } From patchwork Thu Jul 2 03:39: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: 1320954 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 49y3kb69fpz9sRf for ; Thu, 2 Jul 2020 13:39:51 +1000 (AEST) 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=mY+xDnII; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3kZ69M9zDqtY for ; Thu, 2 Jul 2020 13:39:50 +1000 (AEST) 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 49y3kD6r09zDqlX for ; Thu, 2 Jul 2020 13:39:32 +1000 (AEST) 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=mY+xDnII; 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 49y3kD4bydz9sRW; Thu, 2 Jul 2020 13:39:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661172; bh=ALdOtiYOmMbT4lwdjKYtEYn/xwMFX2ohoUbvSKiEVLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mY+xDnIIBj6qEuDuuXYjwTT9mMAhmsOBqv5ghgg6jM5LlQsCp15TVml0XzN7cY55d igyNlVBUsVX00qnStOw6NTjxHII5YYJiNixtpK7C7hPJuXPmKsTKrgs+3tEdkogFeO D9EZQ8Tae1rCgLV2DONCWNk7HzeGbGRCIVQNBXHFfdtChfDdaz43YMbuDQVkPNb4Ww c0AYysfuBTFQTt+weUZ6q0FVsInpeiIJH9z6Siw5Y89NGSf8XbjD5h3iewvIGqaysi zRvinsqvG76gbve5kpTPYTWYBDvorYc2X7h/C5vsrcjsubCNFLZR1Il2kadv+k+Z0m fnfpPA9y+Vt2w== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:01 +1000 Message-Id: <20200702033918.708013-3-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 02/19] libpdbg: Use register type macros instead of hard-coded values 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 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index d2748d0..85b6265 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -364,7 +364,7 @@ static int sbefifo_thread_getregs(struct thread *thread, struct thread_regs *reg ret = sbefifo_register_get(sctx, pdbg_target_index(chiplet), thread->id, - 0, + SBEFIFO_REGISTER_TYPE_GPR, reg_id, 32, (uint64_t **)®s->gprs); @@ -409,7 +409,7 @@ static int sbefifo_thread_getregs(struct thread *thread, struct thread_regs *reg ret = sbefifo_register_get(sctx, pdbg_target_index(chiplet), thread->id, - 1, + SBEFIFO_REGISTER_TYPE_SPR, reg_id, 34, (uint64_t **)&value); @@ -490,7 +490,7 @@ static int sbefifo_thread_put_reg(struct thread *thread, uint8_t reg_type, uint3 static int sbefifo_thread_getgpr(struct thread *thread, int gpr, uint64_t *value) { - uint8_t reg_type = 0x0; /* GPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_GPR; uint32_t reg_id = gpr; return sbefifo_thread_get_reg(thread, reg_type, reg_id, value); @@ -498,7 +498,7 @@ static int sbefifo_thread_getgpr(struct thread *thread, int gpr, uint64_t *value static int sbefifo_thread_putgpr(struct thread *thread, int gpr, uint64_t value) { - uint8_t reg_type = 0x0; /* GPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_GPR; uint32_t reg_id = gpr; return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); @@ -506,7 +506,7 @@ static int sbefifo_thread_putgpr(struct thread *thread, int gpr, uint64_t value) static int sbefifo_thread_getspr(struct thread *thread, int spr, uint64_t *value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = spr; return sbefifo_thread_get_reg(thread, reg_type, reg_id, value); @@ -514,7 +514,7 @@ static int sbefifo_thread_getspr(struct thread *thread, int spr, uint64_t *value static int sbefifo_thread_putspr(struct thread *thread, int spr, uint64_t value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = spr; return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); @@ -522,7 +522,7 @@ static int sbefifo_thread_putspr(struct thread *thread, int spr, uint64_t value) static int sbefifo_thread_getmsr(struct thread *thread, uint64_t *value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_MSR; return sbefifo_thread_get_reg(thread, reg_type, reg_id, value); @@ -530,7 +530,7 @@ static int sbefifo_thread_getmsr(struct thread *thread, uint64_t *value) static int sbefifo_thread_putmsr(struct thread *thread, uint64_t value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_MSR; return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); @@ -538,7 +538,7 @@ static int sbefifo_thread_putmsr(struct thread *thread, uint64_t value) static int sbefifo_thread_getnia(struct thread *thread, uint64_t *value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_NIA; return sbefifo_thread_get_reg(thread, reg_type, reg_id, value); @@ -546,7 +546,7 @@ static int sbefifo_thread_getnia(struct thread *thread, uint64_t *value) static int sbefifo_thread_putnia(struct thread *thread, uint64_t value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_NIA; return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); @@ -554,7 +554,7 @@ static int sbefifo_thread_putnia(struct thread *thread, uint64_t value) static int sbefifo_thread_getxer(struct thread *thread, uint64_t *value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_XER; return sbefifo_thread_get_reg(thread, reg_type, reg_id, value); @@ -562,7 +562,7 @@ static int sbefifo_thread_getxer(struct thread *thread, uint64_t *value) static int sbefifo_thread_putxer(struct thread *thread, uint64_t value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_XER; return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); @@ -570,7 +570,7 @@ static int sbefifo_thread_putxer(struct thread *thread, uint64_t value) static int sbefifo_thread_getcr(struct thread *thread, uint32_t *value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_CR; uint64_t val; int ret; @@ -585,7 +585,7 @@ static int sbefifo_thread_getcr(struct thread *thread, uint32_t *value) static int sbefifo_thread_putcr(struct thread *thread, uint32_t value) { - uint8_t reg_type = 0x1; /* SPR */ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; uint32_t reg_id = SPR_CR; uint64_t val = value;; From patchwork Thu Jul 2 03:39: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: 1320956 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 49y3kn1pBZz9sQt for ; Thu, 2 Jul 2020 13:40:01 +1000 (AEST) 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=Rw+XTnbK; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3kn0t1jzDqpL for ; Thu, 2 Jul 2020 13:40:01 +1000 (AEST) 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 49y3kF42vDzDqlD for ; Thu, 2 Jul 2020 13:39:33 +1000 (AEST) 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=Rw+XTnbK; 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 49y3kD75j2z9sRf; Thu, 2 Jul 2020 13:39:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661173; bh=Bgmlndm8uXfabIwSzuKUjt+v0GwEpL77FAMH7E0PjJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rw+XTnbKzSV2MtHsj/xTtxW4RO/jrbPjBTNVMz4VPsK9myCq9kMPYaFjNi0CsW9uj X30jGiqi8+eVo1VrTXw4OLh3iDJ4eGq4YE3on+ai8Y7GNrnRQ2bsL/z1fjaqUBbA3i mb0GBDTcOhwjfx0hQqdAEstr7kskaFO93NAR8/MjQLw7p11XDalANLifVo805/eX/O MVfL28RzLqjShYPjYXepmx7pNwVufaQhzhs7BLCixUr52bVBNX4oGcI2/m8gWPNyi1 ED8jx1GiBEEh8h8wLdxKA6yNGLTAC3M63D1menVXxgamGiOvo0/HYUGeXfWlWXq3cM q8BZAv81YFgUw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:02 +1000 Message-Id: <20200702033918.708013-4-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 03/19] libpdbg: Refactor code to get chip id 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 | 55 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 6d9b182..2ec89e0 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -173,14 +173,43 @@ static void ppc_target(struct pdbg_dtb *dtb) } } -static void bmc_target(struct pdbg_dtb *dtb) +static bool get_chipid(uint32_t *chip_id) { FILE *cfam_id_file; char *path; uint32_t cfam_id = 0; - uint32_t chip_id = 0; int rc; + /* Try and determine the correct device type */ + rc = asprintf(&path, "%s/fsi0/slave@00:00/cfam_id", kernel_get_fsi_path()); + if (rc < 0) { + pdbg_log(PDBG_ERROR, "Unable create fsi path"); + return false; + } + + cfam_id_file = fopen(path, "r"); + free(path); + if (!cfam_id_file) { + pdbg_log(PDBG_ERROR, "Unabled to open CFAM ID file\n"); + return false; + } + + rc = fscanf(cfam_id_file, "0x%" PRIx32, &cfam_id); + if (rc != 1) { + pdbg_log(PDBG_ERROR, "Unable to read CFAM ID: %s", strerror(errno)); + fclose(cfam_id_file); + return false; + } + fclose(cfam_id_file); + + *chip_id = (cfam_id >> 4) & 0xff; + return true; +} + +static void bmc_target(struct pdbg_dtb *dtb) +{ + uint32_t chip_id = 0; + if (pdbg_backend_option) { if (!strcmp(pdbg_backend_option, "p8")) { if (!dtb->backend.fdt) @@ -200,28 +229,8 @@ static void bmc_target(struct pdbg_dtb *dtb) return; } - /* Try and determine the correct device type */ - rc = asprintf(&path, "%s/fsi0/slave@00:00/cfam_id", kernel_get_fsi_path()); - if (rc < 0) { - pdbg_log(PDBG_ERROR, "Unable create fsi path"); + if (!get_chipid(&chip_id)) return; - } - - cfam_id_file = fopen(path, "r"); - free(path); - if (!cfam_id_file) { - pdbg_log(PDBG_ERROR, "Unabled to open CFAM ID file\n"); - return; - } - - rc = fscanf(cfam_id_file, "0x%" PRIx32, &cfam_id); - if (rc != 1) { - pdbg_log(PDBG_ERROR, "Unable to read CFAM ID: %s", strerror(errno)); - fclose(cfam_id_file); - return; - } - fclose(cfam_id_file); - chip_id = (cfam_id >> 4) & 0xff; switch(chip_id) { case CHIP_ID_P9: From patchwork Thu Jul 2 03:39: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: 1320955 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 49y3kh4blQz9sRN for ; Thu, 2 Jul 2020 13:39:56 +1000 (AEST) 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=lLJwOJQi; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3kh3h61zDqsl for ; Thu, 2 Jul 2020 13:39:56 +1000 (AEST) 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 49y3kF4qSMzDqlP for ; Thu, 2 Jul 2020 13:39:33 +1000 (AEST) 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=lLJwOJQi; 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 49y3kF2YT3z9sQt; Thu, 2 Jul 2020 13:39:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661173; bh=R3TGTVlz4wyf+LbZerFxJrREutPF2Tg2yMoQ/V5gZ9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lLJwOJQiGGOMYtqAw4RnVJ3rHLI2ey6bphBiIX7xi2hD2sbJjEsyIbQP4tPv7SlND GFEzjXZ5CV2N3ldnPdpSy/ROL/7UqWaVG65zGJxyh7HrcwkNvZ/ZUPgnYPvaCpUxUp 40MUTeX3rNAtrmDdNVfv83PBDeuSYJcPeoJit/+qaPREREcSunUI6Vc/JjArZq0n3b Zc+gNPNtKNjdWU83Ohis6d48pXMdOvtS36jZF/oeEnslYzyVPIuNf2QKkA0ERqGzf8 FEo32EEv/dkDfnozF6oQXevuPPLhxFfTanHu+vbjLGxS0B8XvKjNvv1kgB9nvFVBDs Jwd54ruWjP22g== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:03 +1000 Message-Id: <20200702033918.708013-5-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 04/19] libpdbg: Add auto-detection for 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 --- libpdbg/dtb.c | 57 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 2ec89e0..c80842f 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -256,6 +256,47 @@ static void bmc_target(struct pdbg_dtb *dtb) } } +static void sbefifo_target(struct pdbg_dtb *dtb) +{ + uint32_t chip_id = 0; + + if (pdbg_backend_option) { + if (!strcmp(pdbg_backend_option, "p9")) { + if (!dtb->backend.fdt) + dtb->backend.fdt = &_binary_bmc_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"); + } + + return; + } + + if (!get_chipid(&chip_id)) + return; + + switch(chip_id) { + case CHIP_ID_P9: + case CHIP_ID_P9P: + pdbg_log(PDBG_INFO, "Found a POWER9 OpenBMC based system\n"); + if (!dtb->backend.fdt) + dtb->backend.fdt = &_binary_bmc_sbefifo_dtb_o_start; + if (!dtb->system.fdt) + dtb->system.fdt = &_binary_p9_dtb_o_start; + break; + + case CHIP_ID_P8: + case CHIP_ID_P8P: + pdbg_log(PDBG_ERROR, "SBEFIFO backend not supported on POWER8/8+ OpenBMC based system\n"); + break; + + default: + pdbg_log(PDBG_ERROR, "Unrecognised Chip ID register 0x%08" PRIx32 "\n", chip_id); + } +} + /* Opens a dtb at the given path */ static void mmap_dtb(const char *file, bool readonly, struct pdbg_mfile *mfile) { @@ -426,21 +467,7 @@ 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_bmc_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"); - } + sbefifo_target(dtb); break; default: From patchwork Thu Jul 2 03:39: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: 1320957 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 49y3ks25CHz9sRW for ; Thu, 2 Jul 2020 13:40:05 +1000 (AEST) 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=p8gZeJiL; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3ks12XtzDqnc for ; Thu, 2 Jul 2020 13:40:05 +1000 (AEST) 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 49y3kG10przDqlD for ; Thu, 2 Jul 2020 13:39:34 +1000 (AEST) 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=p8gZeJiL; 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 49y3kF5FCQz9sRN; Thu, 2 Jul 2020 13:39:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661173; bh=6HXjQEHGg5djiSybkOYLBI3wYWKt6V7Oy6N9AMT49MQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p8gZeJiLHPt5ogiPnrmIvXkslmNkUyNWaEjtbW6o1ds+VTk1TMyadRerPVhxR5VB1 aemLq/txw3hBvxGbinmHEkRjYuS5ehSj/6QRI1JF0MGnSWkkjgFmbHDgMld7cJ2nrD aVCuc8fjlDB/mjjRFuNubsz9etS9+v8NspAey6f6pals4sDpkUIYwl2gOvVWHMDeIF vdkDBTIcTGFtWQH9fuLTOaa8H726WJfSAEIwF035wAAR4asXxFiUTkaNGD2PubR3hp P6wwCzGkYh5OqU5Qj0MTsY19Foe7RgFKZhtxzGye1W1G0L7+bMUiVaPsOZ9EX9yvG5 NY+9A4/ZSMiqA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:04 +1000 Message-Id: <20200702033918.708013-6-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 05/19] libpdbg: Always allocate ffdc data and return to caller 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" Instead of returning the pointer to internally cached ffdc data, copy the ffdc data. Signed-off-by: Amitay Isaacs --- libpdbg/libpdbg.h | 5 +++-- libpdbg/target.c | 17 +++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index e850108..28380cd 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -1259,9 +1259,10 @@ int sbe_istep(struct pdbg_target *target, uint32_t major, uint32_t minor); * * @return SBE error code, 0 if there is no ffdc data * - * The ffdc data must be freed by caller. + * The ffdc data must be freed by caller. It is allocated using malloc and + * must be freed using free(). */ -uint32_t sbe_ffdc_get(struct pdbg_target *target, const uint8_t **ffdc, uint32_t *ffdc_len); +uint32_t sbe_ffdc_get(struct pdbg_target *target, uint8_t **ffdc, uint32_t *ffdc_len); /** * @brief Execute enter mpipl on the pib diff --git a/libpdbg/target.c b/libpdbg/target.c index dff446c..69f8b24 100644 --- a/libpdbg/target.c +++ b/libpdbg/target.c @@ -463,9 +463,11 @@ int sbe_mpipl_get_ti_info(struct pdbg_target *target, uint8_t **data, uint32_t * return chipop->mpipl_get_ti_info(chipop, data, data_len); } -uint32_t sbe_ffdc_get(struct pdbg_target *target, const uint8_t **ffdc, uint32_t *ffdc_len) +uint32_t sbe_ffdc_get(struct pdbg_target *target, uint8_t **ffdc, uint32_t *ffdc_len) { struct chipop *chipop; + const uint8_t *data = NULL; + uint32_t status, len = 0; chipop = pib_to_chipop(target); if (!chipop) @@ -476,7 +478,18 @@ uint32_t sbe_ffdc_get(struct pdbg_target *target, const uint8_t **ffdc, uint32_t return -1; } - return chipop->ffdc_get(chipop, ffdc, ffdc_len); + status = chipop->ffdc_get(chipop, &data, &len); + if (data && len > 0) { + *ffdc = malloc(len); + assert(*ffdc); + memcpy(*ffdc, data, len); + *ffdc_len = len; + } else { + *ffdc = NULL; + *ffdc_len = 0; + } + + return status; } /* Finds the given class. Returns NULL if not found. */ From patchwork Thu Jul 2 03:39:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320958 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 49y3kx51GPz9sRN for ; Thu, 2 Jul 2020 13:40:09 +1000 (AEST) 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=SBwQKdoa; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3kx35gdzDqlP for ; Thu, 2 Jul 2020 13:40:09 +1000 (AEST) 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 49y3kG3fXdzDqlD for ; Thu, 2 Jul 2020 13:39:34 +1000 (AEST) 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=SBwQKdoa; 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 49y3kG1RYNz9sQt; Thu, 2 Jul 2020 13:39:34 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661174; bh=do0iQRcn6GyRmSsDfkMqoior6aJp8Y1epmv+JH0hI8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SBwQKdoaMw1gwdhtFJvuQCcfm0jULh/BgxCI7fMUAs7OiOxSzftFS7imZS6GEPW3o a4ImzFUiDHuRfcbETk12OPjihSo4PeY9k3fX40cHit/moqPy0FrvxgxEiaT/yryd4X gsIf0b5DYHV+wCc4aS3+gdW6hOpxJaX/mlwOw0qjEkvDzm/ljx1q8YZMEo/+u1udMf PaIwQw49bV1ZZLXvX+RpxsXcDMjdVtVcS3arq2nMuBOWyB98g9OQcKxKEEp1cfcDGs PNiF4zWoicCpJZofnetKriYQASIlOrO82Fx+yvg2uzhII2heye5Z4HJgOkdQDAbZFn mCTm6CiL7gzuA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:05 +1000 Message-Id: <20200702033918.708013-7-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 06/19] libsbefifo: Fix marshalling for putscom chipop 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 bb44e5e..935a00f 100644 --- a/libsbefifo/cmd_scom.c +++ b/libsbefifo/cmd_scom.c @@ -98,8 +98,8 @@ static int sbefifo_scom_put_push(uint64_t addr, uint64_t value, uint8_t **buf, u msg[1] = htobe32(cmd); msg[2] = htobe32(addr >> 32); msg[3] = htobe32(addr & 0xffffffff); - msg[2] = htobe32(value >> 32); - msg[3] = htobe32(value & 0xffffffff); + msg[4] = htobe32(value >> 32); + msg[5] = htobe32(value & 0xffffffff); *buf = (uint8_t *)msg; return 0; From patchwork Thu Jul 2 03:39:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320959 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 49y3l23wMgz9sQt for ; Thu, 2 Jul 2020 13:40:14 +1000 (AEST) 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=rv857Zo2; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3l22dW1zDqn4 for ; Thu, 2 Jul 2020 13:40:14 +1000 (AEST) 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 49y3kG5nmrzDqlD for ; Thu, 2 Jul 2020 13:39:34 +1000 (AEST) 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=rv857Zo2; 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 49y3kG46KQz9sRW; Thu, 2 Jul 2020 13:39:34 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661174; bh=mvKrV4EBX/WukX8Z0w4WGKg5AOSTp1BmYwe7bMbFmH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rv857Zo29xjRmq8DWNtPgsSv0xtDDRCjvjKNZhjE435VD7JpFS52IsgT07HQrVlKU e0znmOYWNoi1ZKmubzG1Y8I2GWMESwgja2MZ6gNi+wfHPyuCnHXcFu5O7pb6VvCHnF v196mljJBL5dctjtZl355ftWAhR74UMYQ+HCMVYF4MDoShGVRvWT2y3EhWX2VtF+ir d069P2uiGdwIe8O5hZhj1u181tk1t5bzHwlW+yreQ72BpEQo3bl05hyektPC1fwTe0 wpJRPAy7iqvweBf2IMpRLhguRyZEgGmDa1JPyNjEm2Wk9YdmQJXAEphzwzL3bn0XaG L2+4iIqH0qfpA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:06 +1000 Message-Id: <20200702033918.708013-8-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 07/19] libpdbg: Add processor type and accessor 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 | 43 ++++++++++++++++++++++++++++++++++++++++++- libpdbg/libpdbg.h | 17 +++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index c80842f..f47f28f 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -52,6 +52,7 @@ #define AMI_BMC "/proc/ractrends/Helper/FwInfo" #define XSCOM_BASE_PATH "/sys/kernel/debug/powerpc/scom" +static enum pdbg_proc pdbg_proc = PDBG_PROC_UNKNOWN; static enum pdbg_backend pdbg_backend = PDBG_DEFAULT_BACKEND; static const char *pdbg_backend_option; static struct pdbg_dtb pdbg_dtb = { @@ -116,11 +117,13 @@ static void ppc_target(struct pdbg_dtb *dtb) if (pdbg_backend_option) { if (!strcmp(pdbg_backend_option, "p8")) { + pdbg_proc = PDBG_PROC_P8; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p8_host_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p8_dtb_o_start; } else if (!strcmp(pdbg_backend_option, "p9")) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p9_host_dtb_o_start; if (!dtb->system.fdt) @@ -158,11 +161,13 @@ static void ppc_target(struct pdbg_dtb *dtb) if (strncmp(pos, "POWER8", 6) == 0) { pdbg_log(PDBG_INFO, "Found a POWER8 PPC host system\n"); + pdbg_proc = PDBG_PROC_P8; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p8_host_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p8_dtb_o_start; } else if (strncmp(pos, "POWER9", 6) == 0) { + pdbg_proc = PDBG_PROC_P9; pdbg_log(PDBG_INFO, "Found a POWER9 PPC host system\n"); if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p9_host_dtb_o_start; @@ -212,11 +217,13 @@ static void bmc_target(struct pdbg_dtb *dtb) if (pdbg_backend_option) { if (!strcmp(pdbg_backend_option, "p8")) { + pdbg_proc = PDBG_PROC_P8; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p8_kernel_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p8_dtb_o_start; } else if (!strcmp(pdbg_backend_option, "p9")) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_bmc_kernel_dtb_o_start; if (!dtb->system.fdt) @@ -236,6 +243,7 @@ static void bmc_target(struct pdbg_dtb *dtb) case CHIP_ID_P9: case CHIP_ID_P9P: pdbg_log(PDBG_INFO, "Found a POWER9 OpenBMC based system\n"); + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_bmc_kernel_dtb_o_start; if (!dtb->system.fdt) @@ -244,6 +252,7 @@ static void bmc_target(struct pdbg_dtb *dtb) case CHIP_ID_P8: case CHIP_ID_P8P: + pdbg_proc = PDBG_PROC_P8; pdbg_log(PDBG_INFO, "Found a POWER8/8+ OpenBMC based system\n"); if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p8_kernel_dtb_o_start; @@ -262,6 +271,7 @@ static void sbefifo_target(struct pdbg_dtb *dtb) if (pdbg_backend_option) { if (!strcmp(pdbg_backend_option, "p9")) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_bmc_sbefifo_dtb_o_start; if (!dtb->system.fdt) @@ -280,6 +290,7 @@ static void sbefifo_target(struct pdbg_dtb *dtb) switch(chip_id) { case CHIP_ID_P9: case CHIP_ID_P9P: + pdbg_proc = PDBG_PROC_P9; pdbg_log(PDBG_INFO, "Found a POWER9 OpenBMC based system\n"); if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_bmc_sbefifo_dtb_o_start; @@ -289,6 +300,7 @@ static void sbefifo_target(struct pdbg_dtb *dtb) case CHIP_ID_P8: case CHIP_ID_P8P: + pdbg_proc = PDBG_PROC_P8; pdbg_log(PDBG_ERROR, "SBEFIFO backend not supported on POWER8/8+ OpenBMC based system\n"); break; @@ -367,6 +379,26 @@ const char *pdbg_get_backend_option(void) return pdbg_backend_option; } +enum pdbg_proc pdbg_get_proc(void) +{ + return pdbg_proc; +} + +static void set_pdbg_proc(void) +{ + const char *proc; + + /* Allow to set processor, when device trees are overriden */ + proc = getenv("PDBG_PROC"); + if (!proc) + return; + + if (!strcmp(proc, "p8")) + pdbg_proc = PDBG_PROC_P8; + else if (!strcmp(proc, "p9")) + pdbg_proc = PDBG_PROC_P9; +} + /* Determines what platform we are running on and returns a pointer to * the fdt that is most likely to work on the system. */ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) @@ -388,8 +420,10 @@ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) if (fdt) mmap_dtb(fdt, false, &dtb->system); - if (dtb->backend.fdt && dtb->system.fdt) + if (dtb->backend.fdt && dtb->system.fdt) { + set_pdbg_proc(); goto done; + } switch(pdbg_backend) { case PDBG_BACKEND_HOST: @@ -398,6 +432,7 @@ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) case PDBG_BACKEND_I2C: /* I2C is only supported on POWER8 */ + pdbg_proc = PDBG_PROC_P8; if (!dtb->backend.fdt) { pdbg_log(PDBG_INFO, "Found a POWER8 AMI BMC based system\n"); dtb->backend.fdt = &_binary_p8_i2c_dtb_o_start; @@ -418,21 +453,25 @@ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) } if (!strcmp(pdbg_backend_option, "p8")) { + pdbg_proc = PDBG_PROC_P8; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p8_fsi_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p8_dtb_o_start; } else if (!strcmp(pdbg_backend_option, "p9w")) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p9w_fsi_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p9_dtb_o_start; } else if (!strcmp(pdbg_backend_option, "p9r")) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p9r_fsi_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p9_dtb_o_start; } else if (!strcmp(pdbg_backend_option, "p9z")) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p9z_fsi_dtb_o_start; if (!dtb->system.fdt) @@ -451,11 +490,13 @@ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) } if (!strncmp(pdbg_backend_option, "p8", 2)) { + pdbg_proc = PDBG_PROC_P8; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_p8_cronus_dtb_o_start; if (!dtb->system.fdt) dtb->system.fdt = &_binary_p8_dtb_o_start; } else if (!strncmp(pdbg_backend_option, "p9", 2)) { + pdbg_proc = PDBG_PROC_P9; if (!dtb->backend.fdt) dtb->backend.fdt = &_binary_cronus_dtb_o_start; if (!dtb->system.fdt) diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index 28380cd..a3c90de 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -46,6 +46,23 @@ struct pdbg_target; */ struct pdbg_target_class; +/** + * @brief Identifies the processor type + */ +enum pdbg_proc { + PDBG_PROC_UNKNOWN, /**< Unknown processor */ + PDBG_PROC_P8, /**< POWER8 processor */ + PDBG_PROC_P9, /**< POWER9 processor */ +}; + +/** + * @brief Get the processor type + * @return the processor type + * + * This function can only be called after pdbg_targets_init() has bee called. + */ +enum pdbg_proc pdbg_get_proc(void); + /** * @brief Find the next compatible target * @param[in] root the head pdbg_target From patchwork Thu Jul 2 03:39:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320960 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 49y3l92Yhnz9sRN for ; Thu, 2 Jul 2020 13:40:21 +1000 (AEST) 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=MjT5cM1c; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3l917NZzDqnc for ; Thu, 2 Jul 2020 13:40:21 +1000 (AEST) 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 49y3kH1CvbzDqlD for ; Thu, 2 Jul 2020 13:39:35 +1000 (AEST) 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=MjT5cM1c; 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 49y3kG6Hbwz9sQt; Thu, 2 Jul 2020 13:39:34 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661175; bh=HR0HDUYKk0U1/OlgILhWF+cY54dTSnJCQpk8USkj4vE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MjT5cM1ce9wV0LUYpe7QwlM3SJ2oYDx8FMObTfMN6wwn0DyDl72/aNy7A/imOz6DH aBlTjqX7R9zcutGjh9+tRv2U8+u2COWIa6eCDzEFeQD2zKMCzjqFKb1EwqyQ4kLSRu Hh6p6l+OueyGxH6tLp3sVkMowYlpTrP81aTKT9R+P+NaI89sOF/cZ+phRthtd20bc2 NRnfPpcXglkWyy3B6LRjGWiCvrIitgDOc4ge6kCsbgWt4z9oYgMOcCYnz98eWDxElZ AwsPHLUhadF49m1/epEnIoGHECdKtmWvtcJ2DUE3JUXtOClewES+47cXMjRSO+9RKf OhTKNi6I7pGsg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:07 +1000 Message-Id: <20200702033918.708013-9-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 08/19] libpdbg: Add thread procedures to get/set FPR 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 | 3 +++ libpdbg/libpdbg.h | 18 ++++++++++++++++++ libpdbg/thread.c | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/libpdbg/hwunit.h b/libpdbg/hwunit.h index 691689f..ee825bb 100644 --- a/libpdbg/hwunit.h +++ b/libpdbg/hwunit.h @@ -151,6 +151,9 @@ struct thread { int (*getspr)(struct thread *, int, uint64_t *); int (*putspr)(struct thread *, int, uint64_t); + int (*getfpr)(struct thread *, int, uint64_t *); + int (*putfpr)(struct thread *, int, uint64_t); + int (*getmsr)(struct thread *, uint64_t *); int (*putmsr)(struct thread *, uint64_t); diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index a3c90de..180a609 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -946,6 +946,24 @@ int thread_getxer(struct pdbg_target *thread, uint64_t *value); */ int thread_putxer(struct pdbg_target *thread, uint64_t value); +/** + * @brief Set a FPR on a thread + * @param[in] thread the thread target to operate on + * @param[in] fpr the FPR number to set + * @param[in] value value to set FPR to + * @return 0 on success, -1 otherwise + */ +int thread_putfpr(struct pdbg_target *thread, int fpr, uint64_t value); + +/** + * @brief Get a FPR on a thread + * @param[in] thread the thread target to operate on + * @param[in] fpr the FPR number to get + * @param[in] value value of the given FPR + * @return 0 on success, -1 otherwise + */ +int thread_getfpr(struct pdbg_target *thread, int fpr, uint64_t *value); + /** * @brief Get the value of all interesting registers on a thread * @param[in] target the thread target to operate on diff --git a/libpdbg/thread.c b/libpdbg/thread.c index e494dbc..e8fb0c0 100644 --- a/libpdbg/thread.c +++ b/libpdbg/thread.c @@ -361,6 +361,44 @@ int thread_putspr(struct pdbg_target *target, int spr, uint64_t value) return thread->putspr(thread, spr, value); } +int thread_getfpr(struct pdbg_target *target, int fpr, uint64_t *value) +{ + struct thread *thread; + + assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + + thread = target_to_thread(target); + + if (!thread->getfpr) { + PR_ERROR("getfpr() not imeplemented for the target\n"); + return -1; + } + + return thread->getfpr(thread, fpr, value); +} + +int thread_putfpr(struct pdbg_target *target, int fpr, uint64_t value) +{ + struct thread *thread; + + assert(pdbg_target_is_class(target, "thread")); + + if (pdbg_target_status(target) != PDBG_TARGET_ENABLED) + return -1; + + thread = target_to_thread(target); + + if (!thread->putfpr) { + PR_ERROR("putfpr() not imeplemented for the target\n"); + return -1; + } + + return thread->putfpr(thread, fpr, value); +} + int thread_getmsr(struct pdbg_target *target, uint64_t *value) { struct thread *thread; From patchwork Thu Jul 2 03:39:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320961 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 49y3lF5cqzz9sQt for ; Thu, 2 Jul 2020 13:40:25 +1000 (AEST) 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=jWZWP2p0; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lF2lYdzDqlP for ; Thu, 2 Jul 2020 13:40:25 +1000 (AEST) 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 49y3kH3wl5zDqlD for ; Thu, 2 Jul 2020 13:39:35 +1000 (AEST) 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=jWZWP2p0; 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 49y3kH1dcxz9sRN; Thu, 2 Jul 2020 13:39:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661175; bh=bDl5CyPW9R90LREsbZ0W+B2bGv5Nl0G4NvRPetgOrmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jWZWP2p0tse1HNA0qtde5gHZaruSQ9HiOJ9RYLMLEv9MpEip7Nri57cUTZw0tnzXA WMWLhXxQbUlNKxYKzN4bLFi1fyAwfp6Ef0g8q8xvNJ6HorC24Z7/Z1GRGYWQtCmSnW Ulg17ulAgyuCrXdY4pJs6iLy1gBDnM1cKDee+9pxwNU9wGz7uQJxJlUwigOJDy5RRM Duzwty14aHgCF+qtdyKLsQ1Jo6eeNO0QlywJvemoLBZ8s+eOIiIileRkvhhEyDPm0L ORR32NcwdrUfoNg22fy/Xsha97M9Qw39h5BL7EyoMO0mIE3sIUxBnOze+LcvHAcvOK 0PGP94/mxSUAg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:08 +1000 Message-Id: <20200702033918.708013-10-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 09/19] libpdbg: Add sbefifo implementation of thread getfpr/putgpr 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index 85b6265..e9cb63e 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -520,6 +520,22 @@ static int sbefifo_thread_putspr(struct thread *thread, int spr, uint64_t value) return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); } +static int sbefifo_thread_getfpr(struct thread *thread, int fpr, uint64_t *value) +{ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_FPR; + uint32_t reg_id = fpr; + + return sbefifo_thread_get_reg(thread, reg_type, reg_id, value); +} + +static int sbefifo_thread_putfpr(struct thread *thread, int fpr, uint64_t value) +{ + uint8_t reg_type = SBEFIFO_REGISTER_TYPE_FPR; + uint32_t reg_id = fpr; + + return sbefifo_thread_put_reg(thread, reg_type, reg_id, value); +} + static int sbefifo_thread_getmsr(struct thread *thread, uint64_t *value) { uint8_t reg_type = SBEFIFO_REGISTER_TYPE_SPR; @@ -691,6 +707,8 @@ static struct thread sbefifo_thread = { .putgpr = sbefifo_thread_putgpr, .getspr = sbefifo_thread_getspr, .putspr = sbefifo_thread_putspr, + .getfpr = sbefifo_thread_getfpr, + .putfpr = sbefifo_thread_putfpr, .getmsr = sbefifo_thread_getmsr, .putmsr = sbefifo_thread_putmsr, .getnia = sbefifo_thread_getnia, From patchwork Thu Jul 2 03:39:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320962 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 49y3lL0QdVz9sRW for ; Thu, 2 Jul 2020 13:40:30 +1000 (AEST) 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=LCGKQPEI; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lK5QbrzDqn4 for ; Thu, 2 Jul 2020 13:40:29 +1000 (AEST) 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 49y3kJ1G20zDqlD for ; Thu, 2 Jul 2020 13:39:36 +1000 (AEST) 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=LCGKQPEI; 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 49y3kH64Q8z9sQt; Thu, 2 Jul 2020 13:39:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661176; bh=bKtGkQWGS9wM7MZdDD/owoCQTmfesEFXg025KfZcLZI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LCGKQPEIa5yCSmiMDyJcMrFqFfAxw1USkQy0HLCU8M0b5PcFa5DmJjONl2aTVdm9O 1d/HCXdTxsnCz7x02x04y51io0ndGj3xmGx2DTB+jeuA4qYxfGTerAqjHxdTOx9XfY Lx7NyzoJ10BF7ZD9idkVyV3fc6gX981FC8M2JbsgMSqD05T7w7rFrTZdXM67y+CxNt gPmyO/+/twi9orXh8mSkunoh/CymbcGb671nexMh+tbciY8PjuzibDOwg3NA9kC0T8 tZ9wvLE87p4F5wgn97PSxrsh8i6qzBsIhdUdCpyGzCW63viCbZehqYrcxOYDaN5z3U P8pDRX2Ad95dw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:09 +1000 Message-Id: <20200702033918.708013-11-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 10/19] Makefile: Remove reference to non-existent file 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 - 1 file changed, 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4247913..c49936f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -108,7 +108,6 @@ pdbg_SOURCES = \ src/mem.c \ src/optcmd.c \ src/optcmd.h \ - src/options.h \ src/parsers.c \ src/parsers.h \ src/path.c \ From patchwork Thu Jul 2 03:39:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320963 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 49y3lQ1rLMz9sRN for ; Thu, 2 Jul 2020 13:40:34 +1000 (AEST) 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=G3XhZwRr; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lQ0mrVzDqmT for ; Thu, 2 Jul 2020 13:40:34 +1000 (AEST) 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 49y3kJ5ND8zDqlD for ; Thu, 2 Jul 2020 13:39:36 +1000 (AEST) 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=G3XhZwRr; 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 49y3kJ1kMmz9sRN; Thu, 2 Jul 2020 13:39:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661176; bh=NZ1Vk6gnZfskbyLCqpp3g2nbhSzGcC0vIu9VI6RMzKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G3XhZwRroih2oWCM621AUZADkTZP057yXMOdbWw74SMnJEl/oAjtaQPv9IBXuRFw+ YKaUFpAZ71xOFrwV91b4DyANuoGrBFYY8Pv4ufCz7Z0d3+AwZE9hOymHs11fXILfBw 0xUfF46rPaebInDTRIy+5EIELuITCmzVhOI0tFclV/NRM6l0BDTOgkQRvPi6wznwt/ 8j/qeGoCBxqivr/OMGpNGOcVaH9nl33obyHZTjJDSTRsypaPta4Ox3rc6r5PjTweRy ScJmfVJ7VgHhvluTvdmS4wNDDrAKbguJG8zYZQhp4NnvQfLgyiN0UwZr5rD5ymyABG o7izPNSP65+8A== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:10 +1000 Message-Id: <20200702033918.708013-12-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 11/19] Makefile: Include missing file in libpdbg sources 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 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index c49936f..a53f9cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -203,6 +203,7 @@ libpdbg_la_SOURCES = \ libpdbg/p8chip.c \ libpdbg/p9chip.c \ libpdbg/p9_fapi_targets.c \ + libpdbg/p9_scom_addr.h \ libpdbg/sbefifo.c \ libpdbg/sprs.h \ libpdbg/target.c \ From patchwork Thu Jul 2 03:39:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320964 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 49y3lV2tSnz9sRN for ; Thu, 2 Jul 2020 13:40:38 +1000 (AEST) 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=TR6UIX0h; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lV1Kj5zDqnc for ; Thu, 2 Jul 2020 13:40:38 +1000 (AEST) 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 49y3kK16zHzDqlP for ; Thu, 2 Jul 2020 13:39:37 +1000 (AEST) 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=TR6UIX0h; 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 49y3kJ5rgYz9sRW; Thu, 2 Jul 2020 13:39:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661176; bh=/lTnlabaM+kVBaWDb5sfAZxBxXgIRy0f5eyIlPyvaUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TR6UIX0hFTtW2c+6SPxTaj8eOku8Kx4KnDOWclmloDCtvvuMFkQXHE6oKQmz8ONul V7PmG2g0BiINP3wRku+FLwGztf0ioRCb6wkxP/1aROxIEK711JK0VbhEA3g6DQuJ/O UJhAvHXSPu8YaMZzGnEY7YvMkaDxhMGVp7upVf/M+MgHXP1KaVZyO2y47l47/XTssQ AkqaFQX6yLYPrQa82y+geUD3gnvh4iF/YOjU97KGs/b6DYRcSFCYRaMTxgkX/oN6ax Is9ZQ0WSoR7/fiwqLCPzkPht7uf38ayMM4Dcuell9qMu8xF+uA/HhHwwWj9P1fxfcg HXZfmizR8k1+Q== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:11 +1000 Message-Id: <20200702033918.708013-13-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 12/19] dts: Remove unused device tree file 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 | 3 +- p9-pib.dts.m4 | 99 --------------------------------------------------- 2 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 p9-pib.dts.m4 diff --git a/Makefile.am b/Makefile.am index a53f9cb..d606e56 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,7 +59,6 @@ EXTRA_DIST = \ p9-fsi.dtsi.m4 \ p9-host.dts.m4 \ bmc-kernel.dts.m4 \ - p9-pib.dts.m4 \ p9r-fsi.dts.m4 \ p9w-fsi.dts.m4 \ p9z-fsi.dts.m4 \ @@ -311,7 +310,7 @@ RAGEL_V_0 = @echo " RAGEL " $@; %.dtsi: %.dtsi.m4 $(M4_V)$(M4) -I$(dir $<) $< > $@ -p9-fsi.dtsi: p9-fsi.dtsi.m4 p9-pib.dts.m4 +p9-fsi.dtsi: p9-fsi.dtsi.m4 p9w-fsi.dts: p9w-fsi.dts.m4 p9-fsi.dtsi p9r-fsi.dts: p9r-fsi.dts.m4 p9-fsi.dtsi p9z-fsi.dts: p9z-fsi.dts.m4 p9-fsi.dtsi diff --git a/p9-pib.dts.m4 b/p9-pib.dts.m4 deleted file mode 100644 index b13a57e..0000000 --- a/p9-pib.dts.m4 +++ /dev/null @@ -1,99 +0,0 @@ -define(`CONCAT', `$1$2')dnl -define(`HEX', `CONCAT(0x, $1)')dnl -define(`CORE_BASE', `eval(0x20000000 + $1 * 0x1000000, 16)')dnl -define(`CORE', `chiplet@CORE_BASE($1) { -#address-cells = <0x2>; -#size-cells = <0x1>; -compatible = "ibm,power9-chiplet"; -index = ; -reg = <0x0 HEX(CORE_BASE($1)) 0xfffff>; - -core@0 { - #address-cells = <0x1>; - #size-cells = <0x0>; - compatible = "ibm,power9-core"; - index = ; - reg = <0x0 0x0 0xfffff>; - - THREAD(0); - THREAD(1); - THREAD(2); - THREAD(3); -}; -}')dnl -define(`THREAD_BASE', `eval($1, 16)')dnl -define(`THREAD',`thread@THREAD_BASE($1) { -compatible = "ibm,power9-thread"; -reg = <0x0>; -tid = ; -index = ; -}')dnl -define(`CHIPLET_BASE', `eval(0x1000000 * $1, 16)')dnl -define(`CHIPLET', `chiplet@CHIPLET_BASE($1) { -compatible = "ibm,power9-chiplet"; -index = ; -reg = <0x0 HEX(CHIPLET_BASE($1)) 0xfffff>; -}')dnl - -adu@90000 { - compatible = "ibm,power9-adu"; - reg = <0x0 0x90000 0x50>; - system-path = "CONCAT(/mem,PROC_ID)"; -}; - -htm@5012880 { - compatible = "ibm,power9-nhtm"; - reg = <0x0 0x5012880 0x40>; - index = <0x0>; -}; - -htm@50128C0 { - compatible = "ibm,power9-nhtm"; - reg = <0x0 0x50128C0 0x40>; - index = <0x1>; -}; - -CORE(0, 0); -CORE(1, 1); -CORE(2, 2); -CORE(3, 3); -CORE(4, 4); -CORE(5, 5); -CORE(6, 6); -CORE(7, 7); -CORE(8, 8); -CORE(9, 9); -CORE(10, 10); -CORE(11, 11); -CORE(12, 12); -CORE(13, 13); -CORE(14, 14); -CORE(15, 15); -CORE(16, 16); -CORE(17, 17); -CORE(18, 18); -CORE(19, 19); -CORE(20, 20); -CORE(21, 21); -CORE(22, 22); -CORE(23, 23); - -CHIPLET(1); -CHIPLET(2); -CHIPLET(3); -CHIPLET(4); -CHIPLET(5); -CHIPLET(6); -CHIPLET(7); -CHIPLET(8); -CHIPLET(9); -CHIPLET(12); -CHIPLET(13); -CHIPLET(14); -CHIPLET(15); -CHIPLET(16); -CHIPLET(17); -CHIPLET(18); -CHIPLET(19); -CHIPLET(20); -CHIPLET(21); From patchwork Thu Jul 2 03:39:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320965 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 49y3lZ1DqMz9sRN for ; Thu, 2 Jul 2020 13:40:42 +1000 (AEST) 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=MqnNUJhj; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lY5PpKzDqnT for ; Thu, 2 Jul 2020 13:40:41 +1000 (AEST) 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 49y3kK3jq6zDqlD for ; Thu, 2 Jul 2020 13:39:37 +1000 (AEST) 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=MqnNUJhj; 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 49y3kK1YWTz9sQt; Thu, 2 Jul 2020 13:39:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661177; bh=6cC9469W+ZKv8VB8IlSiZ5Ky499+WPAJJOHL59bKH6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MqnNUJhj0W18PIKwgSiOuhr3fsYSCHyY7QsGRAbYXEuJIz6paV4Q56Xak2nd2npUW wIJsDpZUvf71kpOJCYDU7hh/U0XbhpjqaoRnTp3wFh/kI6RztspAoWXg1M3l+8Q1+p Ph8vrnWL1OLT2cBuBr7RXttZMYGx255T3UUKxbakNFWFTsrkebij+l7bBXuWIODalr AElNW1x10XcMLgfd7rpdVXCdWgpP5TXFWa07Ygm7lECg85LIt8vdXnnexwJQUjC1CG ETsrr3kQrYOXRnBfSOjrNXDWBPArIaxWZDPf6j/Dam0ay/936gCwnMzCZq52hrn3xH apEWkgwSRno3A== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:12 +1000 Message-Id: <20200702033918.708013-14-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 13/19] libpdbg: Use index as thread-id for p9 system 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/p9chip.c | 4 +--- libpdbg/sbefifo.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libpdbg/p9chip.c b/libpdbg/p9chip.c index a46d053..0a8cae8 100644 --- a/libpdbg/p9chip.c +++ b/libpdbg/p9chip.c @@ -116,10 +116,8 @@ static struct thread_state p9_get_thread_status(struct thread *thread) static int p9_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; + thread->id = pdbg_target_index(target); thread->status = p9_get_thread_status(thread); return 0; diff --git a/libpdbg/sbefifo.c b/libpdbg/sbefifo.c index e9cb63e..898fd1a 100644 --- a/libpdbg/sbefifo.c +++ b/libpdbg/sbefifo.c @@ -288,10 +288,8 @@ static int sbefifo_pib_thread_sreset(struct pib *pib) 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; + thread->id = pdbg_target_index(target); return 0; } From patchwork Thu Jul 2 03:39:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320966 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 49y3lf2GTFz9sRN for ; Thu, 2 Jul 2020 13:40:46 +1000 (AEST) 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=n7jqAsw7; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lf1D9YzDqsx for ; Thu, 2 Jul 2020 13:40:46 +1000 (AEST) 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 49y3kK6f8szDqlD for ; Thu, 2 Jul 2020 13:39:37 +1000 (AEST) 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=n7jqAsw7; 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 49y3kK48w5z9sRN; Thu, 2 Jul 2020 13:39:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661177; bh=MK8yYQydv3Wf3DQUcFAWHYJc6VBXr79ds04zc1chCRM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n7jqAsw7gi3xdLm4DLewOCNU6MLkzjXeL2ZruYFd7epPX7tkujWFB8zN04p2eGTpB 3hAKdkSqVOuT9fs61u89hxmhn/LbqXOtLKmRgSADKDW7nUXKnF4XlrGAXr8dabgAbY 4SZ56laTKKuBKcEVEAtOeuhkV9x33+WMvSzQNUaujOb8W9P7O0PVxg0XKPd3pzRYx8 BJetP7DdPMpJlizXqrRIQotQfVQkb9qttfM2P35WC5uVDl6znj+n8NzzZmDrnoahh4 f1PspsEZ5hf5K1Oc2SsmlWdCdYxzJOluqYcHdZe3jz5byq6FpaUzoL0onEIHgBWV0S 7B/qzV8ypuHQQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:13 +1000 Message-Id: <20200702033918.708013-15-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 14/19] dts: Remove unused tid property 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 --- INDEX.md | 1 - p9.dts.m4 | 1 - 2 files changed, 2 deletions(-) diff --git a/INDEX.md b/INDEX.md index de39678..f4c3ab7 100644 --- a/INDEX.md +++ b/INDEX.md @@ -39,7 +39,6 @@ example: thread@0 { compatible = "ibm,power9-thread"; reg = <0x0>; - tid = <0x0>; index = <0x0>; }; }; diff --git a/p9.dts.m4 b/p9.dts.m4 index 6cdfba4..ff6fabf 100644 --- a/p9.dts.m4 +++ b/p9.dts.m4 @@ -8,7 +8,6 @@ define(`THREAD', thread@$1 { reg = <0x00>; compatible = "ibm,power-thread", "ibm,power9-thread"; - tid = <0x$1>; index = <0x$1>; }; ')dnl From patchwork Thu Jul 2 03:39:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320967 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 49y3lj2F1Mz9sRW for ; Thu, 2 Jul 2020 13:40:49 +1000 (AEST) 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=dRWL7aAB; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lj1NNLzDqnw for ; Thu, 2 Jul 2020 13:40:49 +1000 (AEST) 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 49y3kL2DK3zDqlP for ; Thu, 2 Jul 2020 13:39:38 +1000 (AEST) 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=dRWL7aAB; 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 49y3kK74D2z9sQt; Thu, 2 Jul 2020 13:39:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661178; bh=IlX7T/5VbQjpXobsxum8qQQHh2EZTxRx2ubdDfJKrd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dRWL7aABWnPQC8uJAYJT/bqUKJcezOpg1R0S1Ut5QhnRmUKgAWTOjQDpHMJF674m6 kUYuGNQ0lGzaDy31GE5ORKyPqKjaa2zIBwNcxfLov9OEK3i48ogDf7azJ6OHUEYp35 dVnkOtS8G1x5t47kbnOwTC3lbdY1Eg4Oa0niszYjbw1igpX5UsvfYxkIsUnvFWYtVx SPa5wkjvEgXpkI0qqgfRLSayU/EydgzntRPPElPi9XqCV0tvS0PpNC0ifcsfXnwbMR D/tVteZ5YIuOKd353Bu4bRoDJeDQ2df7d9uVKW/eBh+F2wVi1+1y38nVsQ2fUyh/3f 9HRrC+2J8szrA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:14 +1000 Message-Id: <20200702033918.708013-16-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 15/19] dts: Set device-path required by kernel-fsi driver 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 --- p8-kernel.dts.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/p8-kernel.dts.m4 b/p8-kernel.dts.m4 index b00ed54..b94c750 100644 --- a/p8-kernel.dts.m4 +++ b/p8-kernel.dts.m4 @@ -8,6 +8,7 @@ #address-cells = <0x2>; #size-cells = <0x1>; compatible = "ibm,kernel-fsi"; + device-path = "/fsi0/slave@00:00/raw"; reg = <0x0 0x0 0x0>; index = <0x0>; status = "mustexist"; From patchwork Thu Jul 2 03:39:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320968 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 49y3lr66Ggz9sQt for ; Thu, 2 Jul 2020 13:40:56 +1000 (AEST) 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=uqioJOf7; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lr4zdjzDqlD for ; Thu, 2 Jul 2020 13:40:56 +1000 (AEST) 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 49y3kL5ZwKzDqnT for ; Thu, 2 Jul 2020 13:39:38 +1000 (AEST) 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=uqioJOf7; 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 49y3kL2yVbz9sRN; Thu, 2 Jul 2020 13:39:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661178; bh=Df822gA8A1jRpI6q6FpaKzxKJgPPRUSLSMbSMayERPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uqioJOf7KLQ9cWgjW+Sk5OPJArkSmd+mCkXg57tNsbX7KlphEUZ8MfH3KVh9vCZRv UCQ/0rcwVX75WKDpP5KQ32K3+V/Qi0rKuN5pnryzDItDrvkbTvu8FPY8N0sTU0GOch axgOt4eIHidw7LLpL5oLyQ2Wp8gvOBs15+2BhDTLo8FBmFQDVtn9p7EOmQCHb/XfOo sDTQEkxC4n186zrleNPEfS+66DQju8nLZLU+j4XwZ68F4HpM6SqFJ/FTjo+qAl+t+x wYs067Uh2yaxn6dDs94JV5KCVT5U2z+wUuSXUnKaX7XkNJycjTsT6sOY++ffV4wKRt jFsCxSJJz+rMA== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:15 +1000 Message-Id: <20200702033918.708013-17-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 16/19] tests: Run p9 fapi translation tests on single processor 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 should speed up running tests. Signed-off-by: Amitay Isaacs --- src/tests/libpdbg_p9_fapi_translation_test.C | 5 + tests/test_p9_fapi_translation.sh | 903 ------------------- 2 files changed, 5 insertions(+), 903 deletions(-) diff --git a/src/tests/libpdbg_p9_fapi_translation_test.C b/src/tests/libpdbg_p9_fapi_translation_test.C index 40ab2f7..a7b67f0 100644 --- a/src/tests/libpdbg_p9_fapi_translation_test.C +++ b/src/tests/libpdbg_p9_fapi_translation_test.C @@ -94,6 +94,11 @@ int main(int argc, const char **argv) uint64_t addr; int index = pdbg_target_index(target); + /* We only need to test targets on proc0, translation won't change for + * other procs */ + if (pdbg_target_index(pdbg_target_parent("proc", target))) + continue; + printf("Testing %s %d\n", pdbg_target_path(target), index); /* Test every sat offset */ for (addr = 0; addr < 0xffffffff; addr += 0x40) diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh index 8f44953..b38453e 100755 --- a/tests/test_p9_fapi_translation.sh +++ b/tests/test_p9_fapi_translation.sh @@ -32,174 +32,6 @@ Testing /proc0/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 Testing /proc0/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 Testing /proc0/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 Testing /proc0/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc1/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc1/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc1/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc1/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc1/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc1/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc1/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc1/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc1/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc1/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc1/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc1/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc1/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc1/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc1/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc1/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc1/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc1/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc1/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc1/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc1/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc1/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc1/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc1/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc2/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc2/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc2/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc2/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc2/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc2/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc2/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc2/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc2/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc2/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc2/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc2/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc2/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc2/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc2/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc2/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc2/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc2/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc2/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc2/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc2/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc2/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc2/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc2/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc3/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc3/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc3/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc3/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc3/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc3/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc3/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc3/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc3/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc3/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc3/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc3/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc3/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc3/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc3/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc3/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc3/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc3/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc3/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc3/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc3/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc3/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc3/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc3/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc4/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc4/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc4/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc4/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc4/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc4/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc4/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc4/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc4/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc4/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc4/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc4/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc4/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc4/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc4/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc4/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc4/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc4/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc4/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc4/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc4/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc4/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc4/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc4/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc5/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc5/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc5/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc5/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc5/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc5/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc5/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc5/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc5/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc5/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc5/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc5/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc5/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc5/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc5/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc5/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc5/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc5/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc5/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc5/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc5/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc5/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc5/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc5/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc6/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc6/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc6/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc6/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc6/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc6/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc6/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc6/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc6/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc6/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc6/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc6/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc6/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc6/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc6/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc6/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc6/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc6/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc6/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc6/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc6/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc6/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc6/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc6/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 -Testing /proc7/pib/chiplet@10000000/eq@0/ex@0/chiplet@20000000/core@0 0 -Testing /proc7/pib/chiplet@10000000/eq@0/ex@0/chiplet@21000000/core@0 1 -Testing /proc7/pib/chiplet@10000000/eq@0/ex@1/chiplet@22000000/core@0 2 -Testing /proc7/pib/chiplet@10000000/eq@0/ex@1/chiplet@23000000/core@0 3 -Testing /proc7/pib/chiplet@11000000/eq@1/ex@0/chiplet@24000000/core@0 4 -Testing /proc7/pib/chiplet@11000000/eq@1/ex@0/chiplet@25000000/core@0 5 -Testing /proc7/pib/chiplet@11000000/eq@1/ex@1/chiplet@26000000/core@0 6 -Testing /proc7/pib/chiplet@11000000/eq@1/ex@1/chiplet@27000000/core@0 7 -Testing /proc7/pib/chiplet@12000000/eq@2/ex@0/chiplet@28000000/core@0 8 -Testing /proc7/pib/chiplet@12000000/eq@2/ex@0/chiplet@29000000/core@0 9 -Testing /proc7/pib/chiplet@12000000/eq@2/ex@1/chiplet@2a000000/core@0 10 -Testing /proc7/pib/chiplet@12000000/eq@2/ex@1/chiplet@2b000000/core@0 11 -Testing /proc7/pib/chiplet@13000000/eq@3/ex@0/chiplet@2c000000/core@0 12 -Testing /proc7/pib/chiplet@13000000/eq@3/ex@0/chiplet@2d000000/core@0 13 -Testing /proc7/pib/chiplet@13000000/eq@3/ex@1/chiplet@2e000000/core@0 14 -Testing /proc7/pib/chiplet@13000000/eq@3/ex@1/chiplet@2f000000/core@0 15 -Testing /proc7/pib/chiplet@14000000/eq@4/ex@0/chiplet@30000000/core@0 16 -Testing /proc7/pib/chiplet@14000000/eq@4/ex@0/chiplet@31000000/core@0 17 -Testing /proc7/pib/chiplet@14000000/eq@4/ex@1/chiplet@32000000/core@0 18 -Testing /proc7/pib/chiplet@14000000/eq@4/ex@1/chiplet@33000000/core@0 19 -Testing /proc7/pib/chiplet@15000000/eq@5/ex@0/chiplet@34000000/core@0 20 -Testing /proc7/pib/chiplet@15000000/eq@5/ex@0/chiplet@35000000/core@0 21 -Testing /proc7/pib/chiplet@15000000/eq@5/ex@1/chiplet@36000000/core@0 22 -Testing /proc7/pib/chiplet@15000000/eq@5/ex@1/chiplet@37000000/core@0 23 EOF test_run libpdbg_p9_fapi_translation_test core @@ -212,48 +44,6 @@ Testing /proc0/pib/chiplet@12000000/eq@2 2 Testing /proc0/pib/chiplet@13000000/eq@3 3 Testing /proc0/pib/chiplet@14000000/eq@4 4 Testing /proc0/pib/chiplet@15000000/eq@5 5 -Testing /proc1/pib/chiplet@10000000/eq@0 0 -Testing /proc1/pib/chiplet@11000000/eq@1 1 -Testing /proc1/pib/chiplet@12000000/eq@2 2 -Testing /proc1/pib/chiplet@13000000/eq@3 3 -Testing /proc1/pib/chiplet@14000000/eq@4 4 -Testing /proc1/pib/chiplet@15000000/eq@5 5 -Testing /proc2/pib/chiplet@10000000/eq@0 0 -Testing /proc2/pib/chiplet@11000000/eq@1 1 -Testing /proc2/pib/chiplet@12000000/eq@2 2 -Testing /proc2/pib/chiplet@13000000/eq@3 3 -Testing /proc2/pib/chiplet@14000000/eq@4 4 -Testing /proc2/pib/chiplet@15000000/eq@5 5 -Testing /proc3/pib/chiplet@10000000/eq@0 0 -Testing /proc3/pib/chiplet@11000000/eq@1 1 -Testing /proc3/pib/chiplet@12000000/eq@2 2 -Testing /proc3/pib/chiplet@13000000/eq@3 3 -Testing /proc3/pib/chiplet@14000000/eq@4 4 -Testing /proc3/pib/chiplet@15000000/eq@5 5 -Testing /proc4/pib/chiplet@10000000/eq@0 0 -Testing /proc4/pib/chiplet@11000000/eq@1 1 -Testing /proc4/pib/chiplet@12000000/eq@2 2 -Testing /proc4/pib/chiplet@13000000/eq@3 3 -Testing /proc4/pib/chiplet@14000000/eq@4 4 -Testing /proc4/pib/chiplet@15000000/eq@5 5 -Testing /proc5/pib/chiplet@10000000/eq@0 0 -Testing /proc5/pib/chiplet@11000000/eq@1 1 -Testing /proc5/pib/chiplet@12000000/eq@2 2 -Testing /proc5/pib/chiplet@13000000/eq@3 3 -Testing /proc5/pib/chiplet@14000000/eq@4 4 -Testing /proc5/pib/chiplet@15000000/eq@5 5 -Testing /proc6/pib/chiplet@10000000/eq@0 0 -Testing /proc6/pib/chiplet@11000000/eq@1 1 -Testing /proc6/pib/chiplet@12000000/eq@2 2 -Testing /proc6/pib/chiplet@13000000/eq@3 3 -Testing /proc6/pib/chiplet@14000000/eq@4 4 -Testing /proc6/pib/chiplet@15000000/eq@5 5 -Testing /proc7/pib/chiplet@10000000/eq@0 0 -Testing /proc7/pib/chiplet@11000000/eq@1 1 -Testing /proc7/pib/chiplet@12000000/eq@2 2 -Testing /proc7/pib/chiplet@13000000/eq@3 3 -Testing /proc7/pib/chiplet@14000000/eq@4 4 -Testing /proc7/pib/chiplet@15000000/eq@5 5 EOF test_run libpdbg_p9_fapi_translation_test eq @@ -272,90 +62,6 @@ Testing /proc0/pib/chiplet@14000000/eq@4/ex@0 0 Testing /proc0/pib/chiplet@14000000/eq@4/ex@1 1 Testing /proc0/pib/chiplet@15000000/eq@5/ex@0 0 Testing /proc0/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc1/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc1/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc1/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc1/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc1/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc1/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc1/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc1/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc1/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc1/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc1/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc1/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc2/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc2/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc2/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc2/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc2/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc2/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc2/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc2/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc2/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc2/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc2/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc2/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc3/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc3/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc3/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc3/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc3/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc3/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc3/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc3/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc3/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc3/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc3/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc3/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc4/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc4/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc4/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc4/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc4/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc4/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc4/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc4/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc4/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc4/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc4/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc4/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc5/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc5/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc5/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc5/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc5/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc5/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc5/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc5/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc5/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc5/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc5/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc5/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc6/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc6/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc6/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc6/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc6/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc6/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc6/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc6/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc6/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc6/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc6/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc6/pib/chiplet@15000000/eq@5/ex@1 1 -Testing /proc7/pib/chiplet@10000000/eq@0/ex@0 0 -Testing /proc7/pib/chiplet@10000000/eq@0/ex@1 1 -Testing /proc7/pib/chiplet@11000000/eq@1/ex@0 0 -Testing /proc7/pib/chiplet@11000000/eq@1/ex@1 1 -Testing /proc7/pib/chiplet@12000000/eq@2/ex@0 0 -Testing /proc7/pib/chiplet@12000000/eq@2/ex@1 1 -Testing /proc7/pib/chiplet@13000000/eq@3/ex@0 0 -Testing /proc7/pib/chiplet@13000000/eq@3/ex@1 1 -Testing /proc7/pib/chiplet@14000000/eq@4/ex@0 0 -Testing /proc7/pib/chiplet@14000000/eq@4/ex@1 1 -Testing /proc7/pib/chiplet@15000000/eq@5/ex@0 0 -Testing /proc7/pib/chiplet@15000000/eq@5/ex@1 1 EOF test_run libpdbg_p9_fapi_translation_test ex @@ -363,13 +69,6 @@ test_run libpdbg_p9_fapi_translation_test ex test_result 0 < X-Patchwork-Id: 1320969 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 49y3lw6dcRz9sRW for ; Thu, 2 Jul 2020 13:41:00 +1000 (AEST) 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=UG2BhURJ; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3lw4P2dzDqnw for ; Thu, 2 Jul 2020 13:41:00 +1000 (AEST) 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 49y3kM14crzDqnv for ; Thu, 2 Jul 2020 13:39:39 +1000 (AEST) 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=UG2BhURJ; 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 49y3kL62jpz9sQt; Thu, 2 Jul 2020 13:39:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661178; bh=gc29Q2Exe10ploraZh1mSOpJUdzXUkGeryrTBy+sOw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UG2BhURJdDwvCAg9fI8xShAA0fU2VOtoDCxnFhPOELZ5iz+GH4tKywsH6mJ2Gc9kQ 3LoLPfailnmPDiFy6Feo59i7ggVxraUgU9v3DUV3rbCce4qWbhHWYy+VOXbDE/HAcP fJ+c2OGCKlQwKS2vyzoOVI4ezzvbHE87P0CTjZv709MqzBUAhdOrnG/ZqFWekjIrPA yEk8lzIZr5RVvVLWGpzGZaRVaHBzjUHfjSub+P2LSYjFfnHAWolfpLuocSf3EiYvv8 J6YCi51lHb6KbHyxOh/OY015l99bRKwgrOLj06mD0zQgT2hnc3UHGWqjh8m4wh9Ni+ KsC8E4ctmjUzg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:16 +1000 Message-Id: <20200702033918.708013-18-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 17/19] Makefile: Remove unnecessary definitions 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" We will never build a tarball using "make dist". Signed-off-by: Amitay Isaacs --- Makefile.am | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/Makefile.am b/Makefile.am index d606e56..dce09ab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,6 @@ if BUILD_LIBFDT MAYBE_LIBFDT = libfdt endif SUBDIRS = $(MAYBE_LIBFDT) -DIST_SUBDIRS = libfdt GIT_SHA1 ?= `git --work-tree=$(top_srcdir) --git-dir=$(top_srcdir)/.git describe --always --long --dirty 2>/dev/null || echo unknown` @@ -48,28 +47,6 @@ SH_LOG_DRIVER = $(SHELL) $(srcdir)/tests/run_test.sh ACLOCAL_AMFLAGS = -Im4 AM_CFLAGS = -I$(top_srcdir)/ccan/array_size -Wall -Werror -O2 -EXTRA_DIST = \ - fake.dts.m4 \ - fake2.dts.m4 \ - p8-fsi.dts.m4 \ - p8-host.dts.m4 \ - p8-i2c.dts.m4 \ - p8-kernel.dts.m4 \ - p8-pib.dts.m4 \ - p9-fsi.dtsi.m4 \ - p9-host.dts.m4 \ - bmc-kernel.dts.m4 \ - p9r-fsi.dts.m4 \ - p9w-fsi.dts.m4 \ - p9z-fsi.dts.m4 \ - template.S \ - generate_dt_header.sh \ - src/gdb_parser.rl \ - tests/driver.sh \ - tests/run_test.sh \ - tests/test_driver.sh \ - $(PDBG_TESTS) - if TARGET_ARM ARCH_FLAGS="-DTARGET_ARM=1" endif From patchwork Thu Jul 2 03:39:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320970 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 49y3m01jl0z9sQt for ; Thu, 2 Jul 2020 13:41:04 +1000 (AEST) 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=WDU/CheR; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3m00BTJzDqtY for ; Thu, 2 Jul 2020 13:41:04 +1000 (AEST) 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 49y3kM4FTszDqnv for ; Thu, 2 Jul 2020 13:39:39 +1000 (AEST) 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=WDU/CheR; 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 49y3kM1XZnz9sRN; Thu, 2 Jul 2020 13:39:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661179; bh=dVxCGHTKTxUyvEfTdDEX4mI2AqytFLzwqhm8hzKvCmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WDU/CheRZk2XobYLWXSPhCRFSfqzB+tQa6OQPOaGpfQQFMkaDZ/Uh2mLmPdaY+9VZ kNkWbKLtxdQA775sMKMhVqoqKdiI542Ghoyj4x0MzIHMQ3T3uCvQB7AZJFp26gicQR 7IIh1IlzsPC7z1VUHhecrxct3MwdWmnRueLOk/QSFgot/8+GoFwMi1gusNEbcoIFtd 6JfLvT6eE//qBZKV/4s6cS2h6kBXTWvTJNfaWLSESJCDqd4qkRl7LBWRegfLTv8coO ZOz6U/rke6SkUWkYO/eNATXMFIuWkweXqu+MtFpXRrmFdN8q43kYmGvhxCfpSg96gi jJvnk9DIdbolw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:17 +1000 Message-Id: <20200702033918.708013-19-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 18/19] doc: Update documentation 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 --- INDEX.md | 4 +- README.md | 257 ++++++++++++++++++++++++++++++++---------------------- 2 files changed, 155 insertions(+), 106 deletions(-) diff --git a/INDEX.md b/INDEX.md index f4c3ab7..3a2b555 100644 --- a/INDEX.md +++ b/INDEX.md @@ -32,8 +32,8 @@ example: #address-cells = <0x1>; #size-cells = <0x0>; compatible = "ibm,power9-core"; - index = <0x0>; - reg = <0x0 0x0 0xfffff>; + index = <0x0>; + reg = <0x0 0x0 0xfffff>; inside-special-wakeup = <0x0>; thread@0 { diff --git a/README.md b/README.md index 6ed05c8..abc2088 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ POWER9 Backends: - kernel (default): Uses the in kernel OpenFSI driver provided by OpenBMC - fsi: Uses a bit-banging GPIO backend which accesses BMC registers directly via /dev/mem. Requiers `-d p9w/p9r/p9z` as appropriate for the system. +- sbefifo: Uses the in kernel OpenFSI & SBEFIFO drivers provided by OpenBMC When using the fsi backend POWER8 AMI based BMC's must first be put into debug mode to allow access to the relevant GPIOs: @@ -159,95 +160,140 @@ Usage: ./pdbg [options] command ... ### Probe chip/processor/thread numbers ``` $ ./pdbg -a probe - BMC GPIO bit-banging FSI master - CFAM hMFSI Port - p1: POWER FSI2PIB - POWER9 ADU - c16: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c17: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c18: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c19: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c20: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c21: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c22: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c23: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - p0: POWER FSI2PIB - POWER9 ADU - c5: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c7: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c14: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c15: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c19: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c20: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c21: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - c22: POWER9 Core - t0: POWER9 Thread - t1: POWER9 Thread - t2: POWER9 Thread - t3: POWER9 Thread - -Note that only selected targets will be shown above. If none are shown -try adding '-a' to select all targets +proc0: Processor Module + fsi0: Kernel based FSI master (*) + pib0: Kernel based FSI SCOM (*) + chiplet16: POWER9 Chiplet + eq0: POWER9 eq + ex0: POWER9 ex + chiplet32: POWER9 Chiplet + core0: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet33: POWER9 Chiplet + core1: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + ex1: POWER9 ex + chiplet34: POWER9 Chiplet + core2: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet35: POWER9 Chiplet + core3: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet17: POWER9 Chiplet + eq1: POWER9 eq + ex0: POWER9 ex + chiplet36: POWER9 Chiplet + core4: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet37: POWER9 Chiplet + core5: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + ex1: POWER9 ex + chiplet18: POWER9 Chiplet + eq2: POWER9 eq + ex0: POWER9 ex + chiplet40: POWER9 Chiplet + core8: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet41: POWER9 Chiplet + core9: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + ex1: POWER9 ex + chiplet19: POWER9 Chiplet + eq3: POWER9 eq + ex0: POWER9 ex + chiplet44: POWER9 Chiplet + core12: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet45: POWER9 Chiplet + core13: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + ex1: POWER9 ex + chiplet46: POWER9 Chiplet + core14: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet47: POWER9 Chiplet + core15: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet20: POWER9 Chiplet + eq4: POWER9 eq + ex0: POWER9 ex + chiplet48: POWER9 Chiplet + core16: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet49: POWER9 Chiplet + core17: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + ex1: POWER9 ex + chiplet21: POWER9 Chiplet + eq5: POWER9 eq + ex0: POWER9 ex + ex1: POWER9 ex + chiplet54: POWER9 Chiplet + core22: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) + chiplet55: POWER9 Chiplet + core23: POWER9 Core (*) + thread0: POWER9 Thread (*) + thread1: POWER9 Thread (*) + thread2: POWER9 Thread (*) + thread3: POWER9 Thread (*) +proc1: Processor Module +proc2: Processor Module +proc3: Processor Module +proc4: Processor Module +proc5: Processor Module +proc6: Processor Module +proc7: Processor Module + +Note that only selected targets (marked with *) and targets in the +hierarchy of the selected targets will be shown above. If none are shown +try adding '-a' to select all targets. ``` Core-IDs are core/chip numbers which should be passed as arguments to `-c` @@ -266,19 +312,19 @@ specified targets were not found when probing the system. ### Read SCOM register ``` -$ ./pdbg -a getscom 0xf000f -p0:0xf000f = 0x220ea04980000000 -p1:0xf000f = 0x220ea04980800000 +$ ./pdbg -P pib getscom 0xf000f +p0: 0x00000000000f000f = 0x222d104900008040 (/proc0/pib) +p1: 0x00000000000f000f = 0x222d104900008040 (/proc1/pib) ``` ### Write SCOM register on secondary processor -`$ ./pdbg -p1 putscom 0x8013c02 0x0` +`$ ./pdbg -P pib1 putscom 0x8013c02 0x0` ### Get thread status ``` $ ./pdbg -a threadstatus -p0t: 0 1 2 3 4 5 6 7 +p0t: 0 1 2 3 c22: A A A A c21: A A A A c20: A A A A @@ -286,9 +332,9 @@ c19: A A A A c15: A A A A c14: A A A A c07: A A A A -c05: A A A A +c05: A A A A -p1t: 0 1 2 3 4 5 6 7 +p1t: 0 1 2 3 c23: A A A A c22: A A A A c21: A A A A @@ -306,7 +352,7 @@ quiesced state. $ ./pdbg -p0 -c22 -t0 -t1 -t2 -t3 stop $ ./pdbg -p0 -c22 -t0 -t1 -t2 -t3 threadstatus -p0t: 0 1 2 3 4 5 6 7 +p0t: 0 1 2 3 c22: Q Q Q Q ``` @@ -327,7 +373,7 @@ p0:c22:t0:spr008: 0xc0000000008a97f0 ./pdbg -p0 -c22 -t0 -t1 -t2 -t3 start ./pdbg -p0 -c22 -t0 -t1 -t2 -t3 threadstatus -p0t: 0 1 2 3 4 5 6 7 +p0t: 0 1 2 3 c22: A A A A ``` @@ -340,19 +386,22 @@ Wrote 6 bytes starting at 0x0000000250000001 ### Read 6 bytes from memory through processor 1 ``` $ sudo ./pdbg -p 1 getmem 0x250000001 6 | hexdump -C +0x0000000250000000: 68 65 6c 6c 6f 0a + +$ sudo ./pdbg -p 1 getmem 0x250000001 6 --raw | hexdump -C 00000000 68 65 6c 6c 6f 0a |hello.| 00000006 ``` ### Write to cache-inhibited memory through processor 1 ``` -$ echo hello | sudo ./pdbg -p 1 putmem -ci 0x3fe88202 +$ echo hello | sudo ./pdbg -p 1 putmem --ci 0x3fe88202 Wrote 6 bytes starting at 0x000000003fe88202 ``` ### Read from cache-inhibited memory through processor 1 ``` -$ sudo ./pdbg -p 1 getmem -ci 0x3fe88202 6 | hexdump -C +$ sudo ./pdbg -p 1 getmem --ci 0x3fe88202 6 --raw | hexdump -C 00000000 68 65 6c 6c 6f 0a |hello.| 00000006 ``` @@ -366,16 +415,16 @@ reg 0003ffff 40000000 00000000 00001000 phandle 100003bd (268436413) name "hwrng" -$ sudo ./pdbg -p 0 getmem -ci 0x0003ffff40000000 4 |hexdump -C +$ sudo ./pdbg -p 0 getmem --ci 0x0003ffff40000000 4 --raw |hexdump -C 00000000 01 c0 d1 79 |...y| 00000004 -$ sudo ./pdbg -p 0 getmem -ci 0x0003ffff40000000 4 |hexdump -C +$ sudo ./pdbg -p 0 getmem --ci 0x0003ffff40000000 4 --raw |hexdump -C 00000000 77 9b ab ce |w...| 00000004 -$ sudo ./pdbg -p 0 getmem -ci 0x0003ffff40000000 4 |hexdump -C +$ sudo ./pdbg -p 0 getmem --ci 0x0003ffff40000000 4 --raw |hexdump -C 00000000 66 8d fb 42 |f..B| 00000004 -$ sudo ./pdbg -p 0 getmem -ci 0x0003ffff40000000 4 |hexdump -C +$ sudo ./pdbg -p 0 getmem --ci 0x0003ffff40000000 4 --raw |hexdump -C 00000000 fa 9b e3 44 |...D| 00000004 ``` From patchwork Thu Jul 2 03:39:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320971 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 49y3m4066Yz9sQt for ; Thu, 2 Jul 2020 13:41:08 +1000 (AEST) 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=WNKVylcw; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49y3m31VXSzDqnw for ; Thu, 2 Jul 2020 13:41:07 +1000 (AEST) 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 49y3kN3mCFzDqsl for ; Thu, 2 Jul 2020 13:39:40 +1000 (AEST) 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=WNKVylcw; 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 49y3kM4ycCz9sRf; Thu, 2 Jul 2020 13:39:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661179; bh=OxWCatXq92t1e8+gQAxTno06Bt42BDSpBD9FHmcAocs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WNKVylcwWvsMiHfb1RISr2ZSQMiU2L69XzwvjBDtEYzwTlBSYJZOJZ9nNCGHQ1dGu ZSgZMRctia3Yh27xTbZzA4fljHHIto6bRmtmIjRNgL53/ni/vlr06mXd2m1NvpEqLs 6zWJ7IaDJzFsAnz7x2Zdm4c95BDUvOwXY8UL26U5YiLK6AZsYDnqlYDabS2jelotBY bQT7g39qmzs56NcL/YtmVriQl0JromXImWkeSb/Vr7EWtUQMNWyql5dy2Lpnadu0Eo m+2ydeUnDr4zPEaCrTsJE0hXoB5NsE9D8xEk7VYGmBkHscfmjG7s19zOdN8GUS8j7M PbYqlv1qc4vxw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:39:18 +1000 Message-Id: <20200702033918.708013-20-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200702033918.708013-1-amitay@ozlabs.org> References: <20200702033918.708013-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 19/19] configure: Release 3.0 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" The library API has changed, so update SO library version. Signed-off-by: Amitay Isaacs --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3e3db10..0f8b9de 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ -AC_INIT([pdbg], [2.5-rc1]) +AC_INIT([pdbg], [3.0]) AM_INIT_AUTOMAKE([subdir-objects]) AM_SILENT_RULES([yes]) -AC_SUBST(SONAME_CURRENT, 3) +AC_SUBST(SONAME_CURRENT, 4) AC_SUBST(SONAME_REVISION, 0) AC_SUBST(SONAME_AGE, 0)