From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::242; helo=mail-pg0-x242.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4210222135D46 for ; Tue, 6 Mar 2018 22:50:17 -0800 (PST) Received: by mail-pg0-x242.google.com with SMTP id q27so558079pgn.8 for ; Tue, 06 Mar 2018 22:56:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Sb6P1Gi031jyLtilPjVSVctdhCNfte1EYLGSRBhLJcw=; b=UZzudY4cmDgNNqRt8z690bOFnVA5kBv6H0i6befX57xJMhvfy5IeB9QlHtgJEDNUVO 9fTzFpHv7ccdXjZKv2PnpE7taWtBuImevpInWXvjdCnZbbj66ZPf9q+PT738GN80PP1q xBmSGMvD3TJwT/bOCxBf60GKpbFI6qJQk8SRM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Sb6P1Gi031jyLtilPjVSVctdhCNfte1EYLGSRBhLJcw=; b=NaoBpOhlEXqYVpvZNvI3TftUei0aRLOrgMKbzim3p9tuq0noYoiFYDkcC7NvWxAtHR zU2w859g4Zo4UV06oLCEtKHXU/MJzmSbgZPHui0Vd8Z08uFci6A96TMdyiLUEnVdVyTS M7wdda375K6UCmUYEihV9M1jwfXtghB/NPQCxj1+WdjX/twPG4Ts5v0UHnPUQFrc9aHQ nK5h/UOj23OAfjX3xuf1sDfl8YS2O7wQa+7JL7E8h0PHKSSdezH4CF7sPBZK0l2dK/n0 p4dXYsMPX65m6L7uEIwvRnS4mPv/lgGcrr5n30tA3xEHkczTxv5MhPpNqpueT0x/X0Tn veww== X-Gm-Message-State: APf1xPApHqtb40w+uEABHGebodtqqx7GTBkgaGK+Lzfu0eX6JfdBozpu 3RMjdzIAOGsN1Jb+TD1XygUGaYEtiOg= X-Google-Smtp-Source: AG47ELv9Yit+E6d/guf2REK0lYLys5GVxZZlbecDUsakFcYUdBhkFBOUVdKReH6q3TSahs0MSYQ0ZA== X-Received: by 10.98.200.131 with SMTP id i3mr21747361pfk.40.1520405792462; Tue, 06 Mar 2018 22:56:32 -0800 (PST) Received: from localhost.localdomain ([45.56.152.76]) by smtp.gmail.com with ESMTPSA id m18sm28340291pgu.51.2018.03.06.22.56.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Mar 2018 22:56:31 -0800 (PST) From: Heyi Guo To: edk2-devel@lists.01.org Cc: Jason Zhang , Heyi Guo , Ard Biesheuvel , Leif Lindholm , Graeme Gregory Date: Wed, 7 Mar 2018 14:55:45 +0800 Message-Id: <1520405747-11023-1-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 1/3] Hisilicon/D0x: Set ACPI GTDT always-on flag X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2018 06:50:18 -0000 From: Jason Zhang Timer is always working on Hisilicon D0x, even system enters WFI/WFE, and there is no other low power status, so we set "always-on" flag in ACPI GTDT. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jason Zhang Signed-off-by: Heyi Guo Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Graeme Gregory --- Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc | 3 ++- Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc b/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc index 4c1050ae83b9..3feb99e88c88 100644 --- a/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc +++ b/Silicon/Hisilicon/Hi1610/Hi1610AcpiTables/Gtdt.aslc @@ -40,8 +40,9 @@ #define GTDT_TIMER_LEVEL_TRIGGERED 0 #define GTDT_TIMER_ACTIVE_LOW EFI_ACPI_6_1_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY #define GTDT_TIMER_ACTIVE_HIGH 0 +#define GTDT_TIMER_ALWAYS_ON_CAPABILITY EFI_ACPI_6_1_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY -#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) +#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ALWAYS_ON_CAPABILITY | GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) #pragma pack (1) diff --git a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc index 16e2c6a972ba..2a9d209c00f0 100644 --- a/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc +++ b/Silicon/Hisilicon/Hi1616/D05AcpiTables/Gtdt.aslc @@ -28,7 +28,7 @@ #define GTDT_TIMER_ACTIVE_HIGH 0 #define GTDT_TIMER_ALWAYS_ON_CAPABILITY EFI_ACPI_6_1_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY -#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) +#define GTDT_GTIMER_FLAGS (GTDT_TIMER_ALWAYS_ON_CAPABILITY | GTDT_TIMER_ACTIVE_LOW | GTDT_TIMER_LEVEL_TRIGGERED) #pragma pack (1) -- 2.7.4