From patchwork Mon Aug 2 05:41:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Niethe X-Patchwork-Id: 1512287 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) 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=oiUSuQ6+; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (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 4GdTLl0WbRz9sXS for ; Mon, 2 Aug 2021 16:56:30 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GdTLj75mLz2yNL for ; Mon, 2 Aug 2021 16:56:29 +1000 (AEST) Authentication-Results: lists.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=oiUSuQ6+; dkim-atps=neutral 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::1035; helo=mail-pj1-x1035.google.com; envelope-from=jniethe5@gmail.com; receiver=) 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=oiUSuQ6+; dkim-atps=neutral Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (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 4GdRhF092Vz301k for ; Mon, 2 Aug 2021 15:41:31 +1000 (AEST) Received: by mail-pj1-x1035.google.com with SMTP id l19so23798087pjz.0 for ; Sun, 01 Aug 2021 22:41:31 -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:mime-version :content-transfer-encoding; bh=CmramQzcvLIxi2uAVdJWwRfxJ/NlxhJO8wu+Ode+Wjc=; b=oiUSuQ6+jywbHbUC73S5GDvCyQuxx+mlejxM0v6fnbXj2/e7J8Wqm2wPPf8PiilcpP bCgke+0PIZpIjE3oqVh5QgkK/BYh1hj+8M41N0oi1lme3FajaXCml6A6ViJXj7uiYwqP kzPSZNlqW0d8d4a0oUhZLqPsRBJEvtoQgWIfPWwzInTA+MrQUCR2zhwX0WjEgU36hKOH Eg60Y6DERVkv4HK4UQ47PUNgoxm4OPpj72vFMZzRM/7K+hnXT/vurymiB1CBp/qKYHQf TlxRj4A6MUQFFidNeyaelQtzjD2lJxAHnoH/pDPdJ9Vpxl63gMLmU4zpRTzjRzWlztwc tJPA== 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=CmramQzcvLIxi2uAVdJWwRfxJ/NlxhJO8wu+Ode+Wjc=; b=jOQDNsaZKHT2C2+2rw0zxS/9Lr1rVoGslURO6ZIMoq2+lHbGCiqxTrq0i2vvh/hKB9 dQivGDpsYpLxf3G+I7EYpDPZISn5wX76mtKuD0ixBpibchkPr5xcJMCZgf+KY++cCCJP k8yov6thsigmiNpwBU6BdS6Yhmfu9FbyROwZoY6s4T2P1jMU0qCeYUd5s5V5U57Ns6iH cJiVI4ib/Bb0puyxIOlla2KOCrqBpO7p0cI21KM/mDXYs+hhxo41Qi6NUcsuOyH9nEyX iIXOBlffaI9ClGHDBsZhG4pvKYNpqgUOFoXhvfIgKKhaYGQUhAZFi0Omzhd8XJVAfn07 wtDA== X-Gm-Message-State: AOAM532nU/awgLzTbtgejinHcDUbO/ik4CCaFazhcDtBNsXE6YeoqU/d sedX4iUzQPpA0AEc85v7W2pYBPsK48c= X-Google-Smtp-Source: ABdhPJyNY/mn5rSw3kSd0smGiyQOLdKS2DzrOLCGVV9+9Jnvk2XUJAVQ8GZhH1BlTLc6PKmvSPFnYA== X-Received: by 2002:a17:90b:2246:: with SMTP id hk6mr14927485pjb.112.1627882887036; Sun, 01 Aug 2021 22:41:27 -0700 (PDT) Received: from tee480.ozlabs.ibm.com (159-196-117-139.9fc475.syd.nbn.aussiebb.net. [159.196.117.139]) by smtp.gmail.com with ESMTPSA id 189sm1741852pfx.135.2021.08.01.22.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 22:41:26 -0700 (PDT) From: Jordan Niethe To: pdbg@lists.ozlabs.org Date: Mon, 2 Aug 2021 15:41:00 +1000 Message-Id: <20210802054112.461728-1-jniethe5@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 02 Aug 2021 16:56:28 +1000 Subject: [Pdbg] [PATCH 00/12] P10 HTM Support 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: Jordan Niethe Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Add support for P10 Nest and Core HTM. Jordan Niethe (12): libpdbg: Enable p10 host backend libpdbg: Add nhtm hardware unit for p10 libpdbg: Fix some bit definitions for P9 libpdbg: Prepare to add chtm for p10 libpdbg: Add chtm hardware unit for p10 main: cpus_parse() should fail if get_pir() fails main: Use pdbg_get_proc() for mapping to linux CPUs htm: Only check threads for smt1 on target core main: Improve get_pir() error message htm: Check threads !active instead of quiesced libpdbg: Warn if default_backend() falls back to fake backend htm: Add newline to print_htm_address() for chtm Makefile.am | 2 +- libpdbg/dtb.c | 17 +- libpdbg/htm.c | 470 +++++++++++++++++++++++++++++++++++++++++++----- p10-host.dts.m4 | 25 +++ p10.dts.m4 | 19 +- src/htm.c | 6 +- src/main.c | 83 ++++++--- 7 files changed, 538 insertions(+), 84 deletions(-) create mode 100644 p10-host.dts.m4