From patchwork Thu Nov 25 00:41:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Niethe X-Patchwork-Id: 1559479 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=20210112 header.b=NKISoCa2; dkim-atps=neutral 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=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hzzbb45Rcz9sXS for ; Thu, 25 Nov 2021 11:42:03 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HzzbV6sCSz2yp4 for ; Thu, 25 Nov 2021 11:41:58 +1100 (AEDT) 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=20210112 header.b=NKISoCa2; 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::102f; helo=mail-pj1-x102f.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=20210112 header.b=NKISoCa2; dkim-atps=neutral Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (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 4HzzbN6Y1fz2yPP for ; Thu, 25 Nov 2021 11:41:50 +1100 (AEDT) Received: by mail-pj1-x102f.google.com with SMTP id gt5so3833517pjb.1 for ; Wed, 24 Nov 2021 16:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3WksM7qGcze02+JH48moSAbIG+mHsPKD3tTM+CiCXoA=; b=NKISoCa29Ota3zQLpmDrzKoJzXhzitQN2aPB/gmP2qhXCNRs9bUClRWw7pZG3gOKxs jCFLjLmC06uDvWBjFSRLwDfmqYUYzxV3DPrF/o0WbgHP6/QZUm2CD8dqX2nE+MsdlwIS BcFRYrr7iBjUi/CQk1/3avTJzx8hGlU28C+hYzQKisNNU7hdNTPm+AuloAY29aRz610P wwBOIKpBJmF/Doag/mkmWMvZLnjoGVWz6+5xgnSuDbsGN2aLBL7BliOVRbWBQOwAlFJF mCDggeSmJd8DRvGmwFYxfSm0qIL/uVGj02SMdS54AD1gpJwy4s+Cb95bqi2i4CvXPNMx GFWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3WksM7qGcze02+JH48moSAbIG+mHsPKD3tTM+CiCXoA=; b=WivA4Cy1EvwCsuQQg1Wyv1JRuUKwFBu3FItbcKTFmaHN3CW3+ZGqFTRLtOg3cwBvli 4NVpfsUB677MwwCcTKXjIGJALB/4nFR2/Nzl64HDajYdZ9NmTQkjP8aEMxMk2elG8VFb LhVXanKuLtrkPWTaU/wVumphnIb+FwEjA7EbUPjmA2SYL5lGSWtv63WijJRvXgYd7I1u 4nRZF5nTwx8jPU/dISSuKqaufgt2uG7MFtY0Jq7yW3rFCzAMI7a3XltFy5P5nniXqRFK H4FHC6/kSH9ZKA80ixrRZji2u67/KGHfywp0AhlJHz8gj1pLrHeAwfbZdrPEBVguWg4u k7Ew== X-Gm-Message-State: AOAM531O5qIqf6NpzF/xjmytkbcikkaMQX7VTj+akQwALKqy93Wk+10S YYPC5x4vzIfm5DIDy+/h1zGYxlDrhbE= X-Google-Smtp-Source: ABdhPJze4mAtRRP44cq3kicoxeNyUi37ExWI02nWh/ufQMg5y912wCkfes47S1a27C9x9uWjZdJhkw== X-Received: by 2002:a17:902:934a:b0:142:6ed6:5327 with SMTP id g10-20020a170902934a00b001426ed65327mr24613871plp.85.1637800905936; Wed, 24 Nov 2021 16:41:45 -0800 (PST) Received: from tee480.ibm.com (159-196-117-139.9fc475.syd.nbn.aussiebb.net. [159.196.117.139]) by smtp.gmail.com with ESMTPSA id fw21sm5490326pjb.25.2021.11.24.16.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 16:41:45 -0800 (PST) From: Jordan Niethe To: pdbg@lists.ozlabs.org Date: Thu, 25 Nov 2021 11:41:29 +1100 Message-Id: <20211125004138.120917-1-jniethe5@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 0/9] Add 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: , Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Add support for core and nest htm on P10. This revision contains some cleanups suggested by Amitay: Jordan Niethe (9): dts: Add p10 host device tree v2: Separated from next patch libpdbg: Enable p10 host backend dts: Fix nhtm in p10 device tree v2: Separated from next patch libpdbg: Add nhtm hardware unit for p10 v2: Remove reg_off(), add a global dual_htm_offset that set during .probe() and part of the macro definitions for HTM_TRIGGER_CONTROL, etc libpdbg: Prepare to add chtm for p10 v2: Add new callbacks in struct htm for p8/p10 specifics dts: Add chtm to p10 device tree v2: Separated from next patch libpdbg: Add chtm hardware unit for p10 v2: Use the new callbacks in struct htm htm: Only check threads for smt1 on target core htm: Check threads !active instead of quiesced v2: Only change for p10 Makefile.am | 2 +- libpdbg/dtb.c | 16 +- libpdbg/htm.c | 432 +++++++++++++++++++++++++++++++++++++++++++---- libpdbg/hwunit.h | 4 + p10-host.dts.m4 | 25 +++ p10.dts.m4 | 19 ++- src/htm.c | 8 +- src/main.c | 8 + 8 files changed, 469 insertions(+), 45 deletions(-) create mode 100644 p10-host.dts.m4