From nobody Thu Apr 17 21:22:58 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90E9713DBA0 for <linux-kernel@vger.kernel.org>; Sat, 7 Dec 2024 08:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733561805; cv=none; b=ieu4vyMkzDZdVKaYPq82DTovgfMyCoG5QJGtG5oA2iiX+dIQMzHLJSdKKEKCtOWPiXz+bsNSY/QKESJgNBYnwejA1rL3pLOSZaQVOBYexDjqWWzQ6+j2+ODc6HxFBedIkDejj/0Vop03Py2mhFb6GGPwz6n/E7rcHqE92ZIKhsg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733561805; c=relaxed/simple; bh=DZq3ehynlc63lZ3iGs1SNcajfqzDutIBxgWe19LJFlA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OmGhzMhecf4zM9zOTN8quYCw6NMooaiixRUJZDtaKRr2SNovEaWywCHrA1lqm/+46eAu1XxvcZnTliknepcsYuOhTu+1qi9QT8XzSTc99nuSx0hHc+inzDBre9JzEc9hy6z9qi8ZcsdFZMHBlbnIqkaJx39HC3JddIxHu4nqxGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BcshqpXG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BcshqpXG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29E44C4CEEF; Sat, 7 Dec 2024 08:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733561805; bh=DZq3ehynlc63lZ3iGs1SNcajfqzDutIBxgWe19LJFlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BcshqpXGdyreUxNpcsFnw7ITSsNsVJEb/omufpr4NPWnuZ72upCcQYzw6w/5LCMdB tQ0UKs43aA51YheAaBKEFh53Xv3u4j66yLEfnJoUncuiyGyVjXVj1KTtO1HANO/JP6 Ec1Q5pDODHPrXHyxLMy5J9dUfGw8WUXavz+FlL2tcAoihxvKl8jV8RPfOQ1VnjkZIE XTofhKemiZduxzVEFSV58GI/dMSWDZLNCZBcSpVInyKJaUNDLkBRvJRAWJarHeUtCO rEBt+QlCBRF2HCWwmCzvOX226J7lHSfUHM0T493vB+SuycgItAqsZyuPN5+C8vD9wA Q0Pzlp+3jVgzA== Received: from mchehab by mail.kernel.org with local (Exim 4.98) (envelope-from <mchehab+huawei@kernel.org>) id 1tJqcF-00000005j5W-1Pqb; Sat, 07 Dec 2024 09:56:43 +0100 From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> To: "Michael S . Tsirkin" <mst@redhat.com> Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>, Shiju Jose <shiju.jose@huawei.com>, Mauro Carvalho Chehab <mchehab+huawei@kernel.org>, Dongjiu Geng <gengdongjiu1@gmail.com>, linux-kernel@vger.kernel.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org, Igor Mammedov <imammedo@redhat.com> Subject: [PATCH v6 16/16] docs: acpi_hest_ghes: fix documentation for CPER size Date: Sat, 7 Dec 2024 09:54:22 +0100 Message-ID: <c9a291a9b3fa22000ae100d980a0ada5d6ba9a24.1733561462.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <cover.1733561462.git.mchehab+huawei@kernel.org> References: <cover.1733561462.git.mchehab+huawei@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Content-Type: text/plain; charset="utf-8" While the spec defines a CPER size of 4KiB for each record, currently it is set to 1KiB. Fix the documentation and add a pointer to the macro name there, as this may help to keep it updated. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> --- docs/specs/acpi_hest_ghes.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/specs/acpi_hest_ghes.rst b/docs/specs/acpi_hest_ghes.rst index 68f1fbe0a4af..c3e9f8d9a702 100644 --- a/docs/specs/acpi_hest_ghes.rst +++ b/docs/specs/acpi_hest_ghes.rst @@ -67,8 +67,10 @@ Design Details (3) The address registers table contains N Error Block Address entries and N Read Ack Register entries. The size for each entry is 8-byte. The Error Status Data Block table contains N Error Status Data Block - entries. The size for each entry is 4096(0x1000) bytes. The total size - for the "etc/hardware_errors" fw_cfg blob is (N * 8 * 2 + N * 4096) by= tes. + entries. The size for each entry is defined at the source code as + ACPI_GHES_MAX_RAW_DATA_LENGTH (currently 1024 bytes). The total size + for the "etc/hardware_errors" fw_cfg blob is + (N * 8 * 2 + N * ACPI_GHES_MAX_RAW_DATA_LENGTH) bytes. N is the number of the kinds of hardware error sources. =20 (4) QEMU generates the ACPI linker/loader script for the firmware. The --=20 2.47.1