From patchwork Mon Dec 21 10:17:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1418954 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CzwQV257yz9sVm for ; Mon, 21 Dec 2020 21:17:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=JSQ1wx3x; 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 4CzwQT50JdzDqQF for ; Mon, 21 Dec 2020 21:17:53 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::52e; helo=mail-pg1-x52e.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=JSQ1wx3x; dkim-atps=neutral Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (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 4CzwQM6j7PzDqNm for ; Mon, 21 Dec 2020 21:17:42 +1100 (AEDT) Received: by mail-pg1-x52e.google.com with SMTP id p18so6069174pgm.11 for ; Mon, 21 Dec 2020 02:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pdSMWsbnpykKnHXejlRoS66NFSZN5jBO1rSwP1o0ENg=; b=JSQ1wx3xPqV4D9fKSbq51zQFAIudH+Brife7lwV2nnxlzpSn0S82qRzC7eP0iHnkxI twJTki2O7MZXMqS7keb4yP9x8RrtlUgbloxLF/9PzRj1nxwWw+K9d0+FGhMahdqSvLbt YaTn1uY4gIOVs7rZyVXDIJuCZY2AD5mY00WLQ+fbVSCzyD/yu+AavC+rZ9LFSfBWdm2L 3sMulubU0N8EXE2oChONGUcFoBRgVl4UiISxjzDaKxHg6cpNSBNcblT+GKJw1P7jIBDw 2dzH1t8qNDAGypxdFtgLLqCGBkVH8aXjF451iEoMf5cWQi7pWkrWYFlKgUvxccjoNt9p 76cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pdSMWsbnpykKnHXejlRoS66NFSZN5jBO1rSwP1o0ENg=; b=AA0yXZgV6rs/YrS50zq/GCUQb+wSg9BGDWO69478wM+zZr7t1/axF7siIuo7sf1Pnq MKqBL8Wfb/ImTTyODUK34lPpmbXbt1M9IvgUVu8kFF+APpOpXY4OWM6KC0aPxOfyTwsz DekDRTzUgl++EWlnN2vOJmPdI5ypzJnghcY4fvoUp/bl0OmtR/94zUsQwvAaTSKvh22s 18ScWkNq2ViIW4yJHka/cymtEvOnxUOOuMYWio5huJcUy2jatXvOrAScLFm+Lb0yEdD+ BH23eT5KM2jzenFUAFTv9H6H0SDGv6JMq02GWL+0SyonWIux/3XbEpXPwigZQW4DmpyE eIfQ== X-Gm-Message-State: AOAM533bltwOVCwArFc9hL/i+agMAq/FSos3KlSyuiNdMYDpHHFZIYq7 Bps9bPA/271KIE1UjVF3bEOZB0L9XZE= X-Google-Smtp-Source: ABdhPJx2ikR9up/e+sh1KjEj5EX1jyYnKNR3iumha7K3ldgeAHnAWs77oUDAJwFkXoCpB/fGgMxlmQ== X-Received: by 2002:a63:231b:: with SMTP id j27mr13830751pgj.98.1608545860649; Mon, 21 Dec 2020 02:17:40 -0800 (PST) Received: from bobo.ibm.com (193-116-97-30.tpgi.com.au. [193.116.97.30]) by smtp.gmail.com with ESMTPSA id a136sm17157971pfd.149.2020.12.21.02.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 02:17:40 -0800 (PST) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 21 Dec 2020 20:17:31 +1000 Message-Id: <20201221101733.912938-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Pdbg] [PATCH 1/3] libpdbg/p10chip: remove delay from special wakeup clearing 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: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" These were added to the p9chip in an attempt to work around some instability. Try without them for P10, skiboot has similarly removed the delays. Signed-off-by: Nicholas Piggin Reviewed-by: Joel Stanley --- libpdbg/p10chip.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libpdbg/p10chip.c b/libpdbg/p10chip.c index 70067cf..f26e4ca 100644 --- a/libpdbg/p10chip.c +++ b/libpdbg/p10chip.c @@ -119,8 +119,6 @@ static void p10_core_release(struct pdbg_target *target) struct core *core = target_to_core(target); enum pdbg_target_status status; - usleep(1); /* enforce small delay before and after it is cleared */ - /* Probe and release all threads to ensure release_spwkup is up to * date */ pdbg_for_each_target("thread", target, child) { @@ -143,7 +141,6 @@ static void p10_core_release(struct pdbg_target *target) return; pib_write(target, QME_SPWU_FSP, 0); - usleep(10000); } #define NUM_CORES_PER_EQ 4 From patchwork Mon Dec 21 10:17:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1418955 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 4CzwQb0hh9z9sVs for ; Mon, 21 Dec 2020 21:17:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Dcm9xsle; 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 4CzwQZ3y0LzDqP6 for ; Mon, 21 Dec 2020 21:17:58 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1034; helo=mail-pj1-x1034.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Dcm9xsle; dkim-atps=neutral Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (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 4CzwQM6kzBzDqP6 for ; Mon, 21 Dec 2020 21:17:47 +1100 (AEDT) Received: by mail-pj1-x1034.google.com with SMTP id n3so7622384pjm.1 for ; Mon, 21 Dec 2020 02:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HXhXK5zGJUD7F70izDOfJKFCLZRpdU9VoDEjXosO68Q=; b=Dcm9xsleO0YK40rin4FM8XLeEJR9wCHyW6jmcbgTthxk6fbYbTKu2xiqggxk8jg4qU fUE/JBetUEaTIzfZIKLVtT7MiRhoCTCE9+pCtIAsj/9q/8vKYBQV8juD3mxNKYmRaASw HankVVffxQ3aYJFW+IPIBBdkxldgnubE+vplK0gNwtq0og4IYJEzsq7f/yff1RuacfLO ahJ6FjKQ4RWY8jXGNYyZJCpnyfXCVwV5GX8C/kuedJCPY66Bc9XwkdQv9C+jzTkCvZ7W jQwv5RUM8tVomp+YuT2rV5VETlOiLGdO97Z1DJjNWRwESgjndCh5PYxs+VWQMH1cTpNa pHWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HXhXK5zGJUD7F70izDOfJKFCLZRpdU9VoDEjXosO68Q=; b=RmdFH0775z03lXZDNWhog8MRQkLTRsqhUJzvUPEt2NgfEFrSF5RULv60qpDh77h7Af OzCawgj6HDTIuPZZ4JCR9A0Vm1659yrcYadBaxEx/QrgwCoRq7sHz8BVy6GpUisxJYrN r4T5MvdXhaVFV5LBnx9GBIDc4OGZUlSev6/3Uc1Wr3lMp94RwmaZ0vXe+LcrMq7PejIj v7RfMv6eg3PdHRiVOY2znSJ9lEm4NtkFgH0/otWu4fNCBZRtJ71IaTNaht5wSPM86o3E sr176ywzN6KEOH0ej/HYBbqROOv9N1enDwjvzKnemAyNsKIqkkifMRtZl1e4oMtdcdJI +2yw== X-Gm-Message-State: AOAM532rOHHqtvbPRbmzlIECEJgwCWxBPXjP6vmHLKuZRHebFsqW1pZy UWximIBkQfok5imEK3urgVnyC82IAG0= X-Google-Smtp-Source: ABdhPJwNB8e4YvFGmmyHyH5qgo+vK9Xf9PoKhlK6l4e4oomYO1N6Pf61bphA+lhxKJd71HYqY4FPKg== X-Received: by 2002:a17:902:a9cb:b029:d8:fae5:9e9a with SMTP id b11-20020a170902a9cbb02900d8fae59e9amr15690623plr.32.1608545863236; Mon, 21 Dec 2020 02:17:43 -0800 (PST) Received: from bobo.ibm.com (193-116-97-30.tpgi.com.au. [193.116.97.30]) by smtp.gmail.com with ESMTPSA id a136sm17157971pfd.149.2020.12.21.02.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 02:17:42 -0800 (PST) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 21 Dec 2020 20:17:32 +1000 Message-Id: <20201221101733.912938-2-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201221101733.912938-1-npiggin@gmail.com> References: <20201221101733.912938-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 2/3] libpdbg/p10chip: add basic thread direct controls 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: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" This adds support for stop, start, sreset. Signed-off-by: Nicholas Piggin Reviewed-by: Joel Stanley --- libpdbg/p10_fapi_targets.c | 20 -------- libpdbg/p10chip.c | 101 +++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 20 deletions(-) diff --git a/libpdbg/p10_fapi_targets.c b/libpdbg/p10_fapi_targets.c index 6023389..0f16735 100644 --- a/libpdbg/p10_fapi_targets.c +++ b/libpdbg/p10_fapi_targets.c @@ -488,25 +488,6 @@ static struct chiplet p10_chiplet = { }; DECLARE_HW_UNIT(p10_chiplet); -static int p10_thread_probe(struct pdbg_target *target) -{ - struct thread *thread = target_to_thread(target); - - thread->id = pdbg_target_index(target); - - return 0; -} - -static struct thread p10_thread = { - .target = { - .name = "POWER10 Thread", - .compatible = "ibm,power10-thread", - .class = "thread", - .probe = p10_thread_probe, - }, -}; -DECLARE_HW_UNIT(p10_thread); - static uint64_t no_translate(struct pdbg_target *target, uint64_t addr) { /* No translation performed */ @@ -540,6 +521,5 @@ static void register_p10_fapi_targets(void) pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_pauc_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_pau_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_chiplet_hw_unit); - pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_thread_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_fc_hw_unit); } diff --git a/libpdbg/p10chip.c b/libpdbg/p10chip.c index f26e4ca..87d34e5 100644 --- a/libpdbg/p10chip.c +++ b/libpdbg/p10chip.c @@ -22,8 +22,16 @@ #include "chip.h" #include "debug.h" +/* + * NOTE! + * All timeouts and scom procedures in general through the file should be kept + * in synch with skiboot (e.g., core/direct-controls.c) as far as possible. + * If you fix a bug here, fix it in skiboot, and vice versa. + */ + #define P10_CORE_THREAD_STATE 0x28412 #define P10_THREAD_INFO 0x28413 +#define P10_DIRECT_CONTROL 0x28449 #define P10_RAS_STATUS 0x28454 /* PCB Slave registers */ @@ -31,6 +39,7 @@ #define SPECIAL_WKUP_DONE PPC_BIT(1) #define QME_SPWU_FSP 0xE8834 +#define RAS_STATUS_TIMEOUT 100 /* 100ms */ #define SPECIAL_WKUP_TIMEOUT 100 /* 100ms */ static int thread_read(struct thread *thread, uint64_t addr, uint64_t *data) @@ -40,6 +49,13 @@ static int thread_read(struct thread *thread, uint64_t addr, uint64_t *data) return pib_read(core, addr, data); } +static uint64_t thread_write(struct thread *thread, uint64_t addr, uint64_t data) +{ + struct pdbg_target *chip = pdbg_target_require_parent("core", &thread->target); + + return pib_write(chip, addr, data); +} + struct thread_state p10_thread_state(struct thread *thread) { struct thread_state thread_state; @@ -89,6 +105,90 @@ struct thread_state p10_thread_state(struct thread *thread) return thread_state; } +static int p10_thread_probe(struct pdbg_target *target) +{ + struct thread *thread = target_to_thread(target); + + thread->id = pdbg_target_index(target); + thread->status = thread->state(thread); + + return 0; +} + +static void p10_thread_release(struct pdbg_target *target) +{ + struct core *core = target_to_core(pdbg_target_require_parent("core", target)); + struct thread *thread = target_to_thread(target); + + if (thread->status.quiesced) + /* This thread is still quiesced so don't release spwkup */ + core->release_spwkup = false; +} + +static int p10_thread_start(struct thread *thread) +{ + if (!(thread->status.quiesced)) + return 1; + + if ((!(thread->status.active)) || + (thread->status.sleep_state == PDBG_THREAD_STATE_STOP)) { + /* Inactive or active and stopped: Clear Maint */ + thread_write(thread, P10_DIRECT_CONTROL, PPC_BIT(3 + 8*thread->id)); + } else { + /* Active and not stopped: Start */ + thread_write(thread, P10_DIRECT_CONTROL, PPC_BIT(6 + 8*thread->id)); + } + + thread->status = thread->state(thread); + + return 0; +} + +static int p10_thread_stop(struct thread *thread) +{ + int i = 0; + + thread_write(thread, P10_DIRECT_CONTROL, PPC_BIT(7 + 8*thread->id)); + while (!(thread->state(thread).quiesced)) { + usleep(1000); + if (i++ > RAS_STATUS_TIMEOUT) { + PR_ERROR("Unable to quiesce thread\n"); + break; + } + } + thread->status = thread->state(thread); + + return 0; +} + +static int p10_thread_sreset(struct thread *thread) +{ + /* Can only sreset if a thread is quiesced */ + if (!(thread->status.quiesced)) + return 1; + + thread_write(thread, P10_DIRECT_CONTROL, PPC_BIT(4 + 8*thread->id)); + + thread->status = thread->state(thread); + + return 0; +} + +static struct thread p10_thread = { + .target = { + .name = "POWER10 Thread", + .compatible = "ibm,power10-thread", + .class = "thread", + .probe = p10_thread_probe, + .release = p10_thread_release, + }, + .state = p10_thread_state, + .start = p10_thread_start, + .stop = p10_thread_stop, + .sreset = p10_thread_sreset, +}; +DECLARE_HW_UNIT(p10_thread); + static int p10_core_probe(struct pdbg_target *target) { struct core *core = target_to_core(target); @@ -190,5 +290,6 @@ DECLARE_HW_UNIT(p10_core); __attribute__((constructor)) static void register_p10chip(void) { + pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_thread_hw_unit); pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p10_core_hw_unit); } From patchwork Mon Dec 21 10:17:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1418956 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 4CzwQj0nWrz9sVw for ; Mon, 21 Dec 2020 21:18:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iu0HVpVx; 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 4CzwQh617qzDqPb for ; Mon, 21 Dec 2020 21:18:04 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1030; helo=mail-pj1-x1030.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iu0HVpVx; dkim-atps=neutral Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 4CzwQP3kkTzDqNm for ; Mon, 21 Dec 2020 21:17:48 +1100 (AEDT) Received: by mail-pj1-x1030.google.com with SMTP id j13so6191733pjz.3 for ; Mon, 21 Dec 2020 02:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TLE2BfPnddvFIcBhy4H3STRtAz24EAe4XEPYqMQ+qVo=; b=iu0HVpVxWGdjR/p/x8B6BqsyqEhfZBB7Z0eGJM+U3i+5TJAr8i+vG5B9S+u/82PCSf tPoqY0z1XdI6qUm4dUqGSHaUr90bcAmqHR0W3N4ReObQGI45FzRhwcjV4vyadxB5aNRu OKLw/yZ65YhJg9W19dKBZXVVzMmsX7n9Gx99J9d0z2gF+ZxKPUbpHFLs1HLgm0Y/PYKt 7Eagl3XmGr0okdRrs1pBUrlqLqqloarOVpxDAvM03JON+2sUxKYGFOkPptuCyfGDZqKQ NlefOMnEv+nplBW5iMm3ju9XqGCp8xGtf4JYkAexckBRPMzLgKZY7GKFXyleHRGzIcfg QxAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TLE2BfPnddvFIcBhy4H3STRtAz24EAe4XEPYqMQ+qVo=; b=BqaADdtR0BE57G4gIXS0sLEsmX/wSYDE7cDJSiDeXiFsIzCvo1Woc1nik/f3SWUHdS +ycdxfiQLafwiGIXstc9lN2EFl7UfGrFof5jXg5xt1pXiyC2mG8ehpwp05Dx3rg7gatC oZGkt+6RMjUqqNBsJN7okVvQRIDC4UrhUOBsqeaZ2aOHklHG9LeH7DrgCwahYR11M6h+ v9jTBWSeG3hjpw3ZLLaZWWhoLiy8bkvjbCQPsytPAofaA8Lko6mzoLZLIsdemQhqmk+2 GxB6qI1wx0vGSlVA6oImItaijRWX8SMEB1GAzfbt+FDLgnC4Sk6wkal4C6SXRqaZ+ujF 7ZEg== X-Gm-Message-State: AOAM53175qcLJEyVhyiOIxbUg7uoAOXxPKxdk3ytoiMRSiUFl/dEqWOp 6+0S2Ygq/RHbmQgAu7COlfhnghARPRw= X-Google-Smtp-Source: ABdhPJwuMj4UM7glDBjgUpxGNokkjsUfHh5NnD1JknuX4rxP+bVptjfO2gwVGd3Bnptx7A4ckzU1JA== X-Received: by 2002:a17:902:b206:b029:dc:1f41:962d with SMTP id t6-20020a170902b206b02900dc1f41962dmr16146164plr.28.1608545866062; Mon, 21 Dec 2020 02:17:46 -0800 (PST) Received: from bobo.ibm.com (193-116-97-30.tpgi.com.au. [193.116.97.30]) by smtp.gmail.com with ESMTPSA id a136sm17157971pfd.149.2020.12.21.02.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 02:17:45 -0800 (PST) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 21 Dec 2020 20:17:33 +1000 Message-Id: <20201221101733.912938-3-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201221101733.912938-1-npiggin@gmail.com> References: <20201221101733.912938-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 3/3] build: add hint for interpreter location fix 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: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" For some reason my environment requires this. Signed-off-by: Nicholas Piggin --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index abc2088..7892a8d 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ make rsync pdbg root@bmc:/usr/local/bin ``` +Depending on your cross compile environment, you may get a message like +`pdbg: No such file or directory` when execting the binary on the BMC, +which may be fixable by correcting loader location: + +`patchelf --set-interpreter /lib/ld-linux-armhf.so.3 pdbg` + ## Usage Several backends are supported depending on which system you are using and are