Re: [PATCH v8 05/13] acpi/ghes: rework the logic to handle HEST source ID

2024-08-24 Thread Mauro Carvalho Chehab
Em Mon, 19 Aug 2024 14:10:37 +0200 Igor Mammedov escreveu: > On Fri, 16 Aug 2024 09:37:37 +0200 > Mauro Carvalho Chehab wrote: > > > The current logic is based on a lot of duct tape, with > > offsets calculated based on one define with the number of > > source IDs and an enum. > > > > Rewrite

Re: [PATCH v8 05/13] acpi/ghes: rework the logic to handle HEST source ID

2024-08-19 Thread Igor Mammedov
On Fri, 16 Aug 2024 09:37:37 +0200 Mauro Carvalho Chehab wrote: > The current logic is based on a lot of duct tape, with > offsets calculated based on one define with the number of > source IDs and an enum. > > Rewrite the logic in a way that it would be more resilient > of code changes, by movi

[PATCH v8 05/13] acpi/ghes: rework the logic to handle HEST source ID

2024-08-16 Thread Mauro Carvalho Chehab
The current logic is based on a lot of duct tape, with offsets calculated based on one define with the number of source IDs and an enum. Rewrite the logic in a way that it would be more resilient of code changes, by moving the source ID count to an enum and make the offset calculus more explicit.