From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:505:a60a:b0:1be9:327d:8ee3 with SMTP id qv10csp5378753njc; Fri, 22 Nov 2024 05:14:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXUSFqxd00epYWeMGjOuMa12lL7YCJBfuwRyiHPYvEVawSEeuvr0QfZFV12ouyQfl/bHWhtIGQ4qPdZXQ==@linaro.org X-Google-Smtp-Source: AGHT+IHPu+bLvw8bdh911gZ9NnQmJfQHvATmM4Rp3hIDScVYvTFSznBkjpRI0KnkhGlIbXiGn27L X-Received: by 2002:a05:6808:2226:b0:3e6:147:8bd9 with SMTP id 5614622812f47-3e915823e65mr2987075b6e.18.1732281279349; Fri, 22 Nov 2024 05:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732281279; cv=none; d=google.com; s=arc-20240605; b=F6p0Wt33iuuZA87V/JGY1lsvYvv6AhKdxcLF75d8MWtGpQa9S3ex+CRhY8z7E5ihQs X/JJzspYYOOYRwwKnLGhjxPM1bLfYEkTbtGQkK1M4xfCi5uvcRIJCLemxlPEmGgg8WcL p2beqk98wqQaTMmxwensU0c2jMMmE6/KnRydmKjVYGXm1gfVe7pU1HRKZfAHY/hvU6BH FXcINKdmor0azB5GZkdIkrIv+XpwpvOoG74K+MJoj+EncwqCOAseMDlTxjXGHfWyTi69 Mtq5Umj28J8bPjflqZporg+tlFUj0FaN6/we4/BNSDXqt0q1uH0yeODSbk8cewgKspvS K9MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=py+kPD0c1rpM7HEfRdGEesTb3c8bfiAaLTfnPj0znyg=; fh=A8E5/NKi9QbGgk7WGitTlTPfR3w6nZdDFTYWkpKEyMg=; b=a9Fecj+CddlgescaEtlPJ5RHuzEiJQKyf/8DqGdXCTkqeW/e6S0NZ5zwLc0mlEhsgq hPrJZXmtU4mUghqpPDz2Xa8jPMvNErsTVyswD8duv1WWHg/dENy4C/JfGEh3BsL3R1/L PzoxjBb5UNfDbGAKY9+93zGL27sNt9iif1Ld7r/kgWUUesT3FECRm7B33DWoBMgXoXBQ +3Z64wPVXvfQfHWElOd3qaDRCzImXUguT5IeYGRNk2IW3yxuh+/+TThlFSykOGBwVCus wif/yU66nWJhlU/FL7X1sAAXW0dH7s4EQks9nUb/DC6637KkIFNlu0BIdztCRTuQye9p VyLA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tc13vhJs; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-514faeeeedbsi704934e0c.4.2024.11.22.05.14.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Nov 2024 05:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tc13vhJs; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tETUV-0004YB-2T; Fri, 22 Nov 2024 08:14:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tETUT-0004Wu-J8; Fri, 22 Nov 2024 08:14:29 -0500 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tETUR-0006L3-Qu; Fri, 22 Nov 2024 08:14:29 -0500 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F06D95C5A3D; Fri, 22 Nov 2024 13:13:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E87CC4CEDA; Fri, 22 Nov 2024 13:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732281264; bh=W9eH/NjQmQ/fmoOrydtYHGpAJG00A8vG13tZgPQj1LU=; h=From:To:Cc:Subject:Date:From; b=tc13vhJsp4xUDbgNcsQCLUvvUlh+gvbuVd3zmZ+6oghwyoeCGjRZ4TQ7FXJABqTMU n4J0VhdEshh2krzx43z9xMrhdXkhjAdcVSFlnxxnQiwE3qSURwUy6uo4MxboPEEunR gQyYsNhUYJEkTWPQ4PO2ngr6KM2fUk9zsmFLV/v7U5qcJvQhTIORTUl/HOcQmaUQ+H fM0pmb0Bo6YAwR00ixKz5DbwZtqvHs/w2IVV3FsRYc4LyQ9ZoLBkls0HmDiK65EUDX 8SBghAxjw0UTF6j6Mq9ZGmYcQDnfNRtCQveGFqnWR/YEBQg3mc2zBdyq5qExu/xnDL ul5D/bQk3btDw== Received: from mchehab by mail.kernel.org with local (Exim 4.98) (envelope-from ) id 1tETUL-00000006v9e-4BRt; Fri, 22 Nov 2024 14:14:22 +0100 From: Mauro Carvalho Chehab To: Cc: Jonathan Cameron , Shiju Jose , Mauro Carvalho Chehab , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Ani Sinha , Dongjiu Geng , Peter Maydell , Shannon Zhao , Yanan Wang , Zhao Liu , qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v2 0/5] Change ghes driver to use HEST-based offsets Date: Fri, 22 Nov 2024 14:14:10 +0100 Message-ID: X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2604:1380:4641:c500::1; envelope-from=mchehab+huawei@kernel.org; helo=dfw.source.kernel.org X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.143, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: a/kEakr17kVf This series was part of the previous PR to add generic error injection support on GHES. It depends on a cleanup patch series sent earlier today: https://lore.kernel.org/qemu-devel/cover.1732266152.git.mchehab+huawei@kernel.org/T/#t It contains the changes of the math used to calculate offsets at HEST table and hardware_error firmware file. It prepares for the addition of GHES error injection. The first patch was previously at the cleanup series. It prepares the logic to support multiple sources. The second patch adds a new firmware file to store HEST address. The third patch use the new firmware to calculate offsets using HEST table. Patches 4 and 5 add migration support. They assume that this series will be merged for qemu 9.2 (maybe it is too late for that, as QEMU is now on soft freeze). I tested migration using both virt-9.1 and virt-9.2 machines on qemu 9.2. I also tested migration with: qemu-9.1 -M virt-9.1 -cpu cortex-a57 => qemu-9.2 -M virt-9.1 -cpu cortex-a57 qemu-9.2 -M virt-9.1 -cpu cortex-a57 => qemu-9.1 -M virt-9.1 -cpu cortex-a57 --- v2: - some whitespace and comment changes - patch 3/6 (acpi/ghes: rename the function which gets hw error offsets) was merged on the cleanup series. Mauro Carvalho Chehab (5): acpi/ghes: Prepare to support multiple sources on ghes acpi/ghes: add a firmware file with HEST address acpi/ghes: Use HEST table offsets when preparing GHES records acpi/generic_event_device: Update GHES migration to cover hest addr acpi/generic_event_device: add logic to detect if HEST addr is available hw/acpi/generic_event_device.c | 30 +++++++ hw/acpi/ghes.c | 156 +++++++++++++++++++++++++++++---- hw/arm/virt-acpi-build.c | 33 ++++++- hw/core/machine.c | 2 + include/hw/acpi/ghes.h | 23 +++-- 5 files changed, 216 insertions(+), 28 deletions(-) -- 2.47.0