From patchwork Tue Mar 12 01:49:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1055020 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 44JHwG3vxJz9s4V for ; Tue, 12 Mar 2019 12:49:50 +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.b="gC2kaWcX"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44JHwF6GYfzDqFC for ; Tue, 12 Mar 2019 12:49:49 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::432; helo=mail-pf1-x432.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.b="gC2kaWcX"; dkim-atps=neutral Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44JHw24FGvzDqDP for ; Tue, 12 Mar 2019 12:49:38 +1100 (AEDT) Received: by mail-pf1-x432.google.com with SMTP id q17so590673pfh.10 for ; Mon, 11 Mar 2019 18:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=blnZgjxSkBQa5+dOWuYKcIzHCyLrqYkuqje8h1nQLHs=; b=gC2kaWcXdOkfBvFc8HFU+7ahJ6qFPbc/b4IdaSETlECudgQRg4uP8MQnVhU2p+4zak jRB8/ufliXwKNj6OCILrSrr7mP2JFj1Uwi8GfSGK14BidVQKEf0vW+ATSkvj589W7Gze FeHCZ2zu7oMyC03IqIT7ykjO1u5Ou9ozO38+vjtbD8MzQawsMh1wGoXWuxu0vPMDUHPF gPAyQql031hTwjoYm1aJA17XNF1M2RgW/JZG6TALWPmBnsnlUDtn/4yUPPG0ei+4E0Fx Sx4HA60izP/rnKFTseD29IMQbYkDXq9O/SFmNz4KSRmpT1yWcZm0qwtWCKK32ckcvN94 9Z9Q== 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=blnZgjxSkBQa5+dOWuYKcIzHCyLrqYkuqje8h1nQLHs=; b=grQBT43hVIFevtKfTmiKdmHL3xiir0loy4mkuhhZuNh8I3uUXQSo/153cSrAvK2Phg e9LRHcg99iBwNFJyt+T/Gnb7odkAlr+DNzaISM9UB1xNNlNp0qnF4c7G6YlVMEIBEIfq 3Mq3gu8324S5SIClZTIjRUTWiV3p+f0jWdlaalyqH6T5clxvbqk1bMWc6JoJmh/jgyIT IkFSHfl1a4Eb2ajxavuCrJRngKkME6CMQiOs79OV6HDWLtH55wvZ+2FCohgPRZS24WQb 2MwMjZdG8I/lfwz6VHmQcWCjtJFJMAM57sgU4eqE2pZnRKKGupHsh+h8RDkc6anvYyCs /1WQ== X-Gm-Message-State: APjAAAUfakiVoCCc7ZQk4H5GO86nOeI7ybro5sWMCRDOswnGoyjX24QP xhDYBk0JQMVR6gT7ZXqgdu3bNStO X-Google-Smtp-Source: APXvYqyPYKtX/WY521rc4xVz1IwlapGTHmwq3bgDCzXwGvGppLGHVdSjwG+JwBc9MVAO0yRRrDUXvg== X-Received: by 2002:aa7:8c1a:: with SMTP id c26mr36033193pfd.31.1552355376059; Mon, 11 Mar 2019 18:49:36 -0700 (PDT) Received: from bobo.ibm.com ([1.132.158.219]) by smtp.gmail.com with ESMTPSA id m9sm10592891pfi.31.2019.03.11.18.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 18:49:35 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Tue, 12 Mar 2019 11:49:15 +1000 Message-Id: <20190312014920.25368-3-npiggin@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190312014920.25368-1-npiggin@gmail.com> References: <20190312014920.25368-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 2/7] libpdbg/p8chip.c: read status from correct target X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" --- libpdbg/p8chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c index 914c335..61b1e25 100644 --- a/libpdbg/p8chip.c +++ b/libpdbg/p8chip.c @@ -291,7 +291,7 @@ static int p8_thread_stop(struct thread *thread) CHECK_ERR(pib_write(&thread->target, DIRECT_CONTROLS_REG, DIRECT_CONTROL_SP_STOP)); /* Wait for thread to quiese */ - CHECK_ERR(pib_read(&chip->target, RAS_STATUS_REG, &val)); + CHECK_ERR(pib_read(&thread->target, RAS_STATUS_REG, &val)); if (i++ > RAS_STATUS_TIMEOUT) { PR_ERROR("Unable to quiesce thread %d (0x%016" PRIx64 ").\n", thread->id, val);