From patchwork Fri Oct 5 03:45:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rashmica Gupta X-Patchwork-Id: 979270 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42RFzL52X4z9s8J for ; Fri, 5 Oct 2018 13:46:06 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Xtf+V/bR"; 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 42RFzL34fkzF3Hd for ; Fri, 5 Oct 2018 13:46:06 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Xtf+V/bR"; dkim-atps=neutral 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::633; helo=mail-pl1-x633.google.com; envelope-from=rashmica.g@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="Xtf+V/bR"; dkim-atps=neutral Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42RFzG19FTzDqdv for ; Fri, 5 Oct 2018 13:46:02 +1000 (AEST) Received: by mail-pl1-x633.google.com with SMTP id q17-v6so6157734plr.8 for ; Thu, 04 Oct 2018 20:46:01 -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; bh=W812S9Qrco5uRLn85Bb0dT5UGRoDQOk994aKx9keQE8=; b=Xtf+V/bRuOG97ChH0OO3eD7KFsfG9mHX4VXQCDFT48cAEtZTPvwniDXkMlaTkEvf0o u6YCK7ndlbMdsJYFuzc9bF0MNArS2eHKT14WPOCQPnIlprfSoXcmSFW1zZnzraKjHztq wKURSdLLxK+prB3Xo9DRenwUwQ/MoXW5VCV37vNBHuVdWHka3+CZSgzTUxUB4jZNjDAd y/8rpu/5wlB8X+KFih6n6nJhejcgzrPK2gESdgj/edrKmCyQrRysI+QapP+iS+AeeKph FqE/RnE6wCusQjMlgIpSGgZ7TXyjj/lN22ot+mKX+2wf6/WCrXou/6IgF1kbKaO+uQGl 8X4A== 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; bh=W812S9Qrco5uRLn85Bb0dT5UGRoDQOk994aKx9keQE8=; b=O9FV/jpM8ARY+00KruPpsO1H33X5E0U1rpsAARu06/0rIxX+6fTrOrAQyIjrdgIyjP CB42NG7c9GH4flUe1vkKkntIoDCAqr8h5DC04X3r+gl5dVXxl4J0BK7diV3M6C+jLfLJ B85qARIIYfxeia7KHQlOQIdg0mkqRKeGcaqwDu1y1kYRCybZmdL3BmhnfnpbV/IrgPgI pJ2ap67JsAJjEBov8s0ju8ruPjqQ7vht5xGzJOGZ70rDm4pHfhqwaAysJgMxKa0QR9D/ QINld9bC55m9aD+iDAas9I1s3hPe0anY9pQsPYOJPwfZVw0hKUc1WcEpp9RXN3gmqu3l Pcpg== X-Gm-Message-State: ABuFfog2gY4AkRZ6Sutcrbq3MSWVcFVxxYJrptYFeIwMPb0zr3CpcH/D 20JhvLXtujHqwkaAwfj96y0RCAKUnAc= X-Google-Smtp-Source: ACcGV63QJh52tsRLu12aMgrHTT/+NBeNWN5EG/GBKBDVoPINi9Vhbhw+J8PRjMCkFs/RHDx3aj8N7w== X-Received: by 2002:a17:902:758f:: with SMTP id j15-v6mr9752564pll.160.1538711160310; Thu, 04 Oct 2018 20:46:00 -0700 (PDT) Received: from rashmica.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id 68-v6sm15220380pfg.136.2018.10.04.20.45.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 20:45:59 -0700 (PDT) From: Rashmica Gupta To: pdbg@lists.ozlabs.org Date: Fri, 5 Oct 2018 13:45:51 +1000 Message-Id: <20181005034551.1296-1-rashmica.g@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Pdbg] [PATCH] libpdbg/p8chip: Add in debug messages 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: , MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" --- libpdbg/p8chip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c index 2f1d599..f6df925 100644 --- a/libpdbg/p8chip.c +++ b/libpdbg/p8chip.c @@ -514,8 +514,11 @@ static int p8_enable_attn(struct pdbg_target *target) PR_ERROR("Unable to get HID0\n"); return 1; } + PR_INFO("HID0 was 0x%"PRIx64 " \n", hid0); + hid0 |= EN_ATTN; + PR_INFO("writing 0x%"PRIx64 " to HID0\n", hid0); if (p8_put_hid0(core, hid0)) { PR_ERROR("Unable to set HID0\n"); return 1;