On Wed, 22 Jan 2025 16:46:18 +0100 Mauro Carvalho Chehab <mchehab+hua...@kernel.org> wrote:
> The current code is actually dependent on having just one error > structure with a single source. > > As the number of sources should be arch-dependent, as it will depend on > what kind of synchronous/assynchronous notifications will exist, change asynchronous. > the logic to dynamically build the table. > > Yet, for a proper support, we need to get the number of sources by > reading the number from the HEST table. However, bios currently doesn't > store a pointer to it. > > For now just change the logic at table build time, while enforcing that > it will behave like before with a single source ID. > > A future patch will add a HEST table bios pointer and change the logic > at acpi_ghes_record_errors() to dynamically use the new size. > > Signed-off-by: Mauro Carvalho Chehab <mchehab+hua...@kernel.org> > Reviewed-by: Jonathan Cameron <jonathan.came...@huawei.com>