From patchwork Thu Jul 2 03:38:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1320953 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 49y3kW4zQFz9sRN for ; Thu, 2 Jul 2020 13:39:47 +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=GpwnAcEL; 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 49y3kW3Gx9zDqnc for ; Thu, 2 Jul 2020 13:39:47 +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) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49y3kD2fxKzDqlD 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=GpwnAcEL; 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 49y3kC6MJfz9sQt; Thu, 2 Jul 2020 13:39:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593661172; bh=2jfd37dHYsnFd6xjefhNFZpHZIaLi1G2qapat2GAd74=; h=From:To:Cc:Subject:Date:From; b=GpwnAcELWPW0BcMJwR/dy+WloXlMGeLhO9LPOp6D3BCSCf6TQqSCBSF3lYZXOKr5D Kgr8aausGgqV7krUGDTy2M9p6QEs5JPObpBOZqaf4PLzmEJ5ZJMnZoMfSNCw/DqDnk Y8Vgp4vUwy3uP75JAgoqyJiJDY4XjcL1r4hkizxEHziMOOWGvTiWhh85m8ucKsQ8Bb Kr7igvKXV92lE89fr/vmu1I0EDTBpa2kILhP2kV6tcf5P+ql60cLwRTvZaXPug9qvi WZHfH2A/NcVO9vrxobedpNsiSvamQFVbcU5sos1ZFeqGBYEI/nPUye8EbBrKWxRt4K 0so/VTqPLhy7A== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 2 Jul 2020 13:38:59 +1000 Message-Id: <20200702033918.708013-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Pdbg] [PATCH 00/19] Fixes and cleanup before release 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 patch set is a collection of mostly fixes and cleanup patches, posted as a single set for easier review before we tag new release. The important changes include: - Fix backend detection logic for sbefifo - Fix marshalling for putscom chip-op - Add processor type to allow using generic sbefifo backend with minor changes in SBE chip-op api - Add thread apis to get/set FPRs Please ignore other patches on the list as this patchset includes all the pending patches on the list. Amitay Isaacs (19): libpdbg: Run hwp only if target is enabled and hwp is defined libpdbg: Use register type macros instead of hard-coded values libpdbg: Refactor code to get chip id libpdbg: Add auto-detection for SBEFIFO backend libpdbg: Always allocate ffdc data and return to caller libsbefifo: Fix marshalling for putscom chipop libpdbg: Add processor type and accessor libpdbg: Add thread procedures to get/set FPR libpdbg: Add sbefifo implementation of thread getfpr/putgpr Makefile: Remove reference to non-existent file Makefile: Include missing file in libpdbg sources dts: Remove unused device tree file libpdbg: Use index as thread-id for p9 system dts: Remove unused tid property dts: Set device-path required by kernel-fsi driver tests: Run p9 fapi translation tests on single processor Makefile: Remove unnecessary definitions doc: Update documentation configure: Release 3.0 INDEX.md | 5 +- Makefile.am | 28 +- README.md | 257 +++--- configure.ac | 4 +- libpdbg/adu.c | 42 + libpdbg/dtb.c | 155 +++- libpdbg/htm.c | 44 +- libpdbg/hwunit.h | 3 + libpdbg/libpdbg.h | 40 +- libpdbg/p9chip.c | 4 +- libpdbg/sbefifo.c | 50 +- libpdbg/target.c | 129 ++- libpdbg/thread.c | 248 ++++- libsbefifo/cmd_scom.c | 4 +- p8-kernel.dts.m4 | 1 + p9-pib.dts.m4 | 99 -- p9.dts.m4 | 1 - src/tests/libpdbg_p9_fapi_translation_test.C | 5 + tests/test_p9_fapi_translation.sh | 903 ------------------- 19 files changed, 803 insertions(+), 1219 deletions(-) delete mode 100644 p9-pib.dts.m4