From patchwork Sat May 7 14:46:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 619563 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3r2BLl0G30z9syq for ; Sun, 8 May 2016 00:47:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=eDGfyWVn; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57B17A7860; Sat, 7 May 2016 16:45:33 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vs8XIPBNpjQ0; Sat, 7 May 2016 16:45:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 032EAA763C; Sat, 7 May 2016 16:44:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 56675A77D8 for ; Sat, 7 May 2016 16:43:42 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0zYGXPpgH2QT for ; Sat, 7 May 2016 16:43:42 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by theia.denx.de (Postfix) with ESMTPS id 465C7A75BC for ; Sat, 7 May 2016 16:43:18 +0200 (CEST) Received: by mail-pf0-f180.google.com with SMTP id 206so60239636pfu.0 for ; Sat, 07 May 2016 07:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l4pw/FwUxBqb/IYrr1r1gZLlzkO/BIEuEOL4JdqsIxQ=; b=eDGfyWVndtPiW0Zqhn2oGE+3+Fv6nsOBcjV+0oolRi4CqmIX4ZMtUjW3axQCeVRvXI uV8P2Ifgl3xr3QNHfxxqBb1JlVOz1Md72Gtac2b/F+XlHJqruA4PZfjTQ6LYcWktpoPK fOhxzK1DoM8ear90OZJv1Ng93ft/d2z9ky6ug1RiqgOOmHfxXsEO0YP7X4gx62+/4b1n nRHdwZykL6Gocmp8+tG5zYhPoKYgkKm0fUbWJpu3OLHmtNKIfVKkc82NDFoi3nP+xdx+ /WGWPIb1SeayNAsgRsMGHUhTpBuRAqymIPY6ioLBCCK7AK5oVMHeT8hJKqaoAwRLCKTm VngA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l4pw/FwUxBqb/IYrr1r1gZLlzkO/BIEuEOL4JdqsIxQ=; b=MDrKjcHPGX8RK6o1qs9v4ZnKTeZLAyyE0yJx3SAn8RBsMhVeIAiceCMsJVxQnW0o48 fxuU0Q6EYjUl24vb1ucTVLtll11G+QNgoUOGMugwiXwnP3p0GmXaKL1htQcgTaktoEtW UwqFNhssjaSIRi5zWwO1hYiTfm/Y8fBtEONOpLFGHPoaJmrdHgcnt1Nkrrz/LeiKRcYx 3JXLxK/FX/swaFGK0wTyrWYHwq2jb6XEHVy3Sj1vy0O24kRbg/m6pliwbQ6edKDH8xnR SyXCLEkCQnBizZ0zOBkdfqcy5iMhjV2oyab+/ufLpVKY+wpvw7cFXTcAHojdnEcOCgtt fR9w== X-Gm-Message-State: AOPr4FXSWPzBbW77BmIMTMyNNuBe5dPrMHmy59rC1mmD7zf0bl6J7FpGjY20P5w8CN2QUg== X-Received: by 10.98.47.194 with SMTP id v185mr36264074pfv.120.1462632197698; Sat, 07 May 2016 07:43:17 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id h1sm28693352pfh.49.2016.05.07.07.43.16 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 May 2016 07:43:17 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Sat, 7 May 2016 07:46:27 -0700 Message-Id: <1462632397-11224-19-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1462632397-11224-1-git-send-email-bmeng.cn@gmail.com> References: <1462632397-11224-1-git-send-email-bmeng.cn@gmail.com> Cc: Stefan Roese Subject: [U-Boot] [PATCH v2 18/28] x86: acpi: Align FACS table to a 64 byte boundary X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Per ACPI spec, the FACS table address must be aligned to a 64 byte boundary (Windows checks this, but Linux does not). Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese Reviewed-by: Simon Glass --- Changes in v2: - Add comments before the 64 byte alignment for FACS arch/x86/lib/acpi_table.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 7cde9c8..056d012 100644 --- a/arch/x86/lib/acpi_table.c +++ b/arch/x86/lib/acpi_table.c @@ -339,7 +339,11 @@ u32 write_acpi_tables(u32 start) current = ALIGN(current, 16); xsdt = (struct acpi_xsdt *)current; current += sizeof(struct acpi_xsdt); - current = ALIGN(current, 16); + /* + * Per ACPI spec, the FACS table address must be aligned to a 64 byte + * boundary (Windows checks this, but Linux does not). + */ + current = ALIGN(current, 64); /* clear all table memory */ memset((void *)start, 0, current - start);