From patchwork Wed Sep 6 10:10:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1830309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=20221208 header.b=GfefrUbN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RgdRj5SSrz1yh5 for ; Wed, 6 Sep 2023 20:10:41 +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=20221208 header.b=GfefrUbN; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4RgdRh2tqcz2yW0 for ; Wed, 6 Sep 2023 20:10:40 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org 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=20221208 header.b=GfefrUbN; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::1033; helo=mail-pj1-x1033.google.com; envelope-from=npiggin@gmail.com; receiver=lists.ozlabs.org) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (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 4RgdRY0rVZz2yD6 for ; Wed, 6 Sep 2023 20:10:31 +1000 (AEST) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-26d50a832a9so2161379a91.3 for ; Wed, 06 Sep 2023 03:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693995028; x=1694599828; darn=lists.ozlabs.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AQjdpN2JBNGdJLQyTb+4u2uQJ54OAlhU6bJsIPxzFkw=; b=GfefrUbN65X6h3tN0VnpxfrZeDF4g35yvi9SQCCiJpG2VqAA3YYfngf0pRfV64Lq72 sLahvheANYN+eU6uoNlsdaFdTqGeWNfuAluhBQIi9TxHD1DudIEH/yg+ub4KqEZ5gRON XwAjH8grtXVOSwTbCoo9pr0VF8BaqSofpeauy7HHjhnLU8l/VvO5RrZtEJk//sSfStFt 8Kh/OGvKiwC4RpYGSeBlFezgk8B3OlrURvL+vu5FVrDqnTFg74xQEPt93tkyKlxl2UNp rt8z87HfYGnT32vtLf50ThdGjhjuznQL44ZTzD3AmIvQGBM4wXmUprfd6sUJBOJBpjVA Jg6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693995028; x=1694599828; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AQjdpN2JBNGdJLQyTb+4u2uQJ54OAlhU6bJsIPxzFkw=; b=L+V17kBJtGV2Jt8ubRaJKAlgxO9wFWmQynB9HZMNn55qmoGvqIwRE6lgkzAPiWyEQK pvxOsISjhgn9teGtMzp0aqYLW3hDintU+Ow64p6QYCA9Ju9tOZKEti6EnjcNHcQFpF8/ rho/LtWBqw5oHLRzPhiJf75lT5I3veOlEjgqS88u0rBW0454IiQKTDKSv/jlHp8d8KSw 8PHFMRPtE3IM/trSbEZ14q5XOM4s8hmpN6i0+LqXA6lRMnndT5WRTe3QFNGEtXTC6Oq2 wpKxmHPpAVRXfzj+wTR0luIMX0O2OaVSRvoJmQiPjozH9o9EXbJlF0yK5xtWUrABU0Pq EHTg== X-Gm-Message-State: AOJu0YzU8qBUq1dGtiwvHSEgXvQalNyRZmnkXCcbyZD+68XdZ94eZTSA HGYPTGlqsPZnpokh8+mnJtr1U7C18w8= X-Google-Smtp-Source: AGHT+IFuErjwmyVJ7SRyvTIzJ6qBY1oFvrt3F4E3ZOIuT19GvXsIfrpfZOriotfe4Hqid/dsV1ImhA== X-Received: by 2002:a17:90a:c917:b0:26d:af2:d491 with SMTP id v23-20020a17090ac91700b0026d0af2d491mr12588631pjt.34.1693995027975; Wed, 06 Sep 2023 03:10:27 -0700 (PDT) Received: from wheely.local0.net (193-116-105-24.tpgi.com.au. [193.116.105.24]) by smtp.gmail.com with ESMTPSA id m13-20020a17090a7f8d00b002609cadc56esm10639705pjl.11.2023.09.06.03.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 03:10:27 -0700 (PDT) From: Nicholas Piggin To: skiboot@lists.ozlabs.org Date: Wed, 6 Sep 2023 20:10:10 +1000 Message-Id: <20230906101017.130276-1-npiggin@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [Skiboot] [PATCH 0/7] hdata: P10 tests and cleanups X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" I started looking at adding HDAT building support a while back, that's not going anywhere very soon, but in the process made a few cleanups and added P10 tests. Thnaks, Nick Nicholas Piggin (7): hdata: Add POWER10 Rainier tests hdata: Use common code for HDIF header check hdata: Make hdata child accessors check the header hdata: split idata accessor function hdata: Remove legacy SPIRA structure hdata: make for_each_pcia take spiras as an argument hdata: Use existing define for PCIA signature check hdata/fsp.c | 12 +- hdata/hdif.c | 38 +- hdata/hdif.h | 10 +- hdata/iohub.c | 4 +- hdata/memory.c | 10 +- hdata/naca.c | 4 +- hdata/pcia.c | 8 +- hdata/slca.c | 4 +- hdata/spira.c | 151 +- hdata/spira.h | 69 +- hdata/test/Makefile.check | 18 +- hdata/test/hdata_to_dt.c | 53 +- hdata/test/p10-rainier.dts | 4234 +++++++++++++++++++++++++++++++++ hdata/test/p10-rainier.spiras | Bin 0 -> 8388608 bytes hdata/tpmrel.c | 2 +- hdata/vpd.c | 27 +- hw/fsp/fsp-attn.c | 1 - include/mem-map.h | 20 +- skiboot.lds.S | 5 - 19 files changed, 4375 insertions(+), 295 deletions(-) create mode 100644 hdata/test/p10-rainier.dts create mode 100644 hdata/test/p10-rainier.spiras