[PATCH v2 1/2] x86: acpi: Fix calculation of DSDT length

Bin Meng bmeng.cn at gmail.com
Mon Sep 21 03:46:13 CEST 2020


On Mon, Sep 21, 2020 at 9:42 AM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Wed, Sep 16, 2020 at 10:57 PM Wolfgang Wallner
> <wolfgang.wallner at br-automation.com> wrote:
> >
> > Currently, the calculation for the length of the DSDT table includes any
> > bytes that are added for alignment, but those bytes are not initialized.
> >
> > This is because the DSDT length is calculated after a call to
> > acpi_inc_align(). Split this up into the following sequence:
> >
> >   * acpi_inc()
> >   * Calculate DSDT length
> >   * acpi_align()
> >
> > Signed-off-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
> > Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> > Reviewed-by: Simon Glass <sjg at chromium.org>
> >
> > ---
> >
> > Changes in v2:
> >  - Added Reviewed-by tags
> >
> >  arch/x86/lib/acpi_table.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list